.slider-style-8 {
    --slider-style-8-blue: #123cf5;
    --slider-style-8-white: #ffffff;
    --slider-style-8-height: 675px;
    position: relative;
    width: 100%;
    /* max-width: 1350px; */
    margin: 0 auto;
    height: var(--slider-style-8-height);
    min-height: 420px;
    overflow: hidden;
    background: #123cf5;
    isolation: isolate;
}

.slider-style-8 .swiper,
.slider-style-8 .swiper-wrapper,
.slider-style-8 .swiper-slide {
    width: 100%;
    height: 100%;
}

.slider-style-8 .swiper-slide {
    position: relative;
    overflow: hidden;
}

.slider-style-8 .slider-style-8__background,
.slider-style-8 .slider-style-8__background img,
.slider-style-8 .slider-style-8__background-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slider-style-8 .slider-style-8__background {
    z-index: 0;
    background: #123cf5;
}

.slider-style-8 .slider-style-8__background img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.slider-style-8 .slider-style-8__background-placeholder {
    background: linear-gradient(135deg, #123cf5, #0926a7);
}

.slider-style-8 .slider-style-8__overlay {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    display: flex;
    width: 48%;
    min-width: 440px;
    padding: clamp(48px, 8vw, 112px) clamp(28px, 6vw, 90px) 44px clamp(28px, 8vw, 100px);
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    color: var(--slider-style-8-white);
    background: var(--slider-style-8-blue);
    /* Single smooth wave edge matching the reference image */
    clip-path: polygon(
        0% 0%, 
        75% 0%, 
        65% 50%, 
        75% 100%, 
        0% 100%
    );
}

.slider-style-8 .slider-style-8__content {
    width: min(100%, 450px);
    min-width: 0;
}

.slider-style-8 .slider-style-8__tag {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--slider-style-8-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.slider-style-8 .slider-style-8__title {
    max-width: 100%;
    margin: 0 0 14px;
    color: var(--slider-style-8-white);
    font-size: 35px;
    font-weight: 900;
    line-height: 1.05;
    /* letter-spacing: -.02em; */
    overflow-wrap: anywhere;
}

.slider-style-8 .slider-style-8__excerpt {
    max-width: 500px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.slider-style-8 .slider-style-8__cta {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    box-sizing: border-box;
    color: var(--slider-style-8-blue);
    background: var(--slider-style-8-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.slider-style-8 .slider-style-8__cta:hover,
.slider-style-8 .slider-style-8__cta:focus-visible {
    color: var(--slider-style-8-blue);
    background: #e9edff;
    transform: translateY(-2px);
}

.slider-style-8 .slider-style-8__controls {
    position: absolute;
    z-index: 3;
    right: auto;
    bottom: 32px;
    left: clamp(28px, 8vw, 120px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.slider-style-8 .slider-style-8__pagination {
    display: flex;
    align-items: center;
    gap: 7px;
    /* Position at bottom-left as shown in reference */
    align-self: flex-end;
}

.slider-style-8 .slider-style-8__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    /* Position at bottom-right as shown in reference */
    align-self: flex-end;
}

.slider-style-8 .slider-style-8__pagination .swiper-pagination-bullet {
    width: 22px;
    height: 2px;
    margin: 0 !important;
    border-radius: 0;
    opacity: .35;
    background: var(--slider-style-8-white);
    transition: width .2s ease, opacity .2s ease;
}

.slider-style-8 .slider-style-8__pagination .swiper-pagination-bullet-active {
    width: 31px;
    opacity: 1;
}

.slider-style-8 .slider-style-8__button {
    display: inline-flex;
    width: 30px;
    height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    color: var(--slider-style-8-white);
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.slider-style-8 .slider-style-8__button:hover,
.slider-style-8 .slider-style-8__button:focus-visible {
    color: var(--slider-style-8-blue);
    background: var(--slider-style-8-white);
    border-color: var(--slider-style-8-white);
}

.slider-style-8 .slider-style-8__button i {
    font-size: 11px;
    line-height: 1;
}

/* Play/pause button is a solid white circle to match reference design */
.slider-style-8 .slider-style-8__button--play {
    color: var(--slider-style-8-blue);
    background: var(--slider-style-8-white);
    border-color: var(--slider-style-8-white);
}

.slider-style-8 .slider-style-8__button--play:hover,
.slider-style-8 .slider-style-8__button--play:focus-visible {
    color: var(--slider-style-8-white);
    background: transparent;
}

.slider-style-8 .slider-style-8__button--play i {
    font-size: 10px;
}

@media (max-width: 1024px) {
    .slider-style-8 {
        --slider-style-8-height: 600px;
        max-width: 100%;
    }

    .slider-style-8 .slider-style-8__overlay {
        width: 52%;
        min-width: 0;
        padding-right: 8%;
        padding-left: clamp(28px, 6vw, 72px);
        /* Single wave for tablet */
        clip-path: polygon(
            0% 0%, 
            70% 0%, 
            60% 50%, 
            70% 100%, 
            0% 100%
        );
    }

    .slider-style-8 .slider-style-8__controls {
        right: auto;
        left: clamp(28px, 6vw, 72px);
    }
}

/* Mobile: stacked layout - image block on top with single wave cut matching desktop design,
   solid blue content block below. */
@media (max-width: 767px) {
    .slider-style-8 {
        height: 640px !important;
        min-height: 560px !important;
        max-width: 100%;
    }

    .slider-style-8 .swiper,
    .slider-style-8 .swiper-wrapper,
    .slider-style-8 .swiper-slide {
        height: 100% !important;
        min-height: 0 !important;
    }

    .slider-style-8 .swiper-slide {
        display: flex;
        flex-direction: column;
    }

    .slider-style-8 .slider-style-8__background {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 56%;
        width: 100% !important;
        height: 56% !important;
        /* Single wave bottom edge to match the desktop design */
        clip-path: polygon(
            0% 0%, 
            100% 0%, 
            100% 62%, 
            50% 82%, 
            0% 62%
        );
    }

    .slider-style-8 .slider-style-8__overlay {
        position: relative !important;
        inset: auto !important;
        display: flex;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        flex: 1 1 auto;
        margin-top: -1px;
        padding: 32px 24px 84px;
        align-items: flex-start;
        justify-content: flex-start;
        background: var(--slider-style-8-blue) !important;
        clip-path: none !important;
        transform: none !important;
    }

    .slider-style-8 .slider-style-8__content {
        width: 100%;
    }

    .slider-style-8 .slider-style-8__title {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.15;
    }

    .slider-style-8 .slider-style-8__excerpt {
        max-width: 520px;
        font-size: 13px;
        line-height: 1.45;
    }

    .slider-style-8 .slider-style-8__controls {
        right: auto;
        bottom: 24px;
        left: 24px;
        justify-content: flex-start;
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .slider-style-8 {
        height: 600px !important;
        min-height: 540px !important;
    }

    .slider-style-8 .slider-style-8__background {
        flex-basis: 53%;
        height: 53% !important;
    }

    .slider-style-8 .slider-style-8__overlay {
        padding: 28px 20px 78px;
    }

    .slider-style-8 .slider-style-8__title {
        font-size: 20px;
    }

    .slider-style-8 .slider-style-8__controls {
        right: auto;
        bottom: 20px;
        left: 20px;
        justify-content: flex-start;
    }
}
