/*------- client testimonials (Figma: node 470:8) -------*/
.testimonial-row.js-testimonial.slick-initialized
{
    display:block;
}
.testimonial-row.js-testimonial .tcard-li:not(:nth-child(-n + 3))
{
  display: none;
}
.testimonial-sec {
    
    .testimonial-row .slick-slide {
        height: auto;
        
    }

    /* equal-height cards across the row */
    .testimonial-row .slick-track {
        display: flex;
    }

    .testimonial-row .slick-slide>div {
        height: 100%;
        display:flex;
        flex-wrap:wrap;
        width:100%;
    }

    .testimonial-row{
        .slick-arrow {
            top: 100%;
        }
        .slick-next {
            right: 50%;
            margin-right: -48px;
        }
        .slick-prev{
            left: 50%;
            margin-left: -48px;
        }
    }
}

.testimonial-row{
    display:flex;
    flex-wrap:wrap;
    margin:0 -24px;
}



.testimonial-row:has(.slick-arrow) {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.tcard-li{
    width:33.33%;
    padding:0 24px;
    margin-bottom: 48px;
}
   
.tcard {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--primary);
    padding: 70px 56px 60px;
   
}

.tcard-content{
    margin-bottom:30px;
}
/* google "G" flanked by short double-lines */
    .tcard-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        width: 100%;
        margin-bottom: 36px;

        & img {
            flex: none;
            display: block;
            width: 44px;
            height: 45px;
        }
    }

    .tcard-line {
        flex: 0 1 108px;
        height: 0;
        border-bottom: 3px double rgb(55 55 55 / 20%);
    }

    /* reviewer name + stars pinned toward the bottom */
    .tcard-name {
        margin-top: auto;
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: 0.6px;
        text-transform: capitalize;
        color: var(--theme);
        font-family: var(--font-body-family);
    }

    .tcard-stars {
        margin-top:4px;

        & img {
            display: block;
            width: 102px;
            height: 18px;
            margin: 0 auto;
        }
    }

    /* bottom divider */
    .tcard-bottom{
        border-bottom: 3px double rgb(116 112 112 / 20%);
        display: block;
        width: 100%;
        padding-bottom:45px;
        margin-top:auto;
    }

    .testimonial-inner .container{max-width:1390px;}
    .testimonial-inner .testimonial-row .tcard-li{width: 50%;}
    .testimonial-inner .testimonial-row .tcard-li:nth-child(3n){width: 100%;}


.tcard-li .tcard-content{
    padding-right: 25px;
    max-height: 235px;
    overflow: auto;
}


::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}


::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 4px;
}


::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
  background: #000;
}



/* RESPONSIVE  MEDIA QUERY */

@media (max-width: 1599.98px) {
.testimonial-sec {
    .testimonial-row{
       margin: 0 -14px;  
    }
    .tcard-li {
        width: 33.33%;
        padding: 0 14px;
    }
}
}

@media (max-width: 1439.98px) {
    .testimonial-sec {
        .tcard-li {
            width:50%;
        }
    }
    .testimonial-row.js-testimonial .tcard-li:not(:nth-child(-n + 2)) {
        display: none;
    }
    
}   

@media (max-width: 1199.98px) {
    .testimonial-sec .testimonial-row {
        margin: 0 -8px;
    }
    .testimonial-sec .tcard-li {
        padding: 0 8px;
    }
    .testimonial-sec .tcard {
        padding:40px;
    }
    .testimonial-sec .tcard-logo {
        margin-bottom:20px;
    }
    .testimonial-sec .tcard-line {
        flex-basis: 70px;
    }
    .testimonial-sec .tcard-name {
        font-size: 26px;
    }
    .testimonial-sec
    {
        .tcard-bottom{
            padding-bottom:30px;
        }
    }

    .testimonial-sec {
        .testimonial-row:has(.slick-arrow) {
            padding-bottom: 60px;
            margin-bottom: 20px;
        }
    }

    .testimonial-row{margin: 0 -10px;}
    .tcard-li{padding: 0 10px;margin-bottom: 20px;}
    .tcard{padding: 30px;}
    .tcard-logo ,
    .tcard-content{margin-bottom: 20px;}
    .tcard-bottom{padding-bottom: 25px;}
    

}

@media (max-width: 991.98px) {
    
    .testimonial-sec .tcard {
        padding:35px;
    }
    .testimonial-sec .tcard-bottom {
        padding-bottom: 30px;
    }

    .testimonial-sec {
        .tcard-li {
            width:100%;
        }
    }
    .testimonial-row.js-testimonial .tcard-li:not(:nth-child(-n + 1)) {
        display: none;
    }

    .testimonial-sec {
        .testimonial-row:has(.slick-arrow) {
            padding-bottom: 40px;
            margin-bottom: 20px;
        }
    }

}

@media (max-width: 767.98px) {
    /* one card per slide — let each card size to its own content
       instead of matching the tallest card (removes the empty gap) */
    .testimonial-sec .testimonial-row .slick-track {
        align-items: flex-start;
    }
    .testimonial-sec .testimonial-row .slick-slide > div {
        height: auto;
    }
    .testimonial-sec .tcard {
        height: auto;
        padding: 40px 28px 40px;
    }
    .testimonial-sec .tcard-content {
        margin-bottom: 24px;
    }
    .testimonial-sec .tcard-name {
        font-size: 24px;
    }
    .testimonial-inner .testimonial-row .tcard-li{width: 100%;margin-bottom: 12px;}
    .tcard {padding: 20px;}
    .tcard-li .tcard-content{max-height: 155px;height: 155px;}

}

@media (max-width: 575.98px) {
    .testimonial-sec .testimonial-row {
        margin: 0 -8px;
    }
    .testimonial-sec .tcard-li {
        padding: 0 8px;
    }
    .testimonial-sec .tcard {
        padding: 36px 22px 36px;
    }
    .testimonial-sec .tcard-logo {
        gap: 12px;
        margin-bottom: 22px;
    }
    .testimonial-sec .tcard-line {
        flex-basis: 50px;
    }
    .testimonial-sec .tcard-name {
        font-size: 22px;
    }
    .tcard-li .tcard-content {
        max-height: 140px;
        height: 140px;
    }

}