/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
:root {
    --maroon: #7A1F2E;
    --maroon-dark: #5c1722;
    --brown: #333333;
    --gold: #C5A059;
    --gold-light: #e8d595;
    --cream: #FDFBF7;
    --text-main: #333333;
}

/* =========================================
   2. BASE STYLES
   ========================================= */
body {
    background-color: var(--cream);
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--maroon);
    font-weight: 700;
}

a {
    color: var(--maroon);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* =========================================
   3. LAYOUT & NAVIGATION
   ========================================= */
.navbar-prodia {
    background-color: var(--brown);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-prodia .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold) !important;
    font-weight: 700;
}

.navbar-prodia .nav-link {
    color: var(--cream) !important;
    font-weight: 500;
    margin: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-prodia .nav-link:hover, 
.navbar-prodia .nav-link.active {
    color: var(--gold) !important;
}

.navbar-prodia .nav-link i {
    color: var(--gold);
    font-size: 1.1rem;
}

.main-content {
    padding: 60px 0;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

/* =========================================
   4. HERO BANNER (Konsolidasi & Optimasi)
   ========================================= */
.hero-banner {
    position: relative;
    height: 40vh;
    min-height: 380px;
    background: url('../images/hero-banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px 40px 20px;
}

.hero-banner h1 {
    color: var(--gold);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--cream);
    max-width: 600px;
    margin: 0 auto 10px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* =========================================
   5. CARDS & WIDGETS
   ========================================= */
.card-article {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
}

.card-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-article .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-article .card-body {
    padding: 20px;
}

.card-article .card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-article .card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* =========================================
   6. FEATURED ARTICLE OVERLAY
   ========================================= */
.featured-card-overlay {
    position: relative;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s ease;
}

.featured-card-overlay:hover {
    box-shadow: 0 15px 40px rgba(122, 31, 46, 0.25);
}

.featured-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-card-overlay:hover .featured-bg-img {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 20, 15, 0.95) 0%, rgba(30, 20, 15, 0.7) 40%, rgba(30, 20, 15, 0.1) 70%, transparent 100%);
    z-index: 1;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
    color: white;
    transform: translateY(15px);
    transition: transform 0.5s ease;
}

.featured-card-overlay:hover .featured-content {
    transform: translateY(0);
}

.featured-category {
    display: inline-block;
    background-color: var(--gold);
    color: var(--brown);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 90%;
}

.btn-featured-read {
    background-color: var(--maroon);
    color: white;
    border: 2px solid var(--maroon);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-featured-read:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

/* =========================================
   7. CATEGORY CARDS
   ========================================= */
.category-card {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease !important;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(122, 31, 46, 0.15);
    border-color: var(--maroon) !important;
}

.category-card:hover .category-icon i {
    color: var(--gold);
    transform: scale(1.1);
}

.category-icon i {
    transition: all 0.3s ease;
    display: inline-block;
}

/* =========================================
   8. PROMOTIONAL BANNERS
   ========================================= */
/* Ebook Promo */
.ebook-promo-banner {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--brown) 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 25px rgba(122, 31, 46, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebook-promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(122, 31, 46, 0.35);
}

.btn-promo-ebook {
    background-color: var(--gold);
    color: var(--brown);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    animation: pulse-gold 2.5s infinite;
}

.btn-promo-ebook:hover {
    background-color: #fff;
    color: var(--maroon);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6);
    animation: none;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.promo-decoration {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: rgba(197, 160, 89, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* Advertisement Banner */
.advertisement-banner {
    padding: 15px;
    background: linear-gradient(135deg, var(--cream) 0%, #f5f0e8 100%);
    border-radius: 8px;
    border: 1px dashed var(--gold);
}

.advertisement-banner img {
    transition: all 0.3s ease;
}

.advertisement-banner img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(122, 31, 46, 0.2);
}

.advertisement-banner a {
    display: block;
    position: relative;
}

.advertisement-banner small {
    color: #999;
    font-style: italic;
}

/* =========================================
   9. STATISTICS SECTION
   ========================================= */
.statistics-section {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    padding: 20px 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #404040;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(122, 31, 46, 0.25);
    transition: all 0.3s ease;
}

.stat-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.stat-item:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(122, 31, 46, 0.35);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #404040;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #404040;
    letter-spacing: 1px;
    font-weight: 600;
}
 
/* =========================================
   10. ARTICLE TYPOGRAPHY & LAYOUT FIXES
   ========================================= */
.article-content {
    line-height: 1.8;
    color: #4A3B32;
    text-align: justify;
    text-justify: inter-word;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Konsolidasi aturan gambar agar sidebar tidak turun & responsif */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.article-content table {
    max-width: 100% !important;
    width: 100% !important;
}

.article-content iframe, 
.article-content video {
    max-width: 100% !important;
}

.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer-prodia {
    background-color: var(--brown);
    color: var(--cream);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-prodia h5 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-prodia a {
    color: var(--cream);
}

.footer-prodia a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* =========================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .hero-banner {
        height: 35vh;
        min-height: 220px;
        padding-bottom: 30px;
    }
    .hero-banner h1 { font-size: 1.8rem; }
    .hero-banner p { font-size: 0.95rem; max-width: 100%; }
    
    .featured-card-overlay { height: 400px; }
    .featured-content { padding: 1.5rem; }
    .featured-title { font-size: 1.5rem; }
    .featured-desc {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .category-icon { font-size: 2rem !important; }
    .category-card h6 { font-size: 0.85rem !important; }
    
    .article-content { text-align: left; } /* Lebih nyaman dibaca di HP */
    
    .stat-number { font-size: 2rem; }
    .stat-icon-wrapper { width: 65px; height: 65px; }
    .stat-icon-wrapper i { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .ebook-promo-banner { padding: 1.5rem 1rem !important; }
    .ebook-promo-banner h5 { font-size: 1.1rem !important; }
    .btn-promo-ebook { width: 100%; padding: 10px 20px; }
}