.testimonials-section {
    padding: 10px 0;
    background-color: #171717;
    color: white;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.section-title {
    font-family: 'Mulish', sans-serif;
    font-size: 45px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-container {
    display: flex;
    gap: 50px;
    animation: scroll-horizontal 120s linear infinite;
    will-change: transform;
    width: calc(675px * var(--cards) * 2);
}

.testimonial-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    width: 675px;
    height: 159px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 37.5px 16px;
}

.testimonial-image {
    flex-shrink: 0;
    margin-right: 16px;
    padding-left: 24px;
}

.testimonial-image img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content {
    text-align: left;
    flex: 1;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: #ddd;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.testimonials-muted {
    color: #aaa;
    text-align: center;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-675px * var(--cards)));
    }
}

@media (max-width: 1300px) {
    .section-title {
        font-size: 40px;
    }

    .testimonials-container {
        gap: 40px;
        animation-duration: 120s;
    }

    .testimonial-card {
        width: 600px;
        height: 150px;
        padding: 30px 14px;
    }

    .testimonial-image img {
        width: 75px;
        height: 75px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonial-author {
        font-size: 0.8rem;
    }
}

@media (max-width: 1000px) {
    .section-title {
        font-size: 35px;
    }

    .testimonials-container {
        gap: 30px;
        animation-duration: 120s;
    }

    .testimonial-card {
        width: 500px;
        height: 140px;
        padding: 25px 12px;
    }

    .testimonial-image {
        padding-left: 15px;
    }

    .testimonial-image img {
        width: 65px;
        height: 65px;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    .testimonial-author {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }

    .testimonials-container {
        gap: 20px;
        animation-duration: 120s;
    }

    .testimonial-card {
        width: 400px;
        height: 130px;
        padding: 20px 10px;
    }

    .testimonial-image {
        padding-left: 10px;
    }

    .testimonial-image img {
        width: 55px;
        height: 55px;
    }

    .testimonial-text {
        font-size: 0.8rem;
    }

    .testimonial-author {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 26px;
    }

    .testimonials-container {
        gap: 15px;
        animation-duration: 120s;
    }

    .testimonial-card {
        width: 350px;
        height: 120px;
        padding: 18px 8px;
    }

    .testimonial-image {
        padding-left: 8px;
    }

    .testimonial-image img {
        width: 50px;
        height: 50px;
    }

    .testimonial-text {
        font-size: 0.75rem;
    }

    .testimonial-author {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }

    .testimonials-container {
        gap: 10px;
        animation-duration: 120s;
    }

    .testimonial-card {
        width: 280px;
        height: 110px;
        padding: 15px 6px;
    }

    .testimonial-image {
        padding-left: 5px;
    }

    .testimonial-image img {
        width: 45px;
        height: 45px;
    }

    .testimonial-text {
        font-size: 0.7rem;
    }

    .testimonial-author {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .section-title {
        font-size: 20px;
    }

    .testimonials-container {
        gap: 8px;
        animation-duration: 120s;
    }

    .testimonial-card {
        width: 250px;
        height: 100px;
        padding: 12px 5px;
    }

    .testimonial-image img {
        width: 40px;
        height: 40px;
    }

    .testimonial-text {
        font-size: 0.65rem;
    }

    .testimonial-author {
        font-size: 0.6rem;
    }
}
