.testimonial-carousel {
  width: 100%;
  margin: 0;
  padding: 40px 0;
}

.carousel-window {
  overflow: hidden;
  margin-bottom: 20px;
}

.row2-window {
  transform: scaleX(-1);
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .5s ease;
  will-change: transform;
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel-track li {
  list-style: none;
}

/* ─── Responsive card widths ───────────────────────────────────────── */
/* Desktop: 4 cards per row */
.testimonial-card {
  position: relative;
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  max-width: calc((100% - 3 * 20px) / 4);
  background: #f5f6f0;
  border-radius: 20px;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ≤1024px: 3 cards per row */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    max-width: calc((100% - 2 * 20px) / 3);
  }
}

/* ≤768px: 2 cards per row */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 1 * 20px) / 2);
    max-width: calc((100% - 1 * 20px) / 2);
  }
}

/* ≤480px: 1 card per row */
@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.row2-window .testimonial-card {
  transform: scaleX(-1);
}

/* ─── (Optional) Remove any forced height hack */
ul#row2 {
  /* height: auto !important; */
}

.quote-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 2rem;
  color: #d2d3cd;
}

.testimonial-text {
  margin: 40px 0 16px;
  color: #333;
  font-size: .95rem;
  line-height: 1.4;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-footer .author,
.testimonial-footer .rating {
  color: #444;
  font-size: .9rem;
}
