/* Shared by default, IBD and IIK. Copy isolation must not drift per theme. */
.home-hero .swiper-slide {
    background-color: var(--card-bg, #fff);
}

.home-hero.swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-slider-content {
    visibility: hidden;
    pointer-events: none;
}

.home-hero .hero-slider-title {
    text-shadow: none;
}

/* The same controls remain visible over pale illustrations in every theme. */
.home-hero.swiper .swiper-pagination {
    left: 50% !important;
    width: max-content !important;
    min-height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    background: rgba(7, 18, 41, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(7, 18, 41, 0.28);
    box-sizing: border-box;
}

.home-hero.swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 18, 41, 0.42);
    box-shadow: 0 1px 4px rgba(7, 18, 41, 0.36);
    box-sizing: border-box;
    opacity: 1;
    transform: none;
    transition: background-color .2s ease, border-color .2s ease;
}

/* Each 24px target stays within its 24px pitch; adjacent hits do not overlap. */
.home-hero.swiper .swiper-pagination-bullet::after {
    inset: -6px;
}

.home-hero.swiper .swiper-pagination-bullet-active {
    background: #1677ff;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.46), 0 2px 6px rgba(7, 18, 41, 0.42);
}

/* These illustrations reserve their left half for live HTML copy. Keep the
   right-hand subject inside narrower desktop/tablet windows when using cover.
   Unknown custom images keep their original crop. */
@media (min-width: 769px) {
    .hero-slider-item[style*="/static/index/picture/banner-20261022/"] {
        background-position: right center;
    }
}

/* On PC the artwork follows the SAME centered content boundary as the copy,
   not the viewport center. These known assets have different empty right margins;
   their measured focal anchors keep the visible subject inside the content edge.
   Keep the raster scale tied to the existing 650px hero, including ultrawide screens. */
@media (min-width: 993px) {
    /* The feature strip overlaps the final 60px of the hero. Keep that
       overlap on the same pale floor as the artwork so the two exposed side
       rails read as one continuous, balanced surface on wide screens. */
    .home-hero + .banner-menu {
        background: linear-gradient(180deg, transparent 0 60px, var(--hero-floor-color, #edf3fc) 60px 100%);
    }

    .home-hero .hero-slider-item:is(
        [style*="/static/index/picture/banner-20261022/"],
        [style*="/storage/images/69c21c77b0ba2.png"],
        [style*="/storage/images/69c215494737e.png"]
    ) {
        --hero-art-width: 1950px;
        --hero-art-anchor: 1872px;
        /* Continue the artwork's pale-blue atmosphere across the viewport.
           The final stop matches the feature strip below the hero. */
        background-image: linear-gradient(180deg, #e4eefc 0%, #e0ecff 48%, #dceafe 76%, var(--hero-floor-color, #edf3fc) 100%) !important;
        background-color: var(--hero-floor-color, #edf3fc);
    }

    .home-hero .hero-slider-item[style*="/sd-wan.webp"] { --hero-art-anchor: 1900px; }
    .home-hero .hero-slider-item[style*="/cdn.webp"] { --hero-art-anchor: 1910px; }
    .home-hero .hero-slider-item[style*="/domain.webp"] { --hero-art-anchor: 1775px; }
    .home-hero .hero-slider-item[style*="/cloud-server.webp"] { --hero-art-anchor: 1755px; }
    .home-hero .hero-slider-item[style*="/domain-forward.webp"] { --hero-art-anchor: 1910px; }
    .home-hero .hero-slider-item[style*="/storage/images/69c21c77b0ba2.png"] {
        --hero-art-width: 2080px;
        --hero-art-anchor: 1535px;
    }
    .home-hero .hero-slider-item[style*="/storage/images/69c215494737e.png"] {
        --hero-art-width: 2080px;
        --hero-art-anchor: 1630px;
    }

    .home-hero .hero-slider-item:is(
        [style*="/static/index/picture/banner-20261022/"],
        [style*="/storage/images/69c21c77b0ba2.png"],
        [style*="/storage/images/69c215494737e.png"]
    )::after {
        content: '';
        position: absolute;
        z-index: 0;
        top: 0;
        left: calc(50% + min(calc(50vw - 20px), calc(var(--max-width, 1400px) / 2)) - var(--hero-art-anchor));
        width: var(--hero-art-width);
        height: 100%;
        background-image: var(--hero-banner-image);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        /* Feather the perimeter, not the subject. The old last-2% fade was
           only 39px wide and read as a vertical stripe on wide screens.
           Eased stops keep the central illustration fully opaque and sharp. */
        --hero-edge-mask: linear-gradient(90deg,
            transparent 0%, #000 6%,
            #000 90%, rgba(0, 0, 0, .98) 92%,
            rgba(0, 0, 0, .9) 94%, rgba(0, 0, 0, .68) 96%,
            rgba(0, 0, 0, .3) 98%, rgba(0, 0, 0, .08) 99%, transparent 100%);
        --hero-floor-mask: linear-gradient(180deg,
            rgba(0, 0, 0, .7) 0%, #000 5%, #000 78%,
            rgba(0, 0, 0, .94) 84%, rgba(0, 0, 0, .65) 91%,
            rgba(0, 0, 0, .22) 97%, transparent 100%);
        -webkit-mask-image: var(--hero-edge-mask), var(--hero-floor-mask);
        mask-image: var(--hero-edge-mask), var(--hero-floor-mask);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
        pointer-events: none;
    }
}

/* Nine slides need a separate control row below the CTA on phone/tablet. */
@media (max-width: 992px) {
    .home-hero .swiper-pagination {
        bottom: 64px !important;
    }
    .home-hero .hero-slider-content {
        padding-bottom: 40px;
    }
}
