/* ══════════════════════════════════════════════════════
   EduPulse School — Public Website Styles
   Dark Navy Theme with 3D Motion Graphics
══════════════════════════════════════════════════════ */

/* ── ROOT VARIABLES ─────────────────────────────────── */
:root {
  /* Light theme (2026-07-08). Accent hues kept; bg/text/border/glass/shadow flipped. */
  --bg:           #f4f7fb;
  --bg-card:      #ffffff;
  --bg-elevated:  #ffffff;
  --purple:       #7c3aed;
  --purple-light: #6d28d9;
  --purple-dim:   rgba(124,58,237,0.10);
  --purple-glow:  rgba(124,58,237,0.26);
  --cyan:         #0ea5e9;
  --cyan-dim:     rgba(14,165,233,0.12);
  --orange:       #f97316;
  --orange-light: rgba(249,115,22,0.12);
  --green:        #22c55e;
  --green-light:  rgba(34,197,94,0.12);
  --text:         #0f1a2e;
  --text-muted:   #52627a;
  --text-subtle:  #8593a8;
  --border:       rgba(15,23,42,0.10);
  --border-glow:  rgba(124,58,237,0.30);
  --glass:        rgba(15,23,42,0.03);
  --glass-hover:  rgba(124,58,237,0.08);
  --shadow-card:  0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg:    0 16px 48px rgba(15,23,42,0.12);
  --shadow-glow:  0 0 40px rgba(124,58,237,0.14);
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    20px;
  --radius-xl:    28px;
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(ellipse 42% 34% at 10% 6%,   rgba(124,58,237,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 38% 30% at 90% 12%,  rgba(14,165,233,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 42% 34% at 85% 62%,  rgba(34,197,94,0.11)  0%, transparent 55%),
    radial-gradient(ellipse 38% 32% at 12% 78%,  rgba(249,115,22,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 34% 30% at 50% 45%,  rgba(233,30,140,0.08) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn-purple {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: 13px 28px; border-radius: 50px; border: none;
  cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 20px var(--purple-glow);
  font-family: inherit;
}
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--purple-glow); filter: brightness(1.1); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); font-weight: 600; font-size: .9rem;
  padding: 12px 26px; border-radius: 50px;
  border: 1.5px solid var(--border-glow); cursor: pointer; transition: all .3s;
  font-family: inherit;
}
.btn-outline:hover { background: var(--purple-dim); border-color: var(--purple); }

.btn-orange {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--orange), #ea6a00);
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: 13px 28px; border-radius: 50px; border: none;
  cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
  font-family: inherit;
}
.btn-orange:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ── TOPBAR ─────────────────────────────────────────── */
.site-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  font-size: .78rem;
  color: var(--text-muted);
}
.topbar-inner  { display: flex; justify-content: space-between; align-items: center; }
.topbar-left   { display: flex; gap: 20px; align-items: center; }
.topbar-left span   { display: flex; align-items: center; gap: 6px; }
.topbar-left span i { color: var(--purple-light); }
.topbar-left a      { color: var(--text-muted); transition: color .2s; }
.topbar-left a:hover { color: var(--purple-light); }
.topbar-right   { display: flex; gap: 12px; }
.topbar-right a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.topbar-right a:hover { color: var(--purple-light); }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15,23,42,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--purple-glow);
}
.logo-name { display: block; font-weight: 800; font-size: 1.15rem; color: var(--text); line-height: 1.2; letter-spacing: -.01em; }
.logo-name .logo-acc { color: var(--purple); }
.logo-sub  { display: block; font-size: .6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links li a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: .86rem; font-weight: 500; color: var(--text-muted);
  transition: all .2s;
}
.nav-links li a:hover { color: var(--text); background: var(--glass-hover); }
.nav-links li a.active { color: var(--purple-light); background: var(--purple-dim); font-weight: 700; }
.nav-login-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; padding: 9px 20px; border-radius: 24px;
  font-size: .84rem; font-weight: 700; transition: all .3s;
  box-shadow: 0 4px 14px var(--purple-glow);
}
.nav-login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--purple-glow); }
.nav-portal-only-mobile { display: none; } /* portal link shown only inside the mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ── HERO SECTION ──────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(10,14,26,0.90) 0%, rgba(10,14,26,0.66) 48%, rgba(91,33,182,0.55) 100%),
    url("../assets/images/hero-school.jpg") center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237c3aed' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-left {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 0;
  position: relative; z-index: 2;
}
.hero-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  min-height: 520px;
}

/* Hero glow orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.orb-1 { width: 320px; height: 320px; background: rgba(124,58,237,0.22); top: -80px; left: -80px; animation: orbPulse 8s ease-in-out infinite; }
.orb-2 { width: 220px; height: 220px; background: rgba(14,165,233,0.14); bottom: 30px; left: 30%; animation: orbPulse 11s ease-in-out infinite 2s; }
.orb-3 { width: 260px; height: 260px; background: rgba(249,115,22,0.09); bottom: -60px; right: 5%; animation: orbPulse 7s ease-in-out infinite 4s; }
@keyframes orbPulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }

/* Hero text */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 16px; border-radius: 24px; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-tag i { color: #fbbf24; }
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.14;
  color: #fff; margin-bottom: 20px;
}
.hero-content h1 span {
  background: linear-gradient(135deg, #c4b5fd, #7dd3fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p { font-size: 1rem; color: rgba(255,255,255,0.86); line-height: 1.75; margin-bottom: 32px; max-width: 520px; }
.hero-cta    { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: .76rem; font-weight: 600;
  padding: 7px 14px; border-radius: 24px;
}
.hero-badge i { color: #c4b5fd; }

/* ── 3D SCENE ──────────────────────────────────────── */
.scene-3d {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 520px;
}

/* Decorative rotating rings */
.ring { position: absolute; border-radius: 50%; pointer-events: none; left: 50%; top: 50%; }
.ring-1 {
  width: 380px; height: 380px;
  border: 1px solid rgba(124,58,237,0.22);
  transform: translate(-50%,-50%);
  animation: ringRotate 22s linear infinite;
}
.ring-2 {
  width: 550px; height: 550px;
  border: 1px dashed rgba(14,165,233,0.12);
  transform: translate(-50%,-50%);
  animation: ringRotate 36s linear infinite reverse;
}
@keyframes ringRotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Glow platform */
.ring-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.38) 0%, transparent 70%);
  filter: blur(28px); left: 50%; top: 50%; transform: translate(-50%,-50%);
}

/* Central school icon */
.scene-center { position: relative; z-index: 5; }
.scene-main-icon {
  width: 110px; height: 110px;
  background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #fff;
  box-shadow: 0 0 60px rgba(124,58,237,0.55), 0 0 130px rgba(124,58,237,0.15), 0 20px 40px rgba(0,0,0,0.5);
  animation: mainFloat 4s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.18);
  transform: perspective(600px) rotateX(8deg);
}
@keyframes mainFloat {
  0%,100% { transform: perspective(600px) rotateX(8deg) translateY(0); }
  50%      { transform: perspective(600px) rotateX(8deg) translateY(-18px); }
}

/* Floating orbit cards */
.orbit-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(15,26,46,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 11px 16px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  z-index: 6;
}
.oc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.oc-val { font-size: .86rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.oc-sub { font-size: .62rem; color: var(--text-muted); margin-top: 1px; }

.oc-1 { top: 9%;  left: 4%;  animation: floatA 5.0s ease-in-out infinite 0.0s; }
.oc-2 { top: 9%;  right: 4%; animation: floatA 5.0s ease-in-out infinite 0.9s; }
.oc-3 { top: 46%; left: 1%;  animation: floatB 5.2s ease-in-out infinite 1.8s; }
.oc-4 { top: 46%; right: 1%; animation: floatB 5.2s ease-in-out infinite 2.7s; }
.oc-5 { bottom: 7%; left: 50%; animation: floatC 4.8s ease-in-out infinite 3.6s; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes floatB { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 13px)); } }
@keyframes floatC { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-13px); } }

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar { background: linear-gradient(135deg, #f3f0ff 0%, #eaf3ff 50%, #eafaf1 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 44px 0; }
.stat-item:not(:last-child)::after { background: rgba(124,58,237,0.18); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item  { text-align: center; padding: 16px 20px; position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
.stat-icon  { font-size: 1.5rem; color: var(--purple-light); margin-bottom: 8px; }
.stat-num {
  font-size: 2.2rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}
.stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ── SECTION HEADERS ───────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: var(--purple-dim); color: var(--purple-light);
  border: 1px solid var(--border-glow);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 14px; border-radius: 24px; margin-bottom: 14px;
}
.section-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-h2 span {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub { font-size: .95rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* ── ABOUT PREVIEW ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-xl); }
.about-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; border-radius: var(--radius); padding: 16px 22px;
  box-shadow: 0 8px 30px var(--purple-glow); text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.ab-num   { font-size: 2rem; font-weight: 900; line-height: 1; }
.ab-label { font-size: .68rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 14px; line-height: 1.3; }
.about-text h2 span {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.about-text p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.about-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--glass); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 24px;
  font-size: .77rem; font-weight: 600; color: var(--text-muted);
}
.about-chip i { color: var(--purple-light); }

/* ── SCHOOL LEVELS ─────────────────────────────────── */
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.level-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.level-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-glow); border-color: var(--border-glow); }
.level-card-img { height: 220px; overflow: hidden; position: relative; }
.level-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.level-card:hover .level-card-img img { transform: scale(1.07); }
.level-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(15,26,46,0.95) 100%); }
.level-card-body { padding: 24px; }
.level-badge {
  display: inline-block;
  background: var(--purple-dim); color: var(--purple-light);
  border: 1px solid var(--border-glow);
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.level-badge.orange { background: var(--orange-light); color: var(--orange); border-color: rgba(249,115,22,0.25); }
.level-badge.green  { background: var(--green-light);  color: var(--green);  border-color: rgba(34,197,94,0.25); }
.level-card-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.level-card-body p  { font-size: .85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.level-list { display: flex; flex-direction: column; gap: 7px; }
.level-list li { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.level-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── PORTAL CARDS ──────────────────────────────────── */
.portals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s, border-color .35s;
}
.portal-card:hover { transform: translateY(-8px); border-color: var(--border-glow); }
.portal-card-top { padding: 32px 28px; position: relative; overflow: hidden; }
.portal-card-top.purple { background: linear-gradient(135deg, #3b0764, var(--purple)); }
.portal-card-top.orange { background: linear-gradient(135deg, #7c2d12, var(--orange)); }
.portal-card-top.green  { background: linear-gradient(135deg, #14532d, var(--green)); }
.pt-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); animation: blobFloat 9s ease-in-out infinite; }
.pt-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 16px;
}
.portal-card-top h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.portal-card-top p  { font-size: .84rem; color: rgba(255,255,255,0.72); }
.portal-card-body { padding: 24px; }
.portal-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.portal-list li { font-size: .84rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.portal-list li i { flex-shrink: 0; }
i.purple { color: var(--purple-light); }
i.orange { color: var(--orange); }
i.green  { color: var(--green); }

/* ── NEWS / EVENTS ─────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.news-card:hover { transform: translateY(-6px); border-color: var(--border-glow); }
.news-img { height: 190px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; display: block; }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-body { padding: 20px; }
.news-tag {
  display: inline-block; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
  border: 1px solid transparent;
}
.news-tag.orange { background: var(--orange-light); color: var(--orange); border-color: rgba(249,115,22,0.22); }
.news-tag.purple { background: var(--purple-dim);   color: var(--purple-light); border-color: var(--border-glow); }
.news-tag.green  { background: var(--green-light);  color: var(--green); border-color: rgba(34,197,94,0.22); }
.news-body h3 { font-size: .97rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.news-body p  { font-size: .83rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.news-date { font-size: .73rem; color: var(--text-subtle); display: flex; align-items: center; gap: 6px; }

/* ── CTA SECTION ───────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,0.14) 0%, transparent 70%),
    linear-gradient(135deg, #7c3aed 0%, #6d28d9 55%, #5b21b6 100%);
  position: relative; overflow: hidden;
}
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.cta-content h2 span {
  background: linear-gradient(135deg, #ffffff, #d8b4fe);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-content p { font-size: .95rem; color: rgba(255,255,255,0.65); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── PAGE HERO (inner pages) ───────────────────────── */
.page-hero {
  padding: 96px 0; text-align: center;
  position: relative; overflow: hidden;
  background-color: #0b1220;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,14,26,0.86) 0%, rgba(10,14,26,0.60) 55%, rgba(124,58,237,0.45) 100%);
}
.ph-orb { display: none; }
.page-hero-content { position: relative; z-index: 2; }
.ph-tag {
  display: inline-block;
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 14px; border-radius: 24px; margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero h1 span {
  background: linear-gradient(135deg, #c4b5fd, #7dd3fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { font-size: .95rem; color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: .78rem; color: var(--text-subtle); margin-top: 20px;
}
.breadcrumb a { color: var(--purple-light); }
.breadcrumb i { font-size: .6rem; }

/* ── STORY SECTION ─────────────────────────────────── */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-img-block { position: relative; }
.story-main-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-xl); display: block; }
.story-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; border-radius: var(--radius); padding: 18px 24px;
  box-shadow: 0 8px 30px var(--purple-glow); text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.sb-num   { font-size: 2rem; font-weight: 900; line-height: 1; }
.sb-label { font-size: .7rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.story-text h2 { font-size: 1.85rem; font-weight: 800; color: var(--text); margin-bottom: 14px; line-height: 1.3; }
.story-text h2 span {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.story-text p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.story-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; margin-bottom: 24px; }
.story-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--glass); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 24px;
  font-size: .77rem; font-weight: 600; color: var(--text-muted);
}
.story-chip i { color: var(--purple-light); }

/* ── MVV CARDS ─────────────────────────────────────── */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color .3s, transform .3s;
}
.mvv-card:hover { border-color: var(--border-glow); transform: translateY(-5px); }
.mvv-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.mvv-icon.purple { background: var(--purple-dim); color: var(--purple-light); }
.mvv-icon.cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.mvv-icon.orange { background: var(--orange-light); color: var(--orange); }
.mvv-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.mvv-card p  { font-size: .86rem; color: var(--text-muted); line-height: 1.7; }

/* ── WHY CARDS ─────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .3s, transform .3s;
}
.why-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.why-icon.purple { background: var(--purple-dim); color: var(--purple-light); }
.why-icon.cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.why-icon.orange { background: var(--orange-light); color: var(--orange); }
.why-icon.green  { background: var(--green-light);  color: var(--green); }
.why-text h4 { font-size: .93rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.why-text p  { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── TEAM CARDS ─────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: center;
  transition: transform .35s, border-color .35s;
}
.team-card:hover { transform: translateY(-8px); border-color: var(--border-glow); }
.team-img-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: #eef2f9; }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; display: block; }
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-info { padding: 20px 20px 26px; }
.team-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-role {
  font-size: .78rem; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.team-info p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── AWARDS ─────────────────────────────────────────── */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.award-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
  transition: border-color .3s, transform .3s;
}
.award-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.award-icon { font-size: 2.4rem; margin-bottom: 12px; }
.award-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.award-card p  { font-size: .76rem; color: var(--text-muted); }

/* ── GALLERY ────────────────────────────────────────── */
.gallery-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tab-btn {
  padding: 8px 22px; border-radius: 24px; font-family: inherit;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text-muted); font-size: .84rem; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.tab-btn.active, .tab-btn:hover { background: var(--purple-dim); color: var(--purple-light); border-color: var(--border-glow); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-card {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; position: relative; cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
}
.photo-card:hover { border-color: var(--border-glow); transform: scale(1.02); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.photo-card:hover img { transform: scale(1.1); }
.photo-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(7,13,28,0.85) 100%);
  display: flex; align-items: flex-end; padding: 14px;
  opacity: 0; transition: opacity .3s;
}
.photo-card:hover .photo-card-overlay { opacity: 1; }
.photo-card-overlay span { font-size: .8rem; font-weight: 600; color: #fff; }
.photo-card.hidden { display: none; }

/* ── ADMISSION STEPS ───────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 35px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--purple-dim), var(--cyan-dim)); z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 6px 22px var(--purple-glow);
}
.step-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-card p  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* ── REQUIREMENTS ──────────────────────────────────── */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.req-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .3s;
}
.req-card:hover { transform: translateY(-4px); }
.req-card.orange-top { border-top-color: var(--orange); }
.req-card.green-top  { border-top-color: var(--green); }
.req-card h3     { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.req-card .req-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 18px; }
.req-list { display: flex; flex-direction: column; gap: 9px; }
.req-list li { font-size: .86rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; }
.req-list li i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* ── ADMISSION FORM ────────────────────────────────── */
.admission-form-wrap {
  max-width: 700px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 44px;
}
.admission-form-wrap h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.form-sub { font-size: .88rem; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .79rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: .88rem; font-family: inherit; transition: border-color .22s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-subtle); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-dim);
}
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── CONTACT ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.contact-info p  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item  { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--purple-dim); color: var(--purple-light);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  border: 1px solid var(--border-glow);
}
.ci-text h4  { font-size: .87rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ci-text p, .ci-text a { font-size: .84rem; color: var(--text-muted); }
.ci-text a:hover { color: var(--purple-light); }
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
}

/* ── FOOTER ─────────────────────────────────────────── */
/* Footer keeps a dark background — text forced light regardless of theme vars */
.footer { background: #0b1220; border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer .logo-name { color: #fff; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,0.66); line-height: 1.7; margin-bottom: 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.78); font-size: .88rem; transition: all .2s;
}
.footer-social a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.footer-col h4 { font-size: .87rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links  { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,0.66); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .77rem; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: #c4b5fd; font-weight: 600; }

/* ── 3D DEPTH & MOTION ─────────────────────────────── */
.portal-card, .level-card, .news-card, .mvv-card, .why-card, .req-card,
.step-card, .team-card, .award-card, .photo-card {
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .3s;
  will-change: transform;
}
.portal-card:hover, .level-card:hover, .news-card:hover, .mvv-card:hover,
.why-card:hover, .req-card:hover, .step-card:hover, .team-card:hover, .award-card:hover {
  transform: translateY(-10px) perspective(1000px) rotateX(4deg) scale(1.015);
  box-shadow: 0 28px 55px rgba(15,23,42,0.16);
}
.photo-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 22px 44px rgba(15,23,42,0.22); }

/* Floating 3D glass stat cards over the hero image */
.hero-float3d {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 18px 44px rgba(10,14,26,0.38);
  animation: float3d 5s ease-in-out infinite;
}
.hf3-1 { top: 22%; right: 7%; }
.hf3-2 { bottom: 20%; right: 22%; animation-delay: 2.2s; }
.hf3-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.hf3-val { font-weight: 800; font-size: 1.05rem; color: #0f1a2e; line-height: 1.1; }
.hf3-sub { font-size: .72rem; color: #52627a; }
@keyframes float3d { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@media (max-width: 900px) { .hero-float3d { display: none; } }

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLL TOP ─────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: all .35s;
  box-shadow: 0 4px 18px var(--purple-glow);
}
.scroll-top.show  { opacity: 1; transform: translateY(0); }
.scroll-top:hover { filter: brightness(1.15); transform: translateY(-3px); }

/* ── PORTAL TOP BLOB ANIMATION ─────────────────────── */
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(18px,-14px) scale(1.08); }
  66%     { transform: translate(-9px,10px) scale(0.96); }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
/* ── COLORFUL DESIGN PASS ──────────────────────────── */
/* Multi-color stat icons */
.stats-grid .stat-item:nth-child(1) .stat-icon { color: var(--purple); }
.stats-grid .stat-item:nth-child(2) .stat-icon { color: var(--cyan);   }
.stats-grid .stat-item:nth-child(3) .stat-icon { color: var(--orange); }
.stats-grid .stat-item:nth-child(4) .stat-icon { color: var(--green);  }

/* Vibrant gradient section tags */
.section-tag, .ph-tag {
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(14,165,233,0.14));
  color: #6d28d9; border: 1px solid rgba(124,58,237,0.28);
}

/* Rotating colored top-accent bars on cards */
.level-card, .news-card, .why-card, .mvv-card, .req-card, .step-card, .team-card, .award-card {
  border-top: 3px solid var(--purple);
}
.level-card:nth-child(3n+2), .news-card:nth-child(3n+2), .why-card:nth-child(3n+2), .mvv-card:nth-child(3n+2),
.req-card:nth-child(3n+2), .step-card:nth-child(3n+2), .team-card:nth-child(3n+2), .award-card:nth-child(3n+2) { border-top-color: var(--orange); }
.level-card:nth-child(3n+3), .news-card:nth-child(3n+3), .why-card:nth-child(3n+3), .mvv-card:nth-child(3n+3),
.req-card:nth-child(3n+3), .step-card:nth-child(3n+3), .team-card:nth-child(3n+3), .award-card:nth-child(3n+3) { border-top-color: var(--green); }

/* Bold colored "portal" band (purple → navy) with white text */
.portal-band { position: relative; background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #6d28d9 100%) !important; border: none !important; }
.portal-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 15% 20%, rgba(14,165,233,0.25) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 90% 90%, rgba(249,115,22,0.18) 0%, transparent 60%);
}
.portal-band > * { position: relative; z-index: 1; }
.portal-band .section-h2, .portal-band .section-h2 span {
  color: #fff; -webkit-text-fill-color: #fff; background: none;
}
.portal-band .section-sub { color: rgba(255,255,255,0.82); }
.portal-band .section-tag {
  background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.32);
}

/* ── DECORATIVE BACKGROUND SHAPES (floating filled bubbles) ── */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco .orb    { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .32; animation: decoFloat 18s ease-in-out infinite; }
.bg-deco .bubble { position: absolute; border-radius: 50%; opacity: .55; animation: bubbleFloat 12s ease-in-out infinite; }
.bg-deco .bubble:nth-child(3n)   { animation-duration: 15s; }
.bg-deco .bubble:nth-child(3n+1) { animation-duration: 9s;  }
.bg-deco .bubble:nth-child(4n)   { animation-delay: -3s; }
@keyframes decoFloat   { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px,-20px); } }
@keyframes bubbleFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-28px) scale(1.14); } }

/* Filled bubbles floating over the hero image */
.hero .h-bubble { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; animation: bubbleFloat 9s ease-in-out infinite; }
.hb-2 { animation-duration: 12s; animation-delay: -2s; }
.hb-3 { animation-duration: 7s;  animation-delay: -4s; }
.hb-4 { animation-duration: 11s; }

@media (max-width: 1024px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 900px) {
  /* Keep the horizontal menu on tablets — just compact it so it fits */
  .nav-links { gap: 0; }
  .nav-links li a { padding: 8px 9px; font-size: .82rem; }
  .nav-login-btn { padding: 8px 13px; font-size: .8rem; }
  .logo-sub { display: none; }
  .hero { flex-direction: column; min-height: auto; }
  .hero-left  { flex: none; width: 100%; padding: 60px 24px 40px; }
  .hero-right { flex: none; width: 100%; min-height: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 10px; bottom: 10px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-badge { right: 10px; bottom: 10px; }
  .portals-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar-left span:not(:first-child) { display: none; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .news-grid   { grid-template-columns: 1fr; }
  .photo-grid  { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .admission-form-wrap { padding: 28px 20px; }
}
/* Hamburger menu only on phones — tablets keep the horizontal menu on top */
@media (max-width: 640px) {
  .nav-inner { position: relative; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px 24px 24px; gap: 4px;
    box-shadow: 0 10px 40px rgba(15,23,42,0.12);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
  .nav-login-btn { display: none; }
  .nav-portal-only-mobile { display: block; }
  .nav-portal-only-mobile a { color: var(--purple-light); font-weight: 700; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .photo-grid  { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid  { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 16px; }
  .scene-3d { min-height: 380px; }
}
