
/* AFIT v05: responsive three-slide course-photo hero carousel. */
@keyframes afitSlideTextInV5 {
  from { opacity: 0; transform: translate3d(0, calc(-50% + 18px), 0); }
  to { opacity: 1; transform: translate3d(0, -50%, 0); }
}
@keyframes afitSlideImageDriftV5 {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}
.hero.hero-slider {
  --afit-header-offset: 74px;
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: calc(100vh - var(--afit-header-offset));
  height: calc(100svh - var(--afit-header-offset));
  height: calc(100dvh - var(--afit-header-offset));
  min-height: 460px;
  margin: 0 0 26px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #18382f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  grid-template-columns: none;
  gap: 0;
}
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity .85s ease, visibility .85s ease, transform 7.2s linear;
}
.hero-slider .hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.hero-slider .hero-slide-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  animation: afitSlideImageDriftV5 7.2s ease-out both;
}
.hero-slider .hero-slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 43, 34, .94) 0%, rgba(15, 48, 37, .86) 34%, rgba(17, 49, 39, .55) 57%, rgba(20, 38, 31, .12) 100%),
    linear-gradient(0deg, rgba(18, 34, 27, .45) 0%, transparent 38%);
}
.hero-slider .hero-slide-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(32px, 7.2vw, 88px);
  width: min(58%, 650px);
  padding: 12px 0 34px;
  color: #fbf6eb;
  transform: translateY(-50%);
}
.hero-slider .hero-slide.is-active .hero-slide-content {
  animation: afitSlideTextInV5 .72s .08s ease-out both;
}
.hero-slider .hero-slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #f0bd68;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero-slider .hero-slide-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #d79a45;
}
.hero-slider .hero-slide-title {
  max-width: 680px;
  margin: 0;
  color: #fffaf0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .99;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .22);
}
.hero-slider .hero-slide-lede {
  max-width: 570px;
  margin: 20px 0 0;
  color: rgba(255, 250, 240, .9);
  font-size: clamp(.98rem, 1.35vw, 1.13rem);
  line-height: 1.62;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
.hero-slider .hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}
.hero-slider .hero-slide-actions .btn {
  min-height: 44px;
  padding: 11px 19px;
  border-radius: 999px;
  font-size: .89rem;
  font-weight: 750;
  text-decoration: none;
}
.hero-slider .hero-primary {
  border: 1px solid #c74f1d;
  background: #c74f1d;
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(112, 45, 17, .24);
}
.hero-slider .hero-primary:hover {
  border-color: #a83d16;
  background: #a83d16;
  transform: translateY(-1px);
}
.hero-slider .hero-secondary {
  border: 1px solid rgba(255, 250, 240, .54);
  background: rgba(14, 43, 34, .28);
  color: #fffaf2;
  backdrop-filter: blur(8px);
}
.hero-slider .hero-secondary:hover {
  border-color: #f0bd68;
  background: rgba(14, 43, 34, .58);
}
.hero-slider-controls {
  position: absolute;
  right: clamp(20px, 4vw, 42px);
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fffaf0;
}
.hero-slider-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, .42);
  border-radius: 50%;
  background: rgba(14, 43, 34, .48);
  color: #fffaf0;
  cursor: pointer;
  font: 400 1.7rem/1 Georgia, serif;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  backdrop-filter: blur(8px);
}
.hero-slider-arrow:hover {
  transform: translateY(-1px);
  border-color: #f0bd68;
  background: rgba(14, 43, 34, .8);
}
.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 240, .55);
  cursor: pointer;
  transition: width .22s ease, background .22s ease;
}
.hero-slider-dot.is-active {
  width: 27px;
  background: #e6aa57;
}
.hero-slider-count {
  min-width: 48px;
  color: rgba(255, 250, 240, .83);
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-align: center;
}
.hero-slider :is(a, button):focus-visible {
  outline: 3px solid #f0bd68;
  outline-offset: 4px;
}
@media (max-width: 860px) {
  .hero.hero-slider {
    --afit-header-offset: 84px;
    width: 100%;
    height: calc(100vh - var(--afit-header-offset));
    height: calc(100svh - var(--afit-header-offset));
    height: calc(100dvh - var(--afit-header-offset));
    min-height: 450px;
    margin: 0 0 22px;
    border-radius: 0;
  }
  .hero-slider .hero-slide-shade {
    background:
      linear-gradient(90deg, rgba(13, 43, 34, .9), rgba(15, 48, 37, .68) 65%, rgba(20, 38, 31, .28)),
      linear-gradient(0deg, rgba(18, 34, 27, .5), transparent 52%);
  }
  .hero-slider .hero-slide-content {
    left: 34px;
    width: min(78%, 620px);
  }
}
@media (max-width: 520px) {
  .hero.hero-slider {
    --afit-header-offset: 92px;
    width: 100%;
    height: calc(100vh - var(--afit-header-offset));
    height: calc(100svh - var(--afit-header-offset));
    height: calc(100dvh - var(--afit-header-offset));
    min-height: 430px;
    margin: 0 0 22px;
    border-radius: 0;
  }
  .hero-slider .hero-slide-content {
    top: 46%;
    right: 22px;
    left: 22px;
    width: auto;
    padding-bottom: 46px;
  }
  .hero-slider .hero-slide-kicker {
    margin-bottom: 15px;
    font-size: .62rem;
    letter-spacing: .13em;
  }
  .hero-slider .hero-slide-title {
    font-size: clamp(2.45rem, 11.7vw, 3.6rem);
    line-height: 1;
  }
  .hero-slider .hero-slide-lede {
    margin-top: 15px;
    font-size: .92rem;
    line-height: 1.52;
  }
  .hero-slider .hero-slide-actions {
    gap: 8px;
    margin-top: 21px;
  }
  .hero-slider .hero-slide-actions .btn {
    min-height: 40px;
    padding: 9px 14px;
    font-size: .78rem;
  }
  .hero-slider-controls {
    right: 17px;
    bottom: 17px;
    gap: 9px;
  }
  .hero-slider-arrow {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .hero-slider-dot { width: 8px; height: 8px; }
  .hero-slider-dot.is-active { width: 23px; }
  .hero-slider-count { min-width: 42px; font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide,
  .hero-slider .hero-slide-image,
  .hero-slider .hero-slide-content,
  .hero-slider-arrow,
  .hero-slider-dot {
    animation: none !important;
    transition: none !important;
  }
}
/* The React hero remains untouched and is restored if the enhancement is removed. */
.hero.afit-hero-source-hidden { display: none !important; }
