.technology-section.is-native-carousel {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 50px) / 6);
    gap: 10px;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.technology-section.is-native-carousel::-webkit-scrollbar {
    display: none;
}

.technology-section.is-native-carousel .technology-section-item {
    box-sizing: border-box;
    min-width: 0;
    padding: 0;
    scroll-snap-align: start;
}

.tech-carousel-btn:disabled,
.tech-carousel-btn[aria-disabled="true"] {
    cursor: default;
    opacity: 0.2;
}

@media (max-width: 1400px) {
    .technology-section.is-native-carousel {
        grid-auto-columns: calc((100% - 40px) / 5);
    }
}

@media (max-width: 1280px) {
    .technology-section.is-native-carousel {
        grid-auto-columns: calc((100% - 30px) / 4);
    }
}

@media (max-width: 1024px) {
    .technology-section.is-native-carousel {
        grid-auto-columns: calc((100% - 20px) / 3);
    }
}

@media (max-width: 767px) {
    .technology-section.is-native-carousel {
        grid-auto-columns: calc((100% - 10px) / 2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .technology-section.is-native-carousel {
        scroll-behavior: auto;
    }
}

/* Keep below-the-fold CMS sections out of initial style/layout work. */
@supports (content-visibility: auto) {
    .cms-home .toneart-product-slider {
        content-visibility: auto;
        contain-intrinsic-size: auto 680px;
    }

    .cms-home .toneart-aii {
        content-visibility: auto;
        contain-intrinsic-size: auto 420px;
    }

    .cms-home .tech-carousel-wrap {
        content-visibility: auto;
        contain-intrinsic-size: auto 320px;
    }

    .cms-home .ai-hero {
        content-visibility: auto;
        contain-intrinsic-size: auto 560px;
    }

    .cms-home .three-images-inner {
        content-visibility: auto;
        contain-intrinsic-size: auto 620px;
    }
}

/*
 * The Hyva hero controls are siblings of .main-banner, not Slick-generated
 * children. The CMS design intentionally retains Slick class names for its
 * visual language, but its old descendant selectors cannot reach the native
 * buttons/dots and leave them in document flow. Keep this correction strictly
 * homepage/hero scoped so no other slider or page is affected.
 */
.cms-home .festive-hero-wrap > .hero-slider-previous,
.cms-home .festive-hero-wrap > .hero-slider-next {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.34);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease,
        border-color 0.25s ease;
}

.cms-home .festive-hero-wrap > .hero-slider-previous {
    left: 50px;
}

.cms-home .festive-hero-wrap > .hero-slider-next {
    right: 50px;
}

.cms-home .festive-hero-wrap > .hero-slider-previous:hover,
.cms-home .festive-hero-wrap > .hero-slider-previous:focus-visible,
.cms-home .festive-hero-wrap > .hero-slider-next:hover,
.cms-home .festive-hero-wrap > .hero-slider-next:focus-visible {
    border-color: rgba(241, 136, 25, 0.96);
    background: rgba(241, 136, 25, 0.86);
    color: #fff;
}

.cms-home .festive-hero-wrap > .hero-slider-previous:focus-visible,
.cms-home .festive-hero-wrap > .hero-slider-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cms-home .festive-hero-wrap > .hero-slider-previous::before,
.cms-home .festive-hero-wrap > .hero-slider-next::before {
    content: none;
}

.cms-home .festive-hero-wrap > .hero-slider-previous svg,
.cms-home .festive-hero-wrap > .hero-slider-next svg {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Override the old first-slide-only fallback after Alpine takes ownership. */
.cms-home .festive-hero-wrap .banner-slide-item[hidden] {
    display: none !important;
}

.cms-home .festive-hero-wrap .banner-slide-item.is-active:not([hidden]) {
    display: block;
}

.cms-home .festive-hero-wrap > [data-role="dots"] {
    position: absolute;
    left: 50px;
    bottom: 40px;
    z-index: 8;
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots {
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots > li {
    position: relative;
    display: block;
    width: 28px;
    height: 24px;
    margin: 0 6px 0 0;
    padding: 0;
    overflow: visible;
    border-radius: 999px;
    background: transparent;
    transition: width 0.25s ease, background 0.25s ease,
        box-shadow 0.25s ease;
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots > li.slick-active {
    width: 54px;
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots button {
    display: block;
    width: 100%;
    min-width: 24px;
    min-height: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots button::before {
    content: '';
    position: absolute;
    top: 9px;
    right: 0;
    left: 0;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots > li.slick-active button::before {
    background: linear-gradient(90deg, #f18819, #ffd4a3);
    box-shadow: 0 0 18px rgba(241, 136, 25, 0.28);
}

.cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .cms-home .festive-hero-wrap > .hero-slider-previous,
    .cms-home .festive-hero-wrap > .hero-slider-next {
        top: auto;
        bottom: 108px;
        width: 38px;
        height: 38px;
        transform: none;
    }

    .cms-home .festive-hero-wrap > .hero-slider-previous {
        right: 86px;
        left: auto;
    }

    .cms-home .festive-hero-wrap > .hero-slider-next {
        right: 40px;
    }
}

@media (max-width: 768px) {
    .cms-home .festive-hero-wrap > .hero-slider-previous,
    .cms-home .festive-hero-wrap > .hero-slider-next {
        top: auto;
        bottom: 80px;
        width: 36px;
        height: 36px;
        transform: none;
    }

    .cms-home .festive-hero-wrap > .hero-slider-previous {
        right: 88px;
        left: auto;
    }

    .cms-home .festive-hero-wrap > .hero-slider-next {
        right: 44px;
    }

    .cms-home .festive-hero-wrap > .hero-slider-previous svg,
    .cms-home .festive-hero-wrap > .hero-slider-next svg {
        width: 20px;
        height: 20px;
    }

    .cms-home .festive-hero-wrap > [data-role="dots"] {
        left: 30px;
        bottom: 30px;
    }

    .cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots > li {
        width: 24px !important;
        height: 24px !important;
        margin-right: 4px;
    }

    .cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots > li.slick-active {
        width: 32px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cms-home .festive-hero-wrap > .hero-slider-previous,
    .cms-home .festive-hero-wrap > .hero-slider-next,
    .cms-home .festive-hero-wrap > [data-role="dots"] > .slick-dots > li {
        transition: none;
    }
}
