.vc-go-testimonials .carousel {
    position: relative;
    width: 100%;
    height: 600px;
}

/*  Each slide  */
.vc-go-testimonials .carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 550px;
    transform-origin: center center;
    transform: translateX(-50%) translateY(-50%) scale(1);
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Animated state (transition on) */
.vc-go-testimonials .carousel-slide.is-animated {
    transition: transform 0.45s ease, opacity 0.45s ease;
}

/* Visible states set by JS */
.vc-go-testimonials .carousel-slide.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale(1);
    z-index: 10;
    pointer-events: auto;
}

.vc-go-testimonials .carousel-slide.is-prev {
    opacity: 1;
    transform: translateX(calc(-50% - 370px)) translateY(-55%) scale(0.58);
    z-index: 1;
}

.vc-go-testimonials .carousel-slide.is-next {
    opacity: 1;
    transform: translateX(calc(-50% + 370px)) translateY(-55%) scale(0.58);
    z-index: 1;
}

/* Grab cursor while dragging */
.vc-go-testimonials .carousel.is-dragging {
    cursor: grabbing;
}

.vc-go-testimonials .carousel.is-dragging .carousel-slide {
    pointer-events: none;
}

/*  testimonials-card  */
.vc-go-testimonials .testimonials-card {
    background: #fff;
    border-radius: 20px;
    padding: 105px 60px 95px;
    text-align: center;
    width: 100%;
    box-shadow: 0 6px 16px 2px rgba(0, 0, 0, 0.25);
}

.vc-go-testimonials .stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 65px 55px;
    color: #e02020;
    font-size: 24px;
}

.vc-go-testimonials .testimonials-card-title {
    color: #003873;
    font-size: 29px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px; /* 137.931% */
    margin-bottom: 25px;
}

.vc-go-testimonials .testimonials-card-body {
    color: #003873;
    font-size: 19px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px; /* 189.474% */
    letter-spacing: 0.19px;
    margin-bottom: 20px;
}

.vc-go-testimonials .testimonials-card-author {
    color: #003873;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px; /* 144.444% */
    letter-spacing: 0.18px;
    text-align: right;
    margin: 0 90px;
}

/*  Dots  */
.vc-go-testimonials .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 17px;
    margin-top: 30px;
}

.vc-go-testimonials .carousel-dots button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #D9D9D9;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.vc-go-testimonials .carousel-dots button.is-active {
    background: #0081FF;
}

/* ════════════════════════════════════════════
       Mobile / tablet  ≤ 991px
       Single testimonials-card, no peeking neighbors
    ════════════════════════════════════════════ */
@media (max-width: 991px) {

    /* Let the track grow with testimonials-card content */
    .vc-go-testimonials .carousel {
        height: auto;
        overflow: hidden;
        padding: 0 20px;
    }

    /* Reset absolute positioning entirely */
    .vc-go-testimonials .carousel-slide {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 545px;
        margin: 0 auto;
        opacity: 0;
        pointer-events: none;
        display: none;
        /* Block JS-applied inline transforms */
        transform: none !important;
        transition: opacity 0.35s ease;
    }

    /* Only the active slide is visible */
    .vc-go-testimonials .carousel-slide.is-active {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        z-index: 10;
    }

    /* Fade-out state — used briefly before swapping the active slide */
    .carousel-slide.is-fading-out {
        display: block;
        opacity: 0;
        pointer-events: none;
    }

    /* Prev / next are fully hidden — no peeking */
    .vc-go-testimonials .carousel-slide.is-prev,
    .vc-go-testimonials .carousel-slide.is-next {
        display: none !important;
        opacity: 0 !important;
    }

    .vc-go-testimonials .carousel-dots {
        margin-top: 57px;
    }
}

@media (max-width: 480px) {
    .vc-go-testimonials .carousel {
        padding: 0 25px;
    }

    .vc-go-testimonials .testimonials-card {
        padding: 38px 25px 30px;
        border-radius: 10px;
    }

    .vc-go-testimonials .stars {
        margin: 0 35px 35px;
        gap: 16px;
    }

    .vc-go-testimonials .stars svg {
        width: 24px;
        height: 23px;
    }

    .vc-go-testimonials .testimonials-card-title {
        font-size: 18px;
        line-height: 22px; /* 122.222% */
        letter-spacing: 0.18px;
        margin-bottom: 10px;
    }

    .vc-go-testimonials .testimonials-card-body {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.14px;
        margin-bottom: 7px;
    }

    .vc-go-testimonials .testimonials-card-author {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.14px;
        margin: 0 15px;
    }

    .vc-go-testimonials .carousel-dots {
        margin-top: 25px;
        gap: 12px;
    }

    .vc-go-testimonials .carousel-dots button {
        width: 12px;
        height: 12px;
    }
}