/* css/testimonials.css */
.testimonials-section {
    padding: 6rem 5% 8rem;
    background-color: var(--bg-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.testimonials-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.testimonials-marquee-container {
    width: 100%;
    max-width: 1600px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-track.left {
    animation: scroll-left 50s linear infinite;
}

.marquee-track.right {
    animation: scroll-right 50s linear infinite;
}

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

.marquee-group {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem; /* Important for clean looping */
}

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

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

/* Testimonial Card Styling matching the tailwind snippet */
.testimonial-card {
    width: 360px;
    background: var(--card-bg);
    border-radius: 8px; /* rounded-md */
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color); /* border-gray-200 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-muted); /* text-gray-500 */
}

.testimonial-card:hover {
    transform: translateY(-4px); /* hover:-translate-y-1 */
    border-color: var(--primary-color);
}

/* Top row: stars and date */
.testimonial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem; /* text-sm equivalent for dates usually */
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
}

.testimonial-stars svg {
    width: 16px; 
    height: 16px;
    fill: var(--text-color); /* fill-gray-800 */
    color: var(--text-color);
}

.testimonial-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bottom row: author info */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem; 
}

.testimonial-author img {
    width: 32px; /* h-8 w-8 */
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author p {
    font-weight: 500;
    color: var(--text-color); /* text-gray-800 */
    margin: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 1rem;
    }
    .testimonials-header h2 {
        font-size: 2.2rem;
    }
}
