/* ============================================
   SLIDER STYLES
   ============================================ */

.slider-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 0;
    padding-top: var(--spacing-sm);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    box-sizing: border-box;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(125, 128, 232, 0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1);
    z-index: 1;
}

/* Fallback gradient - chỉ hiển thị khi không có ảnh */
.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #ffffff;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: #FFB84D;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #FFD4A3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-top: var(--spacing-xs);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    pointer-events: all;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn.prev {
    left: var(--spacing-md);
}

.slider-btn.next {
    right: var(--spacing-md);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-section {
        height: 400px;
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        padding-top: var(--spacing-xs);
        padding-bottom: var(--spacing-sm);
    }
    
    .slider-container {
        border-radius: var(--radius-lg);
    }
    
    .slide-content {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
        max-width: 90%;
    }
    
    .slide-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .slide-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        /* Tăng khu vực touch */
        min-width: 44px;
        min-height: 44px;
    }
    
    .slider-controls {
        padding: 0 var(--spacing-xs);
    }
    
    .slider-indicators {
        bottom: var(--spacing-sm);
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .slider-section {
        height: 300px;
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
        padding-top: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
    }
    
    .slider-container {
        border-radius: var(--radius-md);
        border-width: 1px;
    }
    
    .slide-content {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm);
        max-width: 95%;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
        line-height: 1.3;
    }
    
    .slide-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: var(--spacing-xs);
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .slider-controls {
        padding: 0 var(--spacing-xs);
    }
    
    .slider-indicators {
        bottom: var(--spacing-xs);
        gap: 0.375rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }
}

