/* =========================================
   1. RESET & GLOBAL VARIABLES
   ========================================= */
:root {
    /* Warna diambil dari Logo Yayasan */
    --primary-green: #006a4e; /* Hijau Tua Logo */
    --secondary-green: #004d38;
    --accent-gold: #D4AF37;   /* Emas */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 50px; /* Ukuran Logo Header */
}

.logo-text {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

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

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

.btn-header-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1.5px solid var(--primary-green);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-header-login:hover {
    background: var(--primary-green);
    color: var(--text-light);
}

.btn-header-ppdb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: var(--accent-gold);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
}

.btn-header-ppdb:hover {
    transform: translateY(-2px);
    background: #c5a028;
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh; /* Full layar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Background Gradient Hijau Elegan */
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Kompensasi Header Fixed */
}

/* Background Particles (JS) */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.tagline {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--accent-gold);
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.italic-text {
    font-family: 'Playfair Display', serif; /* Font Serif untuk kesan Islami/Klasik */
    font-style: italic;
    color: var(--accent-gold);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tombol */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-gold {
    background: var(--accent-gold);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    background: #c5a028;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Floating Icons */
.float-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    color: rgba(255,255,255,0.1);
    animation: floatAnim 6s ease-in-out infinite;
}

.float-item svg { width: 100%; height: 100%; }

.item-1 { top: 20%; left: 10%; animation-delay: 0s; }
.item-2 { top: 60%; left: 5%; animation-delay: 1s; width: 80px; height: 80px; }
.item-3 { top: 15%; right: 15%; animation-delay: 2s; }
.item-4 { bottom: 20%; right: 10%; animation-delay: 3s; width: 70px; height: 70px; }
.item-5 { bottom: 10%; left: 20%; animation-delay: 4s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* =========================================
   4. ABOUT SECTION
   ========================================= */
.section-padding { padding: 100px 5%; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.small-heading {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-heading {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-text {
    color: #666;
    margin-bottom: 30px;
}

.stats-mini-grid {
    display: flex;
    gap: 30px;
}

.mini-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: 800;
}

.mini-stat span {
    font-size: 0.9rem;
    color: #888;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.img-wrapper:hover img { transform: scale(1.05); }

/* =========================================
   5. TEAM SECTION
   ========================================= */
.dark-bg {
    background-color: var(--primary-green);
    color: white;
}

.text-white { color: white !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    background: white;
    transform: translateY(-10px);
}

.team-card:hover h3 { color: var(--primary-green); }
.team-card:hover p { color: #666; }
.team-card:hover .team-role { background: var(--primary-green); color: white; }

.team-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    border: 2px solid rgba(255,255,255,0.15);
}

.team-card:hover .team-photo { border-color: var(--accent-gold); }

.team-role {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
    font-weight: 600;
}

.team-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.team-card p { font-size: 0.9rem; opacity: 0.8; }

/* =========================================
   6. FOOTER STYLES
   ========================================= */
.footer-section {
    background-color: #0b2e25;
    color: #ccc;
    padding: 60px 0 20px;
    position: relative;
    font-size: 0.9rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img { width: 50px; height: auto; }

.brand-text h3 { color: var(--accent-gold); font-size: 1.4rem; margin-bottom: 0; }
.tagline-small { font-size: 0.8rem; color: #fff; opacity: 0.7; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #fff;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #bbb;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.time-badge { color: #fff; font-weight: 600; }
.closed-badge { color: #ff6b6b; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* =========================================
   7. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    header { padding: 15px; }
    .nav-links { display: none; }
    
    .hero-section { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 50px; }
    .main-title { font-size: 2.2rem; }
    
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-col { order: -1; }
    
    .float-item { transform: scale(0.6); opacity: 0.3; }
}

/* =========================================
   8. MOBILE RESPONSIVE FIX (ANTI-GESER & FULLSCREEN)
   ========================================= */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        background: rgba(255, 255, 255, 0.98);
    }

    .logo-container a { justify-content: center; }
    .logo-container img { height: 40px; }
    .logo-text { font-size: 0.9rem; white-space: nowrap; }
    .nav-links { display: none; }
    .header-actions { flex-wrap: wrap; justify-content: center; }
    .btn-header-login, .btn-header-ppdb { padding: 6px 16px; font-size: 0.8rem; }

    .hero-section {
        min-height: 100dvh; 
        padding-top: 130px;
        padding-bottom: 50px;
        display: flex;
        align-items: center;
    }

    .main-title { font-size: 2.2rem; line-height: 1.3; padding: 0 10px; }
    .description { font-size: 0.95rem; padding: 0 15px; }

    .btn-group { flex-direction: column; width: 100%; padding: 0 40px; }
    .btn-gold, .btn-outline { width: 100%; padding: 12px 0; }

    .float-item { transform: scale(0.6); opacity: 0.15; }
    .item-1 { left: 5px; top: 15%; } 
    .item-2 { display: none; }
    .item-3 { right: 5px; top: 20%; }
    .item-4 { right: 10px; bottom: 20%; }
    .item-5 { display: none; }

    .section-padding { padding: 60px 20px; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .image-col { order: -1; margin-bottom: 20px; }
    .section-heading { font-size: 1.8rem; }

    .team-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand { justify-content: center; }
    .contact-row { justify-content: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-links a { justify-content: center; }
}

/* =========================================
   9. NEWS / BERITA PORTAL LAYOUT
   ========================================= */
.news-portal-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Bagian kiri lebih lebar sedikit */
    gap: 30px;
}

/* Berita Utama (Kiri) */
.news-featured {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,106,78,0.15);
}

.news-featured .news-img {
    height: 350px; /* Gambar besar */
    position: relative;
    overflow: hidden;
}

.news-featured .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 30px;
}

.featured-content .news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content .news-title a {
    color: var(--primary-green);
    transition: var(--transition);
}

.featured-content .news-title a:hover {
    color: var(--accent-gold);
}

.featured-content .news-excerpt {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-top-right-radius: 15px;
}

/* Grid Kanan (Berita Kecil) */
.news-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dua kolom */
    gap: 20px;
}

.news-card-small {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,106,78,0.1);
}

.news-img-small {
    height: 140px;
    overflow: hidden;
}

.news-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-small:hover .news-img-small img {
    transform: scale(1.1);
}

.news-content-small {
    padding: 15px;
    flex-grow: 1;
}

.date-small {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.title-small {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.title-small a {
    color: var(--text-dark);
    transition: var(--transition);
}

.news-card-small:hover .title-small a {
    color: var(--primary-green);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--accent-gold);
}

.mt-4 {
    margin-top: 2rem;
}

/* Mobile Responsive untuk Portal Layout */
@media (max-width: 992px) {
    .news-portal-layout {
        grid-template-columns: 1fr; /* Jadi satu baris ke bawah */
    }
    
    .news-featured .news-img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .news-side-grid {
        grid-template-columns: 1fr; /* Sampingnya juga turun ke bawah di HP */
    }
}

/* =========================================
   9. HALAMAN PPDB
   ========================================= */
.ppdb-hero {
    padding: 150px 5% 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: #fff;
    text-align: center;
}

.ppdb-hero .small-heading { color: var(--accent-gold); }
.ppdb-hero h1 { font-size: 2.6rem; margin-bottom: 15px; }
.ppdb-hero p { max-width: 700px; margin: 0 auto; opacity: 0.9; }

.program-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.program-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent-gold);
}

.program-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-card p { color: #666; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.info-box {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 35px;
}

.info-box h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p, .info-box li { color: #555; line-height: 1.9; white-space: pre-line; }

.ppdb-form-section { background: var(--bg-light); }

.ppdb-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    max-width: 850px;
    margin: 0 auto;
}

.ppdb-alert {
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 20px 25px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ppdb-alert-success { background: rgba(0, 106, 78, 0.08); border: 1px solid var(--primary-green); color: var(--primary-green); }
.ppdb-alert-success strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.ppdb-alert-error { background: rgba(220, 53, 69, 0.08); border: 1px solid #dc3545; color: #a91e2c; }

.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}
.form-section-title:first-child { margin-top: 0; }

.ppdb-form .form-group { margin-bottom: 22px; }

.ppdb-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.ppdb-form label .req { color: #dc3545; }

.ppdb-form input[type=text],
.ppdb-form input[type=date],
.ppdb-form input[type=tel],
.ppdb-form input[type=email],
.ppdb-form input[type=number],
.ppdb-form select,
.ppdb-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: #fff;
}

.ppdb-form input:focus,
.ppdb-form select:focus,
.ppdb-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.ppdb-form textarea { resize: vertical; min-height: 90px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.program-choice-group {
    border: 1.5px solid #e2e2e2;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 10px;
}

.program-choice-group legend {
    font-weight: 700;
    color: var(--primary-green);
    padding: 0 8px;
    font-size: 0.95rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 5px;
    cursor: pointer;
}

.radio-option input { width: auto; accent-color: var(--primary-green); }
.radio-option span { font-weight: 500; }

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-light);
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 10px;
}

.consent-row input { width: auto; margin-top: 4px; accent-color: var(--primary-green); }
.consent-row label { font-weight: 400; font-size: 0.85rem; margin: 0; color: #666; }

.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn-submit-ppdb {
    background: var(--accent-gold);
    color: #fff;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit-ppdb:hover { transform: translateY(-3px); background: #c5a028; }

.cp-box {
    text-align: center;
    margin-top: 40px;
    color: #555;
}

.cp-box a { color: var(--primary-green); font-weight: 700; }

@media (max-width: 768px) {
    .ppdb-hero { padding: 130px 20px 50px; }
    .ppdb-hero h1 { font-size: 1.9rem; }
    .program-cards, .info-grid { grid-template-columns: 1fr; }
    .ppdb-form-card { padding: 28px 20px; border-radius: 18px; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================
   10. GALERI KEGIATAN
   ========================================= */
.galeri-hero {
    padding: 150px 5% 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: #fff;
    text-align: center;
}

.galeri-hero .small-heading { color: var(--accent-gold); }
.galeri-hero h1 { font-size: 2.6rem; margin-bottom: 15px; }
.galeri-hero p { max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* Tab filter kategori */
.galeri-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-pill {
    background: #fff;
    border: 1.5px solid rgba(0, 106, 78, 0.15);
    color: var(--primary-green);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-pill:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-pill.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

/* Grid galeri */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.galeri-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}

.galeri-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(0,106,78,0.18);
}

/* Transisi halus saat pindah tab kategori (dikendalikan galeri.js) */
.galeri-item.item-hidden {
    opacity: 0;
    pointer-events: none;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.galeri-item:hover img { transform: scale(1.08); }

.galeri-item .galeri-zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: var(--transition);
    font-size: 0.9rem;
}

.galeri-item:hover .galeri-zoom-icon { opacity: 1; transform: translateY(0); }

.galeri-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 30px 18px 16px;
    background: linear-gradient(to top, rgba(0,20,15,0.85) 0%, rgba(0,20,15,0) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}

.galeri-item:hover .galeri-caption { opacity: 1; transform: translateY(0); }

.galeri-caption .g-judul { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.galeri-caption .g-kategori { font-size: 0.72rem; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; display: block; }

.galeri-empty {
    text-align: center;
    color: #888;
    padding: 70px 20px;
    max-width: 420px;
    margin: 0 auto;
}

.galeri-empty .empty-icon-wrap {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(0, 106, 78, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeri-empty .empty-icon-wrap i { font-size: 1.8rem; color: var(--primary-green); opacity: 0.6; }
.galeri-empty p { font-size: 0.95rem; line-height: 1.6; }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 15, 0.94);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease;
}

.lightbox-figure {
    max-width: 900px;
    max-height: 88vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}

.lightbox-overlay.open .lightbox-figure {
    transform: scale(1) translateY(0);
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-counter {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 18px;
}

.lightbox-caption .lb-judul { font-weight: 600; font-size: 1.05rem; }
.lightbox-caption .lb-kategori { color: var(--accent-gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent-gold); color: #051d15; }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Teaser galeri di halaman utama */
.galeri-teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 130px;
    gap: 14px;
    margin-bottom: 40px;
}

.galeri-teaser-grid .teaser-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.teaser-item {
    border-radius: 14px;
    overflow: hidden;
    display: block;
}

.teaser-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teaser-item:hover img { transform: scale(1.08); }

@media (max-width: 768px) {
    .galeri-hero { padding: 130px 20px 50px; }
    .galeri-hero h1 { font-size: 1.9rem; }
    .galeri-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 14px; right: 14px; }
    .lightbox-counter { top: 14px; font-size: 0.72rem; padding: 6px 14px; }
    .galeri-teaser-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
    .galeri-teaser-grid .teaser-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* =========================================
   11. HALAMAN TENTANG KAMI
   ========================================= */
.tentang-hero {
    padding: 150px 5% 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: #fff;
    text-align: center;
}

.tentang-hero .small-heading { color: var(--accent-gold); }
.tentang-hero h1 { font-size: 2.6rem; margin-bottom: 15px; }
.tentang-hero p { max-width: 700px; margin: 0 auto; opacity: 0.9; }

.profil-text-block :where(p) { margin-bottom: 16px; color: #666; }
.profil-text-block :where(p):last-child { margin-bottom: 0; }

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.visi-misi-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent-gold);
}

.visi-misi-card .vm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 106, 78, 0.08);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.visi-misi-card h3 { color: var(--primary-green); font-size: 1.3rem; margin-bottom: 15px; }
.visi-misi-card p, .visi-misi-card li { color: #666; line-height: 1.9; }
.visi-misi-card ul { padding-left: 20px; }
.visi-misi-card li { margin-bottom: 8px; }

.nilai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.nilai-card {
    background: var(--bg-light);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}

.nilai-card:hover {
    background: var(--primary-green);
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0,106,78,0.2);
}

.nilai-card .nilai-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(0, 106, 78, 0.1);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
}

.nilai-card:hover .nilai-icon { background: var(--accent-gold); color: #051d15; }
.nilai-card h4 { color: var(--primary-green); font-size: 1.05rem; margin-bottom: 10px; transition: var(--transition); }
.nilai-card:hover h4 { color: #fff; }
.nilai-card p { color: #777; font-size: 0.9rem; line-height: 1.7; transition: var(--transition); }
.nilai-card:hover p { color: rgba(255,255,255,0.85); }

@media (max-width: 768px) {
    .tentang-hero { padding: 130px 20px 50px; }
    .tentang-hero h1 { font-size: 1.9rem; }
    .visi-misi-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================
   12. HALAMAN SEJARAH
   ========================================= */
.sejarah-hero {
    padding: 150px 5% 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: #fff;
    text-align: center;
}

.sejarah-hero .small-heading { color: var(--accent-gold); }
.sejarah-hero h1 { font-size: 2.6rem; margin-bottom: 15px; }
.sejarah-hero p { max-width: 700px; margin: 0 auto; opacity: 0.9; }

.sejarah-intro { max-width: 750px; margin: 0 auto 60px; text-align: center; color: #666; line-height: 1.9; }
.sejarah-intro :where(p) { margin-bottom: 14px; }

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold), rgba(0,106,78,0.15));
}

.timeline-item {
    position: relative;
    padding-bottom: 46px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary-green);
    z-index: 1;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.timeline-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: var(--transition);
}

.timeline-card:hover { box-shadow: 0 14px 34px rgba(0,106,78,0.14); transform: translateY(-4px); }

.timeline-card img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.timeline-card-body { padding: 22px 26px; }
.timeline-card-body h3 { color: var(--primary-green); font-size: 1.2rem; margin-bottom: 10px; }
.timeline-card-body p { color: #666; line-height: 1.8; white-space: pre-line; }

.sejarah-empty {
    text-align: center;
    color: #888;
    padding: 70px 20px;
    max-width: 420px;
    margin: 0 auto;
}

.sejarah-empty .empty-icon-wrap {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(0, 106, 78, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sejarah-empty .empty-icon-wrap i { font-size: 1.8rem; color: var(--primary-green); opacity: 0.6; }
.sejarah-empty p { font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 768px) {
    .sejarah-hero { padding: 130px 20px 50px; }
    .sejarah-hero h1 { font-size: 1.9rem; }
    .timeline { padding-left: 30px; }
    .timeline-item::before { left: -30px; }
    .timeline-card-body { padding: 18px 20px; }
}