.testimonial-slider {
  position: relative;
}

.testimonial-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.testimonial-slider-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
}

/* "Cards" variant — shows multiple testimonial cards per view (3-up on
   desktop, 2-up on tablet, 1-up on mobile) instead of one full-width slide,
   scrolling by a single card at a time via the same prev/next arrows. */
.testimonial-slider--cards .testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .testimonial-slider--cards .testimonial-slide { flex: 0 0 calc(50% - 12px); }
}

@media (min-width: 1024px) {
  .testimonial-slider--cards .testimonial-slide { flex: 0 0 calc(33.333% - 16px); }
}

.testimonial-slider--cards .card {
  height: 100%;
}

.testimonial-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.testimonial-slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--navy, #1b2a4a);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease;
}

.testimonial-slider-arrow:hover {
  background: var(--orange, #d47b2e);
}

.testimonial-slider-arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange, #d47b2e);
}

.testimonial-slider-arrow svg {
  width: 20px;
  height: 20px;
}

.testimonial-slider-dots {
  display: flex;
  align-items: center;
}

/* Transparent 26x44 hit area with the visible dot drawn as a pseudo-element
   inside — a bare 10px dot is far too small to tap accurately on a phone. */
.testimonial-slider-dot {
  width: 26px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.testimonial-slider-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-soft, #e4d9c0);
  transition: background-color 150ms ease, transform 150ms ease;
}

.testimonial-slider-dot:hover::before {
  background: var(--orange, #d47b2e);
}

.testimonial-slider-dot.is-active::before {
  background: var(--navy, #1b2a4a);
  transform: scale(1.2);
}

.testimonial-slider-dot:focus-visible {
  outline: none;
}

.testimonial-slider-dot:focus-visible::before {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange, #d47b2e);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slider-track { scroll-behavior: auto; }
}
