.remax-testimonials {
    --testimonials-navy: #000e35;
    --testimonials-red: #ff1200;
    --testimonials-muted: #777e8d;
    --testimonials-line: #e0e2e6;
    overflow: hidden;
    padding: clamp(72px, 8vw, 112px) 0;
    background: #fff;
    color: var(--testimonials-navy);
}

.remax-testimonials__header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
    gap: clamp(24px, 5vw, 72px);
    margin-bottom: clamp(36px, 5vw, 62px);
}

.remax-testimonials__title {
    margin: 0;
    color: var(--testimonials-navy);
    font-family: var(--heading-font, inherit);
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.remax-testimonials__title > span {
    color: var(--testimonials-red);
}

.remax-testimonials__subtitle {
    max-width: 470px;
    margin: 0 0 5px;
    color: var(--testimonials-muted);
    font-family: var(--primary-font, inherit);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
}

.remax-testimonials__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.remax-testimonials__track {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 24px;
    transition: transform 620ms cubic-bezier(.22, .61, .36, 1);
}

.remax-testimonials__slide {
    display: flex;
    min-width: 0;
    flex: 0 0 calc((100% - 48px) / 3);
    flex-direction: column;
}

.remax-testimonials__image-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f7f7;
}

.remax-testimonials__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.remax-testimonials__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 20px;
    color: var(--testimonials-muted);
    font-size: .9rem;
    text-align: center;
}

.remax-testimonials__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding-top: 20px;
    transition: opacity 180ms ease, transform 180ms ease;
}

.remax-testimonials__quote {
    display: block;
    height: 48px;
    color: var(--testimonials-red);
    font-family: Georgia, serif;
    font-size: 78px;
    font-weight: 700;
    line-height: .9;
}

.remax-testimonials__quote-text {
    margin: 0;
    color: var(--testimonials-navy);
    font-family: var(--heading-font, inherit);
    font-size: clamp(1.15rem, 1.55vw, 1.45rem);
    font-weight: 500;
    line-height: 1.48;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.remax-testimonials__label {
    margin: 18px 0;
    color: var(--testimonials-muted);
    font-family: var(--primary-font, inherit);
    font-size: .9rem;
    line-height: 1.5;
}

.remax-testimonials__agent {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--testimonials-line);
    font-family: var(--heading-font, inherit);
}

.remax-testimonials__agent-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.remax-testimonials__agent-name {
    color: var(--testimonials-navy);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.remax-testimonials__agent-company {
    color: var(--testimonials-muted);
    font-family: var(--primary-font, inherit);
    font-size: .85rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.remax-testimonials__profile-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--testimonials-navy);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: color 180ms ease;
}

.remax-testimonials__profile-link:hover {
    color: var(--testimonials-red);
}

.remax-testimonials__profile-link svg {
    width: 19px;
    height: 19px;
    color: var(--testimonials-red);
    transition: transform 180ms ease;
}

.remax-testimonials[dir="rtl"] .remax-testimonials__profile-link svg {
    transform: scaleX(-1);
}

.remax-testimonials__profile-link:hover svg {
    transform: translate(2px, -2px);
}

.remax-testimonials[dir="rtl"] .remax-testimonials__profile-link:hover svg {
    transform: scaleX(-1) translate(2px, -2px);
}

.remax-testimonials__controls {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    margin-top: clamp(36px, 5vw, 62px);
}

.remax-testimonials__counter {
    flex: 0 0 auto;
    color: var(--testimonials-navy);
    font-family: var(--heading-font, inherit);
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.remax-testimonials__counter-divider,
.remax-testimonials__total {
    color: #a4a8b0;
}

.remax-testimonials__progress {
    position: relative;
    height: 5px;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #e1e2e5;
}

.remax-testimonials__progress > span {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    display: block;
    width: 0;
    border-radius: inherit;
    background: var(--testimonials-red);
    transition: width 420ms cubic-bezier(.22, .61, .36, 1);
}

.remax-testimonials__navigation {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
}

.remax-testimonials__button {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--testimonials-navy);
    border-radius: 50%;
    background: #fff;
    color: var(--testimonials-navy);
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.remax-testimonials__button--next {
    background: var(--testimonials-navy);
    color: #fff;
}

.remax-testimonials__button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--testimonials-red);
    color: #fff;
}

.remax-testimonials__button:disabled {
    cursor: default;
    opacity: .48;
}

.remax-testimonials__button:focus-visible,
.remax-testimonials__profile-link:focus-visible {
    outline: 2px solid var(--testimonials-red);
    outline-offset: 4px;
}

.remax-testimonials__button svg {
    width: 24px;
    height: 24px;
}

.remax-testimonials[dir="rtl"] .remax-testimonials__button svg {
    transform: scaleX(-1);
}

.remax-testimonials__empty {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--testimonials-line);
    color: var(--testimonials-muted);
    font-size: 1rem;
}

.remax-testimonials:focus-visible {
    outline: 2px solid var(--testimonials-red);
    outline-offset: -2px;
}

.remax-testimonials.has-reveal .remax-testimonials__slide {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 550ms ease, transform 550ms cubic-bezier(.2, .65, .3, 1);
    transition-delay: var(--testimonial-delay, 0ms);
}

.remax-testimonials.has-reveal .remax-testimonials__image-wrap {
    opacity: 0;
    transform: scale(.97);
    transition: opacity 650ms ease, transform 850ms cubic-bezier(.2, .7, .2, 1);
}

.remax-testimonials.has-reveal.is-visible .remax-testimonials__slide {
    opacity: 1;
    transform: translateY(0);
}

.remax-testimonials.has-reveal.is-visible .remax-testimonials__image-wrap {
    opacity: 1;
    transform: scale(1);
}

.remax-testimonials.has-reveal .remax-testimonials__body {
    opacity: 1;
}

.remax-testimonials.has-reveal .remax-testimonials__body.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

@media (max-width: 1023px) {
    .remax-testimonials__slide {
        flex-basis: calc((100% - 24px) / 2);
    }

    .remax-testimonials__quote-text {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
    }
}

@media (max-width: 767px) {
    .remax-testimonials {
        padding: 64px 0;
    }

    .remax-testimonials__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 30px;
    }

    .remax-testimonials__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .remax-testimonials__subtitle {
        max-width: 520px;
        font-size: 1rem;
    }

    .remax-testimonials__track {
        gap: 16px;
    }

    .remax-testimonials__slide {
        flex-basis: 82%;
    }

    .remax-testimonials__body {
        padding-top: 16px;
    }

    .remax-testimonials__quote {
        height: 42px;
        font-size: 70px;
    }

    .remax-testimonials__quote-text {
        font-size: clamp(1.15rem, 5vw, 1.45rem);
    }

    .remax-testimonials__label {
        margin: 14px 0;
    }

    .remax-testimonials__controls {
        gap: 14px;
        margin-top: 32px;
    }

    .remax-testimonials__counter {
        font-size: 1rem;
    }

    .remax-testimonials__navigation {
        gap: 10px;
    }

    .remax-testimonials__button {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 380px) {
    .remax-testimonials__controls {
        flex-wrap: wrap;
    }

    .remax-testimonials__progress {
        order: 3;
        flex-basis: 100%;
    }

    .remax-testimonials__navigation {
        margin-inline-start: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .remax-testimonials *,
    .remax-testimonials *::before,
    .remax-testimonials *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .remax-testimonials.has-reveal .remax-testimonials__slide,
    .remax-testimonials.has-reveal .remax-testimonials__image-wrap {
        opacity: 1;
        transform: none;
    }
}
