/* --- HERO SLIDER STYLE (MODERN SPLIT TWO COLUMNS DESIGN) --- */

.main-slider {
    width: 100% !important;
    height: 480px !important;
    max-height: 480px !important;
    background: #02929a;
    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: center !important; /* Menjaga konten presisi di tengah vertikal */
    box-sizing: border-box !important;
    position: relative;
}

/* 2. Flexbox Grid Layout Split */
.hero-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px;
    width: 100%;
}

/* Sisi Kiri: Konten Teks */
.hero-content-left {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 5;
}

/* Sisi Kanan: Gambar Cutout Opsional */
.hero-content-right {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.hero-right-img {
    max-width: 100%;
    height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    display: block;
}

/* 3. Typography Styles */
.hero-sub-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 14px 0;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 15px;
    margin-bottom: 25px; 
    line-height: 1.5;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* 4. Action Buttons (Pill-shaped) */
.hero-actions {
    display: flex !important;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.btn-hero {
    padding: 12px 32px;
    border-radius: 8px; /* Mengikuti struktur kotak tumpul modern di tema */
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- FIX PILL STYLE SWIPER PAGINATION BULLET --- */
.hero-pagination {
    bottom: 20px !important;
    z-index: 20 !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: #ffffff !important;
    opacity: 0.4 !important;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #ffd700 !important;
    opacity: 1 !important;
    width: 22px !important;
    border-radius: 10px !important;
}

/* --- TRIGGER ANIMASI LAYER SLIDER --- */
.hero-sub-title, .hero-title, .hero-subtitle, .hero-actions, .hero-content-right {
    visibility: visible;
}

.swiper-slide:not(.swiper-slide-active) .hero-sub-title,
.swiper-slide:not(.swiper-slide-active) .hero-title,
.swiper-slide:not(.swiper-slide-active) .hero-subtitle,
.swiper-slide:not(.swiper-slide-active) .hero-actions,
.swiper-slide:not(.swiper-slide-active) .hero-content-right {
    opacity: 0;
    transform: translateY(20px);
}

.swiper-slide-active .hero-sub-title { animation: sliderFadeUpIn 0.5s ease-out forwards 0.2s; }
.swiper-slide-active .hero-title { animation: sliderFadeUpIn 0.5s ease-out forwards 0.4s; }
.swiper-slide-active .hero-subtitle { animation: sliderFadeUpIn 0.5s ease-out forwards 0.6s; }
.swiper-slide-active .hero-actions { animation: sliderFadeUpIn 0.5s ease-out forwards 0.8s; }
.swiper-slide-active .hero-content-right { animation: sliderFadeUpIn 0.6s ease-out forwards 0.5s; }

@keyframes sliderFadeUpIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PERBAIKAN RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
    .hero-content-left { flex: 0 0 65%; max-width: 65%; }
    .hero-content-right { flex: 0 0 30%; max-width: 30%; }
    .hero-right-img { height: 280px; }
    .hero-title { font-size: 32px; }
}

@media (max-width: 768px) {
    .main-slider { height: 420px !important; }
    .hero-slide { align-items: flex-end !important; padding-bottom: 50px !important; }
    .hero-content { flex-direction: column-reverse !important; text-align: center !important; padding: 0 25px !important; gap: 15px; }
    .hero-content-left { flex: 0 0 100% !important; max-width: 100% !important; align-items: center !important; }
    .hero-content-right { flex: 0 0 100% !important; max-width: 100% !important; margin-bottom: 0px; }
    .hero-right-img { height: 160px; }
    .hero-title { font-size: 24px; text-align: center; }
    .hero-subtitle { font-size: 14px; text-align: center; margin-bottom: 15px; }
    
    /* Matikan animasi berat di handphone agar performa lancar */
    .hero-sub-title, .hero-title, .hero-subtitle, .hero-actions, .hero-content-right { opacity: 1 !important; transform: none !important; animation: none !important; }
}