/* Enhanced Slider Styles with Background Images */
.slider-banner {
    position: relative;
    width: 100%;
    /* ปรับ aspect-ratio ให้รูปภาพเต็มรูปมากขึ้น */
    aspect-ratio: 21/9;
    min-height: 400px;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    margin-bottom: 30px;
}

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

.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, transform 0.8s ease-in-out;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* ปรับการแสดงผลรูปภาพให้เต็มรูปและคมชัด */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: local;
}

/* เพิ่มคลาสสำหรับรูปภาพ slider */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

/* Slide content styling - Simplified for image-only slides */
.slide-content {
    display: none; /* Hidden since we're using image-only slides */
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff69b4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: #ff69b4;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav i {
    font-size: 1.2rem;
    color: #ff69b4;
    transition: color 0.3s ease;
}

.slider-nav:hover i {
    color: white;
}

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

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 105, 180, 0.5);
    backdrop-filter: blur(5px);
}

.dot:hover {
    background: rgba(255, 105, 180, 0.8);
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.dot.active {
    background: #ff69b4;
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
    border-color: #ff1493;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 0.3s;
}

.animate__delay-2s {
    animation-delay: 0.6s;
}

/* Responsive Design - ปรับปรุงให้รองรับทุกขนาดหน้าจอ */

/* สำหรับหน้าจอขนาดใหญ่มาก (Ultra Wide Desktop) */
@media (min-width: 1600px) {
    .slider-banner {
        aspect-ratio: 32/9; /* Ultra wide screen ratio */
        min-height: 600px;
        max-height: 90vh;
    }
}

/* สำหรับหน้าจอขนาดใหญ่ (Large Desktop) */
@media (min-width: 1400px) and (max-width: 1599px) {
    .slider-banner {
        aspect-ratio: 28/9;
        min-height: 550px;
        max-height: 85vh;
    }
}

/* สำหรับหน้าจอขนาดใหญ่ (Desktop) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .slider-banner {
        aspect-ratio: 24/9;
        min-height: 500px;
        max-height: 80vh;
    }
}

/* สำหรับหน้าจอขนาดกลางใหญ่ (Large Laptop) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .slider-banner {
        aspect-ratio: 20/9;
        min-height: 480px;
        max-height: 75vh;
    }
}

/* สำหรับหน้าจอขนาดกลาง (Standard Laptop) */
@media (min-width: 992px) and (max-width: 1023px) {
    .slider-banner {
        aspect-ratio: 18/9;
        min-height: 450px;
        max-height: 70vh;
    }
}

/* สำหรับ Tablet แนวนอน */
@media (min-width: 769px) and (max-width: 991px) {
    .slider-banner {
        aspect-ratio: 16/9;
        min-height: 400px;
        max-height: 65vh;
        border-radius: 12px;
    }
}

/* สำหรับ Tablet แนวตั้ง */
@media (min-width: 601px) and (max-width: 768px) {
    .slider-banner {
        aspect-ratio: 16/10;
        min-height: 350px;
        max-height: 60vh;
        border-radius: 10px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

/* สำหรับมือถือขนาดใหญ่ */
@media (min-width: 481px) and (max-width: 600px) {
    .slider-banner {
        aspect-ratio: 3/2;
        min-height: 300px;
        max-height: 55vh;
        border-radius: 10px;
    }
}

/* สำหรับมือถือขนาดกลาง */
@media (min-width: 376px) and (max-width: 480px) {
    .slider-banner {
        aspect-ratio: 4/3;
        min-height: 280px;
        max-height: 50vh;
        border-radius: 8px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-nav.prev {
        left: 5px;
    }
    
    .slider-nav.next {
        right: 5px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* สำหรับมือถือขนาดเล็ก */
@media (min-width: 321px) and (max-width: 375px) {
    .slider-banner {
        aspect-ratio: 4/3;
        min-height: 250px;
        max-height: 45vh;
        border-radius: 8px;
        margin-bottom: 25px;
    }
}

/* สำหรับหน้าจอขนาดเล็กมาก */
@media (max-width: 320px) {
    .slider-banner {
        aspect-ratio: 1/1;
        min-height: 220px;
        max-height: 40vh;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    .slider-nav {
        width: 30px;
        height: 30px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Loading Animation */
.slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 105, 180, 0.3);
    border-top: 4px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects for Slides */
.slide:hover .slide-text-overlay {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    transition: width 0.1s ease;
    z-index: 10;
    border-radius: 0 0 15px 15px;
}

/* Auto-play indicator */
.slider-banner.auto-playing .slider-progress {
    animation: progressBar 5s linear infinite;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}