.testimonials-section {
    padding: 86px 0 62px;
    color: #111;
    background: linear-gradient(180deg, hsla(0, 0%, 100%, .64), hsla(0, 0%, 100%, .64)), url('../images/bg.jpg') center / cover no-repeat;
}

.testimonials-heading-wrap {
    padding: 0 24px;
    text-align: center;
}

.testimonials-heading-wrap .heading-2.rev {
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-eyebrow {
    margin: 0 0 12px;
    color: #9f222d;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.testimonials-heading-line {
    width: 58px;
    height: 3px;
    margin: 0 auto 36px;
    background: #a32230;
}

.testimonials-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.testimonials-track, .testimonials-group {
    display: flex;
    width: max-content;
}

.testimonials-group {
    gap: 22px;
    padding: 0 22px 0 0;
}

.testimonial-card {
    display: flex;
    flex: 0 0 360px;
    flex-direction: column;
    width: 360px;
    min-height: 250px;
    padding: 25px 28px 23px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    box-sizing: border-box;
}

.testimonial-quote-mark {
    height: 39px;
    font-family: Georgia, serif;
    font-size: 66px;
    line-height: 1;
}

.testimonial-card blockquote {
    flex: 1;
    margin: 0;
    padding: 0 0 25px;
    border: 0;
    color: #111;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-style: normal;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.testimonial-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 15px;
    padding-top: 15px;
    border-top: 1px solid #dedede;
}

.testimonial-rating { color: #111; letter-spacing: .1em; }
.testimonials-controls { min-height: 28px; padding: 18px 24px 0; text-align: center; }
.testimonials-pause { border: 0; padding: 5px 8px; background: transparent; color: #111; cursor: pointer; font: 600 13px 'Open Sans', sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.testimonials-pause:focus-visible, .testimonials-viewport:focus-visible { outline: 3px solid #9f222d; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
    .testimonials-viewport.is-animated { overflow: hidden; }
    .testimonials-viewport.is-animated .testimonials-track { animation: wec-testimonial-scroll var(--testimonials-duration, 100s) linear infinite; }
    .testimonials-viewport.is-animated:hover .testimonials-track,
    .testimonials-viewport.is-animated:focus-within .testimonials-track,
    .testimonials-viewport.is-paused .testimonials-track { animation-play-state: paused; }
    @keyframes wec-testimonial-scroll { to { transform: translateX(-50%); } }
}

@media (max-width: 600px) {
    .testimonials-section { padding: 58px 0 44px; }
    .testimonials-heading-line { margin-bottom: 28px; }
    .testimonial-card { flex-basis: min(82vw, 360px); width: min(82vw, 360px); min-height: 230px; padding: 22px; }
    .testimonials-group { gap: 16px; padding-right: 16px; }
}
