/* Main Slider Styles */
.main-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Sesuai container utama */
    margin: 20px auto;
    height: 500px;
    /* Tinggi slider */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    z-index: 2;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    /* Gradasi lebih tinggi supaya teks terbaca */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 3;
}

/* Caption Text */
.slider-caption {
    position: absolute;
    bottom: 50px;
    left: 40px;
    right: 40px;
    z-index: 4;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.slider-caption h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.3;
    font-family: 'Open Sans', sans-serif;
}

.slider-caption h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.slider-caption h2 a:hover {
    color: #f39c12;
    /* Warna oranye saat hover */
}

.slider-meta {
    font-size: 14px;
    color: #ddd;
    font-weight: 600;
    display: flex;
    gap: 15px;
}

.slider-badge {
    background: #c0392b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Navigation Arrows */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-nav-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
    border-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .main-slider-container {
        height: 250px;
        margin: 10px auto;
        border-radius: 0;
        /* Full width di mobile */
    }

    .slider-caption {
        bottom: 40px;
        left: 20px;
        right: 20px;
    }

    .slider-caption h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .slider-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .slider-meta {
        font-size: 11px;
    }
}