/* Shared banner carousel. The artwork stays clear; navigation sits below it. */
.home-ad-section {
    --home-ad-radius: 18px;
    width: 100%;
    background: transparent;
}

.home-ad-shell {
    width: 100%;
    min-width: 0;
    margin: 0;
}

#wunnaBannerMount:empty { display: none; }

.wunna-banner-mount--inner {
    width: calc(100% - 60px);
    max-width: none;
    margin: 16px auto 24px;
}

.wunna-banner-mount--inner .home-ad-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wunna-banner-mount--inner .home-ad-swiper {
    --home-ad-radius: 18px;
    background: transparent;
    box-shadow: none;
}

.home-ad-swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 1168 / 384;
    overflow: hidden;
    border-radius: var(--home-ad-radius);
    background: #eef3ef;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
    isolation: isolate;
}

.home-ad-swiper:not(.swiper-initialized) .home-ad-slide:not(:first-child) { display: none; }
.home-ad-swiper .swiper-wrapper, .home-ad-slide { height: 100%; }

.home-ad-link, .home-ad-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-ad-link {
    position: relative;
    background: transparent;
    text-decoration: none;
    outline: none;
}

.home-ad-link:focus-visible {
    z-index: 2;
    outline: 4px solid #f3840e;
    outline-offset: -4px;
}

.home-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

@media (hover: hover) {
    .home-ad-link:hover .home-ad-image { transform: scale(1.006); }
}

.home-ad-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 48px;
    padding: 7px 6px 0;
}

.home-ad-controls[hidden], .home-ad-controls [hidden] { display: none !important; }

.home-ad-controls .swiper-pagination {
    position: static;
    left: auto;
    bottom: auto;
    z-index: auto;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: auto;
    min-height: 28px;
    padding: 4px 9px;
    transform: none;
    border: 1px solid #e6ebe8;
    border-radius: 999px;
    background: #f7faf8;
    box-shadow: none;
}

.home-ad-controls .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px !important;
    border: 1px solid #53645a;
    background: transparent;
    opacity: 1;
    transition: width .25s ease, background-color .25s ease;
}

.home-ad-controls .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    border-color: #f3840e;
    background: #f3840e;
}

.home-ad-controls .home-ad-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 1px solid #dce6df;
    border-radius: 50%;
    color: #233b2b;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease, visibility .2s ease;
}

.home-ad-controls .home-ad-nav::after {
    font-size: 14px;
    font-weight: 900;
}

.home-ad-controls .home-ad-nav:hover,
.home-ad-controls .home-ad-nav:focus-visible {
    color: #fff;
    border-color: #f3840e;
    background: #f3840e;
}

.home-ad-controls .home-ad-nav:focus-visible,
.home-ad-controls .swiper-pagination-bullet:focus-visible {
    outline: 3px solid #f3840e;
    outline-offset: 2px;
}

.home-ad-section:focus-within .home-ad-nav,
.home-ad-section.is-interacting .home-ad-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (hover: hover) {
    .home-ad-section:hover .home-ad-nav {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .home-ad-section { --home-ad-radius: 12px; }
    .wunna-banner-mount--inner {
        width: calc(100% - 24px);
        margin: 12px auto 18px;
    }
    .wunna-banner-mount--inner .home-ad-swiper { --home-ad-radius: 12px; }
    .home-ad-swiper { box-shadow: 0 7px 20px rgba(15, 23, 42, .09); }
    .home-ad-controls { gap: 10px; min-height: 43px; padding-top: 5px; }
    .home-ad-controls .home-ad-nav { flex-basis: 32px; width: 32px; height: 32px; }
    .home-ad-controls .home-ad-nav::after { font-size: 12px; }
    .home-ad-controls .swiper-pagination { min-height: 25px; padding: 3px 7px; }
    .home-ad-controls .swiper-pagination-bullet { width: 6px; height: 6px; }
    .home-ad-controls .swiper-pagination-bullet-active { width: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-ad-image, .home-ad-controls .home-ad-nav, .home-ad-controls .swiper-pagination-bullet { transition: none; }
}
