/* ================================
   BANNER SLIDER
   ================================ */
.banner-slider {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .slide img {
        object-position: left center;
    }
}

/* Caption đè lên banner */
.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    padding: 0 20px;
}

.slide-caption h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.slide-caption p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Nút điều khiển */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-btn i {
    font-size: 1.2rem;
}

/* Dấu chấm chỉ mục */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold, #e9bc8f);
    width: 24px;
    border-radius: 5px;
}

.dot:hover {
    background: var(--gold, #e9bc8f);
}

/* Responsive cho banner */
@media (max-width: 768px) {
    /* .banner-slider {
        height: 180px;
    } */
    
    .slide-caption h2 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .slide-caption p {
        font-size: 0.75rem;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .slider-btn i {
        font-size: 0.9rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    /* .banner-slider {
        height: 150px;
    } */
    
    .slide-caption h2 {
        font-size: 1rem;
    }
    
    .slide-caption p {
        font-size: 0.65rem;
    }
}