/* =====================================================================
   MGC — NAV GLOW-UP + "MORE LIFE" LAYER
   Purely additive. Load this AFTER mgc-style.css, mgc-polish.css, and
   mgc-polish-pro.css. No markup changes needed.

   Part A: makes the main nav bar brighter, richer, and gently glowing
           (animated gold underline, brighter teal, breathing edge glow,
           sharper active/hover states, glowing logo).
   Part B: small "signs of life" sprinkled elsewhere — breathing glows,
           gentle idle motion, livelier hovers — so the whole page feels
           less static, without touching layout or content.
   ===================================================================== */

:root{
  --mgc-nav-teal-1: #0d4a43;
  --mgc-nav-teal-2: #1f8c7e;
  --mgc-nav-teal-3: #24a390;
  --mgc-nav-glow: rgba(255, 214, 122, .55);
}

/* ---------- A1. Brighter nav gradient + glowing gold edge --------------- */
.mgc-nav{
  background: linear-gradient(90deg,
    var(--mgc-nav-teal-1) 0,
    var(--mgc-nav-teal-2) 30%,
    var(--mgc-nav-teal-3) 50%,
    var(--mgc-nav-teal-2) 70%,
    var(--mgc-nav-teal-1) 100%) !important;
  background-size: 200% 100%;
  animation: mgcNavSheen 10s ease-in-out infinite;
  border-bottom: 2px solid var(--mgc-gold-soft) !important;
  box-shadow:
    0 4px 22px -4px rgba(31,124,112,.65),
    0 0 24px -6px var(--mgc-nav-glow) !important;
  position: relative;
}
@keyframes mgcNavSheen{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

/* Slow, breathing gold glow along the bottom edge — felt more than seen,
   reads as "alive" without being distracting. */
.mgc-nav::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: linear-gradient(90deg, transparent, var(--mgc-gold-soft) 20%, #fff8e0 50%, var(--mgc-gold-soft) 80%, transparent);
  filter: blur(1.5px);
  opacity:.75;
  animation: mgcNavEdgeGlow 3.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes mgcNavEdgeGlow{
  0%,100%{ opacity:.5; filter: blur(1.5px) brightness(1); }
  50%{ opacity:1; filter: blur(2.5px) brightness(1.3); }
}

/* ---------- A2. Brand mark — a soft glowing halo ------------------------ */
.mgc-nav-brand-logo{
  border-radius:50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 0 16px 2px var(--mgc-nav-glow);
  animation: mgcLogoGlow 3.2s ease-in-out infinite;
}
@keyframes mgcLogoGlow{
  0%,100%{ box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 0 10px 1px var(--mgc-nav-glow); }
  50%{ box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 0 20px 4px var(--mgc-nav-glow); }
}
.mgc-nav-brand-text{
  text-shadow: 0 0 12px rgba(255,224,150,.55);
  transition: text-shadow .3s ease;
}
.mgc-nav-brand:hover .mgc-nav-brand-text{
  text-shadow: 0 0 18px rgba(255,224,150,.85);
}

/* ---------- A3. Menu links — brighter idle state + glowing active/hover  */
.mgc-menu > li > a{
  text-shadow: 0 0 10px rgba(255,255,255,.18);
}
.mgc-menu > li > a:hover,
.mgc-menu > li.active > a{
  text-shadow: 0 0 14px rgba(255,224,150,.9), 0 0 26px rgba(255,224,150,.4);
}
/* Thicker, brighter animated underline (layered on top of polish-pro's) */
.mgc-menu a::after{
  height:3px !important;
  background: linear-gradient(90deg, var(--mgc-gold), var(--mgc-gold-soft), #fff2cf) !important;
  box-shadow: 0 0 10px rgba(255,214,122,.8);
}
/* Gentle glow pulse on the currently active nav item so it never looks flat */
.mgc-menu > li.active > a{
  position:relative;
}
.mgc-menu > li.active > a::before{
  content:'';
  position:absolute; inset:6px -6px;
  border-radius:6px;
  background: radial-gradient(ellipse at center, rgba(255,214,122,.22), transparent 70%);
  z-index:-1;
  animation: mgcActivePulse 2.6s ease-in-out infinite;
}
@keyframes mgcActivePulse{
  0%,100%{ opacity:.5; }
  50%{ opacity:1; }
}

/* ---------- A4. Dropdown submenu — brighter gold cap + soft lift -------- */
.mgc-menu .sub{
  border-top: 3px solid var(--mgc-gold) !important;
  box-shadow: 0 18px 40px -14px rgba(13,22,46,.35), 0 0 0 1px rgba(214,161,60,.15), 0 0 20px rgba(255,214,122,.25) !important;
}

/* ---------- A5. Sticky state — a touch more radiance -------------------- */
.mgc-nav.mgc-nav-stuck{
  box-shadow:
    0 12px 34px -12px rgba(10,20,40,.6),
    0 2px 0 var(--mgc-gold-soft),
    0 0 26px -4px var(--mgc-nav-glow) !important;
}

/* ---------- A6. Mobile toggle — glowing icon on open -------------------- */
.mgc-nav-toggle{
  transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}
.mgc-nav.open .mgc-nav-toggle{
  color: var(--mgc-gold-soft);
  text-shadow: 0 0 14px rgba(255,214,122,.8);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce){
  .mgc-nav, .mgc-nav::after, .mgc-nav-brand-logo, .mgc-menu > li.active > a::before{
    animation:none !important;
  }
}

/* =====================================================================
   PART B — a little more life across the rest of the page
   ===================================================================== */

/* Hero eyebrow / section eyebrows: a soft breathing glow behind the
   little rule so headers don't sit totally still. */
.mgc-eyebrow::before{
  box-shadow: 0 0 8px rgba(214,161,60,.5);
  animation: mgcEyebrowGlow 3s ease-in-out infinite;
}
@keyframes mgcEyebrowGlow{
  0%,100%{ opacity:.7; }
  50%{ opacity:1; box-shadow: 0 0 14px rgba(214,161,60,.85); }
}

/* CTA buttons: idle shimmer breathing so the primary actions read as
   inviting rather than static, on top of their existing hover sweep. */
.mgc-btn-solid, .mgc-btn-gold{
  animation: mgcBtnBreathe 4s ease-in-out infinite;
}
@keyframes mgcBtnBreathe{
  0%,100%{ filter:brightness(1); }
  50%{ filter:brightness(1.06); }
}

/* Stat numbers: a gentle pop-in glow whenever they're in view/hovered,
   plus a subtle idle shimmer on the gold ones. */
.mgc-hero-stats strong, .mgc-statstrip strong{
  transition: text-shadow .3s ease;
}
.mgc-hero-stats div:hover strong{
  text-shadow: 0 0 16px rgba(255,224,150,.75);
}

/* Live badges (already-pulsing dots) get a touch more glow radius so
   they read as clearly "live" rather than just blinking. */
.mgc-live-dot, .mgc-updatebar-dot{
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 10px currentColor;
}

/* Section headings: soft glow on hover for any that are links/anchors,
   and a touch of shimmer on the gold-gradient text already applied by
   polish-pro's .mgc-section-head h2 background-clip. */
.mgc-section-head h2{
  background-size: 200% auto;
  animation: mgcHeadingShimmer 6s ease-in-out infinite;
}
@keyframes mgcHeadingShimmer{
  0%,100%{ background-position: 0% center; }
  50%{ background-position: 100% center; }
}

/* Cards already lift on hover (polish-pro); add a faint idle glow ring
   so the grid doesn't look inert before the user ever touches it. */
.mgc-facility-card, .mgc-acad-card, .mgc-dept-tile{
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease, filter .4s ease !important;
}

/* Social icons in footer: idle glow so the footer isn't flat navy. */
.mgc-footer-social a{
  box-shadow: 0 0 0 1px rgba(238,203,133,.15);
  animation: mgcSocialGlow 5s ease-in-out infinite;
}
.mgc-footer-social a:nth-child(2n){ animation-delay: 1.2s; }
.mgc-footer-social a:nth-child(3n){ animation-delay: 2.4s; }
@keyframes mgcSocialGlow{
  0%,100%{ box-shadow: 0 0 0 1px rgba(238,203,133,.12), 0 0 0 rgba(238,203,133,0); }
  50%{ box-shadow: 0 0 0 1px rgba(238,203,133,.3), 0 0 10px rgba(238,203,133,.35); }
}

/* Back-to-top button: idle gentle bob so it feels reachable/alive. */
.mgc-totop{
  animation: mgcTotopBob 3.4s ease-in-out infinite;
}
@keyframes mgcTotopBob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}
.mgc-totop:hover{ animation-play-state: paused; }

@media (prefers-reduced-motion: reduce){
  .mgc-eyebrow::before, .mgc-btn-solid, .mgc-btn-gold, .mgc-section-head h2,
  .mgc-footer-social a, .mgc-totop{
    animation:none !important;
  }
}

@media print{
  .mgc-nav, .mgc-nav::after, .mgc-nav-brand-logo{ animation:none !important; box-shadow:none !important; }
}
