.be-testimonials {
    --be-testimonials-card-width: 350px;
    --be-testimonials-track-gap: 20px;
    width: 100%;
    overflow: hidden;
    color: #333;
    background: #fcfcfc;
}

.be-testimonials__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 96px;
    gap: 60px;
}

.be-testimonials__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    overflow: hidden;
}

.be-testimonials__eyebrow {
    margin: 0;
    color: #f55733;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
}

.be-testimonials__header h2 {
    width: 100%;
    margin: 0;
    color: #333;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.be-testimonials__rows {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.be-testimonials__viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
}

.be-testimonials__track,
.be-testimonials__group {
    display: flex;
    flex: none;
    align-items: stretch;
    width: max-content;
    gap: var(--be-testimonials-track-gap);
}

.be-testimonials__track {
    gap: 0;
    will-change: transform;
}

/* Equal groups include the trailing gap, so 50% is exactly one full loop. */
.be-testimonials__group {
    padding-right: var(--be-testimonials-track-gap);
}

.be-testimonials__track--left {
    animation: be-testimonials-left 30s linear infinite;
}

.be-testimonials__track--right {
    animation: be-testimonials-right 30s linear infinite;
}

.be-testimonials__card {
    display: flex;
    flex: 0 0 var(--be-testimonials-card-width);
    flex-direction: column;
    position: relative;
    width: var(--be-testimonials-card-width);
    height: auto;
    min-height: 266px;
    padding: 30px;
    gap: 20px;
    overflow: hidden;
    border: 0;
    border-radius: 40px;
    background: #fff;
}

.be-testimonials__card::after {
    position: absolute;
    inset: 0 0 1px;
    border: 1px solid #cfcfcf;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.be-testimonials__person {
    display: flex;
    flex: none;
    align-items: center;
    min-width: 0;
    height: 52px;
    gap: 10px;
}

.be-testimonials__person img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.be-testimonials__identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.be-testimonials__identity h3,
.be-testimonials__identity p,
.be-testimonials__quote {
    flex-shrink: 0;
    margin: 0;
}

.be-testimonials__identity h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.be-testimonials__identity p {
    max-width: 100%;
    overflow: hidden;
    color: #545454;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.be-testimonials__quote {
    color: #545454;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}

.be-testimonials__rating {
    display: flex;
    flex: none;
    align-items: center;
    margin-top: auto;
    gap: 10px;
    color: #333;
}

.be-testimonials__rating svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@keyframes be-testimonials-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes be-testimonials-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (min-width: 810px) and (max-width: 1199.98px) {
    .be-testimonials__inner {
        padding: 96px 32px;
    }

    .be-testimonials__header h2 {
        font-size: 32px;
    }
}

@media (max-width: 809.98px) {
    .be-testimonials__inner {
        padding: 60px 20px;
        gap: 30px;
    }

    .be-testimonials__header h2 {
        font-size: 22px;
    }
}

@media (max-width: 389px) {
    .be-testimonials {
        --be-testimonials-card-width: calc(100vw - 40px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .be-testimonials__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: thin;
    }

    .be-testimonials__track {
        animation: none;
        transform: none;
    }

    .be-testimonials__group[aria-hidden="true"],
    .be-testimonials__card[aria-hidden="true"] {
        display: none;
    }
}
