  /* ==========================================
   TESTIMONIAL SLIDER
   ========================================== */

.testimonial-slider {
  --testimonial-gold: #947843;
  --testimonial-text: #1f1f23;
  --testimonial-muted: #666;
  --testimonial-border: #ddd;

  width: 100%;
  padding: 4rem 1rem;

  box-sizing: border-box;
}

.testimonial-slider *,
.testimonial-slider *::before,
.testimonial-slider *::after {
  box-sizing: border-box;
}


/* ==========================================
   CONTAINER
   ========================================== */

.testimonial-slider__container {
  width: 100%;
  max-width: 900px;

  margin: 0 auto;
}


/* ==========================================
   HEADING
   ========================================== */

.testimonial-slider__title {
  margin: 0 0 2rem;
  color: var(--testimonial-text);
  text-align: center;
}


/* ==========================================
   VIEWPORT
   ========================================== */

.testimonial-slider__viewport {
  width: 100%;

  overflow: hidden;
}

.testimonial-slider__viewport:focus-visible {
  outline: 3px solid var(--testimonial-gold);
  outline-offset: 4px;
}


/* ==========================================
   TRACK
   ========================================== */

.testimonial-slider__track {
  display: flex;

  width: 100%;

  transition: transform 0.4s ease;
}


/* ==========================================
   TESTIMONIAL
   ========================================== */

.testimonial {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  min-width: 100%;

  margin: 0;
  padding: clamp(2rem, 6vw, 4rem);

  background: #fff;

  border: 1px solid var(--testimonial-border);
  border-top: 6px solid var(--testimonial-gold);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   QUOTE
   ========================================== */

.testimonial__quote {
  width: 100%;
  max-width: 700px;

  margin: 0 auto 2rem;
  padding: 0;

  border: 0;
}

.testimonial__quote p {
  margin: 0;

  color: var(--testimonial-text);

  text-align: center;
}


/* ==========================================
   PERSON
   ========================================== */

.testimonial__person {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 1rem;

  width: 100%;
  max-width: 700px;

  margin: 0 auto;
  padding-top: 1.5rem;

  border-top: 1px solid #e5e5e5;
  border-bottom: none;
}


/* ==========================================
   HEADSHOT
   ========================================== */

.testimonial__headshot {
  display: block;

  width: 180px;
  height: 180px;

  flex: 0 0 80px;

  object-fit: cover;
  object-position: center;
}


/* ==========================================
   PERSON DETAILS
   ========================================== */

.testimonial__details {
  display: flex;
  flex-direction: column;

  gap: 0.2rem;
}

.testimonial__details strong {
  color: var(--testimonial-text);
}

.testimonial__details span {
  color: var(--testimonial-muted);
}


/* ==========================================
   CONTROLS
   ========================================== */

.testimonial-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 1rem;

  margin-top: 1.5rem;
}


/* ==========================================
   BUTTONS
   ========================================== */

.testimonial-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  padding: 0;

  color: #fff;
  background: var(--testimonial-gold);

  border: 2px solid var(--testimonial-gold);
  border-radius: 50%;

  font: inherit;
  font-size: 1.35rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.testimonial-slider__button:hover:not(:disabled) {
  color: var(--testimonial-gold);
  background: #fff;
}

.testimonial-slider__button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.testimonial-slider__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* ==========================================
   COUNTER
   ========================================== */

.testimonial-slider__status {
  min-width: 55px;

  color: var(--testimonial-muted);

  font-size: 0.95rem;
  text-align: center;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

  .testimonial-slider {
    padding: 2.5rem 1rem;
  }

  .testimonial-slider__title {
    margin-bottom: 1.5rem;
  }


  /* Card */

  .testimonial {
    justify-content: flex-start;

    padding: 1.75rem 1.25rem;
  }


  /* Quote */

  .testimonial__quote {
    margin-bottom: 1.5rem;
  }



  /* Person */

  .testimonial__person {
    justify-content: flex-start;

    gap: 0.85rem;

    padding-top: 1.25rem;

    text-align: left;
  }


  /* Headshot */

  .testimonial__headshot {
    width: 60px;
    height: 60px;

    flex-basis: 60px;
  }



  /* Controls */

  .testimonial-slider__controls {
    margin-top: 1rem;
  }

  .testimonial-slider__button {
    width: 44px;
    height: 44px;

    flex-basis: 44px;
  }

}


/* ==========================================
   VERY SMALL SCREENS
   ========================================== */

@media (max-width: 375px) {

  .testimonial-slider {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .testimonial {
    padding: 1.5rem 1rem;
  }

  .testimonial__person {
    align-items: center;
  }

  .testimonial__headshot {
    width: 54px;
    height: 54px;

    flex-basis: 54px;
  }

}


/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  .testimonial-slider__track {
    transition: none;
  }

}