/* --- HERO SLIDER STYLE (REVISED FOR SPACING & BUTTON VISIBILITY) --- */

/* 1. Container Utama */
.main-slider {
    width: 100%;
    height: 460px;
    max-height: 460px;
    background: #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.hero-swiper {
    width: 100%;
    height: 100% !important;
}

.hero-slide {
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    /* Ubah ke flex-end agar konten otomatis berada lebih ke bawah */
    align-items: flex-end; 
    padding-bottom: 80px; /* Jarak dari bawah agar tidak tertutup pagination */
}

/* 2. Layout Boxed & Margin Teks */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Tambah padding kiri agar teks lebih masuk ke dalam (indentasi) */
    padding: 0 60px; 
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
}

.hero-content-inner {
    max-width: 650px;
    text-align: left;
    z-index: 2;
    /* Memberikan dorongan agar posisi teks lebih turun */
    margin-top: 50px; 
}

/* 3. Typography */
.hero-title {
    font-size: 37px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: capitalize;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px; /* Jarak ke tombol */
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    opacity: 0;
}

/* State Animasi */
.swiper-slide-active .hero-title {
    animation: slideInLeft 0.8s ease-out forwards;
}
.swiper-slide-active .hero-subtitle {
    animation: fadeIn 1s ease-in 0.3s forwards;
}
.swiper-slide-active .hero-actions {
    animation: fadeIn 1s ease-in 0.5s forwards;
}

/* 4. Buttons (Memastikan Terlihat) */
.hero-actions {
    display: flex;
    gap: 15px;
    opacity: 0;
    position: relative;
    z-index: 5; /* Pastikan di atas layer lain */
}

.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);
}

/* 5. Pagination (Bullet Lonjong) */
.hero-pagination {
    bottom: 30px !important;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.4s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #ffd700;
    width: 30px;
    border-radius: 10px;
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    .main-slider { height: 420px; }
    .hero-slide { padding-bottom: 60px; }
    .hero-content { padding: 0 25px; justify-content: center; }
    .hero-content-inner { text-align: center; margin-top: 20px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
    .btn-hero { width: 100%; max-width: 240px; }
}

/* Animasi Keyframes */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}