@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --rc-navy: #000080;
  --rc-navy-deep: #02024f;
  --rc-blue: #2563eb;
  --rc-cyan: #38bdf8;
  --rc-gold: #f5c542;
  --rc-ink: #0f172a;
  --rc-muted: #64748b;
  --rc-surface: #ffffff;
  --rc-bg: #f5f7fb;
  --rc-border: rgba(15, 23, 42, .09);
  --rc-shadow: 0 20px 60px rgba(15, 23, 42, .10);
  --rc-shadow-deep: 0 30px 90px rgba(0, 0, 128, .18);
  --rc-radius: 22px;
}

html { scroll-behavior: smooth; }
body:not(:has(#map)) {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--rc-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .06), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, .055), transparent 25rem),
    var(--rc-bg);
  overflow-x: hidden;
}

body:not(:has(#map)) h1,
body:not(:has(#map)) h2,
body:not(:has(#map)) h3,
body:not(:has(#map)) h4,
body:not(:has(#map)) h5,
body:not(:has(#map)) h6 {
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -.025em;
}

body:not(:has(#map))::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .035;
  background-image: radial-gradient(#000 0.6px, transparent 0.6px);
  background-size: 6px 6px;
}

/* Navigation */
body:not(:has(#map)) nav {
  background: rgba(255,255,255,.82) !important;
  border-bottom: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 10px 35px rgba(15,23,42,.07) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow .3s ease, background .3s ease;
}
body:not(:has(#map)) nav > div:first-child { min-height: 76px; }
body:not(:has(#map)) nav a { transition: color .25s ease, transform .25s ease, opacity .25s ease; }
body:not(:has(#map)) nav a:hover { transform: translateY(-1px); }
body:not(:has(#map)) nav svg { filter: drop-shadow(0 8px 14px rgba(0,0,128,.14)); }

/* Shared visual language */
body:not(:has(#map)) section { position: relative; }
body:not(:has(#map)) .container { position: relative; z-index: 1; }
body:not(:has(#map)) .navy-bg {
  background: linear-gradient(135deg, var(--rc-navy-deep) 0%, var(--rc-navy) 45%, #1237a7 100%) !important;
}
body:not(:has(#map)) .navy-text { color: var(--rc-navy) !important; }

body:not(:has(#map)) .shadow-xl,
body:not(:has(#map)) .shadow-2xl {
  box-shadow: var(--rc-shadow) !important;
}

/* Cards: adds depth to the existing structure without changing markup */
body:not(:has(#map)) .bg-white:not(nav),
body:not(:has(#map)) .journey-icon-box,
body:not(:has(#map)) [class*="bg-white/5"] {
  border-color: var(--rc-border);
}

body:not(:has(#map)) .bg-white.rounded-2xl,
body:not(:has(#map)) .bg-white.rounded-xl,
body:not(:has(#map)) .bg-white.p-8,
body:not(:has(#map)) .bg-white.p-10,
body:not(:has(#map)) .bg-white.p-12 {
  box-shadow: 0 18px 50px rgba(15,23,42,.075) !important;
  border: 1px solid rgba(15,23,42,.07);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
body:not(:has(#map)) .bg-white.rounded-2xl:hover,
body:not(:has(#map)) .bg-white.rounded-xl:hover,
body:not(:has(#map)) .bg-white.p-8:hover,
body:not(:has(#map)) .bg-white.p-10:hover,
body:not(:has(#map)) .bg-white.p-12:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(0,0,128,.13) !important;
  border-color: rgba(37,99,235,.18);
}

/* Program / generic feature blocks */
body:not(:has(#map)) .grid > .p-10,
body:not(:has(#map)) .grid > .p-8 {
  position: relative;
  overflow: hidden;
}
body:not(:has(#map)) .grid > .p-10::before,
body:not(:has(#map)) .grid > .p-8::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  top: -80px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.15), transparent 68%);
  transition: transform .5s ease;
}
body:not(:has(#map)) .grid > .p-10:hover::before,
body:not(:has(#map)) .grid > .p-8:hover::before { transform: scale(1.8); }

/* Buttons / calls to action */
body:not(:has(#map)) a.bg-\[\#000080\],
body:not(:has(#map)) a.bg-navy-bg,
body:not(:has(#map)) button.navy-bg,
body:not(:has(#map)) .navy-bg.rounded-full {
  box-shadow: 0 12px 30px rgba(0,0,128,.24) !important;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
body:not(:has(#map)) a.bg-\[\#000080\]:hover,
body:not(:has(#map)) a.bg-navy-bg:hover,
body:not(:has(#map)) button.navy-bg:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,128,.32) !important;
  filter: brightness(1.08);
}

/* Hero/result imagery */
body:not(:has(#map)) img {
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
body:not(:has(#map)) img:hover { filter: saturate(1.05) contrast(1.02); }
body:not(:has(#map)) .overflow-hidden img:hover { transform: scale(1.025); }

/* About journey tiles */
body:not(:has(#map)) .journey-icon-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,.24), transparent 32%),
    linear-gradient(145deg, #02024f, #000080 55%, #173ba8) !important;
  box-shadow: 0 25px 65px rgba(0,0,128,.22) !important;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform .45s ease, box-shadow .45s ease;
}
body:not(:has(#map)) .journey-icon-box::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: -100px;
  bottom: -120px;
  box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.018);
}
body:not(:has(#map)) .journey-icon-box:hover {
  transform: perspective(900px) rotateX(2deg) rotateY(-3deg) translateY(-6px);
  box-shadow: 0 35px 80px rgba(0,0,128,.30) !important;
}

/* Section headings */
body:not(:has(#map)) section h2::after {
  transition: width .5s ease;
}
body:not(:has(#map)) section h2:not(.no-accent)::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rc-navy), var(--rc-cyan));
}

/* Footer */
body:not(:has(#map)) footer {
  position: relative;
  background: #fff !important;
  border-top-width: 1px !important;
  border-top-color: rgba(0,0,128,.13) !important;
}
body:not(:has(#map)) footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--rc-navy), var(--rc-blue), var(--rc-cyan), var(--rc-gold));
}

/* Scroll reveal */
.rc-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.rc-reveal.rc-visible { opacity: 1; transform: none; }

/* Subtle floating glow */
.rc-glow {
  position: relative;
}
.rc-glow::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(37,99,235,.10);
  filter: blur(40px);
  pointer-events: none;
  animation: rcFloat 7s ease-in-out infinite;
}
@keyframes rcFloat { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(20px,-12px,0); } }

/* Existing carousel polish */
body:not(:has(#map)) .carousel-item.active { animation: rcCarouselIn .75s cubic-bezier(.2,.8,.2,1); }
@keyframes rcCarouselIn { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

/* Better mobile spacing */
@media (max-width: 767px) {
  body:not(:has(#map)) nav > div:first-child { min-height: 66px; }
  body:not(:has(#map)) section { scroll-margin-top: 70px; }
  body:not(:has(#map)) .container { width: 100%; }
  body:not(:has(#map)) .bg-white.rounded-2xl:hover,
  body:not(:has(#map)) .bg-white.rounded-xl:hover,
  body:not(:has(#map)) .bg-white.p-8:hover,
  body:not(:has(#map)) .bg-white.p-10:hover,
  body:not(:has(#map)) .bg-white.p-12:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rc-reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Gallery + Campus Photo Extension
   ========================================================= */
.rc-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .22em;
  color: #2563eb;
  text-transform: uppercase;
}
.rc-eyebrow-light { color: #93c5fd; }

.rc-campus-section { position: relative; overflow: hidden; }
.rc-campus-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(0,0,128,.09);
  box-shadow: 0 25px 70px rgba(0,0,128,.13);
}
.rc-campus-photo-slot {
  min-height: 370px;
  position: relative;
  overflow: hidden;
  max-height:100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.28), transparent 32%),
    linear-gradient(135deg, #02024f, #000080 58%, #173ba8);
}
.rc-campus-photo { width: 100%; height: 100%; min-height: 370px; object-fit: cover; display: block; }
.rc-campus-photo[src]:not([src$="coaching-center.jpg"]) + .rc-campus-placeholder { display:none; }
.rc-campus-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; text-align: center; padding: 24px;
  background: linear-gradient(135deg, rgba(0,0,80,.84), rgba(23,59,168,.75));
}
.rc-campus-placeholder i { font-size: 3.4rem; margin-bottom: 18px; color: #93c5fd; }
.rc-campus-placeholder span { font-size: 1.35rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rc-campus-placeholder small { margin-top: 12px; line-height: 1.6; color: rgba(255,255,255,.7); }
.rc-campus-copy { padding: 52px; }
.rc-campus-copy h2 { margin-top: 10px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; font-weight: 900; color: #000080; }
.rc-campus-copy p { margin-top: 18px; color: #64748b; font-size: 1.05rem; line-height: 1.8; }

.rc-page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(59,130,246,.3), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(245,158,11,.14), transparent 22%),
    linear-gradient(135deg, #02024f, #000080 55%, #173ba8);
}
.rc-page-hero::after {
  content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; right: -180px; top: -240px; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018);
}

.rc-gallery-filter {
  border: 1px solid rgba(0,0,128,.12); background: white; color: #000080; border-radius: 999px;
  padding: 10px 18px; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase;
  transition: .25s ease; cursor: pointer;
}
.rc-gallery-filter:hover, .rc-gallery-filter.active {
  background: #000080; color: white; border-color: #000080; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,128,.18);
}
.rc-gallery-item.rc-gallery-hidden { display: none; }
.rc-gallery-card {
  appearance: none; padding: 0; text-align: left; border: 1px solid rgba(0,0,128,.09); background: white;
  border-radius: 22px; overflow: hidden; box-shadow: 0 16px 42px rgba(15,23,42,.09);
  cursor: pointer; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.rc-gallery-card:hover { transform: translateY(-8px); box-shadow: 0 28px 65px rgba(0,0,128,.17); }
.rc-gallery-image { position: relative; overflow: hidden; background: #e2e8f0;aspect-ratio: 4/3;}
.rc-gallery-wide { aspect-ratio: 16/7; }
.rc-gallery-image::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.2)); pointer-events: none;
}
.rc-gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.rc-gallery-card:hover .rc-gallery-image img { transform: scale(1.045); }
.rc-gallery-caption { position: relative; padding: 18px 48px 20px 20px; min-height: 88px; }
.rc-gallery-caption span { color: #2563eb; font-size: .65rem; font-weight: 900; letter-spacing: .17em; }
.rc-gallery-caption h3 { margin-top: 5px; color: #000080; font-size: 1.05rem; font-weight: 900; }
.rc-gallery-caption > i { position: absolute; right: 19px; top: 30px; color: #94a3b8; }

.rc-lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px;
  background: rgba(2,2,30,.88); backdrop-filter: blur(10px);
}
.rc-lightbox.open { display: grid; }
.rc-lightbox-inner { max-width: min(1100px, 94vw); max-height: 90vh; text-align: center; }
.rc-lightbox-inner img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.rc-lightbox-inner p { color: white; font-weight: 800; margin-top: 14px; letter-spacing: .04em; }
.rc-lightbox-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: white; font-size: 1.1rem; cursor: pointer; }

/* Mobile header: protect the logo, menu button and touch targets. */
@media (max-width: 767px) {
  nav > div:first-child { padding-left: 16px !important; padding-right: 16px !important; min-height: 64px; }
  nav svg { width: 172px !important; height: auto !important; }
  nav #menu-btn { width: 44px; height: 44px; flex: 0 0 44px; }
  #mobile-menu { padding: 18px 20px 22px !important; box-shadow: 0 16px 28px rgba(0,0,0,.08); }
  #mobile-menu a { padding: 10px 0; font-size: .82rem; letter-spacing: .14em; }
  .rc-campus-frame { grid-template-columns: 1fr; border-radius: 22px; }
  .rc-campus-photo-slot, .rc-campus-photo { min-height: 245px; }
  .rc-campus-copy { padding: 30px 24px 34px; }
  .rc-gallery-wide { aspect-ratio: 4/3; }
  .rc-gallery-filter { padding: 9px 13px; font-size: .62rem; }
  .rc-lightbox { padding: 14px; }
  .rc-lightbox-close { top: 12px; right: 12px; }
}
