.swiper-banners2 {
    /* width: 1799px !important; */
    width: 100%;
    height: auto;
    max-height: 475px;
    position: relative;
    /* overflow: clip + overflow-clip-margin lets each slide's hover shadow bleed
       past the swiper container's edges before being cut. Replaces overflow: hidden
       which would slice the shadows tight to the box. Same pattern used on the
       benefit cards swiper. */
    overflow: clip;
    overflow-clip-margin: 30px;
}

.swiper-banners2 .swiper-slide {
    /* width: 577px !important;
    max-height: 475px; */
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;

    width: 33%;
    height: auto;
    max-width: 577px;
    max-height: 475px;
}

.swiper-banners2 .swiper-slide:last-child {
    margin-left: none !important;
}


@media (max-width: 768px) {
    .swiper-banners2 {
        width: 100% !important;
        height: 265px;
        /* Mobile keeps the same overflow strategy as desktop so hover shadows
           bleed nicely on tablet sizes too (real touch devices skip the hover
           rules anyway via @media (hover: hover) below). */
        overflow: clip;
        overflow-clip-margin: 30px;
    }

    .swiper-banners2 .swiper-slide {
        width: 265px !important;
        height: 265px;
        flex-shrink: 0;
        border-radius: 20px;
        overflow: hidden;
    }
}


/* Hover/press behavior for each banner slide. Mirrors the benefit-card pattern:
   transitions live outside the (hover: hover) gate so they're always primed;
   :hover effects (lift + colored shadow + image zoom) only on real pointer
   devices; :active works on touch too for tap feedback. */
.swiper-banners2 .swiper-slide {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.swiper-banners2 .swiper-slide img {
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .swiper-banners2 .swiper-slide:hover {
        transform: translateY(-4px);
        box-shadow: 0 7px 20px 0 var(--card-hover-shadow-color, rgba(0, 0, 0, 0.12));
    }

    .swiper-banners2 .swiper-slide:hover img {
        transform: scale(1.05);
    }
}

.swiper-banners2 .swiper-slide:active {
    transform: translateY(0) scale(0.98);
}
