.testimonials-half-and-half {
    position: relative;
    padding-left: 22px;
    padding-right: 22px;
}

.testimonials-half-and-half__image {
    width: 100%;
    height: 246px;
    position: relative;
}

.testimonials-half-and-half__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-half-and-half__text {
    margin-top: 32px;
    text-align: center;
    position: relative;
}

.testimonials-half-and-half-text__top-content {
    margin-bottom: 30px;
}

.testimonial {
    background: var(--cream);
    padding: 45px 30px 24px;
    margin-top: 20px;
    border-radius: 7px;
}

.bg-cream .testimonial {
    background: var(--white);
}

.testimonial__quote {
    margin-top: -65px;
}

.testimonial__quote img {
    margin: 0 auto;
}

.testimonial__text p {
    font-size: 18px;
    line-height: 1.61em;
    color: #847F6D;
    font-style: italic;
}

.testimonial__bottom {
    margin-top: 30px;
}

.testimonial__bottom h4 {
    font-size: 18px;
    line-height: normal;
    color: #000000;
    font-weight: 700;
    margin: 0 0 5px;
    padding: 0;
    text-transform: uppercase;
}

.testimonial__bottom h5 {
    font-size: 16px;
    line-height: 1.3em;
    color: #332F21;
    font-weight: 400;
    margin: 0 0;
    padding: 0;
}

.testimonial__company-logo img {
    mix-blend-mode: multiply;
}

.testimonials-slider-wrap {
    padding-bottom: 85px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.homepage-testimonials .js-testimonials-slider .slick-track {
    display: flex;
    gap: 20px;
}

.js-testimonials-slider .slick-arrow::before {
    background: var(--primary);
    color: var(--black);
}

.js-testimonials-slider .slick-arrow:hover::before {
    background: var(--primary-hover);
}

.bg-dark .testimonials-btn .btn-tertiary {
    color: var(--white);
}

.testimonials-btn .btn-tertiary::after {
    color: var(--black);
}

.bg-dark .testimonials-btn .btn-tertiary::after {
    color: var(--white);
}

@media (min-width: 768px) {
    .testimonials-half-and-half {
        padding-left: 52px;
        padding-right: 52px;
    }

    .testimonials-half-and-half__text {
        text-align: left;
    }

    .testimonials-half-and-half__image {
        height: 420px;
    }

    .testimonials-half-and-half-text__top-content {
        margin-bottom: 35px;
    }

    .testimonial {
        padding: 48px 30px 15px;
        margin-top: 33px;
    }

    .testimonial__quote {
        margin-top: -70px;
    }

    .testimonial__quote img {
        margin: 0;
    }

    .testimonial__bottom {
        margin-top: 30px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
    }

    .testimonial__autor-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
        padding-bottom: 11px;
    }

    .testimonial__bottom h4 {
        margin: 0 0 0;
    }

    .testimonials-slider-wrap {
        padding-bottom: 85px;
        margin-bottom: 0;
    }

    .testimonials-slider-wrap .slick-arrow {
        left: 0;
        transform: none;
        z-index: 5;
        cursor: pointer;
    }

    .testimonials-slider-wrap .slick-next {
        margin-left: 62px;
    }

    .testimonials-slider-wrap .slick-prev {
        margin-left: 0px;
    }

    .testimonials-btn {
        margin-top: -34px;
        text-align: right;
        position: relative;
        z-index: 10;
        max-width: 300px;
        margin-left: auto;
        margin-right: 0;
    }

    .testimonials-btn .btn {
        position: relative;
        z-index: 10;
    }

    .testimonials-slider-wrap .slick-track {
        display: flex;
    }

    .testimonials-slider-wrap .slick-slide {
        vertical-align: top;
        height: auto
    }

    .testimonials-slider-wrap .slick-slide > div {
        height: 100%;
    }

    .testimonials-slider-wrap .slick-slide .fx-slide {
        height: 100%;
    }

    .testimonials-slider-wrap .testimonials-slider-item .testimonial {
        height: 100%;
    }
}

@media (min-width: 1200px) {
    .testimonials-half-and-half {
        display: flex;
        flex-wrap: wrap;
        padding-left: 0;
        padding-right: 0;
    }

    .testimonial__autor-info {
        align-items: flex-start;
        gap: 8px;
        flex-direction: column;
        padding-bottom: 0;
    }

    .testimonials-half-and-half__image,
    .testimonials-half-and-half__text {
        width: 50%;
        height: auto;
    }

    .testimonials-half-and-half__image img {
        position: absolute;
        width: calc(100% - 115px);
    }

    .testimonials-flex-opposite .testimonials-half-and-half__image img {
        right: 0;
    }

    .testimonials-flex-opposite {
        flex-direction: row-reverse;
    }

    .testimonials-half-and-half__text {
        margin-top: 0;
        padding: 0 0 0 13px;
    }

    .testimonials-flex-opposite .testimonials-half-and-half__text {
        padding-left: 13px;
        padding-right: 13px;
    }

    .testimonials-half-and-half-text__wrapper {
        max-width: 617px;
    }

    .testimonials-flex-opposite .testimonials-half-and-half-text__wrapper {
        margin-left: auto;
    }

    .testimonial {
        padding: 45px 30px 29px 30px;
    }

    .testimonial__bottom {
        margin-top: 14px;
    }

    .testimonial__quote {
        top: -7px;
        position: relative;
        left: -2px;
    }
}

@media (min-width: 1600px) {
    .testimonials-flex-opposite .testimonials-half-and-half__text {
        padding-left: 0;
    }
}

/*
 * Testimonials Listing
 */

.testimonials-listing-item {
    margin-bottom: calc(var(--section-margins) * .5);
}

.testimonial__company-logo {
    max-width: 153px;
}

/* Testimonials Slider */

.testimonials-listing-slider {
    margin-bottom: 0;

   & .slick-track {
    display: flex;
   }

   & .slick-list {
        overflow: hidden;
        margin: 0 -27px;
   }

     /* the slides */
    & .slick-slide {
        margin: 0 27px;

        & > div {
            height: 100%;
            & .testimonials-listing-item {
                margin-bottom: 0;
                height: 100%;

                & .testimonial {
                    height: 100%;
                }
            }
        }
    }

    & .slick-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        list-style: none;
        padding: 0;
        margin: 0;
        margin-top: 30px;

        & li {
            margin: 0!important;
                & button {
                    width: 20px;
                    height: 20px;
                    border-radius: 50%;
                    background: var(--primary);
                    border: none;
                    cursor: pointer;
                    padding: 0;
                    margin: 0;
                    color: transparent;
                    font-size: 0;

                    &:hover {
                        background: var(--primary-hover);
                    }
                    &:focus {
                        outline: none;
                    }
                    &:visited {
                        background: var(--primary);
                    }
            }

            &::before {
                display: none;
            }

            &.slick-active {
                & button {
                    background: var(--primary-hover);
                }
            }
        }
    }
}

.testimonial-images-wrapper,
.js-testimonial-images {
    height: 100%;
}

.js-testimonial-images {
    max-height: 500px;
    height: 100%;

    & .slick-list {
        height: 100%;
    }

    & .slick-track {
        display: flex;
    }
}

.testimonial-images-wrapper img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media( min-width : 1200px ) {
    .testimonials-half-and-half__archive {
        padding: 0 0 0 60px;
    }
}