/**
 * BDE News Carousel Styles - Full Image Overlay Version
 * Modern, minimal design with full-width image and text overlay
 * Optimized for Thai government agency (BDE)
 *
 * @package BDE_Child_Theme
 * @since 1.0.0
 */

/* =================================================================
   Base Carousel Wrapper
   ================================================================= */

.bde-carousel-wrapper-m7k491 {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Thai', sans-serif;
}

/* =================================================================
   Loading State
   ================================================================= */

.carousel-loading-m7k491 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    color: #4A5568;
}

.loading-spinner-m7k491 {
    width: 48px;
    height: 48px;
    border: 4px solid #E2E8F0;
    border-top-color: #2B6CB0;
    border-radius: 50%;
    animation: spin-m7k491 0.8s linear infinite;
}

@keyframes spin-m7k491 {
    to {
        transform: rotate(360deg);
    }
}

.carousel-loading-m7k491 p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #718096;
}

/* =================================================================
   Error State
   ================================================================= */

.carousel-error-m7k491 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
    background: #FFF5F5;
    border: 2px solid #FC8181;
    border-radius: 12px;
    color: #C53030;
    text-align: center;
}

/* =================================================================
   Carousel Container
   ================================================================= */

.carousel-container-m7k491 {
    position: relative;
    background: #1A202C;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* =================================================================
   Slides
   ================================================================= */

.carousel-slides-m7k491 {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.carousel-slide-m7k491 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide-m7k491.active-m7k491 {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* =================================================================
   Slide Content - Full Image with Overlay
   ================================================================= */

.slide-content-m7k491 {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* Full Image Background */
.slide-image-wrapper-m7k491 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image-m7k491 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease;
}

.carousel-slide-m7k491.active-m7k491 .slide-image-m7k491 {
    transform: scale(1.05);
}

/* Enhanced Gradient Overlay for Better Text Readability */
.slide-overlay-m7k491 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

/* Content Overlay on Image */
.slide-info-m7k491 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 3rem 3rem 6.5rem;
    z-index: 2;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            transparent 100%);
}

/* Date Badge */
.slide-date-m7k491 {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Title - Large and Bold on Image */
.slide-title-m7k491 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-link-m7k491 {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.slide-link-m7k491:hover,
.slide-link-m7k491:focus {
    color: #90CDF4;
    transform: translateX(8px);
}

.slide-link-m7k491:focus-visible {
    outline: 3px solid #90CDF4;
    outline-offset: 6px;
    border-radius: 4px;
}

/* Excerpt - Light Text on Dark Background */
.slide-excerpt-m7k491 {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    font-weight: 400;
}

/* Read More Button */
.slide-readmore-m7k491 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1A202C;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.slide-readmore-m7k491:hover {
    background: #FFFFFF;
    border-color: #90CDF4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slide-readmore-m7k491:focus-visible {
    outline: 3px solid #90CDF4;
    outline-offset: 4px;
}

.slide-readmore-m7k491 svg {
    transition: transform 0.3s ease;
}

.slide-readmore-m7k491:hover svg {
    transform: translateX(6px);
}

/* =================================================================
   Navigation Controls
   ================================================================= */

.carousel-controls-m7k491 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn-prev-m7k491,
.carousel-btn-next-m7k491 {
    pointer-events: all;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn-prev-m7k491:hover,
.carousel-btn-next-m7k491:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1A202C;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.carousel-btn-prev-m7k491:focus-visible,
.carousel-btn-next-m7k491:focus-visible {
    outline: 3px solid #90CDF4;
    outline-offset: 4px;
}

.carousel-btn-prev-m7k491:active,
.carousel-btn-next-m7k491:active {
    transform: scale(0.95);
}

/* Screen reader only text */
.sr-only-m7k491 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =================================================================
   Pagination Dots - Overlay Style
   ================================================================= */

.carousel-pagination-m7k491 {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 10;
}

.carousel-dot-m7k491 {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot-m7k491:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.carousel-dot-m7k491.active-m7k491 {
    width: 32px;
    background: #FFFFFF;
    border-radius: 8px;
}

.carousel-dot-m7k491:focus-visible {
    outline: 2px solid #90CDF4;
    outline-offset: 4px;
}

/* =================================================================
   Counter Display - Overlay Style
   ================================================================= */

.carousel-counter-m7k491 {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.separator-m7k491 {
    margin: 0 0.375rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =================================================================
   Responsive Design
   ================================================================= */

@media (max-width: 1024px) {
    .carousel-slides-m7k491 {
        min-height: 350px;
    }

    .slide-content-m7k491 {
        min-height: 350px;
    }

    .slide-title-m7k491 {
        font-size: 2rem;
    }

    .slide-excerpt-m7k491 {
        font-size: 1rem;
    }

    .slide-info-m7k491 {
        padding: 2.5rem 2rem 2.5rem 5.5rem;
    }
}

@media (max-width: 768px) {
    .bde-carousel-wrapper-m7k491 {
        margin: 2rem auto;
        padding: 0 0.5rem;
    }

    .carousel-slides-m7k491 {
        min-height: 315px;
    }

    .slide-content-m7k491 {
        min-height: 315px;
    }

    .slide-info-m7k491 {
        padding: 2rem 1.5rem 2rem 4.5rem;
    }

    .slide-title-m7k491 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .slide-excerpt-m7k491 {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .slide-readmore-m7k491 {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }

    .carousel-btn-prev-m7k491,
    .carousel-btn-next-m7k491 {
        width: 48px;
        height: 48px;
    }

    .carousel-controls-m7k491 {
        padding: 0 1rem;
    }

    .carousel-pagination-m7k491 {
        bottom: 1.5rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .carousel-slides-m7k491 {
        min-height: 280px;
    }

    .slide-content-m7k491 {
        min-height: 280px;
    }

    .slide-info-m7k491 {
        padding: 1.5rem 1.25rem 1.5rem 4rem;
    }

    .slide-date-m7k491 {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 1rem;
    }

    .slide-title-m7k491 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .slide-excerpt-m7k491 {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .slide-readmore-m7k491 {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .carousel-btn-prev-m7k491,
    .carousel-btn-next-m7k491 {
        width: 44px;
        height: 44px;
    }

    .carousel-controls-m7k491 {
        padding: 0 0.75rem;
    }

    .carousel-pagination-m7k491 {
        bottom: 1.25rem;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .carousel-counter-m7k491 {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* =================================================================
   Print Styles
   ================================================================= */

@media print {

    .carousel-controls-m7k491,
    .carousel-pagination-m7k491,
    .carousel-counter-m7k491 {
        display: none;
    }

    .carousel-slide-m7k491 {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-inside: avoid;
    }

    .slide-info-m7k491 {
        position: relative;
        background: #FFFFFF;
        color: #000000;
    }

    .slide-title-m7k491,
    .slide-excerpt-m7k491,
    .slide-date-m7k491 {
        color: #000000;
        text-shadow: none;
    }
}

/* =================================================================
   Reduced Motion Support (Accessibility)
   ================================================================= */

@media (prefers-reduced-motion: reduce) {

    .carousel-slide-m7k491,
    .slide-image-m7k491,
    .carousel-btn-prev-m7k491,
    .carousel-btn-next-m7k491,
    .carousel-dot-m7k491,
    .slide-readmore-m7k491,
    .slide-link-m7k491 {
        transition: none;
    }

    .loading-spinner-m7k491 {
        animation: none;
        border-top-color: transparent;
    }

    .carousel-slide-m7k491.active-m7k491 .slide-image-m7k491 {
        transform: none;
    }
}

/* =================================================================
   High Contrast Mode Support (Accessibility)
   ================================================================= */

@media (prefers-contrast: high) {
    .carousel-container-m7k491 {
        border: 3px solid currentColor;
    }

    .carousel-btn-prev-m7k491,
    .carousel-btn-next-m7k491 {
        border: 3px solid currentColor;
        background: #FFFFFF;
        color: #000000;
    }

    .slide-readmore-m7k491 {
        border: 3px solid currentColor;
    }

    .slide-overlay-m7k491 {
        background: rgba(0, 0, 0, 0.85);
    }
}

/* =================================================================
   Dark Mode Support
   ================================================================= */

@media (prefers-color-scheme: dark) {
    /* Already optimized for dark backgrounds with light text */
}
