/* ==========================================================================
   1. PALET WARNA & VARIABEL GLOBAL (MODERN ISLAMI)
   ========================================================================== */
:root {
    --primary: #1A535C;          /* Emerald Premium Gelap */
    --primary-light: #4ECDC4;    /* Mint Modern */
    --gold: #F7FFF7;             /* Putih Bersih Kontras */
    --accent-gold: #FFE66D;      /* Gold cerah premium */
    --bg: #F8F9FA;               /* Background bersih */
    --text: #2F3E46;             /* Teks abu gelap elegan */
    --text-muted: #6C757D;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(26, 83, 92, 0.08), 0 4px 6px -2px rgba(26, 83, 92, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(26, 83, 92, 0.1), 0 10px 10px -5px rgba(26, 83, 92, 0.04);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* CONTAINER & TITLE GENERAL */
.container {
    width: min(1200px, 90%);
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   3. HEADER & NAVBAR COMPONENTS (GLASSMORPHISM)
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    font-family: 'Bernard MT Condensed';
    src: url(../fonts/BERNHC.TTF) format('ttf');
}

/* Mengatur gaya teks kecil di bawahnya */
.logo-subtext {
    font-size: 0.65rem; /* Ukuran teks lebih kecil */
    font-weight: 400;
    color: #666; /* Warna abu-abu halus, sesuaikan dengan tema */
    letter-spacing: 0.5px; /* Memberi sedikit jarak antar huruf agar rapi */
}

nav {
    display: flex;
    align-items: center;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle { 
    display: none; 
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   4. GLOBAL BUTTONS
   ========================================================================== */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26, 83, 92, 0.25);
}

.btn-primary:hover {
    background: #123c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 83, 92, 0.35);
}

.btn-light {
    background: var(--accent-gold);
    color: #1A535C;
    box-shadow: 0 4px 14px rgba(255, 230, 109, 0.3);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 230, 109, 0.5);
    filter: brightness(1.05);
}

/* ==========================================================================
   5. HOMEPAGE COMPONENTS (index.html)
   ========================================================================== */
/* HERO SECTION */
.hero {
    padding: 90px 0;
    background: radial-gradient(circle at 10% 20%, rgb(26, 83, 92) 0%, rgb(36, 114, 126) 90%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -1px;
}

.gradient-text {
    color: var(--accent-gold);
}

.hero-text p {
    opacity: .85;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: opacity .4s ease, transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* FEATURES SECTION */
.features {
    padding: 100px 0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center; /* Membuat kartu di baris terakhir otomatis rata tengah */
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.01);
    
    /* Mengatur lebar basis kartu agar pas 3 kolom di desktop, dan otomatis turun ke baris baru */
    flex: 1 1 calc(33.333% - 2rem); 
    max-width: calc(33.333% - 1.34rem);
    min-width: 280px; /* Menjaga agar tampilan tetap rapi di layar medium */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(78, 205, 196, 0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary);
}

.feature-card .icon {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon {
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* PROGRAMS SECTION */
.programs {
    padding: 100px 0;
    background: #f1f5f7;
}

.programs-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

.program-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Style khusus untuk ikon huruf Arab */
.program-card .arabic-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: block;
    font-weight: 700;
    transition: var(--transition);
    line-height: 1;
}

/* Efek hover mengikuti style asli Anda */
.program-card:hover .arabic-icon {
    color: var(--white);
    transform: scale(1.1);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.program-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
    transition: var(--transition);
}

.program-card:hover i,
.program-card:hover h3 {
    color: var(--white);
}

/* CTA SECTION */
.cta {
    background: linear-gradient(135deg, #1A535C 0%, #11363B 100%);
    color: var(--white);
    text-align: center;
    padding: 90px 0;
    position: relative;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

.btn-cta {
    padding: 15px 40px;
    font-size: 1.05rem;
}

/* PARTICIPANTS DISTRIBUTION SECTION */
.participants {
    padding: 100px 0;
}

.participants .subtext {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.participants-grid {
    display: grid;
    /* Menggunakan auto-fit dengan batasan minmax agar responsif */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    /* Membuat card di baris terakhir otomatis rata tengah jika jumlahnya tidak genap */
    justify-content: center; 
}

/* Tambahan opsional: Jika ingin memastikan di layar desktop besar 
   terbagi menjadi 5 kolom rapi (2 baris pas untuk 10 kartu) */
@media (min-width: 1100px) {
    .participants-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.participant-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary);
    
    /* Memastikan konten di dalam card selalu tegak lurus di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.participant-card:hover {
    transform: translateY(-8px);
    background: var(--primary);
    color: var(--white);
    border-bottom-color: var(--accent-gold);
}

.participant-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.participant-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.participant-card .percent {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);
    transition: var(--transition);
}

.participant-card:hover i,
.participant-card:hover .percent {
    color: var(--white);
}

/* ==========================================================================
   6. GALLERY PAGE COMPONENTS (galeri.html)
   ========================================================================== */
.gallery {
    padding: 60px 0 100px;
}

.gallery .subtext {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 4rem;
    font-size: 1.05rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.gallery-item {
    background: var(--white);
    padding: 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #eaeaea;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(78, 205, 196, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    padding: 5px 10px 8px;
    letter-spacing: -0.2px;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    color: var(--primary-light);
}

/* GALLERY LIGHTBOX PREVIEW */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 51, 56, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.show img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* ==========================================================================
   7. ANALYTICS & GRAPH PAGE COMPONENTS (minatBelajar.html)
   ========================================================================== */
.chart-section {
    padding: 60px 0 100px;
}

.chart-subtext {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
}

.chart-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CARDS DATA ANALYTICS */
.analytics-card {
    background: var(--white);
    padding: 1.8rem 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

.analytics-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(78, 205, 196, 0.15);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 10px;
}

.program-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-program {
    font-size: 1.4rem;
    color: var(--primary);
    background: rgba(78, 205, 196, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.analytics-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
}

.badge-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: #f1f3f5;
    padding: 6px 14px;
    border-radius: 30px;
}

/* PROGRESS BAR GRAPHICS */
.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background: #EEDFDE; /* Track abu-abu lembut bermotif pastel */
    background: #EAECEE;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.1, 1, 0.1, 1);
}

.percentage-value {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Penyesuaian Mobile Responsif */
@media(max-width: 576px) {
    .analytics-card {
        padding: 1.2rem 1.5rem;
    }
    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .badge-count {
        align-self: flex-end;
        margin-top: -5px;
    }
}

/* ==========================================================================
   8. GLOBAL FOOTER COMPONENTS
   ========================================================================== */
footer {
    background: #0F3338;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
}

.footer-brand p {
    font-size: 0.92rem;
    opacity: 0.75;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-logo {
    width: 65px;
    height: 65px;
    background-color: white;
    padding: 2px;
    border-radius: 50%;
    object-fit: cover;
}

footer h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 8px;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gold);
}

footer p {
    font-size: 0.92rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: var(--white);
    opacity: .75;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent-gold);
}

.link-media {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.link-media:hover {
    color: var(--accent-gold);
}

/* MEDIA PARTNER CARDS */
.partner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.partner-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 6px;
    padding: 4px;
}

.partner-info h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.partner-info p {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: .6;
    font-size: .85rem;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN SYSTEM (MEDIA QUERIES)
   ========================================================================== */
@media(max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media(max-width: 768px) {
    /* HERO MODIFICATION */
    .hero-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-btns {
        justify-content: center;
    }

    /* GENERAL TITLES */
    .section-title {
        font-size: 1.8rem;
    }

    /* MOBILE NAVIGATION BURGER LOGIC */
    .menu-toggle {
        display: block;
    }

    .nav-links-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(0,0,0,0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /* GALLERY GRAPHICS MOBILE */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 35px;
    }
}

@media(max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .logo-text {
        font-size: 1.35rem;
        font-family: 'Bernard MT Condensed';
        src: url(../fonts/BERNHC.TTF) format('ttf');
    }
}

/* ==========================================================================
   GRAFIK MINAT BELAJAR COMPONENT STYLES
   ========================================================================== */
.chart-section {
    padding: 60px 0 100px;
}

.chart-subtext {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2.5rem;
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.chart-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* CARDS CONFIGURATION */
.analytics-card {
    background: var(--white);
    padding: 1.8rem 2.2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 83, 92, 0.05);
    transition: var(--transition);
}

.analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 15px;
}

.program-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-program {
    font-size: 1.3rem;
    color: var(--primary);
    background: rgba(78, 205, 196, 0.12);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.analytics-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.sub-title-inline {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
}

.badge-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26, 83, 92, 0.06);
    padding: 6px 16px;
    border-radius: 30px;
    white-space: nowrap;
}

/* PROGRESS BAR GRAPHICS */
.progress-bar-wrapper {
    width: 100%;
    height: 14px;
    background: #EAECEE;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(78, 205, 196, 0.2);
}

.percentage-value {
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.chart-meta-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.chart-meta-info i {
    color: var(--primary-light);
    margin-right: 5px;
}

/* RESPONSIVE LAYOUT FOR CHART */
@media (max-width: 768px) {
    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .badge-count {
        align-self: flex-start;
    }
    .analytics-card {
        padding: 1.4rem 1.5rem;
    }
}

/* ==========================================================================
   GLOBAL UTILITIES & BUTTON FIXES (UNTUK NAVBAR INDEX/GALERI)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--accent-gold);
    color: var(--primary);
}

/* Tweak Link Footer */
.link-media {
    color: inherit;
    transition: var(--transition);
}
.link-media:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   10. PORTAL ANGGOTA MAINTENANCE STYLES (TAMBAHAN KHUSUS)
   ========================================================================== */
.maintenance-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgb(26, 83, 92) 0%, rgb(36, 114, 126) 90%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.maintenance-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    top: -150px;
    left: -150px;
}

.maintenance-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.maintenance-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 600px;
    width: 90%;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: maintenanceFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.maintenance-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--white);
    background-color: var(--white);
    transition: var(--transition);
}

.maintenance-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.maintenance-card h1 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.maintenance-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(78, 205, 196, 0.15);
    color: #1A535C;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge i {
    color: var(--primary-light);
    animation: maintenancePulse 2s infinite;
}

/* Fitur Eksplorasi Mini */
.mini-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.mini-feature-item {
    background: var(--bg);
    padding: 1.2rem 0.8rem;
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.mini-feature-item:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.mini-feature-item i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.mini-feature-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.maintenance-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.maintenance-footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
}

/* Animasi */
@keyframes maintenanceFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes maintenancePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsif Mobile */
@media(max-width: 576px) {
    .maintenance-card {
        padding: 2.5rem 1.5rem;
    }
    .maintenance-card h1 {
        font-size: 1.8rem;
    }
    .mini-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .mini-feature-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 1rem;
        text-align: left;
    }
    .mini-feature-item i {
        margin-bottom: 0;
    }
}

/* ================= SIDEBAR SLIDE IN/OUT STYLES ================= */
.sidebar-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Sangat tinggi agar berada di atas element apapun */
    visibility: hidden;
    transition: visibility 0.4s;
}

/* Munculkan kontainer utama ketika aktif */
.sidebar-container.active {
    visibility: visible;
}

/* Latar belakang redup/transparan hitam */
.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px); /* Efek blur modern di belakang sidebar */
    opacity: 0;
    transition: opacity 0.4s ease;
}
.sidebar-container.active .sidebar-overlay {
    opacity: 1;
}

/* Panel Putih Sidebar */
.sidebar-content {
    position: absolute;
    top: 0;
    right: -400px; /* Tersembunyi di luar layar kanan */
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Efek transisi smooth bouncy */
}
.sidebar-container.active .sidebar-content {
    right: 0; /* Bergeser masuk ke layar */
}

/* Header di dalam Sidebar */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-header h3 {
    font-size: 1.2rem;
    color: #1b5e20; /* Hijau Islami */
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.2s;
}
.close-btn:hover { color: #e53e3e; }

/* Bagian Body/Isi Artikel */
.sidebar-body {
    padding: 20px;
    overflow-y: auto; /* Jika artikel banyak, bisa di-scroll ke bawah */
    flex: 1;
}

/* Desain Card Artikel Modern Ringkas */
.sidebar-card {
    background: #f7fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #1b5e20;
    transition: transform 0.2s;
}
.sidebar-card:hover {
    transform: translateX(-5px);
    background: #edf2f7;
}

.s-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}
.badge-tajwid { background: #e3f2fd; color: #0d47a1; }
.badge-tahfidz { background: #e8f5e9; color: #1b5e20; }
.badge-arabic { background: #fff3e0; color: #e65100; }

.sidebar-card h4 a {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}
.sidebar-card p {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
    margin-bottom: 8px;
}
.s-meta {
    font-size: 0.7rem;
    color: #a0aec0;
}

/* Footer Sidebar */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #edf2f7;
}
.btn-full-width {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    background: #1b5e20;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}