.testimonials-slider-wrapper {
    position:relative;
    max-width:1400px;
    margin:0 auto;
    padding:20px 0;
}

.testimonials-slider {
    display:flex;
    flex-wrap:nowrap;
    gap:30px;
    align-items:stretch;
}

.testimonials-container {
    overflow:hidden;
    position:relative;
    width:100%;
}

/* ====================================
SLIDER TRACK
==================================== */
.testimonials-slider {
    display:flex;
    gap:30px;
    transition:transform .6s ease;
    will-change:transform;
}

/* CARD */
.testimonial-card {
    display:flex;
    flex-direction:column;

    flex:0 0 calc((100% - 60px) / 3);   /* 3 columns */
    max-width:calc((100% - 60px) / 3);

    width:calc((100% - 60px) / 3);
    min-width:calc((100% - 60px) / 3);

    background:#fff;
    border-radius:24px;
    padding:32px 28px;
    box-sizing:border-box;
}

/* TABLET = 2 */
@media (max-width:1023px) {

    .testimonial-card {
        flex:0 0 calc((100% - 30px) / 2);
        max-width:calc((100% - 30px) / 2);
        width:calc((100% - 30px) / 2);
        min-width:calc((100% - 30px) / 2);
    }

}

/* MOBILE = 1 */
@media (max-width:767px) {

    .testimonials-slider {
        gap:10;
    }

    .testimonial-card {
        flex:0 0 100%;
        max-width:100%;
        width:100%;
        min-width:100%;
        min-height:auto;
    }

}

.testimonial-card:hover {
    transform:translateY(-4px);
    box-shadow:0 1px 1px rgba(0,0,0,.12);
    border-radius: 24px;
}

/* ====================================
QUOTE ICON
==================================== */
.testimonial-card::before {
    content:"“";
    position:absolute;
    top:12px;
    left:22px;
    font-size:70px;
    color:#1F3FD1;
    opacity:.08;
    line-height:1;
    font-family:serif;
}

/* ====================================
TEXT
==================================== */
.testimonial-text p {
    font-size:18px;
    line-height:1.65;
    color:#4a4a4a;
    font-weight:400;
    margin-bottom:0 !important;
}

/* ====================================
PHOTO
==================================== */
.testimonial-avatar {
    width: 90px;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 5px solid #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08) !important;
}

/* ====================================
NAME / INFO
==================================== */
.testimonial-name {
    font-size:22px;
    font-weight:700;
    color:#111;
    margin:0 0 5px;
}

.testimonial-position,
.testimonial-company {
    font-size:15px;
    color:#f59b14;
    font-weight:500;
    margin:0;
}

/* ====================================
RATING
==================================== */
.testimonial-rating {
    display:flex;
    gap:4px;
    margin:18px 0 14px;
}

.star {
    font-size:18px;
    color:#ddd;
}

.star.filled {
    color:#f7b500;
}

/* ====================================
ARROWS
==================================== */
.testimonials-prev,
.testimonials-next {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    background:#1F3FD1;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    z-index:20;
    box-shadow:0 8px 20px rgba(31,63,209,.25);
    transition:.3s ease;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    transform:translateY(-50%) scale(1.08);
}

.testimonials-prev{ left:0; }
.testimonials-next{ right:0; }

/* ====================================
DOTS
==================================== */
.testimonials-dots {
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:28px;
}

.dot {
    width:11px;
    height:11px;
    border:none;
    border-radius:50%;
    background:#d9d9d9;
    cursor:pointer;
    transition:.3s ease;
}

.dot.active {
    background:#1F3FD1;
    transform:scale(1.2);
}

/* ====================================
TABLET
==================================== */
@media (max-width:1023px) {

    .testimonials-container{
        padding:15px 50px 55px;
        gap: 20px;
    }

    .testimonial-card{
        flex:0 0 calc((100% - 28px) / 2);
        max-width:calc((100% - 28px) / 2);
        min-height:410px;
    }

    .testimonial-text{
        font-size:18px;
    }

}

/* ====================================
MOBILE
==================================== */
@media (max-width:767px) {

    .testimonials-container{
        padding:10px 15px 50px;
        gap: 10px;
    }

    .testimonials-slider{
        gap:10;
    }

    .testimonial-card{
        flex:0 0 100%;
        max-width:100%;
        min-height:auto;
        padding:32px 24px 28px;
        border-radius:24px;
    }

    .testimonial-text{
        font-size:16px;
        margin-bottom:24px;
    }

    .testimonial-avatar{
        width:75px;
        height:75px !important;
    }

    .testimonial-name{
        font-size:20px;
    }

    .testimonials-prev,
    .testimonials-next{
        display:none;
    }

}

/* ====================================
SMALL MOBILE
==================================== */
@media (max-width:480px) {

    .testimonial-card{
        padding:28px 20px;
    }

    .testimonial-text{
        font-size:15px;
    }

    .testimonial-name{
        font-size:18px;
    }

}

/* ====================================
AUTO FULL WIDTH IF ONLY 1 TESTIMONIAL
==================================== */

/* If only one testimonial card exists */
.testimonials-slider > .testimonial-card:only-child{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 auto;
}

/* Center content nicer for single card */
.testimonials-slider:has(> .testimonial-card:only-child){
    justify-content: center;
}

/* Hide arrows/dots when only one testimonial */
.testimonials-slider-wrapper:has(.testimonials-slider > .testimonial-card:only-child) .testimonials-prev,
.testimonials-slider-wrapper:has(.testimonials-slider > .testimonial-card:only-child) .testimonials-next,
.testimonials-slider-wrapper:has(.testimonials-slider > .testimonial-card:only-child) .testimonials-dots{
    display:none !important;
}