/* MathPro Tutors hero video playlist v22
   Keeps the existing hero layout, removes the right-side match form, and makes the video background clearly visible. */
body.mathguru-theme .pro-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
}

body.mathguru-theme .mpt-hero-video-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #171a32;
}

body.mathguru-theme .mpt-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.01);
  filter: saturate(.96) contrast(1.02) brightness(.98);
  transition: opacity .65s ease;
}

body.mathguru-theme .mpt-hero-video.is-active {
  opacity: 1;
}

/* About 50% darkening only: video remains clearly visible while white hero copy stays readable. */
body.mathguru-theme .mpt-hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5,7,27,.54) 0%, rgba(5,7,27,.48) 44%, rgba(5,7,27,.40) 72%, rgba(5,7,27,.44) 100%),
    linear-gradient(180deg, rgba(5,7,27,.10) 0%, rgba(5,7,27,.28) 100%);
}

body.mathguru-theme .pro-home-hero > .container,
body.mathguru-theme .pro-home-hero > .pro-hero-orb {
  position: relative;
  z-index: 5;
}

/* The form was removed, so keep the existing left-aligned hero but use the freed width cleanly. */
body.mathguru-theme .pro-home-hero-grid {
  grid-template-columns: minmax(0, 900px) !important;
  justify-content: start !important;
  gap: 0 !important;
}

body.mathguru-theme .pro-home-hero-copy {
  max-width: 900px !important;
  text-shadow: 0 3px 22px rgba(0,0,0,.42);
}

body.mathguru-theme .pro-home-hero-copy h1 {
  max-width: 880px !important;
}

body.mathguru-theme .pro-home-hero-copy > p {
  max-width: 760px !important;
  color: rgba(255,255,255,.96) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.48);
}

body.mathguru-theme .pro-inline-trust li,
body.mathguru-theme .pro-eyebrow-light {
  text-shadow: 0 2px 12px rgba(0,0,0,.48);
}

@media (max-width: 900px) {
  body.mathguru-theme .mpt-hero-video-shade {
    background:
      linear-gradient(180deg, rgba(5,7,27,.48) 0%, rgba(5,7,27,.42) 52%, rgba(5,7,27,.50) 100%);
  }
  body.mathguru-theme .mpt-hero-video {
    object-position: center center;
    filter: saturate(.94) contrast(1.02) brightness(.96);
  }
  body.mathguru-theme .pro-home-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.mathguru-theme .mpt-hero-video-shade {
    background: rgba(5,7,27,.50);
  }
  body.mathguru-theme .mpt-hero-video {
    object-position: 52% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mathguru-theme .mpt-hero-video {
    transition: none;
  }
}
