/* ===== TESTIMONIALS SECTION ===== */

/* Section container */
.testimonials-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* Slides container */
.testimonials-slides {
  position: relative;
  min-height: auto;
}

@media (min-width: 768px) {
  .testimonials-slides {
    min-height: 550px;
  }
}

@media (min-width: 1024px) {
  .testimonials-slides {
    min-height: 650px;
  }
}

/* Individual slide */
.testimonial-slide {
  position: relative;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
  .testimonial-slide {
    position: absolute;
    inset: 0;
  }
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

/* Testimonial item layout */
.testimonial-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonial-item {
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-item {
    gap: 2rem;
  }
}

/* ===== HEADER: Photo + Person Info ===== */
.testimonial-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .testimonial-header {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-header {
    gap: 2.5rem;
  }
}

/* Photo container */
.testimonial-photo {
  flex-shrink: 0;
}

.testimonial-photo img,
.testimonial-photo .field--name-field-person-photo img {
  width: 100px;
  height: 100px;
  border-radius: 70%;
  object-fit: cover;
  border: 4px solid #003594;
}

@media (min-width: 768px) {
  .testimonial-photo img,
  .testimonial-photo .field--name-field-person-photo img {
    width: 180px;
    height: 180px;
    border-width: 8px;
  }
}

@media (min-width: 1024px) {
  .testimonial-photo img,
  .testimonial-photo .field--name-field-person-photo img {
    width: 260px;
    height: 260px;
    border-width: 12px;
  }
}

@media (min-width: 1280px) {
  .testimonial-photo img,
  .testimonial-photo .field--name-field-person-photo img {
    width: 320px;
    height: 320px;
    border-width: 16px;
  }
}

/* Person info wrapper */
.testimonial-info {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .testimonial-info {
    gap: 0.6rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-info {
    gap: 0.75rem;
  }
}

/* Gold accent - vertical dotted pattern */
.testimonial-gold-accent {
  width: 3px;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  background-image: repeating-linear-gradient(
    to bottom,
    #FFB81C 0px,
    #FFB81C 2px,
    transparent 2px,
    transparent 4px
  );
}

@media (min-width: 768px) {
  .testimonial-gold-accent {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-gold-accent {
    width: 4px;
    margin-bottom: 1.25rem;
  }
}

/* Person container */
.testimonial-person {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .testimonial-person {
    gap: 0.25rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-person {
    padding-bottom: 1.25rem;
  }
}

/* Horizontal dotted underline */
.testimonial-person::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(-0.4rem - 3px);
  right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    to right,
    #FFB81C 0px,
    #FFB81C 2px,
    transparent 2px,
    transparent 4px
  );
}

@media (min-width: 768px) {
  .testimonial-person::after {
    left: calc(-0.6rem - 3px);
  }
}

@media (min-width: 1024px) {
  .testimonial-person::after {
    left: calc(-0.75rem - 4px);
    height: 4px;
  }
}

/* Person name */
.testimonial-name,
.testimonial-name * {
  font-family: 'Oswald', 'Georgia', serif !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  line-height: 1.2;
  color: #003594 !important;
  margin: 0;
}

@media (min-width: 768px) {
  .testimonial-name,
  .testimonial-name * {
    font-size: 1.75rem !important;
  }
}

@media (min-width: 1024px) {
  .testimonial-name,
  .testimonial-name * {
    font-size: 2.25rem !important;
  }
}

@media (min-width: 1280px) {
  .testimonial-name,
  .testimonial-name * {
    font-size: 2.5rem !important;
  }
}

/* Person role */
.testimonial-role,
.testimonial-role * {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 200 !important;
  font-size: 0.875rem !important;
  line-height: 1.4;
  color: #003594 !important;
  letter-spacing: 0.02em;
  margin: 0;
}

@media (min-width: 768px) {
  .testimonial-role,
  .testimonial-role * {
    font-size: 1rem !important;
  }
}

@media (min-width: 1024px) {
  .testimonial-role,
  .testimonial-role * {
    font-size: 1.125rem !important;
  }
}

/* ===== QUOTE CONTENT ===== */
.testimonial-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .testimonial-content {
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
  }
}

/* Large opening quote mark */
.testimonial-quote-mark {
  font-family: 'Oswald', 'Georgia', serif;
  font-size: 3rem;
  line-height: 0.8;
  color: #003594;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0;
}

@media (min-width: 768px) {
  .testimonial-quote-mark {
    font-size: 5rem;
    margin-top: -0.25rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-quote-mark {
    font-size: 7rem;
  }
}

@media (min-width: 1280px) {
  .testimonial-quote-mark {
    font-size: 9rem;
  }
}

/* Quote text container */
.testimonial-text {
  flex: 1;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .testimonial-text {
    padding-top: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-text {
    padding-top: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .testimonial-text {
    padding-top: 2rem;
  }
}

/* Main quote - Bold uppercase */
.testimonial-main-quote,
.testimonial-main-quote * {
  font-family: 'Alternate Gothic Compressed ATF', 'Impact', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  line-height: 1.1;
  color: #003594 !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem 0;
}

@media (min-width: 768px) {
  .testimonial-main-quote,
  .testimonial-main-quote * {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 1024px) {
  .testimonial-main-quote,
  .testimonial-main-quote * {
    font-size: 4rem !important;
    margin-bottom: 1.25rem !important;
  }
}

@media (min-width: 1280px) {
  .testimonial-main-quote,
  .testimonial-main-quote * {
    font-size: 5.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (min-width: 1536px) {
  .testimonial-main-quote,
  .testimonial-main-quote * {
    font-size: 7rem !important;
  }
}

/* Closing quote mark - inline */
.testimonial-quote-mark-end {
  font-family: 'Oswald', 'Georgia', serif !important;
  font-size: 1rem;
  font-style: normal !important;
  line-height: 0;
  vertical-align: baseline;
  margin-left: 0.15em;
}

/* Subquote - Serif italic */
.testimonial-subquote,
.testimonial-subquote * {
  font-family: 'Oswald', 'Georgia', serif !important;
  font-weight: 100 !important;
  font-style: italic !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: #003594 !important;
  max-width: 70ch;
  margin: 0;
}

@media (min-width: 768px) {
  .testimonial-subquote,
  .testimonial-subquote * {
    font-size: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  .testimonial-subquote,
  .testimonial-subquote * {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 1280px) {
  .testimonial-subquote,
  .testimonial-subquote * {
    font-size: 1.875rem !important;
  }
}

@media (min-width: 1536px) {
  .testimonial-subquote,
  .testimonial-subquote * {
    font-size: 2.25rem !important;
  }
}

/* ===== CONTROLS: Pause + Dots ===== */
.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}

/* Pause/Play button */
.testimonial-pause-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #003594;
  background: transparent;
  color: #003594;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.3s ease;
  flex-shrink: 0;
  pointer-events: auto !important;
  position: relative;
  z-index: 101;
}

@media (min-width: 768px) {
  .testimonial-pause-btn {
    width: 40px;
    height: 40px;
  }
}

.testimonial-pause-btn:hover {
  background: #003594;
  color: #fff;
}

.testimonial-pause-btn .play-icon {
  display: none;
}

.testimonial-pause-btn .pause-icon {
  display: block;
}

.testimonial-pause-btn[data-playing="false"] .play-icon {
  display: block;
}

.testimonial-pause-btn[data-playing="false"] .pause-icon {
  display: none;
}

/* Dots container */
.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto !important;
  position: relative;
  z-index: 101;
}

.testimonial-dots:empty {
  display: none;
}

/* Individual dot */
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #003594;
  border: none;
  cursor: pointer !important;
  transition: all 0.3s ease;
  padding: 0;
  pointer-events: auto !important;
}

.testimonial-dot:hover {
  transform: scale(1.2);
}

.testimonial-dot.active {
  width: 24px;
  border-radius: 5px;
}

/* Hide controls if only one slide */
.testimonials-section[data-single-slide="true"] .testimonial-controls {
  display: none;
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .testimonial-pause-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .testimonial-dot {
    min-width: 14px;
    min-height: 14px;
  }

  .testimonial-dot.active {
    min-width: 28px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .testimonial-slide {
    transition: none;
  }

  .testimonial-pause-btn,
  .testimonial-dot {
    transition: none;
  }
}