/**
 * HelloOlivia hero — full-bleed academic overlay
 */

.mmp-story-section.mmp-story-hero {
  padding: 0 !important;
  margin: 0;
  background: transparent;
  border-top: 0;
  max-width: none;
}

.mmp-story-section.mmp-story-hero > .container {
  max-width: none;
  padding: 0;
  width: 100%;
}

.hello-story-hero {
  width: 100%;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b1f33;
  border-bottom: 1px solid rgba(255, 248, 239, 0.35);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: clamp(440px, 54vw, 640px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
  object-position: center 28%;
}

.hero-slide[data-slide="0"] img {
  object-position: 78% 32%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(7, 21, 35, 0.55) 0%,
      rgba(7, 21, 35, 0.62) 42%,
      rgba(7, 21, 35, 0.78) 100%
    );
}

.hero-slide-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(42rem, calc(100% - 2.5rem));
  max-width: 42rem;
  padding: 0 1rem 2.75rem;
  color: #f6f5f1;
  text-align: center;
}

.hero-slide-kicker {
  margin: 0 0 1rem;
  display: inline-block;
  padding: 0.2rem 0 0.4rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 239, 0.55);
  color: #fff8ef;
  font-family: "Source Sans 3", "Noto Sans SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-slide-title {
  margin: 0 0 1rem;
  max-width: 16ch;
  color: #ffffff;
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: none;
  text-wrap: balance;
}

.hero-slide-sub {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(246, 245, 241, 0.92);
  font-family: "Source Sans 3", "Noto Sans SC", sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  text-shadow: none;
}

.hero-slide-cta {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.8rem 1.45rem;
  border-radius: 0.25rem;
  background: #f6f5f1;
  color: #0b1f33 !important;
  font-family: "Source Sans 3", "Noto Sans SC", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border: 1px solid #f6f5f1;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-slide-cta:hover,
.hero-slide-cta:focus-visible {
  background: transparent;
  border-color: #f6f5f1;
  color: #f6f5f1 !important;
  transform: none;
  outline: 3px solid #f6f5f1;
  outline-offset: 3px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(246, 245, 241, 0.55);
  border-radius: 0.25rem;
  background: rgba(7, 21, 35, 0.72);
  color: #f6f5f1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.hero-nav.prev { left: 1rem; }
.hero-nav.next { right: 1rem; }

.hero-nav:hover,
.hero-nav:focus-visible {
  background: #f6f5f1;
  color: #0b1f33;
  outline: 3px solid #b01e28;
  outline-offset: 2px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.hero-dot {
  pointer-events: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0;
  border: 1px solid rgba(246, 245, 241, 0.75);
  padding: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  min-width: 0.55rem;
  min-height: 0.55rem;
}

/* Larger hit area without visual bulk */
.hero-dot::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1rem;
}

.hero-dot.active,
.hero-dot[aria-selected="true"] {
  background: #fff8ef;
  border-color: #fff8ef;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-cta {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .hero-slides {
    height: clamp(480px, 120vw, 580px);
  }

  .hero-slide::after {
    background:
      linear-gradient(
        180deg,
        rgba(7, 21, 35, 0.5) 0%,
        rgba(7, 21, 35, 0.68) 45%,
        rgba(7, 21, 35, 0.86) 100%
      );
  }

  .hero-slide[data-slide="0"] img {
    object-position: 70% 20%;
  }

  .hero-slide-overlay {
    width: min(100%, calc(100% - 1.5rem));
    padding: 0 0.75rem 4.75rem;
  }

  .hero-slide-cta {
    margin-bottom: 0.35rem;
  }

  .hero-slide-title {
    max-width: none;
    font-size: clamp(1.9rem, 8.2vw, 2.45rem);
  }

  .hero-slide-sub {
    font-size: 1.05rem;
  }

  .hero-slide-cta {
    min-height: 2.85rem;
    width: min(100%, 20rem);
  }

  .hero-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero-dots {
    bottom: 0.75rem;
  }
}
