/* public/js/front/components/Slider.css
   Extracted verbatim from the <style scoped> block in resources/js/index/components/Slider.vue.
   Scoping dropped (no SFC scoping in the CDN build); ::v-deep(...) wrappers removed since there's
   no scoping boundary to pierce here — link it from the Blade layout head, e.g.
   <link rel="stylesheet" href="/js/front/components/Slider.css"> */
.home-slider {
    --slider-aspect-ratio: 1328 / 478;
    --slider-object-position: center center;
    contain: none;
}

.single-hero-slider {
    position: relative;
    aspect-ratio: var(--slider-aspect-ratio);
    contain: none;
    border-radius: 30px;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(-50%);
    color: #000;
    max-width: 500px;
    width: fit-content;
    z-index: 2;
}

.slider-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

picture {
    display: block;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.slider-image {
    display: block;
    aspect-ratio: var(--slider-aspect-ratio);
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: var(--slider-object-position);
    border-radius: 30px;
}

/* Reserve exact slider dimensions in SSR so Swiper hydration causes zero layout shift */
.banner_slider {
    aspect-ratio: var(--slider-aspect-ratio);
    border-radius: 30px;
    overflow: hidden;
}

.no-slides-found {
    text-align: center;
    padding: 50px;
    background-color: #f8f8f8;
    border-radius: 30px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #005f85;
    transition: color 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #058bc2;
    transform: scale(1.2);
}

@media (max-width: 991.98px) {
    .home-slider {
        --slider-aspect-ratio: 1024 / 368;
    }

    .single-hero-slider,
    .slider-image,
    .banner_slider {
        border-radius: 20px;
    }

    .slider-content {
        left: 6%;
        right: 6%;
        max-width: min(440px, 88%);
    }
}

@media (max-width: 768px) {
    .slider-text {
        font-size: 16px;
    }

    .slider-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 24px;
    }
}

@media screen and (max-width: 575.98px) {
    .home-slider {
        --slider-aspect-ratio: 640 / 230;
    }

    .banner_slider {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .single-hero-slider,
    .banner_slider,
    .slider-image {
        border-radius: 0 !important;
    }

    .slider-content {
        left: 16px;
        right: 16px;
        max-width: none;
        padding: 16px 0;
    }
}
