.testimonials-carousel {
  position: relative;
  max-width: 100%;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: #f59e0b #f3f4f6;
}

.testimonials-track::-webkit-scrollbar {
  height: 8px;
}

.testimonials-track::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 999px;
}

.testimonial-card {
  flex: 0 0 min(88vw, 22rem);
  scroll-snap-align: start;
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08);
  border-width: 2px;
  border-style: solid;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 20rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

.testimonials-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid #fde68a;
  color: #b45309;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.1);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.testimonials-nav:hover {
  background: #fffbeb;
  border-color: #f59e0b;
}

@media (min-width: 768px) {
  .testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .testimonials-carousel {
    padding: 0 3rem;
  }
}

.testimonials-nav-prev {
  left: 0;
}

.testimonials-nav-next {
  right: 0;
}
