/* ==========================================================
   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, 42px);
  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: 30px;
  }
}

/* ----------------------------------------------------------
   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;
  }
}


/* ==========================================================
   LARGE-SCREEN / 2K / 4K VIDEO BANNER RESPONSIVE SYSTEM
   Full-width video is preserved.
   Content, typography and controls scale independently.
   ========================================================== */

/* Base desktop: avoid 90vh becoming excessively tall on 4K */
.hero-video-banner,
.hero.hero-video-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  height: clamp(560px, 55vh, 900px);
}

/* Keep the video filling the complete banner */
.hero-video-banner .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Desktop content width */
.hero-video-banner .hero-content {
  left: clamp(6%, 8vw, 10%);
  max-width: min(1100px, 68vw);
}

/* Desktop heading */
.hero-video-banner .hero-content h1 {
  font-size: clamp(38px, 2.7vw, 56px);
  line-height: 1.13;
  letter-spacing: 0.6px;
}

/* Desktop quick links */
.hero-video-banner > .quick-links {
  right: clamp(4%, 6vw, 8%);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(190px, 12vw, 250px);
  gap: clamp(10px, 0.8vw, 14px);
}

.hero-video-banner > .quick-links a {
  padding: clamp(14px, 0.9vw, 18px) 12px;
  font-size: clamp(12px, 0.75vw, 15px);
}

/* Large desktop: 1920px+ */
@media (min-width: 1920px) {
  .hero-video-banner,
  .hero.hero-video-banner {
    height: clamp(650px, 55vh, 820px);
  }

  .hero-video-banner .hero-content {
    left: 8%;
    max-width: min(1500px, 68vw);
  }

  .hero-video-banner .hero-content h1 {
    font-size: clamp(48px, 2.7vw, 60px);
    line-height: 1.12;
  }

    

  .hero-video-banner .hero-btn {
    min-height: 46px;
    padding: 14px 28px;
    font-size: 14px;
  }

  .hero-video-banner > .quick-links {
    right: 6%;
    width: 235px;
  }

  .hero-video-banner > .quick-links a {
    padding: 17px 12px;
    font-size: 14px;
  }

  .hero-video-banner .slider-arrow {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .hero-video-banner .slider-prev {
    left: 24px;
  }

  .hero-video-banner .slider-next {
    right: 24px;
  }

  .hero-video-banner .slider-dots {
    bottom: 22px;
    gap: 10px;
  }

  .hero-video-banner .slider-dot {
    width: 10px;
    height: 10px;
  }

  .hero-video-banner .slider-dot.is-active {
    width: 30px;
  }
}

/* 2K / 2560px+ */
@media (min-width: 2560px) {
  .hero-video-banner,
  .hero.hero-video-banner {
    height: clamp(720px, 55vh, 900px);
  }

  .hero-video-banner .hero-content {
    left: 8%;
    max-width: 1750px;
  }

  .hero-video-banner .hero-content h1 {
    font-size: clamp(56px, 2.65vw, 70px);
    line-height: 1.1;
    letter-spacing: 0.8px;
    text-shadow: 0 3px 18px rgba(0, 18, 55, 0.22);
  }

  .hero-video-banner .hero-btn {
    min-height: 50px;
    padding: 15px 32px;
    font-size: 15px;
  }

  .hero-video-banner > .quick-links {
    right: 6%;
    width: 270px;
    gap: 14px;
  }

  .hero-video-banner > .quick-links a {
    padding: 19px 14px;
    font-size: 15px;
    border-radius: 5px;
  }

  .hero-video-banner .slider-arrow {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .hero-video-banner .slider-prev {
    left: 30px;
  }

  .hero-video-banner .slider-next {
    right: 30px;
  }

  .hero-video-banner .slider-dots {
    bottom: 25px;
  }
}

/* 4K / ultra-large displays */
@media (min-width: 3400px) {
  .hero-video-banner,
  .hero.hero-video-banner {
    height: min(900px, 55vh);
  }

  .hero-video-banner .hero-content {
    left: 8%;
    max-width: 1350px;
  }

  .hero-video-banner .hero-content h1 {
    font-size: clamp(64px, 2.55vw, 82px);
    line-height: 1.08;
  }

  .hero-video-banner .hero-btn {
    min-height: 54px;
    padding: 16px 36px;
    font-size: 16px;
  }

  .hero-video-banner > .quick-links {
    right: 6%;
    width: 300px;
    gap: 16px;
  }

  .hero-video-banner > .quick-links a {
    padding: 21px 16px;
    font-size: 17px;
  }

  .hero-video-banner .slider-arrow {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

/* Very wide screens: keep text away from the extreme edge */
@media (min-width: 1920px) {
  .hero-video-banner .hero-content {
    transform: translateY(-45%);
  }
}

/* Mobile rules must continue to win over the desktop system */
@media (max-width: 760px) {
  .hero-video-banner,
  .hero.hero-video-banner {
    height: 710px;
  }

  .hero-video-banner .hero-content {
    left: 8%;
    right: 8%;
    max-width: none;
    transform: translateY(-50%);
  }

  .hero-video-banner .hero-content h1 {
    font-size: clamp(28px, 7vw, 35px);
  }

  .hero-video-banner > .quick-links {
    top: auto;
    right: 8%;
    bottom: 20px;
    left: 8%;
    width: auto;
    transform: none;
  }
}

@media (max-width: 420px) {
  .hero-video-banner,
  .hero.hero-video-banner {
    height: 660px;
  }

  .hero-video-banner .hero-content h1 {
    font-size: 30px;
  }
}
