/* =============================================================
   pages/home.css  —  Home Page Styles
   Loaded only on the home page via @push('styles')
   ============================================================= */

/* ── Banner wrapper ──────────────────────────────────────────── */
.home-banner-wrap {
    padding: 0 16px 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .home-banner-wrap {
        padding: 0;
    }

    .tf-slideshow .swiper {
        border-radius: 0;
    }
}

.tf-slideshow {
    border-radius: 18px;
    overflow: hidden;
    /* OK now — pagination is INSIDE the swiper */
    width: 100%;
    position: relative;
}

@media (max-width: 767.98px) {
    .tf-slideshow {
        border-radius: 0;
    }
}

/* ── Home banner pagination inside the swiper ────────────────────
   Swiper sets position:absolute on .swiper-pagination automatically.
   We override bottom/z-index and add a shadow for contrast on any bg. */
#home-banner-swiper .home-banner-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}

#home-banner-swiper .home-banner-pagination .swiper-pagination-bullet {
    pointer-events: auto;
    width: 24px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
}

#home-banner-swiper .home-banner-pagination .swiper-pagination-bullet-active {
    background: #fff !important;
    width: 40px !important;
}

/* Slide image container — responsive heights */
.sld_image {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 340px;
}

@media (min-width: 576px) {
    .sld_image {
        height: 380px;
    }
}

@media (min-width: 768px) {
    .sld_image {
        height: 460px;
    }
}

@media (min-width: 992px) {
    .sld_image {
        height: 520px;
    }
}

@media (min-width: 1200px) {
    .sld_image {
        height: 560px;
    }
}

/* Ken Burns smooth zoom */
.sld_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    animation: bannerZoom 8s ease-in-out infinite alternate;
    will-change: transform;
}

.swiper-slide:nth-child(even) .sld_image img {
    animation-name: bannerZoomAlt;
}

@keyframes bannerZoom {
    from {
        transform: scale(1);
        transform-origin: 55% 50%;
    }

    to {
        transform: scale(1.06);
        transform-origin: 45% 50%;
    }
}

@keyframes bannerZoomAlt {
    from {
        transform: scale(1);
        transform-origin: 45% 50%;
    }

    to {
        transform: scale(1.06);
        transform-origin: 55% 50%;
    }
}

/* Pause zoom when slide is inactive */
.swiper-slide:not(.swiper-slide-active) .sld_image img {
    animation-play-state: paused;
}

.slideshow-wrap {
    position: relative;
}

/* Override global styles.css slideshow-wrap heights to match our sld_image heights.
   styles.css declares 550px/450px on mobile but our sld_image is only 340px — the gap
   pushed the pagination dots into empty space below the banner image. */
.tf-slideshow .slideshow-wrap {
    height: 340px !important;
    /* mobile default — matches sld_image */
}

@media (min-width: 576px) {
    .tf-slideshow .slideshow-wrap {
        height: 380px !important;
    }
}

@media (min-width: 768px) {
    .tf-slideshow .slideshow-wrap {
        height: 460px !important;
    }
}

@media (min-width: 992px) {
    .tf-slideshow .slideshow-wrap {
        height: 520px !important;
    }
}

@media (min-width: 1200px) {
    .tf-slideshow .slideshow-wrap {
        height: 560px !important;
    }
}