/* -------------------------------------------------------
 * Testimonials Section
 * ----------------------------------------------------- */
.testimonials {
  background: #f8f9fa;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 0 80px;
  overflow: hidden;
  position: relative;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 72px;
  padding: 0 16px;
}

.testimonials__accent {
  display: none;
}

.testimonials__title {
  font-size: var(--testimonials-title-font-size, var(--featured-title-font-size, 32px));
  font-family: var(--testimonials-title-font-family, var(--font-heading));
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  color: var(--testimonials-title-font-color, var(--color-text));
}

/* -------------------------------------------------------
 * Marquee Rows & Tracks
 * ----------------------------------------------------- */
.testimonials__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-bottom: 80px;
}

.testimonials__track {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.testimonials__track:first-child {
  padding-bottom: 0;
}

.testimonials__inner {
  display: flex;
  gap: 24px;
  padding: 8px 24px;
  will-change: transform;
}

.testimonials__inner--left {
  animation: testimonial-scroll-left 40s linear infinite;
}

.testimonials__inner--right {
  animation: testimonial-scroll-right 40s linear infinite;
}

.testimonials__inner:hover {
  animation-play-state: paused;
}

@keyframes testimonial-scroll-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes testimonial-scroll-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

/* -------------------------------------------------------
 * Testimonial Card
 * ----------------------------------------------------- */
.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star {
  color: var(--color-border);
  font-size: 16px;
}

.star.filled {
  color: var(--color-gold);
}

.testimonial-card__score {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-left: 4px;
}

.testimonial-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
  flex: 1;
}

.testimonial-card__reviewer {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.testimonial-card__reviewer strong {
  color: var(--color-text);
  font-weight: 700;
}

/* -------------------------------------------------------
 * Watermark Text
 * ----------------------------------------------------- */
.testimonials__watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin: 96px 0 0 0;
  transform: translate(-50%, 28%);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 8px;
  line-height: 1;
}

/* -------------------------------------------------------
 * Responsive
 * ----------------------------------------------------- */
@media (max-width: 1024px) {
  .testimonial-card {
    width: 290px;
  }
}

@media (max-width: 600px) {
  .testimonials {
    padding: 48px 0 0;
  }

  .testimonials__rows {
    gap: 16px;
  }

  .testimonials__inner {
    gap: 16px;
    padding: 8px 16px;
  }

  .testimonial-card {
    width: 260px;
    padding: 18px;
  }

  .testimonials__watermark {
    font-size: clamp(22px, 8.2vw, 56px);
    letter-spacing: 0.04em;
    max-width: 100vw;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .testimonials__watermark {
    font-size: clamp(18px, 7vw, 48px);
    letter-spacing: 0.03em;
    padding: 0 10px;
  }
}