.testimonials-section {
  background: #ffffff;
}

.testimonials-header {
  max-width: 1280px;
  margin: 0 auto 48px;
}

.testimonials-title {
  margin: 20px 0 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: rgb(var(--color-coal));
}

.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.testimonials-track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  scroll-snap-align: start;
  gap: 20px;
  padding: 28px;
}

.testimonials-arrow {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgb(var(--color-coal) / 0.12);
  background: #ffffff;
  color: rgb(var(--color-coal));
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.testimonials-arrow svg {
  width: 18px;
  height: 18px;
}

.testimonials-arrow:hover,
.testimonials-arrow:focus-visible {
  background: rgb(var(--color-gold));
  border-color: transparent;
  color: rgb(var(--color-coal));
}

.testimonials-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: #ffffff;
  color: rgb(var(--color-coal));
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testimonials-dot {
  height: 8px;
  width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--color-coal) / 0.15);
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    width 0.3s ease;
}

.testimonials-dot:hover,
.testimonials-dot:focus-visible {
  background: rgb(var(--color-coal) / 0.3);
}

.testimonials-dot[data-active] {
  width: 22px;
  background: rgb(var(--color-gold));
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: rgb(var(--color-gold));
}

.testimonial-stars svg {
  width: 13px;
  height: 13px;
}

.testimonial-quote {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #121212;
}

.testimonial-metric {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgb(var(--color-gold) / 0.12);
  color: rgb(var(--color-coal));
  font-size: 0.75rem;
  font-weight: 700;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgb(var(--color-gold));
  color: rgb(var(--color-coal));
  font-size: 0.8125rem;
  font-weight: 700;
}

.testimonial-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #121212;
}

.testimonial-role {
  margin: 0;
  font-size: 0.75rem;
  color: rgb(var(--color-text-secondary));
}

@media (min-width: 768px) {
  .testimonials-carousel {
    max-width: 920px;
    gap: 20px;
  }

  .testimonial-card {
    flex-basis: calc(50% - 10px);
    padding: 32px;
  }
}

@media (min-width: 1024px) {
  .testimonials-carousel {
    max-width: 1280px;
  }

  .testimonial-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}
