/* Hero redesign, modelled closely on the Sri Vivekananda School site's
   hero (`HeroSection.tsx` in the locally cloned vivekanandaschool Next.js
   project): a two-column layout on a mesh-gradient background, a framed
   photo card with floating stat cards instead of a full-bleed photo, a
   Manrope display headline (their `font-display` maps to Manrope, not a
   serif), pointer-parallax glows, gradient headline text, and a scroll
   cue. Scoped to .college-hero only; nothing outside the hero is touched,
   and every effect has a static, fully visible fallback with no animation
   or JS dependency — motion is added on top, never required. */

.college-hero {
  background: linear-gradient(135deg, #0c2038 0%, #123258 32%, #16416f 62%, #0c2038 100%);
}

/* ---- Ambient glow + grid, behind everything ---- */

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  will-change: transform;
}

.hero-glow-gold {
  top: -180px;
  right: -80px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(228, 186, 120, .55) 0%, rgba(196, 165, 114, .22) 45%, transparent 72%);
}

.hero-glow-blue {
  bottom: -160px;
  left: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(130, 178, 255, .38) 0%, rgba(110, 160, 240, .15) 45%, transparent 72%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image:
    linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 78%);
}

/* ---- Two-column layout ---- */

.college-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
}

/* ---- Display type + eyebrow pill, matching the reference's Manrope headline ---- */

.college-hero h1 {
  font-family: 'Manrope', var(--sans), sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}

.college-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 165, 114, .35);
  background: rgba(196, 165, 114, .09);
}

.college-hero .eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---- CTAs: gradient pill primary, translucent pill secondary ---- */

.college-hero .button {
  background: linear-gradient(135deg, #b1834a 0%, #c4a572 55%, #e7cb9c 100%);
  border-color: transparent;
  border-radius: 999px;
  color: #16304f;
  box-shadow: 0 16px 36px rgba(196, 165, 114, .32);
}

.college-hero .button:hover {
  background: linear-gradient(135deg, #c4986a 0%, #dec69e 55%, #f5e2ba 100%);
  border-color: transparent;
  box-shadow: 0 20px 46px rgba(196, 165, 114, .48);
}

.college-hero .hero-secondary {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  transition: border-color .3s, color .3s, background .3s;
}

.college-hero .hero-secondary:hover {
  border-color: rgba(196, 165, 114, .55);
  background: rgba(255, 255, 255, .1);
  color: #f3ddb2;
}

/* ---- Framed photo card, replacing the old full-bleed background photo ---- */

.hero-photo-card {
  position: relative;
  min-height: 520px;
}

.hero-photo-frame {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 40px 90px rgba(6, 15, 28, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}

.hero-photo-frame .hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 26, 46, .8) 0%, rgba(11, 26, 46, .2) 45%, transparent 68%);
  pointer-events: none;
}

.hero-photo-chip {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(13, 31, 54, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(196, 165, 114, .25);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .3px;
}

.hero-photo-chip strong {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ---- Floating cards over the photo card: a unified glass family, matching
   the chip above rather than sitting as flat white stickers ---- */

.hero-float {
  position: relative;
  z-index: 3;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 54, 91, .88) 0%, rgba(10, 24, 43, .82) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(196, 165, 114, .3);
  box-shadow: 0 28px 60px rgba(4, 11, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.hero-chairman-link.hero-float {
  margin: 0;
  padding: 22px 46px 22px 24px;
  border-top: 1px solid rgba(196, 165, 114, .3);
}

.hero-chairman-link.hero-float > span {
  color: rgba(226, 205, 169, .85);
}

.hero-chairman-link.hero-float strong {
  color: #fff;
}

.hero-chairman-link.hero-float i {
  color: var(--gold);
}

.hero-chairman-link.hero-float:hover {
  background: linear-gradient(160deg, rgba(35, 67, 108, .92) 0%, rgba(14, 32, 56, .88) 100%);
  border-color: rgba(196, 165, 114, .55);
}

.hero-float-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  padding: 20px 26px;
  text-decoration: none;
}

.hero-float-stat strong {
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -.5px;
  line-height: 1;
  color: #fff;
}

.hero-float-stat span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(226, 205, 169, .8);
  max-width: 150px;
  line-height: 1.5;
}

.hero-float-stat:hover {
  border-color: rgba(196, 165, 114, .55);
}

.hero-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 68px rgba(4, 11, 22, .56), inset 0 1px 0 rgba(255, 255, 255, .07);
}

@media (min-width: 901px) {
  .hero-float {
    position: absolute;
  }

  .hero-chairman-link.hero-float {
    top: -32px;
    left: -36px;
    max-width: 240px;
  }

  .hero-float-stat {
    bottom: -24px;
    right: -26px;
  }
}

/* ---- Scroll cue ---- */

.hero-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  opacity: 1;
}

.hero-scroll-cue > span {
  position: absolute;
  top: 6px;
  left: 50%;
  translate: -50% 0;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---- Motion: parallax, drift, entrances — all opt-in via OS preference ---- */

@media (prefers-reduced-motion: no-preference) {
  .hero-glow-gold,
  .hero-glow-blue,
  .hero-photo-card,
  .hero-float {
    transition: translate 1.4s cubic-bezier(.16, 1, .3, 1);
  }

  .hero-glow-gold {
    translate: calc(var(--mx, 0) * 26px) calc(var(--my, 0) * 18px);
    animation: hero-drift 16s ease-in-out infinite;
  }

  .hero-glow-blue {
    translate: calc(var(--mx, 0) * -20px) calc(var(--my, 0) * -14px);
    animation: hero-drift 20s ease-in-out infinite reverse;
  }

  .hero-photo-card {
    translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -6px);
  }

  .hero-background {
    scale: 1.06;
    translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -4px);
    transition: translate 1.4s cubic-bezier(.16, 1, .3, 1);
    animation: hero-photo-in 1.3s cubic-bezier(.16, 1, .3, 1) both;
  }

  .hero-chairman-link.hero-float {
    translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 6px);
  }

  .hero-float-stat {
    translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -8px);
  }

  .college-hero .eyebrow > span {
    animation: hero-line-glow 2.8s ease-in-out infinite;
  }

  .hero-scroll-cue > span {
    animation: hero-cue-bounce 2.2s ease-in-out 1.4s infinite;
  }
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (prefers-reduced-motion: no-preference) {
    .college-hero h1 em {
      background: linear-gradient(100deg, #dfc79e 20%, #fff3da 50%, #dfc79e 80%);
      background-size: 220% auto;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: hero-shimmer 7s linear infinite;
    }
  }
}

@keyframes hero-drift {
  0%, 100% { scale: 1; }
  50% { scale: 1.08; }
}

@keyframes hero-photo-in {
  from { scale: 1.16; }
  to { scale: 1.06; }
}

@keyframes hero-line-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 165, 114, 0); }
  50% { box-shadow: 0 0 12px 1px rgba(196, 165, 114, .85); }
}

@keyframes hero-shimmer {
  to { background-position: -220% 0; }
}

@keyframes hero-cue-bounce {
  0%, 100% { translate: -50% 0; opacity: 1; }
  50% { translate: -50% 6px; opacity: .5; }
}

/* ---- Small screens: stack, drop the floating positioning ---- */

@media (max-width: 900px) {
  .college-hero-content {
    display: block;
  }

  .hero-photo-card {
    min-height: 380px;
    margin-top: 32px;
  }

  .hero-chairman-link.hero-float {
    display: block;
    margin-top: 16px;
    max-width: none;
  }

  .hero-float-stat {
    margin-top: 12px;
    width: fit-content;
  }

  .hero-scroll-cue {
    display: none;
  }

  .hero-glow-gold { width: 420px; height: 420px; top: -140px; right: -100px; }
  .hero-glow-blue { width: 340px; height: 340px; bottom: -120px; left: -90px; }
}
