/* Wrapper */
.video-banner-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Fullscreen video container */
.video-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  z-index: 1;
}

/* Video background — true page background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Overlay (IMPORTANT FIX: gradient only covers first viewport, not the whole page height) */
.video-overlay {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(0, 0, 0, 0.00) 78%,
    rgba(0, 0, 0, 0.00) 100%
  );

  /* ✅ CRITICAL: prevent gradient from stretching with content */
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  background-position: top center;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 6rem 1rem 1rem;
  text-align: center;

  z-index: 1;

  /* iOS/Safari stability */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Center content */
.video-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #fff;
  max-width: 960px;
  text-align: center;
  margin: 0 auto;

  animation: fadeUp 1.2s ease-out both;
  animation-delay: 0.4s;
}

/* Headings */
.video-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Subhead */
.video-content p {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* Fallback image */
.image-banner {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .video-content h1 {
    font-size: 1.6rem;
  }

  .video-content p {
    font-size: 1rem;
  }

  .video-overlay {
    padding-top: 6.5rem;

    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 52%,
      rgba(0, 0, 0, 0.00) 64%,
      rgba(0, 0, 0, 0.00) 100%
    );

    /* ✅ SAME FIX ON MOBILE */
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    background-position: top center;
  }
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}