/* ==========================================================================
   STYLING HERO BANNER SLIDER - SEEDS STARS MONTESSORI
   ========================================================================== */

/* Container Utama Slider */
.hero-carousel-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #1e293b;
}

/* Penjaga Ukuran Tinggi Banner */
.banner-slide-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px; /* Tinggi ideal desktop */
    position: relative;
    transition: transform 7s ease; /* Efek zoom-in bergerak perlahan (Ken Burns) */
}

/* Animasi Zoom Tipis Saat Slide Aktif */
.carousel-item.active .banner-slide-item {
    transform: scale(1.05);
}

/* Lapisan Gelap Pembias Cahaya (Overlay) */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.65) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        rgba(15, 23, 42, 0.6) 100%
    );
    z-index: 1;
}

/* Menjaga Konten Teks Berada di Atas Lapisan Overlay */
.banner-content-container {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* --- Teks & Badge Banner Semi-Transparan (Glassmorphism) --- */
.banner-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

.banner-desc,
.banner-desc p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.banner-badge {
    background-color: rgba(249, 115, 22, 0.8) !important;
    backdrop-filter: blur(4px);
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* --- ANIMASI TEKS BANNER (FADE IN UP) --- */
.banner-badge,
.banner-title,
.banner-desc,
.banner-btn {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .banner-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.carousel-item.active .banner-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.carousel-item.active .banner-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
.carousel-item.active .banner-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* ==========================================================================
   TOMBOL BANNER (EFEK KACA / SEMI TRANSPARAN)
   ========================================================================== */

/* 1. Tombol Utama (Orange Semi-Transparan) */
.btn-banner-orange {
    background-color: rgba(249, 115, 22, 0.75) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff !important;
    padding: 0.8rem 2.25rem !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-banner-orange:hover {
    background-color: rgba(234, 88, 12, 0.95) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3) !important;
}

/* 2. Tombol Lihat Program (Putih Transparan) */
.btn-banner-white {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    padding: 0.8rem 2.25rem !important;
    font-size: 1rem !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-banner-white:hover {
    background-color: #ffffff !important;
    color: #f97316 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   NAVIGASI (PANAH KIRI KANAN) & INDIKATOR BAWAH (3 BULATAN)
   ========================================================================== */
.hero-carousel-wrapper .carousel-control-prev,
.hero-carousel-wrapper .carousel-control-next {
    width: 5%;
    z-index: 15;
}

.carousel-nav-btn {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
}

.hero-carousel-wrapper .carousel-control-prev:hover .carousel-nav-btn,
.hero-carousel-wrapper .carousel-control-next:hover .carousel-nav-btn {
    background-color: #f97316;
    color: #ffffff;
    transform: scale(1.1);
}

/* Indikator Tengah Bawah (Dots) */
.banner-custom-indicators {
    margin-bottom: 2.5rem;
    gap: 8px;
    z-index: 15;
}

.banner-custom-indicators button {
    width: 10px !important;
    height: 10px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.banner-custom-indicators button.active {
    width: 28px !important;
    background-color: #f97316 !important;
    border-radius: 20px !important;
}

/* ==========================================================================
   OPTIMASI RESPONSIF LAYAR
   ========================================================================== */
@media (max-width: 991.98px) {
    .banner-slide-item {
        height: 500px;
    }
}

/* ==========================================================================
   OPTIMASI RESPONSIF MOBILE (HP) - TOMBOL MINI & SEJAJAR
   ========================================================================== */
@media (max-width: 575.98px) {
    .banner-slide-item {
        height: 480px; /* Pas untuk layar HP modern */
    }

    .banner-title {
        font-size: 1.35rem !important; /* Judul lebih kecil lagi */
        margin-bottom: 0.4rem !important;
    }

    .banner-desc,
    .banner-desc p {
        font-size: 0.8rem !important; /* Deskripsi sangat ringkas */
        margin-bottom: 1rem !important;
        line-height: 1.4;
    }

    /* Mengunci tombol agar tetap ke samping (sejajar) */
    .banner-btn {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important; /* Jarak antar tombol dipersempit */
        width: 100%;
    }

    /* Ukuran Tombol Mini untuk HP */
    .btn-banner-orange,
    .btn-banner-white {
        flex: 1; /* Lebar dibagi 2 rata */
        padding: 0.4rem 0.5rem !important; /* Padding atas bawah sangat tipis */
        font-size: 0.7rem !important; /* Ukuran huruf sangat kecil */
        justify-content: center;
        white-space: nowrap; /* Teks tidak boleh turun baris */
    }

    /* Mengecilkan icon panah dan buku di dalam tombol */
    .btn-banner-orange i,
    .btn-banner-white i {
        font-size: 0.7rem !important;
        margin-left: 3px !important;
    }

    /* Indikator 3 Bulatan di bawah layar sedikit dinaikkan di HP */
    .banner-custom-indicators {
        margin-bottom: 1.5rem !important;
    }
}
