.testimonials {
    position: relative;
    background: var(--color-bg-gray);
}

.testimonials--homepage {
    background: var(--color-bg-gray);
    padding: 0 0 90px;
    position: relative;
}

.testimonial {
    padding: 35px;
    background: var(--color-bg-white);
    border-radius: 10px;
    position: relative;
}

.testimonial-slider .testimonial {
    margin: 0 0 25px;
}

.testimonial__star {
    margin: 0 0 20px;
}

.testimonial p {
    line-height: 1.5em;
    font-size: 18px;
}

.testimonial h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-body);
}

.testimonial-slider {
    padding: 0 0 46px;
    z-index: 1;
}

.testimonial__bottom-btn {
    position: relative;
    margin: 20px 0 0;
    z-index: 3;
}

.testimonials__image {
    height: 200px;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    margin: 0 -22px 35px 0;
    position: relative;
    z-index: 1;
}

.testimonials-slider--innerpage .testimonials__image {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 0 0 35px -22px;
}

.testimonials--homepage:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: var(--color-bg-white);
}

.testimonials__heading {
    margin: 0 0 35px;
}

.testimonials--homepage .sub-heading {
    color: var(--color-primary);
}

.testimonials-slider--innerpage .testimonials__content { 
    padding-bottom: var(--section-margins);
    margin-left: auto;
}

@media(min-width: 768px) {
    .testimonials__image {
        height: 400px;
        margin: 0 -52px 50px 0;
    }

    .testimonials-slider--innerpage .testimonials__image {
        margin: 0 50px 50px -52px;
    }

    .testimonial-slider .slick-slide {
        width: 400px;
        margin: 0 16px;
        height: auto;
        vertical-align: top;
    }

    .testimonial-slider .slick-track {
        display: flex;
    }

    .testimonial-slider .slick-slide>*,
    .testimonial-slide,
    .testimonial-slider .testimonial {
        height: 100%;
    }

    .testimonial-slider .testimonial {
        margin: 0;
    }

    .testimonial-slider {
        margin: 0 -52px 0 0;
        padding: 0 0 85px;
    }

    .testimonial__bottom-btn {
        margin: -54px 0 0;
        text-align: right;
    }

    .testimonials--homepage {
        padding: 0 0 120px;
    }

    .testimonials--homepage:after {
        height: 75px;
    }

    .testimonial {
        padding: 50px 50px 76px;
    }

    .testimonial h3 {
        position: absolute;
        bottom: 50px;
        left: 50px;
    }
}

@media(min-width: 1200px) {
    .testimonial-slider {
        margin: 0;
        padding: 0 0 85px;
        z-index: 3;
    }

    .testimonials__image {
        height: calc(100% - 145px);
        margin: 0;
        width: calc(48% - 10px);
        position: absolute;
        right: 0;
        top: 0;
    }

    .testimonials-slider--innerpage .testimonials__image {
        height: 100%;
        right: auto;
        left: 0;
    }

    .testimonials--homepage {
        padding: 200px 0 270px;
    }

    .testimonials__content {
        position: relative;
        z-index: 1;
        max-width: 832px;
    }

    .testimonial__bottom-btn {
        margin: -54px 0 0;
        text-align: center;
        padding: 0 0 0 40px;
    }

    .testimonial {
        padding: 50px 40px 76px 40px;
    }

    .testimonial h3 {
        left: 40px;
    }

    .testimonials-slider--innerpage .testimonials__content { 
        padding-top: var(--section-margins);
    }

    .testimonials-slider--innerpage {
        .testimonials__heading {
            width: calc(100% - 245px);
            margin-left: auto;
        }

        .slick-prev,
        .slick-next {
            left: 250px;
        }

        .testimonial__bottom-btn {
            text-align: right;
        }
    }
}

.testimonial__stars {
    color: var(--color-link);
    margin-bottom: 12px;
}