.hero-carousel {
    --hero-gradient: linear-gradient(119deg, rgb(0, 126, 229) 21%, rgb(222, 220, 44) 94%);
    --hero-overlay: linear-gradient(119deg, rgba(0, 126, 229, 0.9) 21%, rgba(222, 220, 44, 0.82) 94%);
    --hero-wide-size: var(--wp--style--global--wide-size, 1164px);
    --hero-control-size: 52px;
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    outline: none;
}

.hero-carousel:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.hero-carousel__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-carousel__track {
    display: flex;
    width: 100%;
    transition: transform 600ms ease;
    will-change: transform;
}

.hero-carousel__slide {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 760px;
    padding: var(--wp--preset--spacing--xx-large, 4rem) clamp(1rem, 4vw, 2rem) 4rem;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: var(--hero-gradient);
}

.hero-carousel__slide--article {
    background-color: rgb(0, 126, 229);
    background-image: var(--hero-slide-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-carousel__slide--article::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--hero-overlay);
    content: "";
}

.hero-carousel__slide-link {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.hero-carousel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(calc(100% - 2rem), var(--hero-wide-size));
    margin-top: var(--wp--preset--spacing--large, 2.5rem);
    margin-left: auto;
    margin-right: auto;
}

.hero-carousel__title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-family--heading, "Bricolage Grotesque", sans-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1;
}

.hero-carousel__title a {
    color: inherit;
    text-decoration: none;
}

.hero-carousel__title a:hover,
.hero-carousel__title a:focus-visible {
    color: inherit;
    text-decoration: underline;
}

.hero-carousel__description {
    width: 100%;
    max-width: 760px;
    margin-bottom: var(--wp--preset--spacing--medium, 2rem);
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.5;
    text-align: center;
}

.hero-carousel__description p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero-carousel__description p:last-child {
    margin-bottom: 0;
}

.hero-carousel__description a {
    color: #fff;
    text-decoration: underline;
}

.hero-carousel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: var(--wp--preset--spacing--large, 2.5rem);
}

.hero-carousel__buttons .wp-block-button {
    margin-top: 0;
    margin-bottom: 0;
}

.hero-carousel__buttons .wp-block-button__link {
    box-sizing: border-box;
    min-width: 220px;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-family--heading, "Bricolage Grotesque", sans-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.hero-carousel .is-style-swt-button-inverse .wp-block-button__link {
    background: #fff;
    color: #1f2937;
}

.hero-carousel .is-style-outline .wp-block-button__link {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.hero-carousel__buttons .wp-block-button__link:hover,
.hero-carousel__buttons .wp-block-button__link:focus-visible {
    filter: brightness(0.94);
}

.hero-carousel__static-image {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 2rem), 1080px);
    margin-top: auto;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.hero-carousel__static-image .hero-carousel__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hero-carousel__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--hero-control-size);
    height: var(--hero-control-size);
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(4, 32, 66, 0.2);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-carousel__arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 180ms ease;
}

.hero-carousel__arrow:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(4, 32, 66, 0.28);
    transform: translateY(-50%) scale(1.04);
}

.hero-carousel__arrow:active {
    transform: translateY(-50%) scale(0.97);
}

.hero-carousel__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: #fff;
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.hero-carousel__arrow--prev {
    left: clamp(1rem, 3vw, 3rem);
}

.hero-carousel__arrow--prev:hover svg {
    transform: translateX(-2px);
}

.hero-carousel__arrow--next {
    right: clamp(1rem, 3vw, 3rem);
}

.hero-carousel__arrow--next:hover svg {
    transform: translateX(2px);
}

.hero-carousel__dots {
    position: absolute;
    z-index: 6;
    bottom: clamp(1rem, 3vw, 2rem);
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(4, 32, 66, 0.26);
    box-shadow: 0 8px 24px rgba(4, 32, 66, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
}

.hero-carousel__dot {
    width: 10px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: 0 2px 10px rgba(4, 32, 66, 0.16);
    cursor: pointer;
    transition: width 240ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.72);
}

.hero-carousel__dot:focus-visible {
    background: #fff;
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.hero-carousel__dot.is-active {
    width: 38px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(4, 32, 66, 0.24);
}

.hero-carousel--single {
    margin-top: 0;
}

.hero-carousel--single .hero-carousel__slide {
    justify-content: center;
    min-height: 520px;
    padding-top: var(--wp--preset--spacing--large, 2.5rem);
    padding-bottom: 3rem;
}

.hero-carousel--single .hero-carousel__content {
    margin-top: 0;
}

.hero-carousel--single .hero-carousel__description {
    margin-bottom: 0;
}

@media only screen and (max-width: 782px) {
    .hero-carousel {
        --hero-control-size: 44px;
    }

    .hero-carousel__slide {
        min-height: 560px;
        padding: 2.5rem 2.75rem 4rem;
    }

    .hero-carousel__content {
        margin-top: 1rem;
    }

    .hero-carousel__title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        letter-spacing: -0.5px;
    }

    .hero-carousel__description {
        font-size: 1rem;
    }

    .hero-carousel__buttons {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-carousel__buttons .wp-block-button__link {
        min-width: 0;
        width: 100%;
    }

    .hero-carousel__arrow svg {
        width: 18px;
        height: 18px;
    }

    .hero-carousel__arrow--prev {
        left: 0.6rem;
    }

    .hero-carousel__arrow--next {
        right: 0.6rem;
    }

    .hero-carousel__dot.is-active {
        width: 30px;
    }

    .hero-carousel--single .hero-carousel__slide {
        min-height: 420px;
    }
}

@media only screen and (max-width: 480px) {
    .hero-carousel__slide {
        min-height: 520px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .hero-carousel__title {
        font-size: 2rem;
    }

    .hero-carousel__dots {
        bottom: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__track,
    .hero-carousel__arrow,
    .hero-carousel__arrow svg,
    .hero-carousel__dot {
        transition: none;
    }
}
