/* Existing Hero Banner Styles (Mostly Unchanged) */
.nxt-container-block-editor .hero-banner {
    width: 100%;
    max-width: 100% !important;
    position: relative;
    min-height: 800px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.hero-banner {
    padding-top: 80px;
    background-color: var(--color-neutral-1);
    background-image: var(--image-desktop);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-banner-content,
.hero-banner-title {
    color: var(--color-white);
}

.hero-banner-title {
    margin: 0;
    margin-bottom: 40px;
}

.hero-banner-content {
    opacity: .7;
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.hero-banner-partner {
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner--v2 .container {
    max-width: var(--container-page)
}

.hero-banner--v3 .inner-hero__content {
    max-width: 900px;
}

.certified-partner-title {
    color: var(--color-white);
    margin-top: 24px;
}

.certified--container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    top: 20px;
}

.hero-banner-partner .group__button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
}

.hero-banner-partner .group__button .button {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.hero-banner--v2 .hero-banner-partner .group__button .button {
    height: 56px;
    font-size: 20px;
    line-height: 120%;
}

.hero-banner--v2 .hero-banner-partner .group__button .button.white:hover {
    color: #fff;
}

/* Styles for Certified Partner Images (Marquee) */
.certified-partner-images {
    /* This is the direct parent of .image items in the new structure */
    margin-top: 24px;
    /* overflow: hidden; */
    /* Moved to .certified-partner-list */
}

.certified-partner-images .image {
    max-width: 108px;
    /* Max width for each logo container */
    /* width: 100%; */
    /* Consider removing or setting to 'auto' if max-width is the goal */
    width: auto;
    /* Allow image to define its width up to max-width */
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* For centering image inside */
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    /* Prevent items from shrinking */
    margin-right: 40px;
    /* Spacing between items */
}

.certified-partner-images .image img {
    vertical-align: top;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    opacity: 0.6;
    max-width: 100%;
    /* Ensure image fits within its .image container */
    max-height: 100%;
    /* Ensure image fits within its .image container */
    -o-object-fit: contain;
    object-fit: contain;
    /* Scale image nicely within dimensions */
}

.hero-banner-title span {
    position: relative;
    color: var(--color-tertiary);
}

.hero-banner-title span:before {
    content: '';
    width: 100%;
    background: -webkit-gradient(linear, left top, right top, from(rgba(95, 218, 255, 0.2)), to(rgba(95, 218, 255, 0)));
    background: -o-linear-gradient(left, rgba(95, 218, 255, 0.2) 0%, rgba(95, 218, 255, 0) 100%);
    background: linear-gradient(90deg, rgba(95, 218, 255, 0.2) 0%, rgba(95, 218, 255, 0) 100%);
    border-left: 3px solid var(--color-tertiary);
    height: 100%;
    position: absolute;
    left: -4px;
    top: 7px;
    height: calc(100% - 10px);
}

/* --- NEW CSS for Infinite Marquee --- */
.certified-partner-list {
    overflow: hidden;
    /* Crucial: Hides the parts of the marquee outside the viewport */
    width: 100%;
    margin-top: 24px;
    /* If you want space above the marquee track */
    position: relative;
    /* For potential future enhancements or pseudo-elements */
}

.marquee-slider.certified-partner-images {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* Arranges all .image items in a single horizontal line */
    -ms-flex-negative: 0;
    flex-shrink: 0;
    /* Prevents the slider itself from shrinking */
    /* The width will be implicitly defined by its content (the doubled list of images) */
    -webkit-animation: marquee-scroll 25s linear infinite;
    animation: marquee-scroll 25s linear infinite;
    /* Adjust 25s to control speed */
    margin-top: 0;
    /* Resetting margin-top as it's on .certified-partner-list now */
}

.hero-banner-partner .group__button .button:focus {
    border-color: var(--button-hover);
    background: var(--button-hover);
}

@-webkit-keyframes marquee-scroll {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        /* This moves the slider by the width of the *original* set of items.
           Since we duplicated the items, when it reaches -50% of its total width,
           the second (cloned) set of items is exactly at the start, creating a seamless loop. */
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        /* This moves the slider by the width of the *original* set of items.
           Since we duplicated the items, when it reaches -50% of its total width,
           the second (cloned) set of items is exactly at the start, creating a seamless loop. */
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

/* Pause animation on hover if the data-attribute is set by ACF */
.certified-partner-list[data-marquee-pause-on-hover="true"]:hover .marquee-slider.certified-partner-images {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

@media only screen and (max-width: 991px) {
    .nxt-container-block-editor .hero-banner {
        min-height: 787px;
    }

    .hero-banner-title {
        font-weight: 500;
        font-size: 30px;
        line-height: 38px;
        letter-spacing: -0.01em;
        text-align: center;
        max-width: 361px;
        margin: 0 auto;
        margin-bottom: 25px;
        padding: 0 15px;
        position: relative;
        top: -19px;
    }

    .hero-banner-title span {
        display: inline-block;
        vertical-align: top;
    }

    .hero-banner-partner .hero-banner-content {
        font-weight: 400;
        font-size: 16px;
        line-height: 150%;
        letter-spacing: -0.01em;
        margin-bottom: 20px;
        position: relative;
        top: -11px;
    }

    .hero-banner-partner .group__button .button {
        padding: 11px 11.46px;
        min-height: 45px;
    }

    .certified--container .certified-partner-title {
        font-size: 14px;
        line-height: 160%;
        letter-spacing: -0.01em;
    }
}

/* Layout V2 */
.hero-banner--v2,
.nxt-container-block-editor .hero-banner--v2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 810px;
    padding-bottom: 77px;
}


.hero-banner--v2 .hero-banner-partner {
    text-align: left;
    margin-left: 0;
}

.hero-banner--v2 .hero-banner-title {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
    font-size: 64px;
    line-height: 120%;
    letter-spacing: 0;
    margin-bottom: 24px;
}

.hero-banner--v2 .hero-banner-content {
    margin-left: 0;
    text-align: left;
    max-width: 100%;
    opacity: 1;
    color: #F6F6F7;
    font-size: 16px;
    line-height: 140%;
    margin-bottom: 24px;
}

.hero-banner--v2 .group__button {
    justify-content: flex-start;
    margin-bottom: 0;
}

@media only screen and (max-width: 991px) {
    .hero-banner--v2,
    .nxt-container-block-editor .hero-banner--v2 {
        min-height: 850px;
        padding-bottom: 64px;
    }

    .hero-banner--v2 .hero-banner-title {
        font-size: 32px;
        padding: 0;
    }

    .hero-banner--v2 .hero-banner-partner .group__button .button,
    .hero-banner--v2 .hero-banner-content {
        font-size: 14px;
    }
}