/* ==========================================================================
   FTS TESTIMONIALS
   Purpose:
   - Desktop: horizontal image + quote
   - Mobile : stacked image above quote
   - Slider : scroll-snap + bullet nav
   ========================================================================== */

.fts-testimonials {
  position: relative;
}

/* ----------------------------------------
   Track (slider)
---------------------------------------- */

.fts-testimonials__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  gap: 0;
  padding: 0;
  margin: 0;

  -webkit-overflow-scrolling: touch;
}

.fts-testimonials__track::-webkit-scrollbar {
  height: 8px;
}

.fts-testimonials__slide {
  scroll-snap-align: start;
  flex: 0 0 100%;

  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;

  padding: 24px;
  background: var(--white, #fff);
}

/* Mobile stack */
@media (max-width: 767.98px) {
  .fts-testimonials__slide {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
}

/* ----------------------------------------
   Photo
---------------------------------------- */

.fts-testimonials__photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.fts-testimonials__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

@media (max-width: 768px) {
  .fts-testimonials__photo {
      width: 100%;
      max-width: 320px;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background: #fff;
  }
}
/* ----------------------------------------
   Quote + meta
---------------------------------------- */

.fts-testimonials__body {
  align-self: center;
}

.fts-testimonials__quote {
  position: relative;
  margin: 0 0 20px 0 !important;
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic !important;
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(1.125rem, 2.1vw, 1.25rem) !important;
  color: var(--midnight, #101820);
}

.fts-testimonials__quote::before {
  content: "“";
  transform: translateX(-0.25em);
  position: absolute;
  left: -0.25em;
}

.fts-testimonials__quote::after {
  content: "”";
  transform: translateX(-0.25em);
  position: absolute;
  margin-left: 0.375em;
}

.fts-testimonials__name {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--midnight, #101820);
  line-height: 1.2;
  margin: 0 !important;
}

.fts-testimonials__degree {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 500;
  font-size: 0.8125rem !important;
  color: var(--slate, #4c5258);
  margin: 0 !important;
}

.fts-testimonials__quote::before {
  content: "“";
}

.fts-testimonials__quote::after {
  content: "”";
}


/* Optional alignment control (desktop) */
@media (min-width: 768px) {
  .fts-testimonials--align-center .fts-testimonials__body {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .fts-testimonials__name,
  .fts-testimonials__degree,
  .fts-testimonials__quote {
    text-align: center;
  }

  .fts-testimonials__quote::before {
  content: "“";
  transform: translateX(0);
  position: relative;
  left: 0.125em;
}

.fts-testimonials__quote::after {
  content: "”";
  transform: translateX(0em);
  position: relative;
  margin-left: 0em;
}
}

/* ----------------------------------------
   Bullet nav
---------------------------------------- */

.fts-testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 0 0;
}

.fts-testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0 !important;
  padding: 0;
  cursor: pointer;

  background: color-mix(in srgb, var(--midnight, #101820) 25%, transparent);
}

.fts-testimonials__dot.is-active {
  background: var(--sky, #00adc7);
}

.fts-testimonials__dot:focus-visible {
  outline: 2px solid var(--sky, #00adc7);
  outline-offset: 3px;
}