/**
 * Banner Carousel Styles
 * Fully responsive sliding banner with prev/next buttons
 * Supports up to 6 banners, auto-slide, manual slide, touch swipe
 * 1 banner visible on all devices
 */

/* ========================================
   BANNER CAROUSEL SECTION
======================================== */
.banner-carousel-section {
    padding: 0;
    margin: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.banner-carousel-section .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   SWIPER CONTAINER
======================================== */
.bannerCarousel {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bannerCarousel .swiper-wrapper {
    display: flex;
    align-items: center;
}

.bannerCarousel .swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.bannerCarousel .swiper-slide-active {
    opacity: 1;
}

/* ========================================
   BANNER SLIDE CONTENT
======================================== */
.banner-slide-link,
.banner-slide-static {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    cursor: pointer;
}

.banner-slide-static {
    cursor: default;
}

.banner-slide-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Responsive aspect ratio - adapts to all devices */
    overflow: hidden;
    background: #1e293b;
}

.banner-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.banner-slide-link:hover .banner-slide-image {
    transform: scale(1.05);
}

/* ========================================
   BANNER OVERLAY
======================================== */
.banner-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
    padding: 2rem;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.banner-slide-link:hover .banner-slide-overlay {
    background: linear-gradient(to top,
            rgba(10, 71, 163, 0.9) 0%,
            rgba(10, 71, 163, 0.5) 50%,
            transparent 100%);
}

.banner-slide-content {
    position: relative;
    z-index: 2;
}

.banner-slide-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.banner-slide-link:hover .banner-slide-cta {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: translateX(5px);
}

.banner-slide-cta i {
    transition: transform 0.3s ease;
}

.banner-slide-link:hover .banner-slide-cta i {
    transform: translateX(5px);
}

/* ========================================
   NAVIGATION BUTTONS
======================================== */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #0A47A3;
    font-size: 1.25rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none;
    /* Remove default Swiper arrows */
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #0A47A3;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(10, 71, 163, 0.4);
}

.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   PAGINATION
======================================== */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    .banner-carousel-section {
        padding: 0;
        margin: 0;
    }

    .bannerCarousel {
        border-radius: 0;
    }

    /* Image wrapper uses aspect-ratio from base styles */

    .banner-slide-overlay {
        padding: 1.25rem;
    }

    .banner-slide-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .banner-slide-cta {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* Hide navigation buttons on mobile */
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-pagination {
        bottom: 15px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .swiper-pagination-bullet-active {
        width: 24px;
    }
}

/* Tablet Devices (576px to 991px) */
@media (min-width: 576px) and (max-width: 991px) {
    .banner-carousel-section {
        padding: 0;
        margin: 0;
    }

    /* Image wrapper uses aspect-ratio from base styles */

    .banner-slide-overlay {
        padding: 1.5rem;
    }

    .banner-slide-title {
        font-size: 1.5rem;
    }

    .banner-slide-cta {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .swiper-button-prev {
        left: 15px;
    }

    .swiper-button-next {
        right: 15px;
    }
}

/* Desktop Devices (992px and above) */
@media (min-width: 992px) {
    .banner-carousel-section {
        padding: 0;
        margin: 0;
    }

    /* Image wrapper uses aspect-ratio from base styles */

    .banner-slide-title {
        font-size: 2rem;
    }

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        transform: translateY(-50%) scale(1.15);
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .banner-carousel-wrapper {
        max-width: 100%;
        /* Full width for all devices */
    }

    /* Image wrapper uses aspect-ratio from base styles */

    .banner-slide-title {
        font-size: 2.25rem;
    }

    .banner-slide-cta {
        font-size: 1.125rem;
        padding: 0.875rem 1.75rem;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
.swiper-button-prev:focus,
.swiper-button-next:focus {
    outline: 3px solid #0A47A3;
    outline-offset: 3px;
}

.banner-slide-link:focus {
    outline: 3px solid #0A47A3;
    outline-offset: 2px;
}

/* ========================================
   LOADING STATE
======================================== */
.banner-slide-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            #1e293b 0%,
            #334155 50%,
            #1e293b 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.banner-slide-image-wrapper img {
    z-index: 2;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Hide shimmer when image is loaded */
.banner-slide-image-wrapper img[src]~ ::before {
    display: none;
}

/* ========================================
   SMOOTH TRANSITIONS
======================================== */
.bannerCarousel .swiper-slide {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bannerCarousel .swiper-slide-prev,
.bannerCarousel .swiper-slide-next {
    opacity: 0;
}

/* Prevent layout shift - use auto height based on aspect ratio */
.banner-carousel-section {
    min-height: auto;
}