/* ==========================================================
   FIE VIDEO BANNER
   Add this file AFTER style.css in index.html.
   Existing site styles remain untouched.
   ========================================================== */

.hero {
  isolation: isolate;
  position: relative;
  width: 100%;
  border-radius: 0px;
  margin-top: 0px;
  overflow: hidden;
  height: 90vh;
}

/* Main video banner */
.hero-video-banner {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #063d91;
}

/* Continuous video background.
   This element is outside the text slides, so changing text never
   restarts or crossfades the video. */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #063d91;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Blue overlay matching the existing FIE visual language */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 61, 151, 0.94) 0%,
      rgba(4, 68, 157, 0.82) 36%,
      rgba(5, 61, 145, 0.58) 65%,
      rgba(4, 42, 104, 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 25, 70, 0.16) 0%,
      rgba(0, 31, 79, 0.28) 100%
    );
}

/* Text-only slide layer */
.hero-video-banner .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

/* Every slide occupies the same space.
   The video remains completely independent from these transitions. */
.hero-video-banner .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(38px);
  transition:
    opacity 0.65s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.65s ease;
  z-index: 0;
  pointer-events: none;
}

.hero-video-banner .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
  pointer-events: auto;
}

/* Content position */
.hero-video-banner .hero-content {
  position: absolute;
  left: 9%;
  top: 50%;
  transform: translateY(-42%);
  z-index: 3;
  max-width: min(920px, 68%);
  color: #fff;
}

/* Text animation when a slide becomes active */
.hero-video-banner .hero-slide.is-active .hero-content h1 {
  animation: fieBannerTextIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-video-banner .hero-slide.is-active .hero-btn {
  animation: fieBannerButtonIn 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-video-banner .hero-content h1 {
  margin: 0 0 25px;
  color: #fff;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(32px, 3.25vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 14px rgba(0, 18, 55, 0.18);
}

.hero-video-banner .hero-btn {
  background: #8d174c;
  position: relative;
  z-index: 4;
}

/* Right-side quick links stay above the video and overlay */
.hero-video-banner > .quick-links {
  z-index: 7;
}

/* Navigation arrows */
.hero-video-banner .slider-arrow {
  z-index: 8;
}

/* Dots */
.hero-video-banner .slider-dots {
  z-index: 8;
}

/* Slightly stronger visual separation on the right side */
.hero-video-banner > .quick-links a {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Animations */
@keyframes fieBannerTextIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fieBannerButtonIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-video-banner .hero-content {
    left: 7%;
    max-width: 65%;
  }

  .hero-video-banner .hero-content h1 {
    font-size: clamp(30px, 4vw, 36px);
  }
}

/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */
@media (max-width: 760px) {
  .hero-video-banner {
    height: 610px;
  }

  .hero-video {
    object-position: 58% center;
  }

  .hero-video-overlay {
    background: linear-gradient(
      180deg,
      rgba(3, 61, 151, 0.78) 0%,
      rgba(4, 68, 157, 0.68) 42%,
      rgba(4, 42, 104, 0.8) 100%
    );
  }

  .hero-video-banner .hero-content {
    top: 36%;
    left: 8%;
    right: 8%;
    max-width: none;
    transform: translateY(-37%);
  }

  .hero-video-banner .hero-content h1 {
    font-size: clamp(28px, 6vw, 35px);
    line-height: 1.13;
    letter-spacing: 0.2px;
  }

  .hero-video-banner .slider-dots {
    bottom: 12px;
  }
}

/* ----------------------------------------------------------
   Small phones
   ---------------------------------------------------------- */
@media (max-width: 420px) {
  .hero-video-banner {
    height: 660px;
  }

  .hero-video-banner .hero-content {
    top: 31%;
  }

  .hero-video-banner .hero-content h1 {
    font-size: 25px;
  }
}

/* ----------------------------------------------------------
   Accessibility: respect reduced-motion preference
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-video-banner .hero-slide,
  .hero-video-banner .hero-content h1,
  .hero-video-banner .hero-btn {
    transition: none;
    animation: none;
  }
}
