:root {
  --primary: #295d3b;
  --dark-green: #1f4b32;
  --ink: #111111;
  --off-white: #f8f8f5;
  --light-grey: #efefef;
  --card: rgba(255, 255, 255, .86);
  --line: rgba(17, 17, 17, .1);
  scroll-behavior: smooth;
}

html.dark {
  --ink: #f8f8f5;
  --off-white: #0d1210;
  --light-grey: #18221c;
  --card: rgba(20, 30, 24, .82);
  --line: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }

body {
  color: var(--ink);
  background: var(--off-white);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

/* =========================
   Premium loading animation
   ========================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  overflow: hidden;
  background: var(--off-white);
  transition: opacity .45s ease, visibility .45s ease;
}

/* Subtle mathematical atmosphere */
.loader::before,
.loader::after {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 700;
  color: rgba(41, 93, 59, .08);
  pointer-events: none;
  user-select: none;
  animation: loaderFloat 3s ease-in-out infinite;
}

.loader::before {
  content: "x² + y²";
  top: 24%;
  left: 12%;
  font-size: clamp(22px, 3vw, 42px);
  transform: rotate(-8deg);
}

.loader::after {
  content: "F = ma";
  right: 12%;
  bottom: 25%;
  font-size: clamp(20px, 2.7vw, 38px);
  animation-delay: -.8s;
}

/* Main loader content */
.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Logo entrance */
.loader img {
  width: auto;
  height: 62px;
  max-width: 280px;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(10px) scale(.94);
  animation: loaderLogoIn .75s cubic-bezier(.22, 1, .36, 1) forwards;
  will-change: transform, opacity, filter;
}

/* Loading track */
.loader-line {
  position: relative;
  display: block;
  width: 190px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(41, 93, 59, .14);
  opacity: 0;
  transform: scaleX(.75);
  animation: loaderLineIn .45s ease .25s forwards;
}

/* Moving green light */
.loader-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform: translateX(-130%);
  animation: loaderProgress 1.1s cubic-bezier(.4, 0, .2, 1) .25s forwards;
  will-change: transform;
}

/* Loader disappears */
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Logo reveal */
@keyframes loaderLogoIn {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(10px) scale(.94);
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

/* Loading bar entrance */
@keyframes loaderLineIn {
  0% {
    opacity: 0;
    transform: scaleX(.75);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Green progress sweep */
@keyframes loaderProgress {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(330%);
  }
}

/* Floating academic symbols */
.loader-symbol {
  position: absolute;
  z-index: 1;
  color: rgba(41, 93, 59, .10);
  font-family: var(--font-heading);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  animation: loaderSymbolFloat 3.2s ease-in-out infinite;
}

.loader-symbol-left {
  left: 16%;
  bottom: 24%;
  font-size: clamp(20px, 2.6vw, 34px);
  transform: rotate(-6deg);
  animation-delay: -.9s;
}

.loader-symbol-right {
  right: 15%;
  top: 25%;
  font-size: clamp(22px, 2.8vw, 38px);
  transform: rotate(7deg);
  animation-delay: -.3s;
}

@keyframes loaderSymbolFloat {
  0%,
  100% {
    opacity: .35;
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    opacity: .75;
    transform: translateY(-12px) rotate(-3deg);
  }
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(248, 248, 245, .78);
  backdrop-filter: blur(20px);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.dark .site-header {
  background: rgba(13, 18, 16, .82);
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 16px 60px rgba(17, 17, 17, .08);
}

.brand-link img,
.loader img,
.footer img {
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.dark .brand-link img,
.dark .loader img,
.dark .footer img {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.brand-link img {
  height: 54px;
  max-width: 238px;
}

.loader img {
  height: 62px;
  max-width: 280px;
}

.footer img {
  height: 62px;
  max-width: 280px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a,
.nav-resource-button,
.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(17, 17, 17, .72);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dark .nav-menu a,
.dark .theme-toggle { color: rgba(248, 248, 245, .74); }

.nav-menu a:hover,
.theme-toggle:hover {
  color: var(--primary);
  background: rgba(41, 93, 59, .08);
  transform: translateY(-1px);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
}

.theme-toggle svg,
.icon-button svg,
.btn-primary svg,
.btn-secondary svg,
.floating-action svg { width: 18px; height: 18px; }

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: transform .2s ease, background .2s ease;
}

.icon-button:hover { transform: translateY(-1px); background: white; }

.section-pad {
  padding: clamp(84px, 9vw, 128px) 0;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.academic-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 93, 59, .12), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(31, 75, 50, .12), transparent 28%),
    linear-gradient(135deg, var(--off-white), rgba(239, 239, 239, .64));
}

.academic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(41, 93, 59, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 93, 59, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.floating-equations span {
  position: absolute;
  color: rgba(41, 93, 59, .2);
  font-family: Poppins, sans-serif;
  font-weight: 800;
  animation: floatEquation 9s ease-in-out infinite;
}

.floating-equations span:nth-child(1) { top: 16%; left: 9%; font-size: 28px; }
.floating-equations span:nth-child(2) { top: 25%; right: 14%; animation-delay: -2s; }
.floating-equations span:nth-child(3) { bottom: 16%; left: 18%; animation-delay: -4s; }
.floating-equations span:nth-child(4) { bottom: 28%; right: 8%; font-size: 36px; animation-delay: -6s; }
.floating-equations span:nth-child(5) { top: 55%; right: 41%; animation-delay: -8s; }

@keyframes floatEquation {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(10px, -24px, 0) rotate(4deg); }
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light { color: rgba(255, 255, 255, .75); }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 16px 40px rgba(41, 93, 59, .24);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(41, 93, 59, .3);
}

.btn-primary.invert {
  width: 100%;
  background: white;
  color: var(--primary);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
}

.dark .btn-secondary { background: rgba(255, 255, 255, .08); }

.btn-secondary:hover { transform: translateY(-2px); background: white; }

.hero-stat {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
}

.hero-stat strong {
  display: block;
  color: var(--primary);
  font-family: Poppins, sans-serif;
  font-size: clamp(22px, 3vw, 32px);
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(17, 17, 17, .62);
  font-size: 12px;
  font-weight: 700;
}

.dark .hero-stat span { color: rgba(255, 255, 255, .62); }

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

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.46));
  box-shadow: 0 30px 90px rgba(17, 17, 17, .14);
  backdrop-filter: blur(22px);
}

.dark .glass-panel {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(41, 93, 59, .28);
}

.formula-board {
  min-height: 330px;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(135deg, #1f4b32, #295d3b);
  color: white;
}

.formula-board p {
  font-weight: 800;
  color: rgba(255,255,255,.72);
}

.equation-line {
  margin-top: 48px;
  font-family: Poppins, sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
}

.chart-bars {
  display: flex;
  height: 84px;
  align-items: end;
  gap: 13px;
  margin-top: 44px;
}

.chart-bars span {
  flex: 1;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, .28);
  animation: growBar 2.4s ease-in-out infinite;
}

.chart-bars span:nth-child(1) { height: 42%; }
.chart-bars span:nth-child(2) { height: 64%; animation-delay: -.3s; }
.chart-bars span:nth-child(3) { height: 78%; animation-delay: -.6s; }
.chart-bars span:nth-child(4) { height: 92%; animation-delay: -.9s; }

@keyframes growBar {
  0%, 100% { transform: scaleY(.74); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.mini-cards div {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, .78);
}

.dark .mini-cards div { background: rgba(255, 255, 255, .08); }

.mini-cards svg { color: var(--primary); }
.mini-cards strong, .mini-cards small { display: block; }
.mini-cards strong { margin-top: 14px; font-weight: 800; }
.mini-cards small { margin-top: 5px; color: rgba(17,17,17,.6); }
.dark .mini-cards small { color: rgba(255,255,255,.62); }

/* Shared sections */
.section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.results-band h2,
.contact-card h2 {
  margin-top: 12px;
  font-family: Poppins, sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
}

.section-heading p:not(.eyebrow),
.results-band p,
.policy-box p {
  margin-top: 14px;
  color: rgba(17, 17, 17, .65);
  line-height: 1.75;
}

.dark .section-heading p:not(.eyebrow),
.dark .results-band p,
.dark .policy-box p { color: rgba(255, 255, 255, .64); }

.section-heading.light p,
.section-heading.light h2,
.results-band h2,
.contact-card h2 { color: white; }

.info-card,
.course-card,
.feature-card,
.policy-box,
.faq-item,
.admission-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(17, 17, 17, .055);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.info-card:hover,
.course-card:hover,
.feature-card:hover,
.policy-box:hover {
  transform: translateY(-5px);
  border-color: rgba(41, 93, 59, .35);
  box-shadow: 0 24px 68px rgba(17, 17, 17, .1);
}

.info-card,
.feature-card {
  min-height: 218px;
  padding: 24px;
}

.info-card svg,
.feature-card svg,
.method-step svg,
.admission-panel svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.info-card h3,
.feature-card h3,
.course-card h3,
.admission-panel h3 {
  margin-top: 18px;
  font-family: Poppins, sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.info-card p,
.feature-card p,
.course-card p,
.admission-panel p {
  margin-top: 10px;
  color: rgba(17,17,17,.62);
  line-height: 1.65;
}

.dark .info-card p,
.dark .feature-card p,
.dark .course-card p,
.dark .admission-panel p { color: rgba(255,255,255,.62); }

.course-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 26px;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.subject-list span {
  border: 1px solid rgba(41, 93, 59, .15);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(41, 93, 59, .08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.course-card .btn-secondary {
  margin-top: auto;
}

/* Methodology timeline */
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.method-step {
  position: relative;
  min-height: 250px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, .09);
}

.method-step::after {
  content: "↓";
  position: absolute;
  right: -15px;
  top: 50%;
  color: rgba(255,255,255,.55);
  font-size: 24px;
  transform: translateY(-50%) rotate(-90deg);
}

.method-step:last-child::after { content: none; }
.method-step svg { color: white; }
.method-step h3 { margin-top: 18px; font-weight: 800; }
.method-step p { margin-top: 10px; color: rgba(255,255,255,.68); line-height: 1.6; }

/* Results */
.results-band {
  display: grid;
  gap: 32px;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(31,75,50,.96), rgba(41,93,59,.9)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 32%);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.result-card {
  min-height: 170px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, .1);
  color: white;
}

.result-card strong {
  font-family: Poppins, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
}

.result-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

/* Testimonials and gallery */
.testimonial-shell {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 16px;
}

.testimonial-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 56px);
  background: var(--card);
  text-align: center;
  transition: opacity .22s ease, transform .22s ease;
}

.testimonial-card.changing {
  opacity: 0;
  transform: translateY(10px);
}

.testimonial-card p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(17,17,17,.68);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.65;
}

.dark .testimonial-card p { color: rgba(255,255,255,.68); }
.testimonial-card strong { display: block; margin-top: 22px; font-weight: 800; }
.testimonial-card small { color: var(--primary); font-weight: 800; }

.masonry {
  column-count: 3;
  column-gap: 18px;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 48px rgba(17,17,17,.08);
}

.gallery-item:nth-child(odd) { min-height: 380px; }
.gallery-item:nth-child(3n) { min-height: 320px; }

.gallery-item div {
  position: absolute;
  inset: auto 18px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  padding: 16px;
  background: rgba(17,17,17,.38);
  color: white;
  backdrop-filter: blur(14px);
}

.gallery-item strong { display: block; font-family: Poppins, sans-serif; font-size: 18px; }
.gallery-item span { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }

/* Admissions and FAQ */
.admission-panel {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
}

.admission-panel ul {
  display: grid;
  gap: 12px;
  align-content: center;
}

.admission-panel li {
  display: flex;
  gap: 10px;
  align-items: start;
  color: rgba(17,17,17,.72);
  font-weight: 700;
}

.dark .admission-panel li { color: rgba(255,255,255,.72); }

.faq-item {
  overflow: hidden;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-weight: 800;
}

.faq-item svg {
  flex: 0 0 auto;
  color: var(--primary);
  transition: transform .2s ease;
}

.faq-item.open svg { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: rgba(17,17,17,.66);
  line-height: 1.7;
}

.dark .faq-answer { color: rgba(255,255,255,.66); }
.faq-item.open .faq-answer { display: block; }

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  padding: clamp(24px, 5vw, 54px);
  background: rgba(255,255,255,.08);
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list p {
  display: flex;
  gap: 12px;
  align-items: start;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.contact-list a { color: white; font-weight: 800; }
.contact-list svg { flex: 0 0 auto; margin-top: 3px; }

#mapsFrame {
  width: 100%;
  height: 260px;
  margin-top: 28px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
}

.contact-form {
  display: grid;
  gap: 14px;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
  background: white;
  color: #111;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 15px;
  padding: 14px 14px;
  background: #f8f8f5;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(41,93,59,.12);
}

.form-status {
  min-height: 22px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.policy-box { padding: clamp(24px, 4vw, 34px); }
.policy-box h2 { font-family: Poppins, sans-serif; font-size: 24px; font-weight: 800; }

/* Footer and floating actions */
.footer {
  background: var(--off-white);
  color: var(--ink);
}

.footer p { color: rgba(17,17,17,.62); line-height: 1.7; }
.dark .footer p { color: rgba(255,255,255,.62); }
.footer h3 { margin-bottom: 14px; font-family: Poppins, sans-serif; font-weight: 800; }
.footer a { display: block; margin-top: 9px; color: rgba(17,17,17,.68); font-weight: 700; }
.dark .footer a { color: rgba(255,255,255,.68); }
.footer a:hover { color: var(--primary); }

.floating-action {
  position: fixed;
  right: 18px;
  z-index: 45;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 17px;
  color: white;
  box-shadow: 0 14px 32px rgba(17,17,17,.16);
  transition: transform .2s ease, opacity .2s ease;
}

.floating-action:hover { transform: translateY(-3px); }
.floating-action.whatsapp { bottom: 88px; background: #1f8f51; }
.floating-action.call { bottom: 150px; background: #111; display: none; }
.floating-action.top { bottom: 24px; border: 0; background: var(--primary); opacity: 0; pointer-events: none; }
.floating-action.top.visible { opacity: 1; pointer-events: auto; }

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Responsive rules */
@media (max-width: 1100px) {
  .methodology-timeline { grid-template-columns: repeat(3, 1fr); }
  .method-step::after { content: none; }
  .results-band,
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    inset: 73px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: var(--off-white);
    box-shadow: 0 28px 78px rgba(17,17,17,.16);
  }

  .nav-menu.open { display: flex; }
  .nav-menu a,
  .theme-toggle { justify-content: space-between; width: 100%; }
  .hero-section { min-height: auto; }
  .hero-visual { min-height: auto; }
  .results-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  .admission-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-pad { padding: 72px 0; }
  .brand-link img { height: 46px; max-width: 196px; }
  .hero-stat { padding: 14px; }
  .hero-stat span { font-size: 11px; }
  .mini-cards { grid-template-columns: 1fr; }
  .methodology-timeline { grid-template-columns: 1fr; }
  .testimonial-shell { grid-template-columns: 1fr; }
  .testimonial-shell .icon-button { display: none; }
  .masonry { column-count: 1; }
  .contact-card { border-radius: 24px; }
  .floating-action.call { display: grid; }
}
#copyright a {
  font-weight: 600;
  text-decoration: none;
}

#copyright a:hover {
  text-decoration: underline;
}
/* Student Resources */
.nav-resource-button {
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, .72);
  font-family: inherit;
font-size: 14px;
font-weight: 700;
line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.nav-resource-button:hover {
  background: rgba(41, 93, 59, .10);
  color: var(--primary);
}

.nav-resource-button svg {
  width: 15px;
  height: 15px;
}

.resources-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.resources-modal.open {
  opacity: 1;
  visibility: visible;
}

.resources-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .55);
  backdrop-filter: blur(5px);
}

.resources-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(650px, 90vh);
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  background: #f8f8f5;
  color: #111111;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}

.resources-modal.open .resources-panel {
  transform: translateY(0) scale(1);
}

.resources-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #e9ebe7;
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.resources-heading {
  padding-right: 45px;
  margin-bottom: 22px;
}

.resources-heading h2 {
  margin: 4px 0 8px;
}

.resources-heading p:last-child {
  margin: 0;
  color: #666;
  font-size: .9rem;
}

.resources-list {
  display: grid;
  gap: 10px;
}

.resource-item {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(41, 93, 59, .12);
  border-radius: 16px;
  background: white;
  color: #111;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.resource-item:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 93, 59, .35);
  box-shadow: 0 8px 25px rgba(41, 93, 59, .08);
}

.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: white;
}

.resource-icon svg {
  width: 21px;
  height: 21px;
}

.resource-content {
  min-width: 0;
}

.resource-content strong {
  display: block;
  font-size: .95rem;
}

.resource-content small {
  display: block;
  margin-top: 3px;
  color: #6a6a6a;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-item > svg {
  width: 17px;
  height: 17px;
  color: #295D3B;
}

.dark .resources-panel {
  background: #101713;
  color: white;
}

.dark .resources-close {
  background: #202a24;
  color: white;
}

.dark .resources-heading p:last-child {
  color: rgba(255,255,255,.65);
}

.dark .resource-item {
  background: #18221c;
  color: white;
  border-color: rgba(255,255,255,.08);
}

.dark .resource-content small {
  color: rgba(255,255,255,.6);
}

@media (max-width: 768px) {
  .nav-resource-button {
    width: 100%;
    justify-content: flex-start;
  }

  .resources-panel {
    padding: 24px 18px;
    border-radius: 20px;
  }
}
.nav-resource-button {
  white-space: nowrap;
}
.dark .nav-resource-button {
  color: rgba(255, 255, 255, .72);
}

.dark .nav-resource-button svg {
  color: rgba(255, 255, 255, .72);
}
/* Theme-specific navigation logos */
.nav-logo.logo-dark {
  display: none;
}

.dark .nav-logo.logo-light {
  display: none;
}

.dark .nav-logo.logo-dark {
  display: block;
}
/* Theme-specific footer logos */
.footer-logo.logo-dark {
  display: none;
}

.dark .footer-logo.logo-light {
  display: none;
}

.dark .footer-logo.logo-dark {
  display: block;
}
