/* ============================================================
   CSS/testimonials.css — "What students say" row
   Dark band (matches hero/video sections), gold accents, Fraunces quotes.
   Scrolling is driven by JS/testimonials.js (auto + buttons + swipe).
   ============================================================ */

.rt-tm-section { overflow: hidden; }
.rt-tm-section .rt-section-head { margin-bottom: 36px; }

#rtTestimonials { position: relative; }

.rt-tm-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  outline: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.rt-tm-viewport::-webkit-scrollbar { display: none; }
.rt-tm-viewport:focus-visible { box-shadow: inset 0 0 0 2px rgba(212, 162, 76, 0.6); border-radius: 12px; }

.rt-tm-track {
  display: flex;
  gap: 20px;               /* keep in sync with GAP in testimonials.js */
  width: max-content;
  padding: 8px 24px 12px;
}

/* Without auto-scroll (reduced motion / one testimonial): snap card by card */
#rtTestimonials:not(.rt-tm--auto) .rt-tm-viewport { scroll-snap-type: x mandatory; }
#rtTestimonials:not(.rt-tm--auto) .rt-tm-card { scroll-snap-align: start; }

.rt-tm-nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.rt-tm-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(212, 162, 76, 0.55);
  background: transparent; color: #D4A24C;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.rt-tm-btn:hover, .rt-tm-btn:focus-visible { background: rgba(212, 162, 76, 0.12); outline: none; }

/* ── Card ── */
.rt-tm-card {
  margin: 0;
  flex: 0 0 auto;
  width: min(380px, 82vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(148, 0, 211, 0.16), rgba(255, 255, 255, 0.03) 55%);
  border: 1px solid rgba(212, 162, 76, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.rt-tm-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  line-height: 0.6;
  height: 24px;
  color: #D4A24C;
}

.rt-tm-quote {
  margin: 0;
  flex: 1;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  /* long testimonials stay tidy: show ~9 lines */
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rt-tm-who { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rt-tm-avatar {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #9400D3; color: #fff;
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 14px;
}
.rt-tm-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-tm-meta strong { font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 15px; color: #fff; }
.rt-tm-meta span { font-family: 'Manrope', system-ui, sans-serif; font-size: 13px; color: rgba(255, 255, 255, 0.62); }

@media (max-width: 600px) {
  .rt-tm-quote { font-size: 16px; }
  .rt-tm-card { padding: 22px 20px 18px; }
  .rt-tm-track { padding-left: 16px; padding-right: 16px; }
}