.ov-carousel {
    --ov-carousel-slides-desktop: 3;
    --ov-carousel-slides-tablet: 2;
    --ov-carousel-slides-mobile: 1;
    --ov-carousel-gap: 24px;
    --ov-carousel-card-width: 100%;
    --ov-carousel-card-fixed-height: auto;
    --ov-carousel-card-height: auto;
    --ov-carousel-card-radius: 22px;
    --ov-carousel-image-fit: cover;
    --ov-carousel-image-ratio: 16 / 10;
    --ov-carousel-arrow-color: #ffffff;
    color: #132238;
}

.ov-carousel * {
    box-sizing: border-box;
}

.ov-carousel__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    width: 140%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 50%);
}

.ov-carousel__eyebrow {
    color: #4f6b8a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ov-carousel__nav {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.ov-carousel__button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ov-carousel-arrow-color);
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 44px;
}

.ov-carousel__button:hover {
    transform: translateY(-1px);
}

.ov-carousel__button[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.ov-carousel__button-icon {
    display: block;
    height: 14px;
    width: 10px;
}

.ov-carousel__button-icon svg {
    color: inherit;
    display: block;
    fill: currentColor;
    height: 100%;
    width: 100%;
}

.ov-carousel__button-icon svg path {
    fill: currentColor;
}

.ov-carousel__button--prev .ov-carousel__button-icon {
    transform: rotate(180deg);
}

.ov-carousel__viewport {
    overflow: hidden;
}

.ov-carousel__track {
    display: flex;
    gap: var(--ov-carousel-gap);
    transition: transform 0.35s ease;
    will-change: transform;
}

.ov-carousel__slide {
    flex: 0 0 calc((100% - (var(--ov-carousel-gap) * (var(--ov-carousel-slides-desktop) - 1))) / var(--ov-carousel-slides-desktop));
    min-width: 0;
}

.ov-carousel--stacked {
    padding: 24px 0 12px;
    position: relative;
}

.ov-carousel--stacked .ov-carousel__viewport {
    min-height: clamp(420px, 52vw, 760px);
    overflow: visible;
}

.ov-carousel--stacked .ov-carousel__track {
    align-items: center;
    display: block;
    min-height: clamp(420px, 52vw, 760px);
    position: relative;
}

.ov-carousel--stacked .ov-carousel__slide {
    left: 50%;
    max-width: calc(100% - 120px);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate3d(-50%, -50%, 0) scale(0.82);
    transition: transform 0.45s ease, opacity 0.35s ease;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    z-index: 1;
}

.ov-carousel--stacked .ov-carousel__slide--media-sized {
    max-width: none;
    width: max-content;
}

.ov-carousel--stacked .ov-carousel__slide.is-center,
.ov-carousel--stacked .ov-carousel__slide.is-left,
.ov-carousel--stacked .ov-carousel__slide.is-right {
    opacity: 1;
    pointer-events: auto;
}

.ov-carousel--stacked:not(.ov-carousel--is-ready) .ov-carousel__slide:nth-child(2) {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, -50%, 0) scale(1);
    z-index: 3;
}

.ov-carousel--stacked:not(.ov-carousel--is-ready) .ov-carousel__slide:first-child {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(calc(-50% - 260px), -50%, 0) scale(0.82);
    z-index: 2;
}

.ov-carousel--stacked:not(.ov-carousel--is-ready) .ov-carousel__slide:nth-child(3) {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(calc(-50% + 260px), -50%, 0) scale(0.82);
    z-index: 2;
}

.ov-carousel--stacked .ov-carousel__slide.is-center {
    transform: translate3d(-50%, -50%, 0) scale(1);
    z-index: 3;
}

.ov-carousel--stacked .ov-carousel__slide.is-left {
    transform: translate3d(-100%, -50%, 0) scale(0.82);
    z-index: 2;
}

.ov-carousel--stacked .ov-carousel__slide.is-right {
    transform: translate3d(0, -50%, 0) scale(0.82);
    z-index: 2;
}

.ov-carousel--stacked .ov-carousel__slide--media-wide.is-left {
    transform: translate3d(calc(-50% - 340px), -50%, 0) scale(0.82);
}

.ov-carousel--stacked .ov-carousel__slide--media-wide.is-right {
    transform: translate3d(calc(-50% + 340px), -50%, 0) scale(0.82);
}

.ov-carousel--stacked .ov-carousel__slide.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.ov-carousel--stacked .ov-carousel__card {
    box-shadow: 0 30px 70px rgba(19, 34, 56, 0.16);
}

.ov-carousel--stacked .ov-carousel__button {
    box-shadow: none;
    /* position: absolute;
    top: 50%;
    transform: translateY(-50%); */
    z-index: 5;
}

/* .ov-carousel--stacked .ov-carousel__button--prev {
    left: 24px;
}

.ov-carousel--stacked .ov-carousel__button--next {
    right: 24px;
} */

.ov-carousel__card {
    /* background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border: 1px solid #dfe8f1; */
    border-radius: var(--ov-carousel-card-radius);
    box-shadow: 0 18px 40px rgba(19, 34, 56, 0.08);
    display: flex;
    flex-direction: column;
    height: var(--ov-carousel-card-fixed-height);
    min-height: var(--ov-carousel-card-height);
    overflow: hidden;
    width: min(100%, var(--ov-carousel-card-width));
    margin-inline: auto;
    max-height: 100%;
}

.ov-carousel__card--media-sized {
    width: fit-content;
    max-width: min(100%, var(--ov-carousel-card-width));
}

.ov-carousel__media {
    aspect-ratio: var(--ov-carousel-image-ratio);
    display: block;
    overflow: hidden;
}

.ov-carousel__media--auto {
    aspect-ratio: auto;
}

.ov-carousel__image {
    display: block;
    height: 100%;
    object-fit: var(--ov-carousel-image-fit);
    transition: transform 0.4s ease;
    width: 100%;
}

.ov-carousel__media--auto .ov-carousel__image {
    height: auto;
}

.ov-carousel__media--auto.ov-carousel__media--height-driven {
    display: flex;
    height: 100%;
    width: fit-content;
}

.ov-carousel__media--auto.ov-carousel__media--height-driven .ov-carousel__image {
    height: 100%;
    width: auto;
}

.ov-carousel__media--auto.ov-carousel__media--width-driven .ov-carousel__image {
    height: auto;
    width: 100%;
}

.ov-carousel__card:hover .ov-carousel__image {
    transform: scale(1.04);
}

.ov-carousel__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.ov-carousel__meta {
    color: #6f88a3;
    font-size: 13px;
}

.ov-carousel__title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}

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

.ov-carousel__excerpt {
    color: #51657d;
    font-size: 15px;
    line-height: 1.6;
}

.ov-carousel__footer {
    margin-top: auto;
    padding-top: 8px;
}

.ov-carousel__link {
    color: #0f5ea8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ov-carousel__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.ov-carousel__dot {
    background: #d0dcea;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 10px;
    padding: 0;
    transition: width 0.2s ease, background-color 0.2s ease;
    width: 10px;
}

.ov-carousel__dot.is-active {
    background: #0f5ea8;
    width: 28px;
}

@media (max-width: 991px) {
    .ov-carousel__slide {
        flex-basis: calc((100% - (var(--ov-carousel-gap) * (var(--ov-carousel-slides-tablet) - 1))) / var(--ov-carousel-slides-tablet));
    }

    .ov-carousel--stacked .ov-carousel__track {
        min-height: clamp(360px, 58vw, 620px);
    }

    .ov-carousel--stacked .ov-carousel__slide {
        max-width: calc(100% - 90px);
    }

    .ov-carousel--stacked .ov-carousel__slide.is-left {
        transform: translate3d(calc(-50% - 170px), -50%, 0) scale(0.8);
    }

    .ov-carousel--stacked .ov-carousel__slide.is-right {
        transform: translate3d(calc(-50% + 170px), -50%, 0) scale(0.8);
    }

    .ov-carousel--stacked .ov-carousel__slide--media-wide.is-left {
        transform: translate3d(calc(-50% - 220px), -50%, 0) scale(0.8);
    }

    .ov-carousel--stacked .ov-carousel__slide--media-wide.is-right {
        transform: translate3d(calc(-50% + 220px), -50%, 0) scale(0.8);
    }

    .ov-carousel--stacked .ov-carousel__button--prev {
        left: 12px;
    }

    .ov-carousel--stacked .ov-carousel__button--next {
        right: 12px;
    }
}

@media (max-width: 767px) {
    .ov-carousel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ov-carousel__slide {
        flex-basis: calc((100% - (var(--ov-carousel-gap) * (var(--ov-carousel-slides-mobile) - 1))) / var(--ov-carousel-slides-mobile));
    }

    .ov-carousel__content {
        padding: 20px;
    }

    .ov-carousel__title {
        font-size: 20px;
    }

    .ov-carousel--stacked {
        padding-top: 8px;
    }

    .ov-carousel--stacked .ov-carousel__track {
        height: auto;
    }

    .ov-carousel--stacked .ov-carousel__slide {
        left: auto;
        max-width: none;
        opacity: 0;
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
    }

    .ov-carousel--stacked .ov-carousel__slide.is-active {
        opacity: 1;
        transform: none;
    }

    .ov-carousel--stacked .ov-carousel__slide.is-prev,
    .ov-carousel--stacked .ov-carousel__slide.is-next,
    .ov-carousel--stacked .ov-carousel__slide.is-hidden {
        display: none;
    }
}
