.testimonials-section {
    --testimonials-quote-color: rgba(var(--color-text), 0.06);

    position: relative;
    background-color: rgb(var(--color-background));
    color: rgb(var(--color-text));
}

.testimonials-section[layout="block"] .page-width {
    background-color: rgba(var(--container-background-color));
    border-radius: 12px;
    padding: 40px;
}

.testimonials-section[layout="column"] .testimonials-card {
    background-color: rgba(var(--container-background-color));
    border-radius: 12px;
}

.testimonials-section__carousel {
    width: 100%;
}

.testimonials-section__quote-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    color: var(--testimonials-quote-color);
}

.testimonials-section__quote-icon svg {
    width: 120px;
    height: 100px;
}

.testimonials-section__track {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 780px;
    list-style: none;
}

.testimonials-section__slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.testimonials-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 40px;
}

.testimonials-card__content {
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgb(var(--color-text));
}

.testimonials-card__source {
    margin: 0;
    opacity: 0.6;
}

.testimonials-card__source::before {
    content: "— ";
}

.testimonials-section__logos {
    padding-top: 40px;
    overflow: hidden;
}

.testimonials-section__logos-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.testimonials-section__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.testimonials-section__logo:hover,
.testimonials-section__logo.is-active {
    opacity: 1;
    filter: grayscale(0%);
}

.testimonials-section__logo img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1199px) {
    .testimonials-section__arrows {
        left: -20px;
        right: -20px;
    }

    .testimonials-section__logos-track {
        gap: 32px;
    }
}

@media (max-width: 959px) {
    .testimonials-section__quote-icon svg {
        width: 80px;
        height: 64px;
    }

    .testimonials-card {
        padding: 16px 20px;
    }

    .testimonials-card__content {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .testimonials-section__arrows {
        display: none;
    }

    .testimonials-section__dots {
        margin-top: 16px;
        gap: 8px;
    }

    .testimonials-section__dot {
        width: 8px;
        height: 8px;
    }

    .testimonials-section__logos {
        margin-top: 40px;
        padding-top: 32px;
    }

    .testimonials-section__logos-track {
        gap: 24px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonials-section__logo {
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .testimonials-section__logo img {
        max-width: 100px;
    }
}

@media (max-width: 479px) {
    .testimonials-section__logo {
        height: 120px;
    }
}