/* Elementor flex containers can shrink widgets with absolutely positioned content
   down to the arrows/dots. Force this widget to occupy the available column width. */
.elementor-widget-nova-coverflow-cards,
.elementor-widget-nova-coverflow-cards > .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.elementor-widget-nova-coverflow-cards {
    display: block;
    flex-basis: 100%;
    align-self: stretch;
}

.nova-cfc {
    --nova-cfc-card-w: 420px;
    --nova-cfc-card-h: 500px;
    --nova-cfc-stage-h: 560px;
    --nova-cfc-radius: 22px;
    --nova-cfc-overlay-alpha: .7;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.nova-cfc,
.nova-cfc * {
    box-sizing: border-box;
}

.nova-cfc-stage {
    position: relative;
    width: 100%;
    height: var(--nova-cfc-stage-h);
    min-height: 260px;
    perspective: 1100px;
    overflow: hidden;
    outline: none;
    touch-action: pan-y;
    isolation: isolate;
}

.nova-cfc-track {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform-style: preserve-3d;
    pointer-events: none;
}

.nova-cfc-card {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: var(--nova-cfc-card-w);
    max-width: calc(100vw - 32px);
    height: var(--nova-cfc-card-h);
    overflow: hidden;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, .28);
    border-radius: var(--nova-cfc-radius);
    background: #111;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(.9);
    transform-origin: center center;
    transform-style: preserve-3d;
    transition:
        transform .62s cubic-bezier(.2, .82, .18, 1),
        opacity .4s ease,
        filter .4s ease;
    will-change: transform, opacity, filter;
    pointer-events: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nova-cfc-card.is-active {
    pointer-events: auto;
}

.nova-cfc-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.nova-cfc-card__media,
.nova-cfc-card__shade,
.nova-cfc-card__content {
    position: absolute;
    inset: 0;
    display: block;
}

.nova-cfc-card__media {
    overflow: hidden;
    background: #111;
    transform: none;
}

.nova-cfc-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: none;
    filter: none;
    backface-visibility: hidden;
    image-rendering: auto;
}

.nova-cfc-card__shade {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, calc(var(--nova-cfc-overlay-alpha) * .52)) 62%, rgba(0, 0, 0, var(--nova-cfc-overlay-alpha)) 100%);
}

.nova-cfc-card__content {
    top: auto;
    bottom: 0;
    height: auto;
    padding: 32px;
    z-index: 2;
}

.nova-cfc-card__title,
.nova-cfc-card__text {
    display: block;
}

.nova-cfc-card__title {
    margin: 0 0 .35em;
    font-size: clamp(28px, 4vw, 44px);
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #fff;
}

.nova-cfc-card__text {
    margin: 0;
    max-width: 34em;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.35;
    color: rgba(255, 255, 255, .86);
}

.nova-cfc-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #111;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-50%);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.nova-cfc-arrow::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 3px 3px 0;
}

.nova-cfc-arrow--prev::before {
    transform: rotate(135deg);
    margin-left: 4px;
}

.nova-cfc-arrow--next::before {
    transform: rotate(-45deg);
    margin-left: -4px;
}

.nova-cfc-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.nova-cfc-arrow:disabled {
    cursor: default;
    opacity: .28;
    transform: translateY(-50%);
}

.nova-cfc-arrow--prev {
    left: max(16px, calc(50% - (var(--nova-cfc-card-w) / 2) - 84px));
}

.nova-cfc-arrow--next {
    right: max(16px, calc(50% - (var(--nova-cfc-card-w) / 2) - 84px));
}

.nova-cfc-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
}

.nova-cfc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #111;
    opacity: .28;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.nova-cfc-dot.is-active {
    opacity: 1;
    transform: scale(1.45);
}

.nova-cfc-dot:focus-visible,
.nova-cfc-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nova-cfc.is-dragging .nova-cfc-card {
    transition-duration: .18s;
}

@media (max-width: 767px) {
    .nova-cfc-stage {
        perspective: 850px;
    }

    .nova-cfc-card__content {
        padding: 24px;
    }

    .nova-cfc-arrow {
        width: 38px;
        height: 38px;
    }

    .nova-cfc-arrow::before {
        width: 9px;
        height: 9px;
        border-width: 0 2.5px 2.5px 0;
    }

    .nova-cfc-arrow--prev {
        left: 10px;
    }

    .nova-cfc-arrow--next {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nova-cfc-card,
    .nova-cfc-arrow,
    .nova-cfc-dot {
        transition: none !important;
    }
}
