/* =========================================================
   HERO SLIDER AKSARA SUNDA - SMKN 2 PURWAKARTA
   ========================================================= */

.smkn2-hero-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height, 80px));
    min-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b3b24;
}

.smkn2-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.smkn2-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.8s ease-in-out, transform 6s ease-out;
}

.smkn2-bg-item.is-shown {
    opacity: 1;
    transform: scale(1);
}

.smkn2-bg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.smkn2-hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 59, 36, 0.62); /* Sedikit lebih pekat agar aksara Sunda sangat tajam */
    z-index: 2;
    pointer-events: none;
}

.smkn2-hero-foreground {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Wadah Teks Tengah (Desktop) */
#smkn2HeroText > div {
    position: relative;
    z-index: 5;
    max-width: 66% !important;
    margin: 0 auto;
    padding: 2rem 1rem !important;
}

/* --- TIPOGRAFI AKSARA SUNDA (JUDUL UTAMA) --- */
.hero-main-title {
    font-family: 'Noto Sans Sundanese', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.45rem, 2.7vw, 2.6rem) !important;
    line-height: 1.65 !important; /* Line-height ekstra agar sandangan aksara Sunda tidak terpotong */
    color: #ffffff !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- TIPOGRAFI TERJEMAHAN (DESKRIPSI) --- */
.hero-tagline-sub {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(0.95rem, 1.35vw, 1.25rem) !important;
    line-height: 1.6 !important;
    color: #facc15 !important; /* Warna kuning emas elegan serasi dengan aksara putih */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.gapura-ornamen {
    z-index: 2;
    pointer-events: none;
}

/* --- ANIMASI TEKS LEMBUT & BERTAHAP --- */
.smkn2-text-animate {
    opacity: 0 !important;
    filter: blur(10px);
    transform: translateY(35px) scale(0.96) !important;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-delay: 0s !important;
    will-change: opacity, transform, filter;
}

.smkn2-hero-foreground.text-active .smkn2-text-animate {
    opacity: 1 !important;
    filter: blur(0);
    transform: translateY(0) scale(1) !important;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Aksara Sunda muncul lebih dulu, disusul terjemahannya 0.35 detik kemudian */
.smkn2-hero-foreground.text-active .smkn2-delay-1 { transition-delay: 0.2s !important; }
.smkn2-hero-foreground.text-active .smkn2-delay-2 { transition-delay: 0.55s !important; }

/* --- RESPONSIVE TABLET & MOBILE --- */
@media (max-width: 992px) {
    #smkn2HeroText > div {
        max-width: 72% !important;
    }
}

@media (max-width: 768px) {
    .smkn2-hero-wrapper {
        min-height: 460px;
    }

    .gapura-ornamen {
        width: 85px !important;
        height: auto !important;
        opacity: 0.75;
    }

    .gapura-kiri-home {
        left: -12px !important;
    }

    .gapura-kanan-home {
        right: -12px !important;
    }

    #smkn2HeroText > div {
        max-width: 78% !important;
        padding: 1.5rem 0.5rem !important;
    }

    .hero-main-title {
        font-size: 1.3rem !important;
        line-height: 1.6 !important;
    }

    .hero-tagline-sub {
        font-size: 0.85rem !important;
        letter-spacing: 0.05em;
        max-width: 95%;
    }
}

@media (max-width: 400px) {
    .gapura-ornamen {
        width: 80px !important;
    }

    #smkn2HeroText > div {
        max-width: 80% !important;
        padding: 1rem 0.25rem !important;
    }

    .hero-main-title {
        font-size: 1.15rem !important;
    }

    .hero-tagline-sub {
        font-size: 0.78rem !important;
    }
}
