/* Wrapper */
.testimonials {
    padding: 1rem 1.5rem;
    background: #f7faf7;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1140px;
    margin: 0 auto;
}

.testimonials .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #173f2a;
}

/* refactored with chatGPT 18/11/2025 11:10 UK */
.testimonials-marquee {
/*
    overflow-x: hidden;
    overflow-y: visible;
*/
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;   /* smoother animation */
}

/* Cards */
.testimonial-card {
    flex: 0 0 340px;          /* fixed-ish width so the scroll looks smooth */
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 18px 45px rgba(8, 36, 20, 0.14);
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial-card p {
    margin: 0 0 0.75rem;
}

.testimonial-author {
    font-weight: 600;
    color: #173f2a;
}

/* Animation: move the track from 0 to -50%.
   Because we duplicate the cards once in JS, -50% =
   the width of the original set of cards, so it loops cleanly. */
@keyframes testimonials-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 3rem 1rem;
    }
    .testimonial-card {
        flex: 0 0 260px;
    }
}

.testimonials-wall {
    padding: 4rem 1.5rem 4rem;
    background: #f7faf7;
}

.testimonials-container {
    max-width: 1140px;
    margin: 0 auto;
}

.testimonials-wall .section-title {
    text-align: center;
    font-size: 2.1rem;
    margin: 0 0 0.75rem;
    color: #173f2a;
}

.testimonials-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1rem;
    color: #4b5563;
}

/* Responsive grid of cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}

/* Card styling (you can reuse your existing version if you prefer) */
.testimonial-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 18px 45px rgba(8, 36, 20, 0.14);
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.testimonial-card p {
    margin: 0 0 0.75rem;
}

.testimonial-author {
    margin-top: auto;
    font-weight: 600;
    color: #173f2a;
}

/* Small-screen tweaks */
@media (max-width: 640px) {
    .testimonials-wall {
        padding: 3rem 1rem 3.5rem;
    }

    .testimonials-wall .section-title {
        font-size: 1.8rem;
    }
}