/* --- HERO SLIDER STYLE (OPTIMIZED FOR ELEMENTOR & REFRESH FIX) --- */

/* 1. Container Utama - Gunakan !important untuk mengunci tinggi dari gangguan Elementor */
.main-slider {
    width: 100% !important;
    height: 460px !important;
    max-height: 460px !important;
    background: #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.hero-swiper {
    width: 100% !important;
    height: 100% !important;
}

.hero-slide {
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: flex-end !important; /* Mengunci konten di bawah */
    padding-bottom: 80px !important; /* Jarak aman di atas pagination */
    box-sizing: border-box !important;
}

/* 2. Layout Boxed */
.hero-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 60px !important; 
    display: flex !important;
    justify-content: flex-start !important;
    pointer-events: none; /* Mencegah container menghalangi klik slider */
}

.hero-content-inner {
    max-width: 650px;
    text-align: left;
    z-index: 5;
    margin-top: 0 !important; 
    pointer-events: auto; /* Mengembalikan fungsi klik pada tombol */
}

/* 3. Typography - Menggunakan Opacity 1 sebagai fallback agar tidak hilang saat refresh */
.hero-title {
    font-size: 37px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
    /* Fallback jika JS lambat */
    opacity: 1; 
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px; 
    line-height: 1.4;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    opacity: 1;
}

/* 4. Buttons */
.hero-actions {
    display: flex !important;
    gap: 15px;
    position: relative;
    z-index: 10;
    opacity: 1;
}

.btn-hero {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.btn-hero.primary { background: #ffd700; color: #001D3D !important; }
.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* --- FIX PAGINATION BULLET (SIZE & COLOR) --- */

.hero-pagination {
    bottom: 25px !important; /* Jarak dari bawah slider */
    z-index: 20 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Jarak antar bullet */
}

/* Style Bullet Biasa (Tidak Aktif) */
.hero-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #ffffff !important; /* Warna putih */
    opacity: 0.5 !important; /* Transparan */
    border-radius: 50% !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    border: none !important;
}

/* Style Bullet Aktif (Sedang Dipilih) */
.hero-pagination .swiper-pagination-bullet-active {
    background: #ffd700 !important; /* Warna kuning emas */
    opacity: 1 !important;
    width: 25px !important; /* Ukuran lonjong agar terlihat modern */
    border-radius: 10px !important;
}

/* Efek Hover (Opsional) */
.hero-pagination .swiper-pagination-bullet:hover {
    opacity: 0.8 !important;
}

/* --- PERBAIKAN ANIMASI (Mencegah Teks Hilang) --- */
/* Kita gunakan class khusus swiper untuk trigger animasi agar lebih stabil */
.hero-title, .hero-subtitle, .hero-actions {
    visibility: visible; /* Memastikan teks tidak benar-benar tersembunyi */
}

.swiper-slide:not(.swiper-slide-active) .hero-title,
.swiper-slide:not(.swiper-slide-active) .hero-subtitle,
.swiper-slide:not(.swiper-slide-active) .hero-actions {
    opacity: 0;
    transform: translateY(20px);
}

.swiper-slide-active .hero-title {
    animation: slideUpIn 0.6s ease-out forwards 0.2s;
}
.swiper-slide-active .hero-subtitle {
    animation: slideUpIn 0.6s ease-out forwards 0.4s;
}
.swiper-slide-active .hero-actions {
    animation: slideUpIn 0.6s ease-out forwards 0.6s;
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PERBAIKAN MOBILE --- */
@media (max-width: 768px) {
    .main-slider { height: 400px !important; }
    .hero-slide { 
        justify-content: center !important; 
        padding-bottom: 60px !important;
        text-align: center !important;
    }
    .hero-content { 
        padding: 0 20px !important; 
        justify-content: center !important; 
    }
    .hero-content-inner { 
        align-items: center !important; 
        display: flex !important;
        flex-direction: column !important;
    }
    .hero-title { font-size: 26px; opacity: 1 !important; transform: none !important; animation: none; }
    .hero-subtitle { font-size: 1rem; opacity: 1 !important; transform: none !important; animation: none; }
    .hero-actions { opacity: 1 !important; transform: none !important; animation: none; }
}