/* All classes start with "vc3-" so they won't clash with your site's CSS */
.vc3-carousel {
    --vc3-w: 350px;
    /* centre card width  */
    --vc3-h: 630px;
    /* centre card height */
    --vc3-offset: 330px;
    /* how far side cards sit from the centre */
    --vc3-side-scale: 0.64;
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: calc(var(--vc3-h) + 40px);
    margin: 0px auto;
    padding-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.vc3-carousel *,
.vc3-carousel *::before,
.vc3-carousel *::after {
    box-sizing: border-box;
}

.vc3-stage {
    position: absolute;
    inset: 0;
    margin-bottom: 25px;
}

/* ---------- Cards ---------- */
.vc3-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--vc3-w);
    height: var(--vc3-h);
    background-color: #109c3d;
    border-radius: 15px !important;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1), opacity 0.6s ease, filter 0.6s ease;
    will-change: transform;
}

.vc3-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ---------- Positions (set by JS) ---------- */
.vc3-card[data-pos="0"] {
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
}

.vc3-card[data-pos="-1"] {
    transform: translate(calc(-50% - var(--vc3-offset)), -50%) scale(var(--vc3-side-scale));
    z-index: 2;
    cursor: pointer;
    filter: blur(1.5px) brightness(0.8);
}

.vc3-card[data-pos="1"] {
    transform: translate(calc(-50% + var(--vc3-offset)), -50%) scale(var(--vc3-side-scale));
    z-index: 2;
    cursor: pointer;
    filter: blur(1.5px) brightness(0.8);
}

.vc3-card[data-pos="hidden"] {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* ---------- Text, badge, play button ---------- */
.vc3-caption {
    position: absolute;
    left: 22px;
    bottom: 26px;
    right: 100px;
    display: none;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
}

.vc3-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(30, 40, 70, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s;
}

.vc3-card[data-pos="-1"] .vc3-badge,
.vc3-card[data-pos="1"] .vc3-badge {
    opacity: 1;
}

.vc3-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #109c3d;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vc3-toggle:hover {
    transform: scale(1.08);
    background: #109c3d;
    color: #ffffff;
}

.vc3-card[data-pos="0"] .vc3-toggle {
    display: flex;
}

.vc3-toggle .vc3-icon-play,
.vc3-toggle .vc3-icon-pause {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.vc3-toggle .vc3-icon-play {
    display: none;
    margin-left: px;
}

.vc3-toggle .vc3-icon-pause {
    display: block;
}

.vc3-toggle {
    padding: 0;
    line-height: 0;
}

.vc3-toggle svg {
    display: block;
}

.vc3-card.is-paused .vc3-toggle .vc3-icon-play {
    display: block;
}

.vc3-card.is-paused .vc3-toggle .vc3-icon-pause {
    display: none;
}




/* ---------- Arrows ---------- */
.vc3-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #109c3d;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}

.vc3-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.vc3-prev {
    left: 20px;
}

.vc3-next {
    right: 20px;
}

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 900px) {
    .vc3-carousel {
        --vc3-w: 300px;
        --vc3-h: 520px;
        --vc3-offset: 270px;
    }
}

@media (max-width: 600px) {
    .vc3-carousel {
        --vc3-w: 250px;
        --vc3-h: 440px;
        --vc3-offset: 215px;
        --vc3-side-scale: 0.7;
    }

    .vc3-caption {
        font-size: 16px;
        left: 16px;
        bottom: 20px;
        right: 80px;
    }

    .vc3-toggle {
        width: 50px;
        height: 50px;
        right: 14px;
        bottom: 14px;
    }

    .vc3-arrow {
        width: 38px;
        height: 38px;
    }

    .vc3-prev {
        left: 6px;
    }

    .vc3-next {
        right: 6px;
    }
}

/* All classes start with "vc3-" so they won't clash with your site's CSS */
.vc3-carousel {
    --vc3-w: 350px;
    /* centre card width  */
    --vc3-h: 630px;
    /* centre card height */
    --vc3-offset: 330px;
    /* how far side cards sit from the centre */
    --vc3-side-scale: 0.64;
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: calc(var(--vc3-h) + 40px);
    margin: 0 auto;
    padding-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
    touch-action: pan-y;
    /* swipe left/right, scroll up/down */
    -webkit-tap-highlight-color: transparent;
}

.vc3-carousel *,
.vc3-carousel *::before,
.vc3-carousel *::after {
    box-sizing: border-box;
}

.vc3-stage {
    position: absolute;
    inset: 0;
    margin-bottom: 25px;
}

/* ---------- Cards ---------- */
.vc3-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--vc3-w);
    height: var(--vc3-h);
    background-color: #109c3d;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1), opacity 0.6s ease, filter 0.6s ease;
    will-change: transform;
}

.vc3-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Positions (set by JS) ---------- */
.vc3-card[data-pos="0"] {
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
}

.vc3-card[data-pos="-1"] {
    transform: translate(calc(-50% - var(--vc3-offset)), -50%) scale(var(--vc3-side-scale));
    z-index: 2;
    cursor: pointer;
    filter: blur(1.5px) brightness(0.8);
}

.vc3-card[data-pos="1"] {
    transform: translate(calc(-50% + var(--vc3-offset)), -50%) scale(var(--vc3-side-scale));
    z-index: 2;
    cursor: pointer;
    filter: blur(1.5px) brightness(0.8);
}

.vc3-card[data-pos="hidden"] {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* ---------- Text, badge, play button ---------- */
.vc3-caption {
    position: absolute;
    left: 22px;
    bottom: 26px;
    right: 100px;
    display: none;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
}

.vc3-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(30, 40, 70, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s;
}

.vc3-card[data-pos="-1"] .vc3-badge,
.vc3-card[data-pos="1"] .vc3-badge {
    opacity: 1;
}

.vc3-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    width: 62px;
    height: 62px;
    padding: 0;
    line-height: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #109c3d;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vc3-toggle:hover {
    transform: scale(1.08);
    background: #109c3d;
    color: #ffffff;
}

.vc3-card[data-pos="0"] .vc3-toggle {
    display: flex;
}

.vc3-toggle svg {
    display: block;
}

.vc3-toggle .vc3-icon-play,
.vc3-toggle .vc3-icon-pause {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.vc3-toggle .vc3-icon-play {
    display: none;
}

.vc3-toggle .vc3-icon-pause {
    display: block;
}

.vc3-card.is-paused .vc3-toggle .vc3-icon-play {
    display: block;
}

.vc3-card.is-paused .vc3-toggle .vc3-icon-pause {
    display: none;
}

/* ---------- Arrows ---------- */
.vc3-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #109c3d;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}

.vc3-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.vc3-prev {
    left: 20px;
}

.vc3-next {
    right: 20px;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .vc3-carousel {
        --vc3-w: 320px;
        --vc3-h: 570px;
        --vc3-offset: 290px;
    }
}

/* ---------- Mobile ----------
   Card width = 72% of the screen (max 320px).
   Card height = width x 1.78  (a tall 9:16 phone-video shape).
   Side cards peek in from the left and right edges.            */
@media (max-width: 600px) {
    .vc3-carousel {
        --vc3-w: min(72vw, 320px);
        --vc3-h: calc(var(--vc3-w) * 1.78);
        --vc3-offset: calc(var(--vc3-w) * 0.8);
        --vc3-side-scale: 0.7;
    }

    .vc3-caption {
        font-size: 16px;
        left: 16px;
        bottom: 20px;
        right: 80px;
    }

    .vc3-badge {
        top: 12px;
        right: 12px;
        font-size: 11px;
    }

    .vc3-toggle {
        width: 50px;
        height: 50px;
        right: 14px;
        bottom: 14px;
    }

    .vc3-arrow {
        width: 38px;
        height: 38px;
    }

    .vc3-prev {
        left: 6px;
    }

    .vc3-next {
        right: 6px;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
    .vc3-carousel {
        --vc3-w: 74vw;
    }
}