/* One full portrait plus the next teacher. The source roster is public. */
#hero-carousel-host {
  --hc-blue: #365fca;
  --hc-ink: #172c55;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  height: 510px;
  margin-left: auto;
  color: var(--hc-ink);
  font-family: var(--font-sans);
}
#hero-carousel-host::before {
  top: 40px;
  bottom: 54px;
  border-radius: 100px 24px 24px 24px;
}
#hero-carousel-host *, #hero-carousel-host *::before, #hero-carousel-host *::after { box-sizing: border-box; }
#hero-carousel-host .hc-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  height: 414px;
  padding: 12px 12px 10px 30px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 30px;
  clip-path: inset(0 0 0 20px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#hero-carousel-host .hc-track::-webkit-scrollbar { display: none; }
#hero-carousel-host .hc-rail {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  align-items: flex-start;
  gap: inherit;
}
#hero-carousel-host .hc-rail::after { content: ''; flex: 0 0 calc(30% - 24px); height: 1px; }
#hero-carousel-host .hc-slide {
  flex: 0 0 70%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transform: translateY(22px) rotate(3deg);
  transform-origin: 50% 10%;
  transition: transform 240ms ease;
}
#hero-carousel-host .hc-slide.is-active { transform: rotate(-2deg); }
#hero-carousel-host .hc-slide img {
  display: block;
  width: 100%;
  height: clamp(244px, 23vw, 300px);
  object-fit: cover;
  background: #e5eaf5;
}
#hero-carousel-host .hc-slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 80px;
  padding: 12px 16px;
  background: #fff;
}
#hero-carousel-host .hc-slide strong { font-size: 18px; font-weight: 600; line-height: 1.2; }
#hero-carousel-host .hc-slide figcaption span { color: #54627a; font-size: 12px; line-height: 1.3; }
#hero-carousel-host .hc-word {
  position: absolute;
  left: 7%;
  bottom: 8px;
  font-size: 78px;
  font-weight: 600;
  color: var(--hc-blue);
  line-height: 1;
  letter-spacing: -.065em;
  transform: rotate(-3deg);
  pointer-events: none;
}
#hero-carousel-host .hc-navigation { position: absolute; right: 0; bottom: 12px; }
#hero-carousel-host .hc-buttons { display: flex; gap: 8px; }
#hero-carousel-host .hc-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c7d1e5;
  border-radius: 12px;
  background: #fff;
  color: var(--hc-blue);
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
#hero-carousel-host .hc-buttons button:disabled { opacity: .4; cursor: default; }
#hero-carousel-host .hc-track:focus-visible,
#hero-carousel-host .hc-buttons button:focus-visible { outline: 3px solid var(--hc-blue); outline-offset: 4px; }
#hero-carousel-host .hc-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
@media (hover: hover) {
  #hero-carousel-host .hc-buttons button:not(:disabled):hover { background: #eef2fa; border-color: var(--hc-blue); }
}
@media (max-width: 1100px) and (min-width: 801px) {
  #hero-carousel-host .hc-word { left: 3%; font-size: 66px; }
}
@media (max-width: 800px) {
  #hero-carousel-host { height: 380px; margin-inline: auto; }
  #hero-carousel-host::before { top: 28px; bottom: 50px; border-radius: 72px 20px 20px 20px; }
  #hero-carousel-host .hc-track { height: 312px; padding: 10px 10px 8px 28px; gap: 18px; scroll-padding-left: 28px; clip-path: inset(0 0 0 22px); }
  #hero-carousel-host .hc-rail::after { flex-basis: calc(26% - 18px); }
  #hero-carousel-host .hc-slide { flex-basis: 74%; border-radius: 14px; transform: translateY(18px) rotate(3deg); }
  #hero-carousel-host .hc-slide.is-active { transform: rotate(-2deg); }
  #hero-carousel-host .hc-slide img { height: 204px; }
  #hero-carousel-host .hc-slide figcaption { height: 80px; padding: 11px 13px; }
  #hero-carousel-host .hc-slide strong { font-size: 16px; }
  #hero-carousel-host .hc-word { left: 4%; bottom: 9px; font-size: clamp(48px, 14vw, 64px); }
  #hero-carousel-host .hc-navigation { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-carousel-host .hc-slide, #hero-carousel-host .hc-buttons button { transition: none; }
  #hero-carousel-host .hc-track { scroll-behavior: auto; }
}
