/* ==========================================================================
   TABLE OF CONTENTS:
   1. VARIABLES & ROOT SETTINGS
   2. KEYFRAMES & ANIMASI GLOBAL
   3. UTILITY CLASSES & BUTTONS
   4. PRELOADER CINEMATIC
   5. NAVBAR & DROPDOWN MENU
   6. HERO CINEMATIC (VIDEO)
   7. CARDS & KOMPONEN UTAMA (Counter, Pilar, Jenjang)
   8. SECTION PENDAFTARAN SISWA BARU (PSB / PPDB)
   9. SECTION TESTIMONI & BERITA / INSPIRASI
   10. HALAMAN KARIR (CAREER PAGE STYLES)
   11. SCROLL REVEAL (IN-ANIMATION)
   12. FLOATING BUTTONS & FOOTER
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES & ROOT SETTINGS
   ========================================================================== */
:root {
    /* Identitas Warna Resmi Logo Sekolah Tumbuh */
    --tumbuh-lime: #8FC71D;          /* Hijau Muda ("sekolah" & daun) */
    --tumbuh-lime-hover: #7AB014;    /* Hijau Muda Hover */
    --tumbuh-emerald: #008D48;       /* Hijau Tua / Utama ("tumbuh") */
    --tumbuh-emerald-hover: #00733B; /* Hijau Tua Hover */
    --tumbuh-dark: #005028;          /* Hijau Gelap (Footer, Topbar & Mobile Nav) */
    --tumbuh-soft-lime: #F4F9E8;     /* Hijau Soft (Latar Belakang Section/Hover) */
    --tumbuh-accent-amber: #FFB300;  /* Aksesori Kontras / Highlight PPDB */
    --text-dark: #232D21;            /* Warna Teks Primer */
}

/* Pengaturan Smooth Scroll & Offset Navigasi */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px; /* Mencegah judul section tertutup navbar saat di-scroll */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden; /* Mencegah scrollbar horizontal liar */
}

/* Mengunci Scroll Body saat Preloader Berjalan */
body.preloader-active {
    overflow: hidden !important;
}

/* Memastikan Semua Section dengan ID Punya Offset Scroll yang Pas */
section[id] {
    scroll-margin-top: 85px;
}


/* ==========================================================================
   2. KEYFRAMES & ANIMASI GLOBAL
   ========================================================================== */
/* Ring Preloader Meluas */
@keyframes ringExpand {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Efek Denyut & Melayang Logo Preloader */
@keyframes logoFloatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 15px rgba(143, 199, 29, 0.5));
    }
    50% {
        transform: translateY(-6px) scale(1.04);
        filter: drop-shadow(0 0 25px rgba(143, 199, 29, 0.85));
    }
}

/* Shimmer Bar Loading */
@keyframes loaderShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Fade Teks Loading */
@keyframes textFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Fade-In Element */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi Melayang Melengkung (Floating Cards/Badges) */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Denyut Tombol WhatsApp Floating */
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Denyut Indikator Status Live PSB */
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(143, 199, 29, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(143, 199, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(143, 199, 29, 0); }
}


/* ==========================================================================
   3. UTILITY CLASSES & BUTTONS
   ========================================================================== */
/* Background Utilities */
.bg-tumbuh-emerald { background-color: var(--tumbuh-emerald) !important; }
.bg-tumbuh-dark    { background-color: var(--tumbuh-dark) !important; }
.bg-tumbuh-soft    { background-color: var(--tumbuh-soft-lime) !important; }

/* Text Utilities */
.text-tumbuh-lime    { color: var(--tumbuh-lime) !important; }
.text-tumbuh-emerald { color: var(--tumbuh-emerald) !important; }

/* Tombol Hijau Lime */
.btn-lime {
    background-color: var(--tumbuh-lime);
    color: #ffffff;
    font-weight: 700;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-lime:hover {
    background-color: var(--tumbuh-lime-hover);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(143, 199, 29, 0.35);
}

/* Tombol Akses Amber/Kuning PPDB */
.btn-amber {
    background-color: var(--tumbuh-accent-amber);
    color: #000000;
    font-weight: 700;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-amber:hover {
    background-color: #FFA000;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.35);
}

/* Tombol Outline Hijau Emerald */
.btn-outline-emerald {
    border: 2px solid var(--tumbuh-emerald);
    color: var(--tumbuh-emerald);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline-emerald:hover {
    background-color: var(--tumbuh-emerald);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 141, 72, 0.25);
}

/* Aksesibilitas: Ring Fokus Navigasi Keyboard */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--tumbuh-lime) !important;
    outline-offset: 3px;
}


/* ==========================================================================
   4. PRELOADER CINEMATIC
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #005A2D 0%, #003218 80%, #002210 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-preloader-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pulse-ring-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(143, 199, 29, 0.5);
    animation: ringExpand 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring-glow-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 141, 72, 0.4);
    animation: ringExpand 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    animation-delay: 0.6s;
}

.preloader-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(143, 199, 29, 0.6));
    animation: logoFloatPulse 2.5s ease-in-out infinite;
}

.preloader-bar-bg {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--tumbuh-lime), #ffffff, var(--tumbuh-lime), transparent);
    animation: loaderShimmer 1.8s infinite;
}

.preloader-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.825rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    animation: textFade 2s ease-in-out infinite;
}


/* ==========================================================================
   5. NAVBAR & DROPDOWN MENU (DENGAN PERBAIKAN WARNA ACTIVE)
   ========================================================================== */
.navbar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: var(--tumbuh-emerald) !important;
    transition: all 0.3s ease;
    min-height: 70px;
    padding-top: 0;
    padding-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar .container {
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: auto;
}

.navbar-logo-img {
    height: 82px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-link {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: 2px solid var(--tumbuh-lime) !important;
    padding: 6px 10px;
    border-radius: 8px;
}

/* Contanier Pop-up Dropdown Menu Desktop */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem;
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Hover Item Dropdown yang TIDAK Aktif */
.dropdown-item:hover:not(.active) {
    background-color: var(--tumbuh-soft-lime);
    color: var(--tumbuh-emerald);
    font-weight: 600;
    padding-left: 1.25rem;
}

/* Item Dropdown Aktif (HANYA HIJAU EMERALD RESMI SEKOLAH TUMBUH) */
.dropdown-item.active, 
.dropdown-item:active {
    background-color: var(--tumbuh-emerald) !important; /* Tetap Hijau Emerald */
    color: #ffffff !important;
    font-weight: 700;
}

/* Memastikan Warna Ikon pada Item Dropdown Active Selalu Putih */
.dropdown-item.active i,
.dropdown-item:active i {
    color: #ffffff !important;
}

/* Mobile Dropdown Styling (Responsif) */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 62px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navbar-collapse {
        background-color: var(--tumbuh-dark);
        padding: 1.25rem;
        border-radius: 16px;
        margin-top: 12px;
        margin-bottom: 8px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .dropdown-item:hover:not(.active) {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.18) !important;
        padding-left: 1rem;
    }

    /* Tetap Hijau Emerald pada Layar Mobile */
    .dropdown-item.active, 
    .dropdown-item:active {
        background-color: var(--tumbuh-emerald) !important;
        color: #ffffff !important;
    }
}


/* ==========================================================================
   6. HERO CINEMATIC (VIDEO)
   ========================================================================== */
.hero-cinematic-section {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 590px;
    display: flex;
    align-items: center;
    background-color: #000000;
    overflow: hidden;
}

.hero-cinematic-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(105%);
}

.hero-cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 50, 24, 0.35) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.cinematic-controls-bar {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(143, 199, 29, 0.4);
}

.cinematic-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Video Mobile View 16:9 Adaptif */
@media (max-width: 767.98px) {
    .hero-cinematic-section {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .hero-cinematic-video {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        transform: none;
        object-fit: cover;
    }

    .cinematic-controls-bar {
        bottom: 12px !important;
        right: 12px !important;
        padding: 4px 12px !important;
    }
}


/* ==========================================================================
   7. CARDS & KOMPONEN UTAMA (Counter, Pilar, Jenjang)
   ========================================================================== */
/* Cards Angka / Counter */
.counter-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 141, 72, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 4px solid var(--tumbuh-lime);
}
.counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 141, 72, 0.18);
}
.counter-icon {
    width: 65px;
    height: 65px;
    background-color: var(--tumbuh-soft-lime);
    color: var(--tumbuh-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Ciri Khas Section */
.ciri-khas-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.quote-badge {
    animation: float 4s ease-in-out infinite;
}

/* Cards 3 Pilar Pendidikan */
.pilar-card {
    border: none;
    border-radius: 16px;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(143, 199, 29, 0.3);
    transition: all 0.4s ease;
}
.pilar-card:hover {
    transform: translateY(-8px);
    border-color: var(--tumbuh-emerald);
    box-shadow: 0 15px 30px rgba(0, 141, 72, 0.14);
}

/* Cards Sekolah Kami (Jenjang Pendidikan) */
.jenjang-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.jenjang-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}
.jenjang-icon-wrapper {
    height: 130px;
    background: linear-gradient(135deg, var(--tumbuh-soft-lime) 0%, #E2F2C5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem;
    color: var(--tumbuh-emerald);
}


/* ==========================================================================
   8. SECTION PENDAFTARAN SISWA BARU (PSB / PPDB)
   ========================================================================== */
#psb, #ppdb {
    scroll-margin-top: 85px;
}

.psb-banner-wrapper {
    background: linear-gradient(135deg, #003D1E 0%, #006333 50%, #004522 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 60, 30, 0.3);
    border: 1px solid rgba(143, 199, 29, 0.35);
}

.psb-bg-glow-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(143, 199, 29, 0.32) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.psb-bg-glow-2 {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.psb-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(143, 199, 29, 0.5);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
}

.psb-live-pulse {
    width: 9px;
    height: 9px;
    background-color: var(--tumbuh-lime);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(143, 199, 29, 0.8);
    animation: pulseDot 1.5s infinite;
}

/* Filter Pill Buttons Jenjang PSB */
.psb-jenjang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.825rem;
    padding: 7px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.psb-jenjang-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
}

.psb-jenjang-btn.active {
    background-color: var(--tumbuh-lime) !important;
    color: #003D1E !important;
    border-color: var(--tumbuh-lime) !important;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(143, 199, 29, 0.4);
}

.psb-contact-info-pill {
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(143, 199, 29, 0.5);
    border-radius: 12px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.875rem;
}

.psb-perk-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.psb-perk-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
    border-color: var(--tumbuh-lime);
}

.xs-text { font-size: 0.725rem; }

.psb-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    height: 100%;
    min-height: 380px;
}

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

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

.psb-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 40, 20, 0.85) 100%);
}

.psb-badge-float-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 40, 20, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 3;
}

.psb-floating-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 45, 22, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(143, 199, 29, 0.4);
    border-radius: 18px;
    padding: 16px 20px;
    color: #ffffff;
    animation: float 5s ease-in-out infinite;
    z-index: 3;
}

.psb-icon-glow {
    width: 44px;
    height: 44px;
    background: rgba(143, 199, 29, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#psbPreviewImg {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   9. SECTION TESTIMONI & BERITA / INSPIRASI (KONSOLIDASI)
   ========================================================================== */
/* Cards Testimoni Orang Tua */
.testimonial-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid var(--tumbuh-lime);
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--tumbuh-lime);
}

.testimonial-nav-btn {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    color: var(--tumbuh-emerald);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tumbuh-soft-lime);
}

/* Cards Berita / Alumni / Kegiatan (Penggabungan Tanpa Bentrokan) */
.news-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.news-card .news-img-wrapper,
.news-card .news-img-holder {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.badge-alumni {
    background-color: #E3F2FD;
    color: #0D6EFD;
}

.badge-edukator {
    background-color: var(--tumbuh-soft-lime);
    color: var(--tumbuh-emerald);
}


/* ==========================================================================
   10. HALAMAN KARIR (CAREER PAGE STYLES)
   ========================================================================== */

/* 1. Hero Slider Karir */
.career-hero-carousel .carousel-item {
    height: 75vh;
    min-height: 480px;
}

.career-hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.55);
}

.career-hero-carousel .carousel-caption {
    bottom: 25%;
    left: 8%;
    right: 8%;
    text-align: left;
    max-width: 800px;
}

/* Fluid Typography: Teks Otomatis Menyesuaikan Ukuran Layar */
.career-hero-carousel .carousel-caption h1,
.career-hero-carousel .carousel-caption h2,
.career-hero-carousel .carousel-caption .carousel-title {
    font-size: clamp(1.35rem, 3.5vw + 0.8rem, 2.75rem); /* Minimal 1.35rem di HP, maksimal 2.75rem di Desktop */
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.career-hero-carousel .carousel-caption p,
.career-hero-carousel .carousel-caption .lead {
    font-size: clamp(0.825rem, 1.2vw + 0.5rem, 1.1rem); /* Proporsional di seluruh resolusi */
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.career-hero-carousel .carousel-caption .btn {
    padding: clamp(6px, 1.5vw, 10px) clamp(16px, 2vw, 24px);
    font-size: clamp(0.8rem, 1vw + 0.4rem, 0.95rem);
}


/* --------------------------------------------------------------------------
   PENYESUAIAN KHUSUS LAYAR MOBILE (HP & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Menyesuaikan tinggi slider di HP agar tidak terlalu tinggi */
    .career-hero-carousel .carousel-item {
        height: 55vh;
        min-height: 360px;
    }

    /* Menggeser posisi caption agar pas di bagian bawah gambar */
    .career-hero-carousel .carousel-caption {
        bottom: 12%;
        left: 5%;
        right: 5%;
        padding: 0;
    }

    /* Membatasi teks deskripsi max 3 baris di HP agar tidak menutupi seluruh gambar */
    .career-hero-carousel .carousel-caption p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Penyesuaian ekstra untuk HP layar sangat kecil (di bawah 576px) */
    .career-hero-carousel .carousel-item {
        height: 50vh;
        min-height: 320px;
    }

    .career-hero-carousel .carousel-caption {
        bottom: 10%;
    }
}

/* Lowongan Cards Karir */
.vacancy-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.vacancy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.vacancy-card .card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vacancy-card .card-img-top {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.vacancy-card:hover .card-img-top {
    transform: scale(1.05);
}

.vacancy-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tumbuh-emerald);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
}

/* Budaya & Ajakan Berkarir Section */
.career-cta-section {
    background: linear-gradient(135deg, #0f382c 0%, #175443 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.culture-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.culture-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    border-color: var(--tumbuh-lime);
}

.culture-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tumbuh-lime);
    margin-bottom: 1.25rem;
}


/* ==========================================================================
   11. SCROLL REVEAL (IN-ANIMATION INTERSECTION OBSERVER)
   ========================================================================== */
/* State Awal Elemen Tersembunyi sebelum Masuk Layar */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* State Aktif Terpicu saat Scroll (Class .active Ditambahkan JS) */
.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Delay Bertahap (Staggering Effect) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* ==========================================================================
   12. FLOATING BUTTONS & FOOTER
   ========================================================================== */
/* Floating Action Buttons (WhatsApp & Scroll Back To Top) */
.floating-buttons-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-floating {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
    text-decoration: none;
}

.btn-wa-floating {
    background-color: #25D366;
    animation: waPulse 2s infinite;
}

.btn-back-to-top {
    background-color: var(--tumbuh-emerald);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer Section */
footer {
    background-color: var(--tumbuh-dark);
    color: #E0E0E0;
}

footer a {
    color: #C8E6C9;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--tumbuh-lime);
}


/* ==========================================================================
   PERFORMA: GAMBAR RESPONSIF & STABILITAS LAYOUT
   ========================================================================== */
/* Latar hero/carousel: versi kecil di HP, versi besar mulai tablet */
.bg-responsive {
    background-image: var(--bg-sm);
}

@media (min-width: 768px) {
    .bg-responsive {
        background-image: var(--bg-lg);
    }
}

/* Atribut width/height pada <img> dipakai browser untuk memesan ruang (mencegah CLS);
   :where() membuat aturan ini tidak mengalahkan ukuran yang diatur class lain. */
:where(img[width][height]) {
    height: auto;
}

/* Latar section hero video saat video belum dimuat */
.hero-cinematic-section.bg-responsive {
    background-size: cover;
    background-position: center;
}

/* Gutter horizontal .g-5 (3rem) lebih lebar dari padding .container di HP sehingga halaman
   bisa digeser ke samping. Di layar kecil dipakai gutter standar; jarak vertikal tetap. */
@media (max-width: 575.98px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* Empty State & Pagination Lowongan Karir */
.career-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 141, 72, 0.1);
    color: var(--tumbuh-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

#lowongan .pagination-clean .page-link {
    border: none;
    color: var(--tumbuh-emerald);
    font-weight: 600;
    margin: 0 4px;
    border-radius: 50rem !important;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#lowongan .pagination-clean .page-item.active .page-link {
    background-color: var(--tumbuh-emerald);
    color: #ffffff;
}

#lowongan .pagination-clean .page-item.disabled .page-link {
    color: #adb5bd;
    background: transparent;
}

.job-desc p:last-child,
.job-desc ul:last-child,
.job-desc ol:last-child {
    margin-bottom: 0;
}
