/* ═══════════════════════════════════════════════════════════════
   Testimonials Teaser - short-quote carousel
   Embedded inside HomeView and CourseOverviewView.
   Eyebrow + heading + crossfading pull-quote card + dot/arrow
   controls + CTA to /alum. Mirrors the lecturer-teaser visual
   rhythm; glass card over the brand radial-gradient wash.
   ═══════════════════════════════════════════════════════════════ */

.testimonials-teaser {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
}

.testimonials-teaser__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.testimonials-teaser .brand-hairline {
  width: 56px;
  height: 2px;
  border: 0;
  margin: 0 auto;
  background: linear-gradient(90deg, #0894FF 0%, #BD32D6 50%, #FFA304 100%);
  border-radius: 2px;
}

.testimonials-teaser__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5a5b6a;
}

.testimonials-teaser__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #191a23;
  margin: 0;
}

/* ── Carousel shell ─────────────────────────────────────────── */
.testimonials-teaser__carousel {
  width: 100%;
  margin: var(--space-md) 0 var(--space-xs) 0;
}

.testimonials-teaser__viewport {
  position: relative;
  width: 100%;
  min-height: 248px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 280px at 85% -20%, rgba(8, 148, 255, 0.06), transparent 60%),
    radial-gradient(600px 240px at 10% 120%, rgba(189, 50, 214, 0.05), transparent 60%),
    #ffffff;
  border: 1px solid rgba(0, 60, 130, 0.08);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  overflow: hidden;
}

.testimonials-teaser__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 40px 44px;
  text-align: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s linear 0.55s;
  pointer-events: none;
}

.testimonials-teaser__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s;
  pointer-events: auto;
}

.testimonials-teaser__mark {
  position: absolute;
  top: 6px;
  inset-inline-start: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: rgba(8, 148, 255, 0.12);
  z-index: 0;
  pointer-events: none;
}

.testimonials-teaser__quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #191a23;
  margin: 0;
}

.testimonials-teaser__attribution {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.testimonials-teaser__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, #eaf3ff 0%, #f5eaff 100%);
  border: 1px solid rgba(0, 60, 130, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonials-teaser__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials-teaser__avatar-initials {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #0071e3;
}

.testimonials-teaser__attribution-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.4;
}

.testimonials-teaser__attribution-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #191a23;
}

.testimonials-teaser__attribution-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #8e8f9e;
}

.testimonials-teaser__attribution-company {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: #191a23;
}

/* ── Controls (prev · dots · next) ──────────────────────────── */
.testimonials-teaser__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.testimonials-teaser__nav {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #5a5b6a;
  background: #ffffff;
  border: 1px solid rgba(0, 60, 130, 0.12);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonials-teaser__nav:hover {
  color: #0071e3;
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.testimonials-teaser__nav:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

.testimonials-teaser__dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonials-teaser__dot {
  width: 8px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(0, 60, 130, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.testimonials-teaser__dot:hover {
  background: rgba(0, 113, 227, 0.4);
}

.testimonials-teaser__dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, #0894FF 0%, #BD32D6 50%, #FFA304 100%);
}

.testimonials-teaser__dot:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.testimonials-teaser__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #0071E3;
  background: #ffffff;
  border: 1px solid rgba(0, 113, 227, 0.25);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonials-teaser__cta:hover {
  color: #0077ED;
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.testimonials-teaser__cta svg {
  flex: 0 0 auto;
}

/* Honor reduced-motion: no slide travel, plain crossfade. */
@media (prefers-reduced-motion: reduce) {
  .testimonials-teaser__slide,
  .testimonials-teaser__slide.is-active {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s;
  }
}

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .testimonials-teaser {
    padding: var(--space-2xl) var(--space-lg);
  }
  .testimonials-teaser__heading {
    font-size: 30px;
  }
  .testimonials-teaser__viewport {
    min-height: 256px;
  }
  .testimonials-teaser__slide {
    padding: 34px 34px;
  }
  .testimonials-teaser__quote {
    font-size: 20px;
  }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .testimonials-teaser {
    padding: var(--space-2xl) var(--space-md);
  }
  .testimonials-teaser__heading {
    font-size: 24px;
    letter-spacing: -0.02em;
  }
  .testimonials-teaser__viewport {
    min-height: 320px;
    border-radius: var(--radius-md);
  }
  .testimonials-teaser__slide {
    padding: 28px 22px;
    gap: var(--space-md);
  }
  .testimonials-teaser__mark {
    font-size: 56px;
    inset-inline-start: 14px;
    top: 2px;
  }
  .testimonials-teaser__quote {
    font-size: 18px;
    line-height: 1.5;
  }
  .testimonials-teaser__avatar {
    width: 44px;
    height: 44px;
  }
  .testimonials-teaser__attribution-name {
    font-size: 14.5px;
  }
  .testimonials-teaser__attribution-role {
    font-size: 12.5px;
  }
  .testimonials-teaser__attribution-company {
    font-size: 13px;
  }
  .testimonials-teaser__controls {
    gap: var(--space-sm);
  }
}
