/* ================= TESTIMONIALS ================= */




.testimonial-wrap {
    display: flex;
    align-items: center;
    gap: 100px;
    flex-wrap:wrap;
    width:100%;
}

.testimonial-content {
    flex: 0 0 auto;
    width: calc(100% - 940px);
    max-width:560px;

    [class*="heading-"]{
        text-wrap-style:balance;
    }

}
.testimonial-visual {
   width:840px;
}
.testimonial-content__desc {
    max-width: 557px;
    margin-bottom: 26px;
    color: var(--text-color);
}


.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 31px;
}

.testimonial-rating__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border: 1px solid var(--border-light);
    border-radius: var(--circle);
    background-color: var(--white);
            padding: 4px;
}
.testimonial-rating__icon>img {
    display: block;
    object-fit: contain;
    border-radius: 100%;
}


/* ---- Slider visual ---- */


.js-testimonial {
    position: relative;
   display:flex;
   flex-wrap:wrap;
   list-style-type:none;
   margin:0;
   padding:0;
}
.js-testimonial.slick-initialized{
    display:block;
}
.js-testimonial .slick-track{
   display:flex;
}
.js-testimonial .slick-slide{
     height:auto;
}
.js-testimonial .slick-slide>div{
    display:flex;
    flex-wrap:wrap;
    height:100%;
    width:100%;
}

.js-testimonial::before {
    content: "";
    position: absolute;
    inset: 22px -22px 22px -23px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
}
ul.js-testimonial li{
    margin:0;
    width:100%;
}

.testimonial-card {
    position: relative;
    background-color: var(--white);
    border: 1px solid #E3E3E3;
    border-radius: 20px;
    padding: 48px 70px 44px;
    height:100%;
}

.testimonial-card__top {
    position: relative;
    margin-bottom: 12px;
}

.testimonial-card__quote {
    position: absolute;
    top: 0;
    right: -30px;
}

.testimonial-card__stars {
    display: block;
}

.testimonial-card__text {
    position: relative;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    line-height: 30px;
    color: var(--text-color);
}

.testimonial-card__text p:first-child {
    margin-bottom: 20px;
}

.testimonial-card__footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--circle);
    background-color: #E8F1F0;
    color: #006557;
    font-weight: var(--font-weight-bold);
    font-size: 22px;
}

.testimonial-card__name {
    font-size: 18px;
    line-height:1.2;
    font-weight: var(--font-weight-bold);
    color: #262525;
}

.testimonial-card__source {
    font-size: 16px;
    line-height:1.2;
    font-weight: var(--font-weight-semibold);
    color: #666769;
    margin-top: 2px;
}
.testimonial-rating__meta p
{
    font-weight:var(--font-weight-bold);
}


.testimonial-list
{
     ul.js-testimonial 
     {
        gap:20px;
     }
     ul.js-testimonial li{
       width:calc(33.33% - 20px);
    
     }
}
@media (max-width: 1599.98px) {
    .testimonial-wrap {
        gap: 60px;
        justify-content: space-between;
                padding-right: 22px;
    }

    .testimonial-content {
        width:calc(100% - (740px + 60px));
        max-width: 480px;
    }

    .testimonial-visual {
        width: 740px;
    }

    .testimonial-card {
        padding: 40px 56px 36px;
    }

    .testimonial-card__quote {
        right: -20px;
        width: 76px;
        height: auto;
    }
    .testimonial-list
    {
        ul.js-testimonial 
        {
            gap:20px;
        }
        ul.js-testimonial li{
            
            .testimonial-card {
                padding:30px;
            }
        
        }
    }
}

@media (max-width: 1439.98px) {
    .testimonial-wrap {
        gap: 40px;
    }

    .testimonial-content {
        width: calc(100% - 660px);
        max-width: 420px;
    }

    .testimonial-visual {
        width: 620px;
    }

    .testimonial-card {
        padding: 34px 44px 30px;
    }

    .testimonial-card__quote {
        right: -14px;
        width: 64px;
    }

    .testimonial-rating__icon {
        width: 46px;
        height: 46px;
    }

    .testimonial-list
    {
            ul.js-testimonial 
            {
                gap:15px;
            }
            ul.js-testimonial li
            {      
                width: calc(33.33% - 15px);
            }
    }
}

@media (max-width: 1199.98px) {
    .js-testimonial::before{
        inset: 12px -12px 12px -13px;
    }
    .testimonial-content__desc{
        max-width:100%;
        margin-bottom:16px;
    }
    .testimonial-rating{
        margin-bottom:20px;
    }
    .testimonial-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding-right:0;
    }

    .testimonial-content {
        width: 100%;
        max-width: 100%;
    }

    .testimonial-visual {
        width: 100%;
        padding:0 12px;
    }

    .testimonial-card {
        padding: 32px 40px 28px;
    }

    .testimonial-card__quote {
        right: 0;
        width: 56px;
    }

    .testimonial-rating__icon {
        width: 42px;
        height: 42px;
    }

        .testimonial-list
        {
            ul.js-testimonial 
            {
                gap:15px;
            }
            ul.js-testimonial li
            {      
                width: calc(50% - 15px);
            }
        }

}

@media (max-width: 991.98px) {
    .testimonial-wrap {
        gap: 24px;
    }

    .testimonial-card {
        padding: 28px 30px 24px;
    }

    .testimonial-card__text {
        font-size: 16px;
        line-height: 26px;
    }

    .testimonial-card__quote {
        width: 48px;
    }
}

@media (max-width: 767.98px) {
    .testimonial-wrap {
        gap: 20px;
    }

    .testimonial-card {
        padding: 24px 24px 20px;
        border-radius: 14px;
    }

    .js-testimonial::before {
        inset: 16px -12px 16px -12px;
        border-radius: 14px;
    }

    .testimonial-card__footer {
        gap: 10px;
        padding-top: 20px;
    }

    .testimonial-avatar {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .testimonial-rating {
        gap: 8px;
        margin-bottom: 20px;
    }

    .testimonial-rating__icon {
        width: 38px;
        height: 38px;
    }

        .testimonial-list
        {
            ul.js-testimonial 
            {
                gap:15px;
            }
            ul.js-testimonial li
            {      
                width: 100%;
            }
            .testimonial-card {
                padding: 20px 18px 18px;
            }
        }
}

@media (max-width: 575.98px) {
    .testimonial-wrap {
        gap: 16px;
    }

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

    .testimonial-card__quote {
        width: 40px;
        right: -4px;
    }

    .testimonial-card__text {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 18px;
    }

    .testimonial-card__name {
        font-size: 16px;
    }

    .testimonial-card__source {
        font-size: 13px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonial-rating__meta img {
        width: 90px;
        height: auto;
    }
    .testimonial-content__desc{
        margin-bottom:15px;
    }
        .testimonial-list {
         ul.js-testimonial li {
            .testimonial-card {
                padding:20px;
            }
        }
    }
}
