/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: var(--white);
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.testimonials-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Marquee Container */
.testimonials-marquee {
    display: inline-flex;
    gap: 2rem;
    will-change: transform;
}

.testimonials-marquee:hover {
    animation-play-state: paused;
}

/* Duplicate for seamless loop */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

/* Testimonial Card */
.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    padding: 2rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Different background colors for cards - Brand Colors */
.testimonial-card:nth-child(1),
.testimonial-card:nth-child(4) {
    background: var(--primary-light);
}

.testimonial-card:nth-child(2),
.testimonial-card:nth-child(5) {
    background: #fde8e7;
}

.testimonial-card:nth-child(3),
.testimonial-card:nth-child(6) {
    background: var(--bg-light);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Two Rows of Testimonials */
.testimonials-rows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonials-row {
    display: flex;
    gap: 2rem;
}

/* First row scrolls left */
.testimonials-row:first-child .testimonials-marquee {
    animation: scroll-left 50s linear infinite;
}

/* Second row scrolls right */
.testimonials-row:last-child .testimonials-marquee {
    animation: scroll-right 50s linear infinite;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .testimonials-title {
        font-size: 2rem;
    }

    .testimonials-subtitle {
        font-size: 1rem;
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        min-height: 100px;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
    }

    .author-name {
        font-size: 0.95rem;
    }

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

    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials-title {
        font-size: 1.75rem;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }
}
