/* =========================================
   ROOT VARIABLES & BASE (MADRASAH ASSAKINAH)
   ========================================= */
:root {
    --deep-green: #142f32;
    --lime: #e3ffcc;
    --charcoal: #282930;
    --slate: #777c90;
    --white: #ffffff;
    --font-main: 'Manrope', sans-serif;
}

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;
}

.program-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    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;
}

.program-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.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;
}

.program-card:hover .p-arrow {
    color: var(--lime);
    transform: translate(5px, -5px);
}

.program-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.program-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    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;
}

/* =========================================
   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;
    }
}

@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;
    }
}