.testimonials {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.testimonials--image h2,
.testimonials--image h3,
.testimonials--image h4,
.testimonials--image h5,
.testimonials--image h6,
.testimonials--image .h2,
.testimonials--image .h3,
.testimonials--image .h4,
.testimonials--image .h5,
.testimonials--image .h6,
.testimonials--image .sub-heading,
.testimonials--image .list-heading,
.testimonials--image .testimonials__headings {
    color: var(--white);
}

.testimonials__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

.testimonials--image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: #000;
    opacity: 0.48;
}

.testimonials__headings {
    display: flex;
    flex-flow: column-reverse;
    text-align: center;
    margin-bottom: var(--section-spacing);
    gap: var(--paragraph-spacing);
}

.testimonials__title h2 {
    margin-bottom: 0;
}

.testimonials__title h2:has(+ p) {
    margin-bottom: var(--heading-spacing);
}

.testimonials__headlines {
    padding-bottom: 16px;
}

.testimonials__disclaimer {
    display: flex;
    place-content: center;
    place-items: center;
    width: 235px;
    padding: 11px;

    .testimonials__disclaimer__img {
        display: block;
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }
}

.testimonials__headlines .testimonials__reviews {
    display: inline-flex;
    float: none;
    left: 50%;
    margin: 0 auto 16px;
    transform: translateX(-50%);
}

.testimonials__reviews {
    position: relative;
    width: 275px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: linear-gradient(172deg, rgba(0, 0, 0, 0.03) 5.32%, rgba(0, 0, 0, 0.01) 93.56%);
    backdrop-filter: blur(5.5px);
    padding: 11px;
    display: flex;
    align-items: center;
    text-align: left;
}

.testimonials__review-text {
    margin-left: 8px;
    text-wrap: balance;
}

.bg-dark .testimonials__reviews,
.bg-medium .testimonials__reviews {
    background: var(--light);
}

.bg-light .testimonials__reviews {
    background: var(--white);
    border-color: var(--border-color);

}

.testimonials__review-text h4 {
    margin: 0;
    text-transform: none;
    font-size: 15px;
    margin-left: 10px;
    max-width: 200px;
    line-height: 1.444em;
    color: var(--headline);
}

.testimonials__rating {
    font-size: 21px;
    font-weight: 700;
    display: flex;
    gap: 9px;
    align-items: center;
    line-height: 1.238em;
    color: var(--headline);
}

.testimonials__rating span {
    font-size: 17px;
    font-weight: normal;
    display: flex;
    gap: 4px;
    line-height: 1em;
    color: var(--star-color);
}

.testimonial-slider {
    margin: 0 -16px;
    padding: 0 var(--testimonial-arrow-spacing-inline);
}

.testimonial-slider:has(.slick-arrow) {
    padding: 0 var(--testimonial-arrow-spacing-inline) var(--testimonial-arrow-spacing-bottom) var(--testimonial-arrow-spacing-inline);
}

.testimonial-item {
    padding: var(--padding-small);
}

.testimonial {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--drop-shadow);
    background: var(--light);
    padding: var(--padding-medium);
    color: var(--body-color);
    position: relative;
}

.testimonial-slider .testimonial {
    width: 100%;
    margin: 0 auto;
}

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

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--medium);
}

.bg-medium .testimonial::before {
    background: var(--primary-color);
}

.testimonial-slider .testimonial {
    background: var(--white);
    border-radius: var(--border-radius-small);
}

.testimonial-slider .testimonial::before {
    display: none;
}

.testimonial__star {
    font-size: 17px;
    font-weight: normal;
    display: flex;
    gap: 4px;
    line-height: 1em;
    color: var(--star-color);
    margin-bottom: 12px;
}

.testimonial__meta {
    display: flex;
    margin-top: auto;
}

.testimonial__meta__author {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.375em;
    color: var(--medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.testimonial__meta__author span,
.testimonial__author span {
    display: block;
}

span.__author_role {
    font-weight: 500;
}

span.__author_association {
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 500;
}

.testimonial__meta__logo {
    margin-left: auto;
    width: 30px;
    height: 30px;

    .testimonial__meta__logo-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.testimonial__meta__logo-img {
    width: 24px;
    height: 24px;
}


.testimonial-flex .testimonial__description {
    max-height: 100%;
}

.testimonial__description {
    max-height: 260px;
    margin: 0 0 var(--paragraph-spacing);
    overflow: auto;

    @supports not (selector(::-webkit-scrollbar-thumb)) {
        scrollbar-color: var(--medium) var(--light-green);
        scrollbar-width: thin;
    }
}

.testimonial__description p {
    display: inline-block;
}

.testimonial__description p:first-child::before {
    content: '“';
}

.testimonial__description p:last-child::after {
    content: '”';
}

.testimonial__description::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.testimonial__description::-webkit-scrollbar-track {
    background: rgba(59, 105, 86, 0.3);
    border-radius: 100px;
}

.testimonial__description::-webkit-scrollbar-thumb {
    background: var(--medium);
    border-radius: 100px;
}

.testimonial__description a.read-more {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.testimonial-slider .slick-slide {
    height: inherit;
}

.testimonial-slider .testimonial__author {
    color: var(--medium);
}

.testimonial__author {
    margin-top: auto;
    font-weight: bold;
    color: var(--medium);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.testimonial-slider .testimonial__star {
    margin-bottom: 24px;
}

.testimonials__reviews--slider {
    border-color: rgba(255, 255, 255, 0.30);
}

.testimonials__reviews--slider h4,
.testimonials__reviews--slider .testimonials__rating {
    color: var(--white);
}

.testimonials__reviews--slider {
    background: linear-gradient(172deg, rgba(0, 0, 0, 0.03) 5.32%, rgba(0, 0, 0, 0.01) 93.56%) !important;
}

.testimonials__title {
    text-align: center;
}

@media (min-width: 768px) {
    .testimonials__headings {
        text-align: left;
        display: block;
        max-width: 832px;
        margin: 0 auto var(--padding-medium);
    }

    .testimonials__reviews {
        margin: 0;
    }

    .testimonial-slider {
        margin: 0 -8px;
        padding: 0 0 0 var(--testimonial-arrow-spacing-inline);
    }

    .testimonial-slider:has(.slick-arrow) {
        padding: 0 0 var(--testimonial-arrow-spacing-bottom) var(--testimonial-arrow-spacing-inline);
    }

    .testimonial-item {
        padding: 16px 8px;
    }

    .testimonial {
        padding: var(--testimonial-padding);
    }

    .testimonial-slider .testimonial {
        border-radius: var(--border-radius);
        padding: var(--padding-medium);
    }

    .testimonial-slider .testimonial {
        width: 542px;
    }
}


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

    .testimonial-slider:has(.slick-arrow) {
        padding: 0 0 var(--testimonial-arrow-spacing-bottom) 0;
    }

    .testimonials .container {
        max-width: 940px;
        margin: 0 auto;
    }

    .testimonial-flex {
        display: flex;
        justify-content: center;
    }

    .testimonial-item {
        padding: 0 var(--padding-small);
    }

    .testimonial-flex .testimonial-item {
        padding: var(--padding-small);
    }

    .testimonial {
        padding: var(--testimonial-padding);
    }

    .testimonial-slider .testimonial {
        width: 398px;
        padding: var(--padding-medium);
    }

    .testimonial__description a.read-more:hover {
        color: var(--primary-hover);
        border-color: var(--primary-hover);
    }

    .testimonials__title h2:has(+ p) {
        margin-bottom: var(--soft-half);
    }
}
