/* ... existing styles ... */

/* Testimonials */
.testimonials {
  padding: 2rem 0;
  background: #f9fafb; /* adjust to match your theme */
}

.testimonials__viewport {
  /* overflow: hidden; */
  position: relative;
}

.testimonials__track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  /* Right-to-left infinite scroll */
  animation: testimonials-marquee 40s linear infinite;
  will-change: transform;
}

.testimonials__viewport:hover .testimonials__track,
.testimonials__viewport:focus-within .testimonials__track {
  animation-play-state: paused;
}

@keyframes testimonials-marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* Move by 50% because content is duplicated once (A + B) */
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex: 0 0 320px;
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.testimonial-card__img {
  grid-row: 1 / span 2;
  grid-column: 1;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__content {
  grid-column: 2;
  display: grid;
  gap: 0.5rem;
}

.testimonial-card__text {
  margin: 0;
  color: #374151;
  line-height: 1.5;
}

.testimonial-card__author {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.star-rating {
  color: #f59e0b; /* amber-500 */
  font-size: 1rem;
  letter-spacing: 2px;
  /* Prevent layout shift due to fonts */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__track {
    animation: none;
    transform: none;
  }
}

/* ... existing styles ... */