/* ==========================================================================
   Premium Hero Slider Styles (Responsive & Dynamic)
   ========================================================================== */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #020617;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Media Handling (Image / Video) */
.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay Gelap untuk Pembacaan Teks yang Jelas */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.4) 60%, rgba(2, 6, 23, 0.1) 100%);
    z-index: 2;
}

/* Kandungan Teks Info Slide */
.slide-content {
    position: relative;
    z-index: 3;
    max-width: 550px;
    padding: 0 60px;
    color: #fff;
}

.slide-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.slide-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 300;
}

/* Butang Aksi Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: var(--accent-gold);
    color: #020617;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-glow);
}

.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }

/* Slider Dots / Navigasi Bawah */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 60px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-gold);
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   Responsive Breakpoints untuk Mobile & Tablet
   ========================================================================== */
@media (max-width: 768px) {
    .slider-container { height: 320px; margin-bottom: 30px; border-radius: 16px; }
    .slide-content { padding: 0 40px; max-width: 80%; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.85rem; margin-bottom: 16px; }
    .slider-dots { left: 40px; bottom: 15px; }
    .slider-arrow { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .slider-container { height: 260px; }
    .slide-content { max-width: 100%; padding: 0 24px; }
    .slide-content h2 { font-size: 1.3rem; }
    .slide-content p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
    .slider-dots { left: 24px; }
    .slider-arrow { display: none; } /* Sembunyikan arrow pada mobile, guna fungsi swipe/dot */
}
