/* =========================================
   ROOT VARIABLES & BASE (MADRASAH ASSAKINAH)
   ========================================= */
:root {
    --deep-green: #142f32;
    --lime: #e3ffcc;
    --charcoal: #282930;
    --slate: #777c90;
    --white: #ffffff;
    --font-main: 'Manrope', sans-serif;

    /* PALET WARNA KHUSUS RA (CERIA & PLAYFUL) */
    --ra-yellow: #FFF59D;
    --ra-blue: #81D4FA;
    --ra-orange: #FFAB91;
    --ra-pink: #F48FB1;
    --ra-green-light: #C8E6C9;
}


body {
    background-color: var(--white);
    font-family: var(--font-main);
    color: var(--deep-green);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   STICKY FLOATING PILL HEADER
   ========================================= */
.pill-header-wrapper,
.pill-navbar {
    box-sizing: border-box !important;
}

.pill-header-wrapper {
    position: sticky;
    top: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 20px;
    left: 0;
    pointer-events: none;
}

.pill-navbar {
    pointer-events: auto;
    background: rgba(20, 47, 50, 0.95);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 10px 25px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.pill-navbar .logo {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* --- MAIN MENU --- */
.main-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    text-decoration: none;
    color: #f7f6f6;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    backface-visibility: hidden;
}

.arrow {
    font-size: 0.7rem;
}

/* --- DROPDOWN --- */
.dropdown {
    position: absolute;
    top: 180%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    list-style: none;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    color: var(--charcoal);
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background: #142f32;
    color: var(--white);
    padding-left: 30px;
    border-radius: 10px;
}

/* --- TOMBOL SPMB & WADAH AKSI --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-spmb {
    border-radius: 100px !important;
    padding: 10px 26px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--deep-green);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-spmb:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--lime);
}

/* =========================================
   ADVANCED INTERACTION: SPOTLIGHT FOCUS EFFECT
   (Isolasi: HANYA aktif di Layar Desktop)
   ========================================= */
@media (min-width: 993px) {
    .main-menu:hover li a {
        filter: blur(3px) grayscale(0.5);
        opacity: 0.6;
        transform: scale(0.98);
    }

    .main-menu li:hover>a {
        filter: blur(0) grayscale(0) !important;
        opacity: 1 !important;
        transform: scale(1.1) !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
        z-index: 10;
    }

    .has-dropdown:hover>a {
        opacity: 1 !important;
        filter: none !important;
        transform: scale(1.1) !important;
    }

    .main-menu .dropdown a {
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   SESSION 1: HERO BENTO PRODMAST
   ========================================= */
.hero-bento {
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-top-text {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--deep-green);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--slate);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions-center {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-dark {
    background: var(--deep-green);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--deep-green);
    border: 1px solid rgba(20, 47, 50, 0.2);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    border-color: var(--deep-green);
    background: rgba(20, 47, 50, 0.05);
}

.hero-rating .stars {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.hero-rating .stars span {
    font-weight: 800;
    color: var(--deep-green);
    font-size: 1rem;
}

.hero-rating .rating-text {
    font-size: 0.85rem;
    color: var(--slate);
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 400px;
}

.bento-card {
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.bento-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.bento-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.b-dark {
    flex: 1;
    height: 75%;
    background: var(--deep-green);
    color: white;
}

.b-white {
    flex: 1.2;
    height: 60%;
    background: white;
    border: 1px solid #eee;
    position: relative;
}

.b-white .card-icon {
    background: #f4fcf0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.b-white h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 5px;
}

.b-white .card-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 10px;
}

.b-white .card-sub {
    font-size: 0.8rem;
    color: var(--slate);
}

.b-lime {
    flex: 1;
    height: 75%;
    background: var(--lime);
    color: var(--deep-green);
}

.b-charcoal {
    flex: 1.2;
    height: 90%;
    background: #1a2526;
    color: white;
    justify-content: flex-end;
}

.b-charcoal .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* BENTO CAROUSEL STYLES */
.b-img {
    flex: 1.2;
    height: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* =========================================
   SESSION 2 STYLES: DARK PROGRAMS GRID
   ========================================= */
.programs-section {
    background-color: var(--deep-green);
    padding: 120px 20px;
    color: var(--white);
}

.section-header-dark {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header-dark h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.section-header-dark p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Menambahkan .programs-section di depan agar style ini terkunci HANYA untuk Beranda */
.programs-section .program-card {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: none !important; /* Menghapus shadow dari halaman RA */
}

.programs-section .program-card:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.p-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--white);
    font-weight: 300;
}

.p-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.programs-section .program-card:hover .p-arrow {
    color: var(--lime);
    transform: translate(5px, -5px);
}

.programs-section .program-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white) !important;
}

.programs-section .program-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   SESSION 3 STYLES: UNIT PENDIDIKAN (GRID GALLERY)
   ========================================= */
.units-section {
    background-color: #f8f9fa;
    padding: 100px 20px;
}

.section-header-light {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header-light h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header-light p {
    color: var(--slate);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ARSITEKTUR 12-KOLOM (FORMASI 4 ATAS, 3 BAWAH) */
.unit-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.unit-gallery-card:nth-child(1),
.unit-gallery-card:nth-child(2),
.unit-gallery-card:nth-child(3),
.unit-gallery-card:nth-child(4) {
    grid-column: span 3;
}

.unit-gallery-card:nth-child(5),
.unit-gallery-card:nth-child(6),
.unit-gallery-card:nth-child(7) {
    grid-column: span 4;
}

.unit-gallery-card:nth-child(5) .unit-img-wrap,
.unit-gallery-card:nth-child(6) .unit-img-wrap,
.unit-gallery-card:nth-child(7) .unit-img-wrap {
    height: 220px;
}

/* KARTU UTAMA & INTERAKSI (Anti-Biru Default Link) */
.unit-gallery-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.unit-gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(20, 47, 50, 0.12);
}

/* Area Gambar */
.unit-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #e9ecef;
}

.unit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.unit-gallery-card:hover .unit-img {
    transform: scale(1.08);
}

/* AREA TEKS (PADDING DEFAULT & HOVER) */
.unit-info {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
    transition: all 0.4s ease;
}

.unit-gallery-card:hover .unit-info {
    padding: 25px 20px;
}

/* ESTETIKA TEKS ANTI-BIRU */
.unit-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--deep-green) !important;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.unit-gallery-card:hover .unit-info h4 {
    color: #2b6168 !important;
}

.unit-info p {
    font-size: 0.9rem;
    color: var(--slate) !important;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   SESSION 6 STYLES: MEGA BANNER SPMB (CTA)
   ========================================= */
.cta-section {
    background-color: var(--white);
    padding: 80px 20px 120px;
    /* Padding bawah ekstra besar sebagai transisi ke Footer nanti */
}

/* Wadah Kapsul Raksasa */
.cta-wrapper {
    background-color: var(--lime);
    /* Warna terang menyala untuk Call to Action */
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(227, 255, 204, 0.4);
    /* Bayangan hijau bercahaya */
}

/* Hiasan Latar Belakang (Watermark) */
.cta-shape {
    position: absolute;
    color: var(--deep-green);
    opacity: 0.04;
    /* Sangat transparan */
    line-height: 1;
    z-index: 0;
}

.shape-1 {
    font-size: 350px;
    top: -100px;
    left: -50px;
    transform: rotate(15deg);
}

.shape-2 {
    font-size: 250px;
    bottom: -50px;
    right: -20px;
    transform: rotate(-25deg);
}

/* Konten di atas hiasan */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.15rem;
    color: #3b5b4a;
    /* Hijau redup agar tetap terbaca tapi tidak sepekat judul */
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- Tombol Aksi --- */
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Tombol Utama (Gelap Kontras) */
.btn-cta-primary {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(20, 47, 50, 0.2);
}

.btn-cta-primary:hover {
    background-color: var(--charcoal);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(20, 47, 50, 0.3);
}

/* Tombol Sekunder (Transparan outline gelap) */
.btn-cta-secondary {
    background-color: transparent;
    color: var(--deep-green);
    border: 2px solid var(--deep-green);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background-color: var(--deep-green);
    color: var(--white);
}

/* =========================================
   SESSION 7 STYLES: MEGA FOOTER
   ========================================= */
.mega-footer {
    background-color: var(--charcoal);
    /* Warna abu-abu sangat gelap */
    color: var(--white);
    padding: 80px 20px 30px;
    border-top: 5px solid var(--lime);
    /* Garis aksen lime di bagian atas footer */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    /* Pembagian proporsi kolom */
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Kolom 1: Brand & Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.f-logo-img {
    height: 45px;
    width: auto;
}

.f-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 350px;
}

/* Ikon Sosial Media */
.social-links {
    display: flex;
    gap: 12px;
}

.soc-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.soc-icon:hover {
    background: var(--lime);
    color: var(--deep-green);
    transform: translateY(-5px);
    border-color: var(--lime);
}

/* Judul Kolom */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--lime);
    border-radius: 5px;
}

/* Daftar Tautan */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--lime);
    transform: translateX(5px);
    /* Teks sedikit bergeser ke kanan saat disentuh */
}

/* Daftar Kontak */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact li span {
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Tautan Khusus untuk Daftar Kontak */
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    /* Warna abu-abu redup bawaan */
    text-decoration: none;
    /* Menghilangkan garis bawah */
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--lime);
    /* Menyala hijau saat disentuh kursor */
}

/* --- Baris Paling Bawah (Hak Cipta) --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-links a:hover {
    color: var(--white);
}

/* =========================================
   MODALS, OVERLAYS & VIEWER FASILITAS
   ========================================= */
.facility-overlay {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 15px 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--deep-green);
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-overlay:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--lime);
}

.icon-expand {
    background: var(--deep-green);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 30, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 650px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--slate);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff4d4d;
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--deep-green);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    text-align: center;
    font-size: 2rem;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.facility-item {
    background: #f4fcf0;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--lime);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.facility-item span:first-child {
    flex: 1;
    line-height: 1.3;
}

.facility-item:hover {
    transform: translateX(5px);
    background: var(--lime);
}

.view-hint {
    font-size: 0.75rem;
    color: var(--slate);
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.facility-item:hover .view-hint {
    opacity: 1;
    background: white;
    color: var(--deep-green);
}

.facility-image-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 60px 30px 30px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-image-viewer.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.close-viewer {
    position: absolute;
    top: 20px;
    left: 25px;
    font-weight: 700;
    color: var(--deep-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.close-viewer:hover {
    background: #f0f0f0;
}

.viewer-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
    border: 1px solid #eee;
    position: relative;
}

#viewer-placeholder-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 47, 50, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-nav:hover {
    background: var(--lime);
    color: var(--deep-green);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.viewer-counter {
    text-align: center;
    margin-top: 15px;
    font-weight: 700;
    color: var(--deep-green);
    font-size: 1.1rem;
}

/* FLOATING DECORATIONS */
.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 0;
    font-size: 1.2rem;
}

.fi-1 {
    top: 20%;
    left: 15%;
    background: var(--deep-green);
    color: white;
}

.fi-2 {
    top: 35%;
    left: 20%;
    background: var(--lime);
}

.fi-3 {
    top: 25%;
    right: 15%;
    border: 1px solid var(--deep-green);
    background: transparent;
}

.fi-4 {
    top: 40%;
    right: 10%;
    background: #f4fcf0;
}

/* =========================================
   SESSION 4 STYLES: BERITA & KEGIATAN (DARK MODE)
   ========================================= */
.news-section {
    /* MANTRA PEWARNAAN: Menggunakan gradien linear miring dari warna utama ke warna yang sedikit lebih terang */
    background: linear-gradient(135deg, var(--deep-green) 0%, #1a3d40 100%);
    padding: 110px 20px;
    /* Sedikit menambah padding agar terasa lega */
    position: relative;
    overflow: hidden;
    color: var(--white);
    /* Mengubah warna teks dasar menjadi putih */
}

/* Hiasan latar belakang (Opsional: Pola halus agar tidak terlalu polos) */
.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Header Berita */
.section-header-news {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 50px;
    position: relative;
    /* Agar berada di atas pola latar belakang */
    z-index: 2;
}

.header-left h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    /* Judul jadi Putih Tegas */
    margin-bottom: 15px;
    line-height: 1.2;
}

.header-left p {
    color: rgba(255, 255, 255, 0.7);
    /* Teks deskripsi jadi putih agak transparan */
    font-size: 1.05rem;
    max-width: 500px;
    line-height: 1.6;
    margin: 0;
}

/* Tombol "Lihat Semua" berubah menjadi mode gelap (outline putih) */
.view-all-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 700;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Garis pinggir putih transparan */
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--white);
    /* Saat disentuh jadi blok putih */
    color: var(--deep-green);
    /* Teksnya jadi hijau gelap */
    border-color: var(--white);
}

/* =========================================
   SISTEM SLIDER BERITA (CSS MURNI)
   ========================================= */
.news-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    /* KUNCI 1: Mengizinkan scroll menyamping */
    padding-bottom: 40px;
    /* Memberi ruang agar bayangan kartu terbawah tidak terpotong */
    margin-bottom: -40px;

    scroll-snap-type: x mandatory;
    /* KUNCI 2: Membuat scroll berhenti pas di kartu (magnetic) */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Kelancaran swipe di iOS/iPhone */

    /* Menyembunyikan batang scrollbar jelek di bawah */
    scrollbar-width: none;
    /* Untuk Firefox */
}

.news-slider::-webkit-scrollbar {
    display: none;
    /* Untuk Chrome, Safari, Opera */
}

/* Desain Kartu Berita */
.news-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: 320px;

    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: none;
    /* Border tipis dihapus karena sudah kontras dengan latar gelap */

    /* Bayangan dibuat lebih lembut tapi menyebar, agar terlihat melayang di atas latar gelap */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);

    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.news-card:hover {
    transform: translateY(-10px);
    /* Bayangan saat hover lebih tajam */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Gambar & Tanggal */
.news-img-wrap {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
    /* Efek zoom saat kartu di hover */
}

/* Label Tanggal Melayang */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    color: var(--deep-green);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Konten Teks */
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--deep-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: #f4fcf0;
    /* Hijau super muda */
    padding: 5px 12px;
    border-radius: 8px;
    align-self: flex-start;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--deep-green);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex: 1;
    /* Mendorong tombol "Baca Selengkapnya" mentok ke bawah */
}

.read-more {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--deep-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--lime);
    /* Warna teks berubah saat hover */
}

/* =========================================
   SESSION 5 STYLES: PILAR KARAKTER (SATF)
   ========================================= */
.values-section {
    background-color: #f4fcf0;
    /* Hijau pastel sangat muda */
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

/* Membagi layar jadi 2 kolom: Kiri (Sticky) dan Kanan (Grid) */
.values-container {
    display: flex;
    align-items: flex-start;
    /* PENTING: Agar efek sticky bekerja, jangan pakai center */
    gap: 80px;
}

/* --- KOLOM KIRI (TEKS STICKY) --- */
.values-text-sticky {
    flex: 1;
    position: sticky;
    top: 150px;
    /* Jarak berhenti dari atap layar saat di-scroll */
    padding-bottom: 50px;
}

.v-badge {
    display: inline-block;
    background: var(--deep-green);
    color: var(--lime);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.values-text-sticky h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--deep-green);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.values-text-sticky p {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 40px;
}

.v-quote {
    position: relative;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 600;
    color: var(--deep-green);
    line-height: 1.6;
    border-left: 5px solid var(--lime);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
}

.quote-mark {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--lime);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}


/* --- KOLOM KANAN (GRID ASIMETRIS 4 KARTU) --- */
.values-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Membuat kartu kolom kedua sedikit turun ke bawah (Asimetris) */
.mt-card {
    margin-top: 60px;
}

.v-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(20, 47, 50, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.v-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(20, 47, 50, 0.1);
    border-color: var(--lime);
    /* Garis pinggir menyala saat di-hover */
}

.v-icon-box {
    background: #f8f9fa;
    color: var(--deep-green);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.v-card:hover .v-icon-box {
    background: var(--deep-green);
    color: var(--lime);
    transform: rotate(-10deg) scale(1.1);
    /* Ikon miring sedikit saat disentuh */
}

.v-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--deep-green);
    margin: 0 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v-card h3 span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v-card p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

/* --- Penyesuaian List untuk Konsep Pendidikan SATF --- */
.v-list {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v-list li {
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.4;
    position: relative;
    list-style-type: disc;
    list-style-position: outside;
}

/* --- Penyesuaian List untuk Konsep Pendidikan SATF --- */
.v-list {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v-list li {
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.4;
    position: relative;
    list-style-type: disc;
    list-style-position: outside;
}

/* --- Bingkai Elegan Gambar Diagram SATF --- */
.satf-diagram-wrap {
    margin: 20px 0 25px 0;
    /* Memberi jarak dari lencana atas dan judul bawah */
    max-width: 320px;
    /* Ukuran dibatasi agar tidak merusak kolom teks */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(20, 47, 50, 0.08);
    /* Bayangan lembut */
    border: 5px solid var(--white);
    /* Bingkai putih layaknya foto fisik */
}

.satf-img-small {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.satf-diagram-wrap:hover .satf-img-small {
    transform: scale(1.05);
    /* Efek membesar sedikit saat disentuh kursor */
}

/* =========================================
   SESSION 5B STYLES: 9 CORE VALUES (CINTA)
   ========================================= */
.core-values-section {
    background-color: var(--deep-green);
    /* Latar Hijau Gelap kontras dengan sesi atasnya */
    padding: 100px 20px 120px;
}

.cinta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Auto Grid untuk 8 item pertama */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desain Kartu Sembilan Cinta */
.cinta-card {
    background: rgba(255, 255, 255, 0.03);
    /* Transparan elegan */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cinta-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(227, 255, 204, 0.3);
    /* Garis lime transparan */
}

/* Angka Latar Belakang (Watermark) */
.c-num {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    /* Sangat transparan */
    line-height: 1;
    z-index: 0;
    transition: all 0.4s ease;
}

.cinta-card:hover .c-num {
    color: rgba(227, 255, 204, 0.1);
    /* Menyala lime transparan saat disentuh */
    transform: scale(1.1);
}

.cinta-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--lime);
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.cinta-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* KARTU MEGA: Poin ke-9 (Full Width) */
.cinta-mega {
    grid-column: 1 / -1;
    /* MANTRA: Merentang dari ujung ke ujung */
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(227, 255, 204, 0.05);
    /* Sedikit lebih terang dari kartu lain */
    border-color: rgba(227, 255, 204, 0.2);
    padding: 40px;
}

.cinta-mega .c-num {
    position: static;
    /* Berhenti jadi watermark, jadi angka tebal di kiri */
    font-size: 6rem;
    color: var(--lime);
    opacity: 0.8;
}

.mega-content {
    flex: 1;
}

/* --- Penyesuaian List untuk Konsep Pendidikan SATF --- */
.v-list {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v-list li {
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.4;
    position: relative;
    list-style-type: disc;
    list-style-position: outside;
}

/* =========================================
   SESSION 5B STYLES: 9 CORE VALUES (CINTA)
   ========================================= */
.core-values-section {
    background-color: var(--deep-green);
    /* Latar Hijau Gelap kontras dengan sesi atasnya */
    padding: 100px 20px 120px;
}

.cinta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Auto Grid untuk 8 item pertama */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desain Kartu Sembilan Cinta */
.cinta-card {
    background: rgba(255, 255, 255, 0.03);
    /* Transparan elegan */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cinta-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(227, 255, 204, 0.3);
    /* Garis lime transparan */
}

/* Angka Latar Belakang (Watermark) */
.c-num {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    /* Sangat transparan */
    line-height: 1;
    z-index: 0;
    transition: all 0.4s ease;
}

.cinta-card:hover .c-num {
    color: rgba(227, 255, 204, 0.1);
    /* Menyala lime transparan saat disentuh */
    transform: scale(1.1);
}

.cinta-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--lime);
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.cinta-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* KARTU MEGA: Poin ke-9 (Full Width) */
.cinta-mega {
    grid-column: 1 / -1;
    /* MANTRA: Merentang dari ujung ke ujung */
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(227, 255, 204, 0.05);
    /* Sedikit lebih terang dari kartu lain */
    border-color: rgba(227, 255, 204, 0.2);
    padding: 40px;
}

.cinta-mega .c-num {
    position: static;
    /* Berhenti jadi watermark, jadi angka tebal di kiri */
    font-size: 6rem;
    color: var(--lime);
    opacity: 0.8;
}

.mega-content {
    flex: 1;
}

/* --- FIX: Memaksa Header Sesi Menjadi Rata Tengah --- */
.section-header-news.text-center {
    display: block !important;
    text-align: center !important;
}

.section-header-news.text-center h2 {
    font-size: 2.5rem;
    margin-bottom: 15px !important;
    width: 100%;
}

.section-header-news.text-center p {
    margin: 0 auto !important;
    width: 100%;
}

/* =========================================
   RESPONSIVE ARCHITECTURE (MOBILE & TABLET)
   ========================================= */

@media (max-width: 992px) {

    /* Navbar & Hamburger */
    .pill-navbar {
        position: relative;
        padding: 10px 20px;
    }

    .pill-navbar .logo-text {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .btn-spmb {
        padding: 8px 18px !important;
        font-size: 0.8rem !important;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 15px;
    }

    .hamburger .bar {
        width: 100%;
        height: 2px;
        background-color: var(--white);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        margin: 0 !important;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .desktop-nav {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #3B4953;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        z-index: 9999 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .desktop-nav.mobile-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .main-menu li {
        width: 100%;
    }

    .main-menu a {
        font-size: 1.05rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-menu:hover li a {
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .main-menu li:hover>a {
        transform: none !important;
        text-shadow: none !important;
    }

    .dropdown {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
        padding: 10px 15px;
        margin-top: 5px;
        border-radius: 12px;
        width: 100%;
    }

    .dropdown li a {
        color: #d0d0d0;
        border-bottom: none;
        font-size: 0.95rem;
        padding: 8px 10px;
    }

    .dropdown li a:hover {
        background: transparent !important;
        color: var(--lime) !important;
        transform: none !important;
    }

    /* Bento Sesi 1 Fix */
    .hero-title {
        font-size: 2.5rem;
    }

    .bento-grid {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        gap: 15px;
    }

    .b-img {
        height: 250px;
        flex: none;
    }

    .floating-icon {
        display: none;
    }

    /* Programs Grid Sesi 2 Fix */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header-dark h2 {
        font-size: 2.3rem;
    }

    /* Gallery Grid Sesi 3 Fix */
    .unit-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 20px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .unit-gallery-card:nth-child(n) {
        grid-column: span 1 !important;
    }

    .unit-gallery-card:nth-child(n) .unit-img-wrap {
        height: 180px !important;
    }

    /* --- Tablet Fix untuk Berita --- */
    .section-header-news {
        flex-direction: column;
        /* Teks dan Tombol menyusun ke bawah */
        align-items: flex-start;
        gap: 25px;
    }

    .news-card {
        flex: 0 0 calc(50% - 15px);
        /* Menampilkan 2 kartu di layar Tablet */
    }

    /* --- Tablet Fix Sesi Pilar Karakter --- */
    .values-container {
        flex-direction: column;
        /* Teks di atas, Grid di bawah */
        gap: 50px;
    }

    .values-text-sticky {
        position: static;
        /* Matikan efek lengket */
        padding-bottom: 0;
    }

    /* --- Tablet: Matikan Diagram, Nyalakan Grid --- */
    .only-desktop {
        display: none !important;
    }

    /* Sembunyikan diagram */
    .only-mobile.values-grid {
        display: grid !important;
        /* Munculkan grid kartu backup */
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 40px;
    }
}

/* =========================================
   UPGRADE: HERO BANNER (UNTUK SEMUA HALAMAN)
   ========================================= */
.page-hero-section {
    background: linear-gradient(135deg, var(--deep-green) 0%, #153236 100%);
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--lime);
    /* Garis tegas di batas bawah */
}

/* Efek Cahaya Artistik di Background */
.page-hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(227, 255, 204, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center !important;
}

/* Badge (Tombol Kecil di Atas Judul) */
.page-hero-content .v-badge {
    background: rgba(227, 255, 204, 0.15);
    color: var(--lime);
    border: 1px solid rgba(227, 255, 204, 0.3);
    margin-bottom: 25px;
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    display: inline-block;
}

/* Judul Halaman */
.page-hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Efek teks timbul */
}

/* Teks Deskripsi */
.page-hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 auto !important;
    width: 100%;
}

/* Sesi Narasi & Tagline */
.about-story-section {
    padding: 100px 20px;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 30px;
    line-height: 1.2;
}

.section-title span {
    color: var(--slate);
    font-style: italic;
    font-weight: 400;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text-content p {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Kotak GENIUS */
.about-highlight-box {
    background: var(--deep-green);
    padding: 50px 40px;
    border-radius: 30px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(20, 47, 50, 0.15);
    position: relative;
    overflow: hidden;
}

.genius-badge {
    background: var(--lime);
    color: var(--deep-green);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.genius-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--lime);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.genius-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.satf-concept {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.satf-concept h4 {
    margin: 0 0 10px 0;
    color: var(--white);
    font-size: 1rem;
}

.satf-concept ul {
    padding-left: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.satf-concept ul li {
    margin-bottom: 8px;
}

/* Sesi Praktek Ibadah */
.core-practices-section {
    padding: 0 20px 100px;
    background: var(--white);
}

.practices-wrapper {
    background: #f4fcf0;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 50px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    border: 1px solid var(--lime);
}

.practice-icon {
    font-size: 3.5rem;
    color: var(--deep-green);
    background: var(--white);
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.practice-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-green);
    margin: 0 0 15px 0;
}

.practice-text p {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Sesi Keunggulan */
.advantages-section {
    padding: 100px 20px;
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.adv-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.adv-card:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
}

.adv-icon {
    width: 60px;
    height: 60px;
    background: #f4fcf0;
    color: var(--deep-green);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.adv-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--deep-green);
    margin: 0 0 15px 0;
}

.adv-card p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   HALAMAN VISI & MISI STYLES
   ========================================= */

/* --- Sesi Visi (Grand Statement) --- */
.visi-section {
    padding: 20px 20px 80px;
    background: #f8f9fa;
    margin-top: -30px;
    /* Menarik kotak ke atas sedikit agar menyatu dengan Hero */
}

/* --- Perbaikan Kotak Visi Misi --- */
.visi-box, .visi-card {
    /* Menetralkan efek miring yang ekstrem */
    transform: none; 
    
    /* Latar belakang gradasi biru-hijau yang sangat lembut */
    background: linear-gradient(135deg, #f4fcfcf, #e8f5f6); 
    
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(20,47,50,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 5px solid var(--lime);
    text-align: center;
    position: relative;
    z-index: 2; /* Agar tidak menabrak header */
    margin: 40px auto;
}

/* Mengubah warna teks menjadi gelap agar terbaca jelas */
.visi-box h3, .visi-card h3 {
    color: var(--deep-green);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.visi-box p, .visi-card p {
    color: var(--deep-green); /* Mengubah teks putih menjadi hijau gelap */
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 600;
}

.visi-label {
    background: var(--lime);
    color: var(--deep-green);
    display: inline-block;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.visi-statement {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

.quote-mark {
    font-size: 5rem;
    color: rgba(227, 255, 204, 0.15);
    /* Warna lime transparan */
    position: absolute;
    font-family: serif;
    line-height: 0;
    z-index: -1;
}

.quote-mark.left {
    top: 40px;
    left: -20px;
}

.quote-mark.right {
    bottom: -10px;
    right: -20px;
}


/* --- Sesi Misi (Grid 6 Pilar) --- */
.misi-section {
    padding: 80px 20px 100px;
    background: var(--white);
}

.misi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.misi-card {
    background: #f4fcf0;
    padding: 40px 30px;
    border-radius: 25px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.misi-card:hover {
    background: var(--white);
    border-color: var(--lime);
    box-shadow: 0 15px 35px rgba(20, 47, 50, 0.06);
    transform: translateY(-5px);
}

.misi-number {
    position: absolute;
    top: -15px;
    right: 10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(20, 47, 50, 0.03);
    /* Angka raksasa transparan sebagai background */
    z-index: 0;
    transition: color 0.4s ease;
}

.misi-card:hover .misi-number {
    color: rgba(227, 255, 204, 0.5);
    /* Berubah lime saat di-hover */
}

.misi-icon {
    font-size: 2.2rem;
    color: var(--deep-green);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.misi-card p {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 2;
}

.misi-card p strong {
    color: var(--deep-green);
}

/* =========================================
   HALAMAN KONSEP PENDIDIKAN STYLES
   ========================================= */

/* --- Landasan & Al-Quran --- */
.concept-foundation {
    padding: 20px 20px 80px;
    background: #f8f9fa;
    margin-top: -30px;
}

.quran-quote-box {
    background: var(--white);
    border-radius: 30px;
    padding: 60px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border-top: 5px solid var(--lime);
    overflow: hidden;
}

.quote-icon-bg {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: #f4fcf0;
    z-index: 0;
}

.quran-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--deep-green);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-family: serif;
    font-style: italic;
}

.quran-surah {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--slate);
    position: relative;
    z-index: 2;
}

.foundation-text {
    max-width: 800px;
    margin: 0 auto;
}

.foundation-text p {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.8;
}

/* --- Metode Tarbiyah & Riyadhoh --- */
.concept-methods {
    padding: 80px 20px;
    background: var(--white);
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.method-card {
    background: #f4fcf0;
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(227, 255, 204, 0.5);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(20, 47, 50, 0.08);
    border-color: var(--lime);
}

.method-icon {
    font-size: 3rem;
    color: var(--deep-green);
    margin-bottom: 20px;
}

.method-card h3 {
    font-size: 1.8rem;
    color: var(--deep-green);
    margin: 0 0 10px 0;
}

.method-tag {
    display: inline-block;
    background: var(--lime);
    color: var(--deep-green);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.method-card p {
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
}

/* --- Pembiasaan & Rutinitas --- */
.concept-routines {
    padding: 0 20px 80px;
    background: var(--white);
}

.routines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.routine-item {
    padding: 30px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid #eee;
}

.r-icon {
    width: 60px;
    height: 60px;
    background: var(--deep-green);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 15px;
    margin-bottom: 20px;
}

.routine-item h4 {
    color: var(--deep-green);
    font-size: 1.2rem;
    margin: 0 0 15px 0;
}

.routine-item p {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Banner SRA --- */
.concept-sra {
    padding: 40px 20px 100px;
    background: var(--white);
}

.sra-banner {
    background: var(--deep-green);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--white);
    background-image: radial-gradient(circle at right top, #1e4549, var(--deep-green));
}

.sra-banner h2 {
    color: var(--lime);
    font-size: 2.5rem;
    margin: 0 0 20px 0;
}

.sra-banner p {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Sesi Detail SATF (Konsep Pendidikan) --- */
.satf-detail-section {
    padding: 20px 20px 100px;
    background: #f8f9fa;
}

.satf-detail-grid {
    display: grid;
    /* Lebar gambar dikunci di 420px, sisanya untuk kartu */
    grid-template-columns: 420px 1fr;
    gap: 70px;
    align-items: center;
    max-width: 1250px;
    /* Kontainer diperlebar agar lega di PC */
    margin: 0 auto;
}

/* Bingkai Estetik untuk Gambar Lingkaran */
.satf-image-col {
    background: #000;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 30px 60px rgba(20, 47, 50, 0.25);
    border: none;
    /* Menghapus bingkai putih yang kaku */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.satf-image-col:hover {
    transform: scale(1.03) translateY(-10px);
    /* Efek mengambang elegan */
}

.satf-core-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    transform: scale(1.01);
    /* Trik agar tidak ada garis bocor di tepi bulatnya */
}

/* Layout Kartu Poin SATF (Versi Landing Page) */
.satf-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.s-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.s-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(20, 47, 50, 0.08);
}

/* KOTAK IKON BARU (Gaya Premium) */
.s-card-icon {
    width: 60px;
    height: 60px;
    background: var(--deep-green);
    color: var(--lime);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.s-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--deep-green);
    margin: 0 0 20px 0;
    display: block;
    /* Menurunkan judul ke bawah ikon */
}

.s-list {
    padding-left: 20px;
    margin: 0;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.8;
}

.s-list li {
    margin-bottom: 10px;
}

/* =========================================
   HALAMAN CORE VALUES STYLES
   ========================================= */

/* --- 9 Pilar Cinta Grid (Versi Seragam Hijau Gelap) --- */
.nine-loves-section {
    padding: 60px 20px 100px;
    background: #f8f9fa;
}

.loves-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gaya Kartu Dasar (Sekarang Semuanya Hijau Gelap) */
.love-card {
    background: var(--deep-green);
    /* Latar belakang diubah jadi hijau gelap */
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    border: 1px solid transparent;
    /* Border transparan */
    box-shadow: 0 15px 30px rgba(20, 47, 50, 0.15);
    /* Bayangan lebih lembut */
    transition: all 0.3s ease;
    overflow: hidden;
    color: var(--white);
    /* Teks dasar jadi putih */
}

.love-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 47, 50, 0.25);
    border-color: var(--lime);
    /* Saat disorot, pinggirannya menyala lime */
}

/* Nomor Transparan di Belakang (Versi Putih Pudar) */
.love-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* Angka jadi putih sangat transparan */
    z-index: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.love-card:hover .love-number {
    color: rgba(227, 255, 204, 0.2);
    /* Saat disorot, angka sedikit menyala lime */
}

/* Ikon di dalam kotak Lime */
.love-icon {
    width: 60px;
    height: 60px;
    background: var(--lime);
    /* Kotak ikon jadi lime */
    color: var(--deep-green);
    /* Ikonnya jadi hijau gelap */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.love-card h4 {
    font-size: 1.25rem;
    color: var(--lime);
    /* Judul jadi warna lime */
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.love-card p {
    color: rgba(255, 255, 255, 0.85);
    /* Teks paragraf putih agak transparan */
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* (Kode .highlight-card sudah dihapus karena tidak diperlukan lagi) */


/* --- Dual Pillars (Kesiswaan & Kurikulum) --- */
.dual-pillars-section {
    padding: 0 20px 100px;
    background: #f8f9fa;
}

.pillars-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.pillar-box {
    padding: 50px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.kesiswaan-box {
    background: var(--white);
    border-top: 5px solid var(--lime);
}

.kurikulum-box {
    background: var(--deep-green);
    color: var(--white);
}

.pillar-box .p-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.kesiswaan-box .p-icon {
    color: var(--deep-green);
}

.kurikulum-box .p-icon {
    color: var(--lime);
}

.pillar-box h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 30px 0;
}

.kesiswaan-box h3 {
    color: var(--deep-green);
}

.kurikulum-box h3 {
    color: var(--white);
}

.p-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.kesiswaan-box .p-list li {
    color: var(--slate);
}

.kurikulum-box .p-list li {
    color: rgba(255, 255, 255, 0.9);
}

.p-list li i {
    font-size: 1.2rem;
}

.kesiswaan-box .p-list li i {
    color: var(--lime);
}

.kurikulum-box .p-list li i {
    color: var(--lime);
}

/* =========================================
   HALAMAN BERITA STYLES
   ========================================= */
.news-page-section {
    padding: 60px 20px 100px;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 47, 50, 0.1);
}

.news-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.08);
    /* Efek zoom elegan saat disentuh */
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--lime);
    color: var(--deep-green);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 15px;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 2;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 15px;
    color: #8c9ea0;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-meta i {
    color: var(--lime);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.news-title a {
    color: var(--deep-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #2a5d63;
}

.news-excerpt {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--deep-green);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.read-more-btn:hover {
    color: var(--lime);
    gap: 12px;
    /* Panah akan bergeser maju saat disentuh */
}

/* --- Pagination (Tombol Halaman) --- */
.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--deep-green);
    font-weight: 700;
    text-decoration: none;
    margin: 0 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-btn.active,
.page-btn:hover {
    background: var(--deep-green);
    color: var(--lime);
}

.page-dots {
    color: var(--slate);
    font-weight: 700;
    margin: 0 5px;
}

/* --- Filter Tombol Berita --- */
.news-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    color: var(--slate);
    border: 2px solid #eef2f3;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tampilan saat tombol disentuh atau sedang aktif */
.filter-btn:hover,
.filter-btn.active {
    background: var(--deep-green);
    color: var(--lime);
    border-color: var(--deep-green);
    box-shadow: 0 5px 15px rgba(20, 47, 50, 0.15);
}

/* Kelas khusus yang akan ditambahkan oleh Javascript untuk menyembunyikan kartu */
.news-card.hide-card {
    display: none !important;
}

/* =========================================
   HALAMAN GALERI STYLES
   ========================================= */
.gallery-page-section {
    padding: 60px 20px 100px;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    /* Grid cerdas: otomatis menyesuaikan layar, minimal lebar foto 300px */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    /* Memaksa semua foto memiliki proporsi yang sama (rapi) */
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Overlay Gelap yang Muncul Saat Disentuh */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 47, 50, 0.9) 0%, rgba(20, 47, 50, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
    width: 100%;
}

.overlay-content i {
    color: var(--lime);
    font-size: 2rem;
    margin-bottom: 15px;
}

.overlay-content h4 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.overlay-content p {
    color: rgba(227, 255, 204, 0.8);
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Efek Hover (Sentuhan) */
.gallery-item:hover img {
    transform: scale(1.1);
    /* Foto Membesar */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    /* Overlay Muncul */
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
    /* Teks naik ke atas secara perlahan */
}

/* Class untuk menyembunyikan foto saat difilter Javascript */
.gallery-item.hide-item {
    display: none !important;
}

/* =========================================
   HALAMAN KONTAK STYLES (VERSI ULTRA-DINAMIS & TEGAS)
   ========================================= */
.contact-page-section {
    padding: 80px 20px 100px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    /* Menambahkan "Sumber Cahaya" (Blobs) di latar belakang agar atmosfernya hidup */
    background-image:
        radial-gradient(at 0% 0%, rgba(227, 255, 204, 0.4) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(20, 47, 50, 0.15) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    /* Kolom kanan sedikit diperlebar */
    gap: 60px;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: start;
}

/* --- Kolom Kiri: Kartu Informasi Super Interaktif --- */
.info-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.c-info-card {
    display: flex;
    gap: 25px;
    background: var(--white);
    /* Kembali ke putih bersih */
    padding: 35px;
    border-radius: 25px;
    /* Bayangan awal yang lembut tapi dalam */
    box-shadow: 0 20px 40px -10px rgba(20, 47, 50, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Efek Hover Dramatis pada Kartu */
.c-info-card:hover {
    transform: translateY(-12px);
    /* Terangkat lebih tinggi */
    /* Bayangan menjadi sangat dalam dan tajam, memberikan efek 3D */
    box-shadow: 0 40px 70px -15px rgba(20, 47, 50, 0.2);
    border-color: transparent;
}

/* Garis Aksen Lime yang Muncul di Bawah saat Hover */
.c-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--lime);
    transform: scaleX(0);
    /* Tersembunyi di awal */
    transform-origin: left;
    transition: transform 0.4s ease;
}

.c-info-card:hover::after {
    transform: scaleX(1);
    /* Garis muncul penuh saat hover */
}

/* Ikon: Berubah Warna Saat Disentuh! */
.c-icon {
    width: 70px;
    height: 70px;
    background: #f0f7f1;
    /* Latar awal hijau sangat muda */
    color: var(--deep-green);
    /* Ikon awal hijau tua */
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.c-info-card:hover .c-icon {
    background: var(--deep-green);
    /* Latar berubah jadi hijau tua */
    color: var(--lime);
    /* Ikon berubah jadi lime menyala */
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 30px rgba(20, 47, 50, 0.25);
}

/* Teks: Warna Tegas (Tidak Biru) */
.c-details h4 {
    color: var(--deep-green);
    /* Hijau tua pekat */
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    font-weight: 900;
}

.c-details p {
    color: #333333;
    /* Abu-abu tua netral (hampir hitam) */
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* --- Kolom Kanan: Form Box Premium --- */
.form-box {
    background: var(--white);
    padding: 50px;
    border-radius: 35px;
    /* Bayangan yang sangat dalam agar terlihat menonjol */
    box-shadow: 0 30px 80px -20px rgba(20, 47, 50, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Tekstur latar belakang tetap ada tapi samar */
.form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23142f32' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.form-box h3,
.form-box p,
.contact-form {
    position: relative;
    z-index: 2;
}

.form-box h3 {
    font-size: 2.2rem;
    color: var(--deep-green);
    margin: 0 0 15px 0;
    font-weight: 900;
}

/* Input Field yang Lebih Responsif */
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 20px 25px;
    border-radius: 16px;
    border: 2px solid #edf2f7;
    /* Border abu sangat terang di awal */
    background: #fcfdfd;
    font-size: 1rem;
    color: var(--deep-green);
    transition: all 0.3s ease;
    font-weight: 600;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--lime);
    background: var(--white);
    /* Efek pendaran cahaya lime yang kuat saat fokus */
    box-shadow: 0 15px 35px -10px rgba(227, 255, 204, 0.6);
    transform: translateY(-4px);
}

/* Tombol Submit dengan Gradasi Menarik */
.submit-btn {
    /* Gradasi diagonal dari hijau tua ke arah lime sedikit */
    background: linear-gradient(120deg, var(--deep-green) 0%, #2a6f75 100%);
    color: var(--white);
    border: none;
    padding: 22px 35px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    margin-top: 20px;
    box-shadow: 0 20px 40px -10px rgba(20, 47, 50, 0.3);
}

.submit-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(20, 47, 50, 0.4);
    background: var(--deep-green);
    /* Warna solid saat hover */
    color: var(--lime);
    /* Teks berubah jadi lime */
}

/* --- Google Maps --- */
.map-section {
    padding: 0 20px 100px;
    background: #f8f9fa;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 5px solid var(--white);
    background: var(--white);
}

/* =========================================
   HALAMAN KHUSUS RA (PLAYFUL & COLORFUL)
   ========================================= */

/* --- Hero Banner RA yang Ceria --- */
.unit-hero-section.ra-hero {
    padding: 140px 20px 180px;
    /* Padding bawah diperbesar untuk gelombang */
    position: relative;
    border-bottom: none;
    /* Menghapus garis kaku */
    /* Latar belakang gradasi cerah dengan pola samar */
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 245, 157, 0.4) 0%, transparent 50%),
        /* Aksen Kuning */
        radial-gradient(circle at 80% 80%, rgba(129, 212, 250, 0.4) 0%, transparent 50%),
        /* Aksen Biru */
        linear-gradient(135deg, var(--deep-green), #2a7a82);
    overflow: hidden;
}

/* Menambahkan elemen dekoratif (lingkaran-lingkaran pudar) di background */
.ra-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--lime) 20%, transparent 20%),
        radial-gradient(var(--ra-yellow) 20%, transparent 20%);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    opacity: 0.05;
    pointer-events: none;
}

.unit-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.unit-badge {
    background: var(--ra-yellow);
    /* Badge jadi kuning ceria */
    color: var(--deep-green);
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px 50px 50px 0px;
    /* Bentuk blob unik */
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
    /* Efek timbul kartun */
}

.unit-hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px var(--deep-green);
    /* Bayangan teks kartun */
}

.unit-hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 600;
}

/* Divider Gelombang */
.ra-wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.ra-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* --- Visi Misi (Bentuk Awan/Blob) --- */
.unit-vm-section {
    padding: 0 20px 80px;
    background: var(--white);
    margin-top: -80px;
    /* Naik ke atas menimpa gelombang */
    position: relative;
    z-index: 5;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.vm-box {
    padding: 50px 40px;
    /* Bentuk organik yang tidak beraturan (Blob Shape) */
    border-radius: 45% 55% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    text-align: center;
    border: none;
    /* Hapus border atas yang lama */
}

.vm-box:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Visi: Tema Biru Langit */
.visi-box {
    background: linear-gradient(135deg, #ffffff, var(--ra-blue));
}

.visi-box .vm-icon {
    color: #0288D1;
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.5);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Misi: Tema Hijau Mint Segar */
.misi-box {
    background: linear-gradient(135deg, #ffffff, var(--ra-green-light));
    border-radius: 30% 70% 70% 30% / 50% 30% 70% 50%;
    /* Bentuk blob berbeda */
    text-align: left;
    padding: 50px;
}

.misi-box .vm-icon {
    color: var(--deep-green);
    font-size: 3rem;
}

.vm-box h3 {
    font-size: 2rem;
    color: var(--deep-green);
    margin-bottom: 20px;
    font-weight: 900;
    /* Font judul dibuat sedikit lebih 'playful' dengan bayangan warna */
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.misi-list {
    padding-left: 20px;
    color: #444;
    font-weight: 600;
}

/* --- Judul Seksi yang Ceria --- */
.section-title {
    color: var(--deep-green);
    font-size: 2.4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* Garis bawah bergelombang untuk judul */
.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 20, 50 10 T 100 10' stroke='%23e3ffcc' fill='none' stroke-width='8' stroke-linecap='round' /%3E%3C/svg%3E") repeat-x bottom center;
    margin: 15px auto 0;
}

/* --- Akademik & Kultur Card (Bentuk Kartu Bermain) --- */
.unit-academic-section,
.unit-culture-section {
    padding: 100px 20px;
    /* Latar belakang pola titik-titik ceria */
    background-color: #fffbea;
    /* Kuning sangat muda */
    background-image: radial-gradient(var(--ra-yellow) 20%, transparent 20%);
    background-size: 40px 40px;
    opacity: 1;
}

.academic-grid,
.culture-grid,
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.academic-card,
.culture-box,
.program-card {
    background: var(--white);
    padding: 40px;
    border-radius: 35px;
    /* Sudut sangat bulat */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border: 3px solid transparent;
    /* Siapkan border */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Memberikan warna border atas yang berbeda-beda */
.academic-card:nth-child(1) {
    border-top-color: var(--ra-blue);
}

.academic-card:nth-child(2) {
    border-top-color: var(--ra-pink);
}

.culture-box:nth-child(1) {
    border-top-color: var(--lime);
}

.culture-box:nth-child(2) {
    border-top-color: var(--ra-orange);
}

.culture-box:nth-child(3) {
    border-top-color: var(--ra-blue);
}

.academic-card:hover,
.culture-box:hover,
.program-card:hover {
    transform: translateY(-8px) rotate(1deg);
    /* Efek miring sedikit saat hover */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* List dengan Ikon Lucu */
.check-list li,
.simple-list li {
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-list li i {
    color: var(--lime);
    background: var(--deep-green);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.simple-list li {
    border-bottom: 2px dashed #eee;
    padding-bottom: 12px;
    color: var(--deep-green);
}

/* --- Program Unggulan (Gaya Kotak Mainan) --- */
.unit-program-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--white), #f0f7f7);
}

.program-card .p-icon-box {
    width: 90px;
    height: 90px;
    background: var(--ra-yellow);
    color: var(--deep-green);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Bentuk blob */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.program-card:hover .p-icon-box {
    transform: rotate(-10deg) scale(1.1);
    background: var(--lime);
}

.program-card h4 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--deep-green);
    text-align: center;
    margin-bottom: 25px;
}

/* Badges seperti Permen */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.p-badge {
    background: var(--white);
    color: var(--deep-green);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 3px solid var(--ra-yellow);
    /* Border warna-warni */
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.p-badge:hover {
    transform: scale(1.1);
    background: var(--ra-yellow);
}

/* Warna-warni untuk badge program khusus */
.p-badge:nth-child(odd) {
    border-color: var(--ra-blue);
}

.p-badge:nth-child(3n) {
    border-color: var(--ra-pink);
}

.ekskul-badge i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.ekskul-badge:nth-child(1) i {
    color: var(--ra-pink);
}

.ekskul-badge:nth-child(2) i {
    color: var(--ra-blue);
}

.ekskul-badge:nth-child(3) i {
    color: var(--ra-orange);
}

.ekskul-badge:nth-child(4) i {
    color: var(--lime);
}

/* Khusus Box TTQ (Dibuat lebih cerah) */
.ttq-box {
    background: linear-gradient(135deg, var(--deep-green), #2a7a82);
    border-radius: 40px 20px 40px 20px;
}

.ttq-box h3 {
    color: var(--ra-yellow);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.ttq-box .misi-list {
    color: var(--white);
}

/* =========================================
   FLOATING WHATSAPP BUTTON STYLES
   ========================================= */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    /* Warna Hijau Khas WhatsApp */
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    /* Mantra Sakti: Memastikan tombol ini selalu berada di lapisan paling atas, tidak tertutup gambar/teks lain */
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-wa:hover {
    background-color: #1ebe57;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* Animasi Denyut (Pulse) agar menarik perhatian pengunjung */
.floating-wa::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* =========================================
   GRID KARTU UNIT EKSKLUSIF (4 ATAS, 3 BAWAH)
   ========================================= */
.unit-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* KUNCI: Memastikan sisa 3 kartu di baris bawah otomatis ke tengah! */
    gap: 30px;
    max-width: 1250px;
    margin: 40px auto 80px;
}

.unit-cards-container .unit-card {
    /* Menghitung lebar: 4 kolom dikurangi jarak celah (gap) */
    width: calc(25% - 22.5px); 
    background: #ffffff !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(20,47,50,0.06) !important;
    border-bottom: 5px solid var(--lime) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* MENGHIDUPKAN KEMBALI HOVER EFEK PEGAS */
.unit-cards-container .unit-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 50px rgba(20,47,50,0.15) !important;
    border-bottom-color: var(--deep-green) !important;
}

.unit-cards-container .unit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.unit-cards-container .unit-card h3 {
    color: var(--deep-green) !important;
    font-size: 1.3rem;
    font-weight: 800 !important;
    margin: 0 20px 10px;
    transition: color 0.3s ease;
}

.unit-cards-container .unit-card p {
    color: var(--slate) !important;
    font-size: 0.95rem;
    line-height: 1.6 !important;
    margin: 0 20px 30px;
}

.unit-cards-container .unit-card:hover h3 {
    color: var(--lime) !important;
}

/* =========================================
   RESPONSIF UNTUK LAYAR KECIL (HP & TABLET)
   ========================================= */
@media (max-width: 1024px) {
    /* Di Tablet: Menjadi 3 Kolom */
    .unit-cards-container .unit-card { width: calc(33.333% - 20px); }
}

@media (max-width: 768px) {
    /* Di HP: Menjadi 1 Kolom berbaris ke bawah */
    .unit-cards-container .unit-card { width: 100%; }
}

@media (max-width: 768px) {

    /* Compact UI Sesi 1 */
    .b-dark,
    .b-white,
    .b-lime,
    .b-charcoal {
        height: auto !important;
        min-height: 150px;
        padding: 25px 20px !important;
        justify-content: flex-start !important;
    }

    .b-img {
        height: 220px !important;
    }

    .bento-card h2 {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
    }

    .b-white h3 {
        font-size: 1.5rem !important;
        margin-bottom: 2px !important;
    }

    .bento-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Compact UI Sesi 2 */
    .programs-section {
        padding: 80px 20px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 12px !important;
    }

    .section-header-dark h2 {
        font-size: 1.8rem;
    }

    .program-card {
        padding: 20px 20px !important;
    }

    .card-top {
        margin-bottom: 15px !important;
    }

    .p-icon {
        font-size: 1.5rem !important;
    }

    .program-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .program-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* Compact UI Sesi 3 */
    .units-section {
        padding: 80px 20px;
    }

    .section-header-light h2 {
        font-size: 1.8rem;
    }

    .unit-gallery-grid {
        grid-template-columns: 1fr !important;
    }

    /* Fasilitas Modal & Mobile Viewer Premium Fix */
    .facility-overlay {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px 8px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .icon-expand {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 30px 10px 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .facility-image-viewer {
        padding: 60px 0 20px;
        border-radius: 20px;
        background: #ffffff;
    }

    .close-viewer {
        top: 15px;
        left: 15px;
        font-size: 0.85rem;
        background: #f4fcf0;
        border: 1px solid var(--lime);
        padding: 8px 15px;
        border-radius: 50px;
        z-index: 20;
    }

    .viewer-image-container {
        border-radius: 0;
        background: #111111;
        border: none;
        width: 100%;
    }

    #viewer-placeholder-img {
        border-radius: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.85) !important;
        color: var(--deep-green) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .viewer-nav:active {
        background: var(--lime) !important;
        transform: translateY(-50%) scale(0.95) !important;
    }

    .viewer-counter {
        font-size: 0.95rem;
        margin-top: 10px;
    }

    /* --- HP Fix untuk Berita --- */
    .news-section {
        padding: 80px 20px;
    }

    .header-left h2 {
        font-size: 2rem;
    }

    .news-slider {
        gap: 15px;
        /* Jarak antar kartu lebih rapat di HP */
    }

    .news-card {
        /* KUNCI UX: Lebar 85% membuat kartu berikutnya sedikit "mengintip" 
           sehingga pengguna otomatis tahu ini bisa di-geser (swipe) */
        flex: 0 0 85%;
        min-width: 260px;
    }

    .news-img-wrap {
        height: 190px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 1.15rem;
    }

    /* --- Mobile Fix Sesi Pilar Karakter --- */
    .values-section {
        padding: 80px 20px;
    }

    .values-text-sticky h2 {
        font-size: 2.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Jadi 1 baris ke bawah */
    .mt-card {
        margin-top: 0;
    }

    /* Matikan jarak asimetris di HP */
    .v-card {
        padding: 30px 25px;
    }

    /* --- Mobile Fix 9 Core Values --- */
    .cinta-mega {
        flex-direction: column;
        /* Angka dan teks menyusun ke bawah */
        text-align: center;
        padding: 30px 20px;
    }

    .cinta-mega .c-num {
        font-size: 4rem;
        margin-bottom: -10px;
    }

    /* --- HP: Grid jadi 1 kolom --- */
    .only-mobile.values-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Compact UI Sesi 6 (Mega Banner CTA) --- */
    .cta-section {
        padding: 60px 20px 80px;
    }

    .cta-wrapper {
        padding: 50px 25px;
        border-radius: 30px;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Tombol menyusun atas-bawah di HP */
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        box-sizing: border-box;
    }

    /* --- Mobile Fix Sesi 7 (Footer) --- */
    .mega-footer {
        padding: 60px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Berubah jadi 1 kolom berderet ke bawah */
        gap: 40px;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* --- Mobile Fix Halaman Profil --- */
    .page-hero-content h1 {
        font-size: 2.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-highlight-box {
        padding: 30px 25px;
    }

    .genius-title {
        font-size: 2.5rem;
    }

    .practices-wrapper {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    /* --- Mobile Fix Halaman Visi Misi --- */
    .visi-box {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .visi-statement {
        font-size: 1.4rem;
    }

    .quote-mark {
        font-size: 3rem;
    }

    .misi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .misi-card {
        padding: 30px 25px;
    }

    /* --- Mobile Fix Konsep Pendidikan --- */
    .quran-quote-box {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .quran-text {
        font-size: 1.2rem;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .sra-banner {
        padding: 40px 20px;
    }

    .sra-banner h2 {
        font-size: 1.8rem;
    }

    /* --- Mobile Fix Detail SATF --- */
    .satf-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .satf-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .satf-image-col {
        max-width: 300px;
        margin: 0 auto;
    }

    /* --- Mobile Fix Core Values --- */
    .loves-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillars-wrapper {
        grid-template-columns: 1fr;
    }

    .pillar-box {
        padding: 40px 25px;
    }

    /* --- Mobile Fix Hero Banner --- */
    .page-hero-section {
        padding: 80px 20px 60px;
    }

    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .page-hero-content p {
        font-size: 1rem;
    }

    @media (max-width: 768px) {

        /* --- Mobile Fix Halaman Kontak --- */
        .contact-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .c-info-card {
            padding: 20px 15px;
            /* Padding dikecilkan agar lega di HP */
            gap: 15px;
            flex-direction: row;
            align-items: center;
        }

        .c-icon {
            width: 55px;
            /* Ikon diperkecil */
            height: 55px;
            font-size: 1.4rem;
        }

        .c-details h4 {
            font-size: 1.1rem;
        }

        .c-details p {
            font-size: 0.9rem;
            /* MANTRA SAKTI: Memaksa teks panjang/link turun ke bawah, tidak merusak layar */
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .form-box {
            padding: 30px 20px;
            border-radius: 25px;
        }

        .form-box h3 {
            font-size: 1.6rem;
        }

        .input-row {
            grid-template-columns: 1fr;
        }
    }

    /* --- Mobile Fix Floating WA --- */
    .floating-wa {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

    /* --- Mobile Fix Unit Pendidikan --- */
    .unit-hero-content h1 {
        font-size: 2.8rem;
    }

    .unit-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .floating-stat {
        padding: 15px 20px;
        bottom: 0;
        right: 0;
    }

    /* --- Mobile Fix Detail Unit --- */
    .vm-grid,
    .academic-grid {
        grid-template-columns: 1fr;
    }

    .unit-vm-section {
        margin-top: -30px;
    }
}