/* =========================================
   1. VARIABEL WARNA & RESET DASAR
   ========================================= */
:root {
    --primary-color: #047857; /* Hijau Zamrud */
    --primary-dark: #025940;
    --secondary-color: #D97706; /* Emas Hangat */
    --secondary-light: #F59E0B;
    --bg-light: #F8FAFC; 
    --text-dark: #1E293B; 
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   2. WADAH GLOBAL (CONTAINER) & TOMBOL
   ========================================= */
.section-container {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* =========================================
   3. STYLE HEADER & NAVIGASI (MOBILE FIRST)
   ========================================= */
.main-header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Tombol Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: 0.3s;
}

/* Menu Dropdown (Bawah) di HP */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none; 
}

.nav-menu.active {
    display: block; 
}

.nav-list {
    display: flex;
    flex-direction: column; 
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list li { 
    width: 100%; 
    text-align: center; 
}

.nav-list a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Tombol Aksi PPDB & Login di HP */
.nav-btn-solid {
    border-radius: 25px !important;
}

.nav-btn-outline {
    border: 2px solid var(--secondary-light) !important; 
    color: var(--secondary-light) !important;
    background-color: transparent;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); /* Efek glow menyala */
    border-radius: 25px !important; /* Bentuk Kapsul/Pil */
    transition: all 0.3s ease;
}

.nav-btn-outline:hover {
    background-color: var(--secondary-light);
    color: var(--white) !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.8);
    transform: translateY(-2px);
}

/* =========================================
   4. STYLE FOOTER (MOBILE FIRST - 1 KOLOM)
   ========================================= */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 4rem;
    margin-top: 4rem;
    text-align: left; 
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.footer-logo { color: var(--secondary-color); font-size: 1.5rem; margin-bottom: 1rem; }
.footer-desc { color: #CBD5E1; line-height: 1.8; font-size: 0.95rem; }
.footer-heading { font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--secondary-color); }

.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 1rem; color: #CBD5E1; font-size: 0.95rem; line-height: 1.5;}
.footer-links a { color: #CBD5E1; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--secondary-color); padding-left: 5px; }

.footer-bottom {
    background-color: #022c22;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p { margin: 0.3rem 0; font-size: 0.9rem; color: #94A3B8; }

/* =========================================
   5. TATA LETAK UTAMA (BERANDA, PAUD, SDIT)
   ========================================= */
.hero-banner {
    background: linear-gradient(rgba(4, 120, 87, 0.8), rgba(2, 89, 64, 0.9)), url('https://picsum.photos/1200/600?random=20') center/cover;
    color: var(--white);
    text-align: center;
    padding: 5rem 1.5rem 6rem;
}
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 1rem 0; line-height: 1.2; }
.badge-gold { background: var(--secondary-color); padding: 0.3rem 1rem; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }
.hero-bottom-bar { background: var(--secondary-light); color: var(--white); padding: 1rem; margin-top: 3rem; }

.system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.system-card { background: var(--white); padding: 2rem 1.5rem; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; }
.icon-circle { width: 70px; height: 70px; background: var(--primary-color); color: white; font-size: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 1.5rem; }
.system-card h4 { color: var(--text-dark); margin-bottom: 0.5rem; font-size: 1.2rem; }
.system-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; min-height: 60px; }
.learn-more { color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.learn-more .dot { width: 10px; height: 10px; background: var(--secondary-color); border-radius: 50%; display: inline-block; }

.list-section { max-width: 900px; margin: 0 auto; }
.list-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #E2E8F0; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.list-header h2 { color: var(--text-dark); font-size: 1.5rem; }
.btn-sm { background: var(--primary-color); color: white; padding: 0.3rem 0.8rem; border-radius: 4px; text-decoration: none; font-size: 0.85rem; }

.list-item { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed #CBD5E1; }
.item-img-placeholder { width: 100px; height: 100px; background: var(--primary-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0; }
.date-box { width: 100px; text-align: center; background: var(--primary-color); color: white; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; flex-shrink: 0; }
.date-day { font-size: 2.5rem; font-weight: bold; line-height: 1; padding-top: 10px; }
.date-month { font-size: 0.9rem; padding-bottom: 10px; }
.item-content h4 { color: var(--text-dark); font-size: 1.2rem; margin-bottom: 0.3rem; }
.item-meta { font-size: 0.85rem; color: var(--secondary-color); font-weight: 600; display: block; margin-bottom: 0.5rem; }
.item-content p { font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   6. HALAMAN PROFIL YAYASAN
   ========================================= */
.page-header { background: var(--primary-dark); color: var(--white); padding: 3rem 1.5rem; text-align: center; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.visi-misi-list { margin-top: 1rem; padding-left: 1.5rem; }
.visi-misi-list li { margin-bottom: 0.5rem; color: var(--text-dark); }

.principal-profile { display: flex; flex-direction: column; gap: 2rem; background: var(--bg-light); padding: 2rem; border-radius: 12px; align-items: center; border-left: 6px solid var(--secondary-color); }
.principal-img { width: 200px; height: 250px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.principal-info h3 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 0.5rem; }
.badge { display: inline-block; background-color: var(--secondary-color); color: var(--white); padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 1rem; }
.quote { font-style: italic; color: var(--text-muted); line-height: 1.8; border-left: 3px solid #CBD5E1; padding-left: 1rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.team-card { background: var(--white); padding: 1.5rem; border-radius: 12px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.team-card:hover { transform: translateY(-5px); }
.team-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid var(--primary-color); }
.team-card h4 { color: var(--text-dark); font-size: 1.1rem; margin-bottom: 0.3rem; }
.team-card p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   7. GRID GALERI & BERITA TAMBAHAN
   ========================================= */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--white); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.04); border-left: 5px solid var(--primary-color); transition: transform 0.3s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.news-date { font-size: 0.85rem; color: var(--secondary-color); font-weight: 600; margin-bottom: 0.8rem; display: block; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.gallery-item { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.08); background-color: #E2E8F0; }

/* =========================================
   8. PENGUNCI LAYAR BESAR (DESKTOP & LAPTOP)
   ========================================= */
@media (min-width: 768px) {
    .main-header {
        padding: 1rem 3%; 
    }

    .menu-toggle { 
        display: none !important; 
    } 
    
    .nav-menu {
        position: static !important;
        display: block !important;
        width: auto;
        background: transparent;
        box-shadow: none;
        margin-left: auto;
    }
    
    .nav-list {
        flex-direction: row !important; 
        padding: 0;
        gap: 1.2rem;
        align-items: center;
        justify-content: flex-end;
    }
    
    .nav-list a {
        padding: 0;
        border-bottom: none;
        font-size: 0.9rem;
        white-space: nowrap;
        font-weight: 600;
    }
    
    .nav-btn-outline, .nav-btn-solid { 
        width: auto !important; 
        margin: 0 0 0 0.5rem !important; 
        display: inline-block !important;
        padding: 0.5rem 1.2rem !important; 
        font-size: 0.9rem !important;
        border-radius: 25px !important;
        flex-shrink: 0;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 2rem;
    }

    .principal-profile {
        flex-direction: row; 
        align-items: flex-start;
    }
}

/* =========================================
   9. PENYESUAIAN LAYAR MONITOR LEBAR (PC ASLI)
   ========================================= */
@media (min-width: 1200px) {
    .main-header {
        padding: 1.2rem 5%;
    }
    .nav-list {
        gap: 1.8rem;
    }
    .nav-list a {
        font-size: 0.95rem;
    }
}

/* =========================================
   10. AKSEN HALAMAN AKTIF (ACTIVE STATE)
   ========================================= */
.nav-list a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

@media (min-width: 768px) {
    .nav-list a.active {
        position: relative;
    }
    
    .nav-list a.active::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2.5px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }
}

/* =========================================
   11. MENU DROPDOWN (SUB-MENU)
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
    top: 150%;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 20px;
}

@media (min-width: 768px) {
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        top: 100%;
        border-top: 3px solid var(--primary-color);
    }
}

@media (max-width: 767px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #F8FAFC;
        border-radius: 0;
        border-left: 3px solid var(--primary-color);
        margin-left: 1rem;
        display: none; 
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
        opacity: 1;
    }
}

/* =========================================
   Tombol Aksi: LOGIN PORTAL (Solid Green)
   ========================================= */
.nav-btn-solid {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 6px rgba(4, 120, 87, 0.2);
    transition: all 0.3s ease;
}

.nav-btn-solid:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(4, 120, 87, 0.4);
}

/* =========================================
   12. TATA LETAK HALAMAN BERANDA (HOME)
   ========================================= */
.hero-modern {
    background: linear-gradient(to right, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 5% 8rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-badge {
    background-color: rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.btn-outline-white {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--white);
    color: var(--white);
    transition: all 0.3s;
}

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

/* -- Statistik Floating -- */
.stats-section {
    max-width: 1000px;
    margin: -4rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-bottom: 5px solid var(--secondary-color);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-muted);
    font-weight: 600;
}

/* -- Keunggulan / Fasilitas -- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    text-align: left;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* -- Utils Beranda -- */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-sm-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* -- Testimoni -- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testi-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.testi-quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.testi-author h5 {
    color: var(--primary-dark);
    font-size: 1rem;
}

.testi-author span {
    font-size: 0.85rem;
    color: var(--secondary-color);
}


/* Mode Desktop (PC / Laptop) */
@media (min-width: 992px) {
    .hero-container {
        flex-direction: row; 
        align-items: center;
    }
    
    .hero-text {
        flex: 1;
        padding-right: 2rem;
    }
    
    .hero-image {
        flex: 1;
        margin-top: 0;
    }
    
    .hero-photo {
        height: 450px; 
        
        /* Efek Gradasi di Desktop (Memudar ke arah kiri mendekati teks) */
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    }
}
/* =========================================
   13. HERO SECTION DENGAN BACKGROUND FOTO & GRADASI
   ========================================= */
.hero-modern {
    /* Gradasi Hijau gelap di kiri (untuk teks) menyatu ke foto sekolah di kanan */
    background: linear-gradient(to right, var(--primary-dark) 35%, rgba(2, 89, 64, 0.75) 70%, rgba(0,0,0,0.4) 100%), 
                url('/assets/hero-sekolah.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 5rem 5% 8rem; /* Padding bawah disisakan untuk kotak statistik yang melayang */
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    max-width: 650px; /* Batas lebar teks agar rapi dan tidak terlalu ke kanan */
}

.hero-badge {
    background-color: rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-jump;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

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

.btn-outline-white {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--white);
    color: var(--white);
    transition: all 0.3s;
}

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


/* =========================================
   6. HALAMAN PROFIL YAYASAN (COMPLETE)
   ========================================= */
.page-header { 
    background: linear-gradient(rgba(2, 89, 64, 0.9), rgba(4, 120, 87, 0.9)), url('https://picsum.photos/1200/400?random=30') center/cover;
    color: var(--white); 
    padding: 6rem 1.5rem 4rem; 
    text-align: center; 
}
.header-content { max-width: 800px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }

/* 2. Latar Belakang (Our Story) */
.story-grid { display: grid; gap: 2.5rem; align-items: center; }
.story-text p { margin-bottom: 1rem; color: var(--text-dark); font-size: 1.05rem; }
.rounded-img { width: 100%; border-radius: 15px; object-fit: cover; }
.shadow { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* 3. Visi Misi Grid */
.vm-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.vm-card { background: var(--white); padding: 2.5rem; border-radius: 15px; border-top: 5px solid var(--secondary-color); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.vm-icon { font-size: 3rem; margin-bottom: 1rem; }
.vm-card h3 { color: var(--primary-dark); font-size: 1.5rem; margin-bottom: 1rem; }
.styled-list { padding-left: 1.2rem; }
.styled-list li { margin-bottom: 0.8rem; line-height: 1.6; }

/* 4. Core Values (4 Kolom) */
.core-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--white); padding: 2rem 1.5rem; border-radius: 12px; text-align: center; border: 1px solid #E2E8F0; transition: transform 0.3s; }
.value-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.value-icon { font-size: 2.5rem; margin-bottom: 1rem; background: var(--bg-light); width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.value-card h4 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

/* 5. Unit Pendidikan (2 Baris Ringkas) */
.unit-list-grid { display: grid; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.unit-card-horizontal { display: flex; flex-direction: column; background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; }
.unit-badge { background: var(--primary-color); color: white; padding: 1rem; font-weight: bold; font-size: 1.2rem; text-align: center; }
.unit-badge.gold { background: var(--secondary-color); }
.unit-info { padding: 1.5rem; }
.unit-info h3 { color: var(--text-dark); margin-bottom: 0.5rem; }
.unit-info p { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text-dark); }
.text-sm { font-size: 0.85rem; }

/* 6. Struktur Pengurus */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.team-card { background: var(--white); padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; }
.team-avatar { width: 80px; height: 80px; background: var(--bg-light); border-radius: 50%; font-size: 2.5rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.team-card h4 { color: var(--primary-dark); margin-bottom: 0.3rem; }
.team-card p { font-size: 0.9rem; color: var(--text-muted); }

/* 7. Legalitas Box */
.legal-box { background: var(--white); border-radius: 15px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-left: 8px solid var(--primary-color); max-width: 900px; margin: 0 auto; }
.legal-content h3 { color: var(--primary-dark); font-size: 1.5rem; margin-bottom: 1rem; }
.legal-content hr { margin: 1.5rem 0; border: none; border-top: 1px solid #E2E8F0; }
.legal-details { list-style: none; padding: 0; }
.legal-details li { margin-bottom: 0.8rem; font-size: 0.95rem; position: relative; padding-left: 1.5rem; }
.legal-details li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary-color); font-weight: bold; }

/* 8. CTA Banner Akhir */
.cta-banner { background: var(--primary-color); color: var(--white); padding: 4rem 1.5rem; text-align: center; border-radius: 20px; max-width: 1200px; margin: 0 auto 3rem; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { max-width: 700px; margin: 0 auto 2rem; opacity: 0.9; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Pengaturan Desktop (Media Queries Khusus Profil) */
@media (min-width: 768px) {
    .story-grid { grid-template-columns: 1fr 1fr; }
    .vm-grid { grid-template-columns: 1fr 1fr; }
    .unit-card-horizontal { flex-direction: row; }
    .unit-badge { width: 150px; display: flex; align-items: center; justify-content: center; }
}

/* =========================================
   1. VARIABEL WARNA & RESET DASAR (DIPERBAIKI)
   ========================================= */
:root {
    --primary-color: #047857; /* Emerald Green */
    --primary-dark: #025940;
    --secondary-color: #D97706; /* Warm Gold */
    --secondary-light: #F59E0B;
    --bg-light: #F8FAFC; 
    --text-dark: #1E293B; 
    --text-muted: #64748B;
    --white: #FFFFFF;
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.7; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. WADAH GLOBAL (CONTAINER) & UTILS
   ========================================= */
.section-container { padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; color: var(--primary-dark); margin-bottom: 3.5rem; font-size: 2.5rem; position: relative; padding-bottom: 1rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--secondary-color); border-radius: 2px; }
.bg-light { background-color: var(--bg-light); border-radius: 30px; }
.badge { display: inline-block; background: var(--primary-color); color: white; padding: 0.3rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.85rem; }
.badge.gold { background: var(--secondary-color); }

/* =========================================
   3. HEADER & FOOTER (TETAP SAMA SEPERTI SEBELUMNYA)
   ========================================= */
/* ... (Masukkan kode CSS Main Header, NavMenu, MenuToggle, dan MainFooter Anda di sini agar tidak hilang) ... */

/* =========================================
   4. TATA LETAK HALAMAN UNIT (GAYA BARU)
   ========================================= */
.page-header { padding: 6rem 1.5rem 5rem; text-align: center; color: white; position: relative; }
.paud-header { background: linear-gradient(rgba(2, 89, 64, 0.95), rgba(4, 120, 87, 0.9)), url('https://picsum.photos/1200/400?random=40') center/cover; }
.sdit-header { background: linear-gradient(rgba(180, 83, 9, 0.95), rgba(217, 119, 6, 0.9)), url('https://picsum.photos/1200/400?random=41') center/cover; }
.header-content h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.header-content p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* Grid Detail Unit modern */
.unit-detail-grid { display: grid; gap: 3rem; align-items: start; }
.unit-title { color: var(--primary-dark); font-size: 2.2rem; margin: 1rem 0; line-height: 1.2; }

/* Quote Box Sambutan */
.quote-box { background: var(--white); border-left: 6px solid var(--primary-color); padding: 2rem; border-radius: 0 15px 15px 0; margin-bottom: 3rem; box-shadow: var(--shadow-md); position: relative; }
.quote-box.gold-border { border-left-color: var(--secondary-color); }
.quote-box::before { content: '"'; font-size: 5rem; color: #CBD5E1; position: absolute; top: -10px; left: 20px; font-family: Georgia, serif; opacity: 0.3; }
.quote-author { display: block; margin-top: 1.5rem; font-weight: 700; color: var(--text-dark); border-top: 1px solid #E2E8F0; padding-top: 0.5rem; }

/* Grid Visi Misi & Program modern dengan Ikon */
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.feature-item { background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow-md); border: 1px solid #E2E8F0; transition: 0.3s; }
.feature-item:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.feature-item h4 { color: var(--primary-dark); margin-bottom: 1rem; font-size: 1.3rem; display: flex; align-items: center; gap: 10px;}
.feature-item ul { list-style: none; padding: 0; margin-top: 1rem; }
.feature-item li { margin-bottom: 0.8rem; position: relative; padding-left: 1.5rem; }
.feature-item li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary-color); font-weight: bold; }

/* Sidebar Fasilitas modern */
.facility-card { background: var(--white); border-top: 6px solid var(--primary-color); padding: 2.5rem; border-radius: 15px; box-shadow: var(--shadow-lg); border: 1px solid #E2E8F0; }
.facility-card.gold-bg { border-top-color: var(--secondary-color); }
.facility-card h3 { margin-bottom: 1.5rem; color: var(--text-dark); font-size: 1.5rem;}
.styled-list li { margin-bottom: 0.8rem; color: var(--text-dark); display: flex; gap: 10px; align-items: flex-start; }

@media (min-width: 992px) { .unit-detail-grid { grid-template-columns: 2.5fr 1fr; } }

/* =========================================
   14. FAQ ACCORDION SPESIFIK (Vanilla JS)
   ========================================= */
.faq-container { max-width: 850px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item { background: var(--white); border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow-md); }
.faq-question { width: 100%; text-align: left; background: var(--white); border: none; padding: 1.3rem 1.8rem; font-size: 1.1rem; font-weight: 600; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.faq-question:hover { background: var(--bg-light); color: var(--primary-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: var(--white); }
.faq-answer p { margin: 0; padding: 0 1.8rem; opacity: 0; transition: opacity 0.3s; color: var(--text-muted); line-height: 1.8;}

/* Class Active saat FAQ diklik (diatur oleh JS) */
.faq-item.active { border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(4, 120, 87, 0.1); }
.faq-item.active .faq-question { color: var(--primary-color); background: var(--bg-light); }
.faq-item.active .faq-question .icon { transform: rotate(45deg); color: var(--secondary-color); }
.faq-item.active .faq-answer { max-height: 350px; padding: 1rem 0 2rem; border-top: 1px solid #E2E8F0;}
.faq-item.active .faq-answer p { opacity: 1; }

/* =========================================
   15. GALERI BERGULIR (*SCROLLING CAROUSEL*)
   ========================================= */
.carousel-section { padding: 5rem 0; overflow: hidden; }
.carousel-title { text-align: center; color: var(--primary-dark); margin-bottom: 3.5rem; font-size: 2.5rem; position: relative; padding: 0 1.5rem 1rem; }
.carousel-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--secondary-color); border-radius: 2px; }

.carousel-container { max-width: 1200px; margin: 0 auto; position: relative; padding: 0 1.5rem; }
.carousel-viewport { overflow: hidden; position: relative; cursor: grab; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; will-change: transform; }
.carousel-item { flex: 0 0 calc(50% - 10px); /* 2 gambar di HP */ aspect-ratio: 4 / 3; overflow: hidden; border-radius: 15px; box-shadow: var(--shadow-md); border: 2px solid #E2E8F0; user-select: none;}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s; }
.carousel-item:hover img { scale: 1.05; }

/* Tombol Kontrol Bergulir */
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: var(--primary-color); color: white; border: none; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: 0.3s; z-index: 10; opacity: 0.8; }
.carousel-control:hover { background: var(--primary-dark); opacity: 1; transform: translateY(-50%) scale(1.1); }
.carousel-control.prev { left: -10px; }
.carousel-control.next { right: -10px; }

/* Navigasi Titik (Dots) */
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 2rem; }
.carousel-dot { width: 12px; height: 12px; background: #CBD5E1; border: none; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.carousel-dot.active { background: var(--primary-color); width: 30px; border-radius: 10px; }

@media (min-width: 768px) { .carousel-item { flex: 0 0 calc(33.333% - 13.33px); } /* 3 gambar di tablet */ }
@media (min-width: 1024px) { .carousel-item { flex: 0 0 calc(25% - 15px); } /* 4 gambar di PC */ }

/* =========================================
   16. CTA PPDB MODEREN
   ========================================= */
.ppdb-cta-section { background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color)); padding: 5rem 1.5rem; text-align: center; color: var(--white); margin-top: 4rem; }
.ppdb-cta-content { max-width: 800px; margin: 0 auto; }
.ppdb-cta-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.1); line-height: 1.2; }
.ppdb-cta-content p { font-size: 1.15rem; margin-bottom: 3rem; opacity: 0.95; }
.cta-buttons { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { background: var(--primary-dark); color: var(--white); padding: 1rem 2.5rem; border-radius: 30px; font-weight: 700; font-size: 1.05rem; box-shadow: var(--shadow-lg); transition: 0.3s; }
.btn-cta-primary:hover { background: #013d2a; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-cta-whatsapp { background: #25D366; color: var(--white); padding: 1rem 2.5rem; border-radius: 30px; font-weight: 700; font-size: 1.05rem; box-shadow: var(--shadow-lg); transition: 0.3s; }
.btn-cta-whatsapp:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* =========================================
   17. HALAMAN INFORMASI & BERITA (CMS READY)
   ========================================= */
.info-header {
    background: linear-gradient(rgba(2, 89, 64, 0.9), rgba(4, 120, 87, 0.95)), url('https://picsum.photos/1200/400?random=80') center/cover;
}

.news-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

/* KARTU BERITA CMS */
.news-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card-cms {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card-cms:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card-cms:hover .news-thumb img { transform: scale(1.05); }

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.news-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8rem; }
.news-meta i { color: var(--primary-color); margin-right: 4px; }

.news-title { font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.8rem; }
.news-title a { color: var(--text-dark); transition: color 0.3s; }
.news-title a:hover { color: var(--primary-color); }

.news-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; flex: 1; }

.read-more { color: var(--primary-color); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.read-more:hover { color: var(--secondary-color); }
.read-more:hover i { transform: translateX(5px); transition: 0.3s; }

/* NAVIGASI PAGINATION */
.pagination { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.page-link { padding: 0.5rem 1rem; border: 1px solid #E2E8F0; background: var(--white); border-radius: 6px; color: var(--text-dark); font-weight: 600; transition: 0.3s; }
.page-link:hover:not(.disabled) { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.page-link.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.page-link.disabled { opacity: 0.5; cursor: not-allowed; }
.page-dots { padding: 0.5rem; color: var(--text-muted); }

/* SIDEBAR / KOLOM KANAN */
.sidebar-section { display: grid; gap: 2rem; }
.sidebar-widget { background: var(--white); padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid #E2E8F0; }
.widget-title { color: var(--primary-dark); font-size: 1.2rem; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 2px solid #F1F5F9; position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--secondary-color); }
.widget-title i { color: var(--secondary-light); margin-right: 8px; }

/* List Pengumuman (Kalender UI) */
.announcement-list { display: flex; flex-direction: column; gap: 1rem; }
.announcement-item { display: flex; gap: 1rem; padding: 1rem; background: #F8FAFC; border-radius: 8px; transition: 0.3s; border-left: 3px solid transparent; }
.announcement-item:hover { background: var(--white); box-shadow: var(--shadow-md); border-left-color: var(--primary-color); }
.announce-date { background: var(--primary-color); color: white; width: 55px; height: 60px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.announce-date .day { font-size: 1.3rem; font-weight: bold; line-height: 1; }
.announce-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.announce-text h4 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.2rem; line-height: 1.3; }
.announce-text p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* List Kategori */
.category-list li { border-bottom: 1px dashed #E2E8F0; }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; justify-content: space-between; padding: 0.8rem 0; color: var(--text-dark); font-weight: 500; transition: 0.3s; }
.category-list a:hover { color: var(--primary-color); padding-left: 5px; }
.category-list span { background: #F1F5F9; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; color: var(--text-muted); }

/* Responsif Desktop */
@media (min-width: 768px) {
    .news-grid-modern { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .news-page-layout { grid-template-columns: 2.3fr 1fr; }
    .sidebar-section { position: sticky; top: 100px; } /* Sidebar tetap menempel saat di-scroll */
}

/* =========================================
   18. HALAMAN GALERI & LIGHTBOX
   ========================================= */
.gallery-header {
    background: linear-gradient(rgba(2, 89, 64, 0.9), rgba(4, 120, 87, 0.95)), url('https://picsum.photos/1200/400?random=100') center/cover;
}

/* Tombol Filter */
.gallery-filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid #E2E8F0;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.2);
}

/* Grid Galeri Masonry-like */
.gallery-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.gallery-item-wrap {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    background: var(--bg-light); /* Jika gambar belum load */
}

.gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3; /* Bentuk standar agar rapi */
    transition: transform 0.5s ease;
}

/* Overlay & Caption saat di-hover */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    background: var(--primary-color);
    color: var(--white);
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}
.gallery-tag.gold { background: var(--secondary-color); }
.gallery-tag.blue { background: #3B82F6; }

.gallery-caption {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .zoom-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   19. LIGHTBOX MODAL (POP-UP FOTO BESAR)
   ========================================= */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh; /* Agar caption di bawahnya tidak terpotong layar */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#lightbox-caption {
    color: var(--white);
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

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

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

/* =========================================
   20. HALAMAN PPDB (PENDAFTARAN ONLINE)
   ========================================= */
.ppdb-header {
    background: linear-gradient(rgba(180, 83, 9, 0.9), rgba(217, 119, 6, 0.95)), url('https://picsum.photos/1200/400?random=110') center/cover;
}

.ppdb-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Kolom Informasi PPDB */
.ppdb-info .info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary-color);
}
.ppdb-info .info-card.mt-2 { margin-top: 2rem; }
.ppdb-info .info-card h3 { color: var(--primary-dark); margin-bottom: 1.5rem; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.ppdb-info .info-card h3 i { color: var(--secondary-color); }

.timeline-list { display: flex; flex-direction: column; gap: 1.5rem; }
.timeline-list li { position: relative; padding-left: 1.5rem; border-left: 2px solid #E2E8F0; }
.timeline-list li::before { content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; background: var(--secondary-color); border-radius: 50%; }
.timeline-list strong { display: block; color: var(--text-dark); font-size: 1.05rem; }
.timeline-list span { color: var(--text-muted); font-size: 0.9rem; }

.contact-admin-box {
    background: linear-gradient(135deg, #F1F5F9, var(--white));
    padding: 2rem;
    border-radius: 12px;
    border: 1px dashed #CBD5E1;
    text-align: center;
}
.contact-admin-box p { margin-bottom: 1rem; color: var(--text-dark); font-weight: 500; }

/* Kolom Form Pendaftaran */
.ppdb-form-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}
.form-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-header p { opacity: 0.8; font-size: 0.95rem; margin: 0; }

.ppdb-form { padding: 2.5rem; }
.form-section-title { color: var(--primary-color); font-size: 1.1rem; border-bottom: 2px solid #F1F5F9; padding-bottom: 0.5rem; margin: 2rem 0 1.5rem; }

.form-group { margin-bottom: 1.5rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .half { flex: 1 1 calc(50% - 0.5rem); min-width: 200px; }

label { display: block; margin-bottom: 0.5rem; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.required { color: #EF4444; }

input[type="text"], input[type="number"], input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: 0.3s;
    background: #F8FAFC;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.form-hint { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--text-muted); }

.btn-submit-form {
    width: 100%;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-submit-form:hover {
    background: #B45309;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
}

@media (min-width: 992px) {
    .ppdb-layout { grid-template-columns: 1fr 1.8fr; }
}
