#testimonials {
    background: #ffffff;
    border-top: 1px solid #e6e8ed;
}

#testimonials h2 {
    color: #1e2057;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.testimonials-header {
    align-items: flex-end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.testimonials-header > div:first-child {
    max-width: 720px;
    min-width: 0;
}

.testimonials-header p {
    color: #616977;
    line-height: 1.6;
}

.testimonial-avatar {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 700;
    height: 36px;

    justify-content: center;
    width: 36px;
}

.testimonial-avatar--homma {
    background: #1e2057;
    color: #ffffff;
}

.google-review-source {
    align-items: center;
    color: #315d9b;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 700;
    gap: .45rem;
    margin-bottom: .65rem;
}

.google-review-source i {
    color: #4285f4;
}

.testimonials-controls {
    display: flex;
    flex-shrink: 0;
    gap: .55rem;
}

.testimonials-control {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c9ad67;
    border-radius: 50%;
    color: #1e2057;
    display: inline-flex;
    height: 38px;

    justify-content: center;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
    width: 38px;
}

.testimonials-control:hover,
.testimonials-control:focus {
    background: #c9ad67;
    color: #1e2057;
}

.testimonials-control:disabled {
    cursor: default;
    opacity: .35;
}

.testimonials-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-viewport::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.testimonial-card {
    background: #f7f8fa;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    display: flex;
    flex: 0 0 calc((100% - 2rem) / 3);
    flex-direction: column;
    min-height: 245px;

    padding: 1.25rem;
    scroll-snap-align: start;
}

.testimonial-card__top {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.testimonial-rating {
    color: #c99d38;
    display: flex;
    font-size: .8rem;
    gap: .18rem;
}

.testimonial-card blockquote {
    color: #374151;
    font-size: .94rem;
    line-height: 1.7;
    margin: 1.15rem 0 1.4rem;
}

.testimonial-author {
    align-items: center;
    display: flex;
    gap: .7rem;
    margin-top: auto;
}

.testimonial-author strong,
.testimonial-author small {
    display: block;
}

.testimonial-author strong {
    color: #1e2057;
    font-size: .86rem;
}

.testimonial-author small {
    color: #697281;
    font-size: .72rem;
    margin-top: .12rem;
}

.testimonials-footer {
    align-items: center;
    color: #697281;
    display: flex;
    font-size: .78rem;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.testimonials-footer a {
    color: #876519;
    font-weight: 700;
    text-decoration: none;
}

.testimonials-footer a i {
    margin-left: .25rem;
}

.testimonials-footer__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .testimonial-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 767.98px) {
    #testimonials h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .testimonials-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .testimonials-controls {
        align-self: flex-end;
    }

    .testimonials-header p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .testimonials-control {
        height: 34px;
        width: 34px;
    }

    .testimonial-card {
        flex-basis: 86%;
        min-height: 230px;
        padding: 1rem;
    }

    .testimonial-card blockquote {
        font-size: .88rem;
        line-height: 1.6;
    }

    .testimonials-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-control {
        transition: none;
    }

    .testimonials-viewport {
        scroll-behavior: auto;
    }
}
