/* ============================================================
   DPSS Kanpur — Main Stylesheet
   Consolidated & deduplicated from the original single-file site.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { -webkit-text-size-adjust: 100%; word-break: break-word; min-width: 0; }

:root {
  --g1: #0b4d1e;
  --g2: #1a6b2f;
  --g3: #2e8b47;
  --gold: #c9a227;
  --goldf: #f5c842;
  --cream: #edf5f0;
  --white: #fff;
  --txt: #1c1c1c;
  --muted: #5c5c5c;
  --bdr: #c8ddd0;
  --card: #fff;
  --rad: 10px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Nunito', sans-serif; background: #fff; color: var(--txt); overflow-x: hidden; }
body.loading { overflow: hidden; }
img, video { max-width: 100%; height: auto; }

/* Font uniformity */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
p, li, a, input, select, button, label, span,
.sec-chip, .stat-l, .ctag, .nbadge, .ev-tag {
  font-family: 'Nunito', sans-serif;
}
.sec-chip, .stat-l, .ctag, .nbadge, .ev-tag { letter-spacing: .08em; }

/* ── SCROLL PROGRESS / SCROLL TOP ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #c9a227, #f5c842, #c9a227);
  z-index: 1000; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(201,162,39,.8);
}
#scroll-top {
  position: fixed; bottom: 24px; right: 20px; z-index: 1000;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--g1); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(20px) scale(.8);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 20px rgba(11,77,30,.4);
}
#scroll-top.show { opacity: 1; transform: translateY(0) scale(1); }
#scroll-top:hover { background: var(--gold); transform: translateY(-4px) scale(1.1); }
#scroll-top:hover svg path { stroke: #0b4d1e; }
#scroll-top svg { width: 20px; height: 20px; }
#scroll-top svg path { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; fill: none; transition: stroke .2s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: var(--g1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 60px;
  box-shadow: 0 3px 12px rgba(0,0,0,.4);
  gap: 8px;
}
.nav-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
.nav-left img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex-shrink: 0; }
.nav-left .ntxt { line-height: 1.2; min-width: 0; }
.nav-left .ntxt b { color: #fff; font-size: 14px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-left .ntxt span { color: var(--goldf); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.ham { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.ham span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; display: block; }
.ham.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-menu {
  position: fixed; top: 60px; right: -100%; width: 72%; max-width: 280px;
  height: calc(100vh - 60px);
  background: var(--g1); transition: .35s; overflow-y: auto;
  padding: 20px 0; box-shadow: -4px 0 20px rgba(0,0,0,.3);
}
.nav-menu.open { right: 0; }
.nav-menu a {
  display: block; padding: 14px 24px; color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 600; text-decoration: none; letter-spacing: .03em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.nav-menu a:hover { color: var(--goldf); background: rgba(255,255,255,.04); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; top: 60px; }
.nav-overlay.open { display: block; }

/* ── HERO ── */
#hero {
  position: relative; height: 100svh; min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://res.cloudinary.com/di9piyu6l/image/upload/file_000000002cd87208803a3e42e6de8d3d_mlpvjc.png') center/cover no-repeat;
  filter: brightness(.38) saturate(.8);
  transform: scale(1.04);
  animation: zoomBg 18s ease-in-out infinite alternate;
}
@keyframes zoomBg { from { transform: scale(1.04); } to { transform: scale(1.1); } }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,77,30,.55) 0%, rgba(11,77,30,.2) 50%, rgba(11,77,30,.75) 100%);
}
.hero-body { position: relative; text-align: center; color: #fff; padding: 20px 24px; width: 100%; max-width: 720px; }
.hero-pill {
  display: inline-block; background: var(--gold); color: var(--g1);
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 30px; margin-bottom: 16px;
  animation: fadein .8s ease both;
}
.hero-body h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 7vw, 3.4rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 8px;
  animation: fadein .8s .3s ease both;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero-body h1 em { color: var(--goldf); font-style: normal; }
.hero-tag { font-size: clamp(1rem, 4vw, 1.25rem); font-style: italic; color: rgba(255,255,255,.8); margin-bottom: 24px; animation: fadein .8s .45s ease both; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadein .8s .6s ease both; }

.btn-g, .btn-o, .map-open {
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-g {
  background: var(--gold); color: var(--g1); border: none;
  padding: 12px 26px; font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(201,162,39,.45);
}
.btn-g:hover { background: var(--goldf); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,.4); }
.btn-g:active { transform: scale(.97); }
.btn-o {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55);
  padding: 12px 26px; font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; border-radius: 10px;
}
.btn-o:hover { border-color: var(--goldf); color: var(--goldf); }
.btn-g::after, .btn-o::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15); opacity: 0;
  transition: opacity .2s ease; pointer-events: none;
}
.btn-g:hover::after, .btn-o:hover::after { opacity: 1; }

.scroll-down {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .15em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-down::after {
  content: ''; display: block; width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,.4); border-bottom: 2px solid rgba(255,255,255,.4);
  transform: rotate(45deg); margin-top: -4px;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeinUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── STATS ── */
.stats { background: var(--g1); padding: 20px 16px; }
.stats-inner { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--rad); overflow: hidden; }
.stat { background: var(--g1); padding: 18px 12px; text-align: center; }
.stat-n { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--goldf); line-height: 1; transition: color .3s ease; }
.stat-l { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── SECTION BASE ── */
section { padding: clamp(48px, 6vw, 72px) 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sec-chip { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.sec-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--g1); margin-bottom: 10px;
  letter-spacing: .3px;
}
.sec-h em { color: var(--g3); font-style: normal; }
.sec-line { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 28px; transition: width .8s cubic-bezier(.22,1,.36,1); }

/* ── ABOUT ── */
#about { background: #fff; }
.about-img {
  width: 100%; border-radius: var(--rad);
  overflow: hidden; margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  position: relative;
}
.about-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.about-img-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--g1); color: #fff;
  padding: 6px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
}
.about-txt p { color: var(--muted); line-height: 1.8; font-size: 14px; margin-bottom: 14px; }
.vmg { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.vmg-card {
  background: #edf5f0; border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0; padding: 16px; flex: 1;
}
.vmg-card h4 { font-size: 15px; font-weight: 700; color: var(--g1); margin-bottom: 6px; }
.vmg-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── COURSES ── */
#courses { background: var(--cream); }
.courses-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.course-card {
  background: #fff; border-radius: 18px; padding: 18px;
  border-left: 5px solid var(--g2);
  box-shadow: 0 12px 30px rgba(11,77,30,.12);
  display: flex; align-items: center; gap: 14px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.course-card > div { min-width: 0; flex: 1; }
.course-icon { font-size: 2rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.course-card h3 { font-size: 16px; font-weight: 700; color: var(--g1); margin-bottom: 6px; }
.course-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11,77,30,.15); border-left-color: var(--gold); }
.ctag { display: inline-block; background: var(--g1); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 8px; }

/* ── NOTICE ── */
#notice { background: #fff; }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-card {
  background: #f7fbf9; border-radius: 18px;
  display: flex; gap: 14px; align-items: center;
  padding: 18px 14px;
  border-left: 4px solid var(--g2);
  box-shadow: 0 12px 30px rgba(11,77,30,.12);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.notice-card:hover { transform: translateX(6px); box-shadow: 4px 4px 20px rgba(11,77,30,.1); }
.ndate {
  min-width: 60px; background: var(--g1); color: #fff;
  border-radius: 8px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 14px 8px 10px; flex-shrink: 0;
}
.ndate .nd { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; line-height: 1; }
.ndate .nm { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: 2px; }
.ninfo { min-width: 0; flex: 1; overflow: hidden; }
.ninfo .nbadge {
  display: inline-block; font-size: 9px; font-weight: 800;
  padding: 2px 9px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 5px;
}
.nb-urgent { background: #fee2e2; color: #dc2626; }
.nb-event  { background: #d1fae5; color: #059669; }
.nb-exam   { background: #fef3c7; color: #b45309; }
.nb-general{ background: #dbeafe; color: #1d4ed8; }
.ninfo h4 { font-size: 13px; font-weight: 700; color: var(--g1); margin-bottom: 4px; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; }
.ninfo p  { font-size: 12px; color: var(--muted); line-height: 1.55; }

.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
.cal-card {
  background: #edf5f0; border-radius: 18px; padding: 16px;
  text-align: center; border-top: 3px solid var(--g2);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(11,77,30,.12); }
.cal-card .cico { font-size: 1.8rem; }
.cal-card .cl { font-size: 10px; font-weight: 700; color: var(--g1); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.cal-card .cv { font-size: 13px; font-weight: 700; color: var(--gold); margin-top: 2px; }.      

/* Notice scroll container (Kirupa style — fixed height + overflow) */
.notice-scroll-container {
  height: 500px; overflow-y: auto;
  border: 2px solid var(--bdr); border-radius: 12px;
  padding: 8px; background: #f7fbf8;
  scrollbar-width: thin;
  scrollbar-color: var(--g2) #edf5f0;
}
.notice-scroll-container::-webkit-scrollbar { width: 5px; }
.notice-scroll-container::-webkit-scrollbar-track { background: #edf5f0; border-radius: 4px; }
.notice-scroll-container::-webkit-scrollbar-thumb { background: var(--g2); border-radius: 4px; }
.notice-scroll-container .notice-card { margin-bottom: 10px; }
.notice-scroll-container .notice-card:last-child { margin-bottom: 0; }

/* ── TEACHERS ── */
#teachers { background: var(--g1); }
#teachers .sec-h, #teachers .sec-h em { color: #fff; }
#teachers .sec-chip { color: var(--goldf); }
.teachers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 18px 14px; text-align: center;
  transition: transform .3s ease, background .3s ease;
}
.t-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.t-avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold);
  margin: 0 auto 12px; overflow: hidden; background: var(--g2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--goldf); font-weight: 700;
}
.t-card h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.t-card .t-sub { color: var(--goldf); font-size: 11px; font-weight: 600; }
.t-card .t-q   { color: rgba(255,255,255,.45); font-size: 10px; margin-top: 3px; }

/* ── GALLERY ── */
#gallery { background: var(--cream); }

/* ── ACHIEVEMENTS (dark theme) ── */
#achievements { background: var(--g1); }
#achievements .wrap { position: relative; }
#achievements .sec-chip { color: var(--goldf); }
#achievements .sec-h { color: #fff; }
#achievements .sec-line { background: var(--gold); }
.ach-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; overflow: hidden; }
.ach-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-top: 3px solid var(--gold); border-radius: 18px;
  padding: 20px 14px; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ach-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.ach-icon { font-size: 2rem; margin-bottom: 8px; }
.ach-card h3 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.ach-card p { font-size: 12px; color: rgba(255,255,255,.6); }

.toppers-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--goldf); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.toppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topper {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--gold); border-top: 3px solid var(--gold);
  border-radius: 18px; padding: 18px 12px 14px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .25s ease, background .25s ease;
}
.topper:hover { background: rgba(255,255,255,.13); transform: translateX(8px); }
.t-avatar-topper {
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--gold);
  margin: 0 auto 6px; overflow: hidden; background: var(--g2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--goldf); font-weight: 700;
}
.t-avatar-topper img { width: 100%; height: 100%; object-fit: cover; }
.t-rank { font-size: 1.1rem; line-height: 1; color: var(--goldf); }
.t-info h4 { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 2px; }
.t-info p  { font-size: 11px; color: rgba(255,255,255,.55); }
.t-pct { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900; color: var(--goldf); margin-top: 4px; }
.toppers-row { display: flex; flex-direction: column; gap: 28px; }

/* ── RESULTS CHART ── */
#results-chart { background: var(--g1); }
#results-chart .sec-h, #results-chart .sec-h em { color: #fff; }
#results-chart .sec-chip { color: var(--goldf); }
#results-chart .sec-line { background: var(--gold); }
.chart-wrap { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 0 8px; margin-bottom: 12px; overflow: hidden; }
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 8px; min-width: 0; }
.bar-outer { width: 100%; background: rgba(255,255,255,.1); border-radius: 6px 6px 0 0; position: relative; overflow: hidden; }
.bar-inner {
  width: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--goldf), var(--gold));
  height: 0%; transition: height 1.5s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.bar-inner::after {
  content: attr(data-val);
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  color: var(--goldf); font-size: 10px; font-weight: 800;
  font-family: 'Nunito', sans-serif; white-space: nowrap;
}
.bar-label { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; text-align: center; }
.chart-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut-wrap h4 { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; text-align: center; }
.donut-svg { overflow: visible; }
.donut-ring { transition: stroke-dasharray 2s cubic-bezier(.22,1,.36,1); }
.donut-label { fill: #fff; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 18px; }
.donut-sub   { fill: rgba(255,255,255,.55); font-family: 'Nunito', sans-serif; font-size: 9px; }

/* ── EVENTS ── */
#events { background: var(--cream); }
.events-list { display: flex; flex-direction: column; gap: 16px; }
.ev-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(11,77,30,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(11,77,30,.12); }
.ev-head { background: var(--g2); padding: 16px; display: flex; align-items: center; gap: 14px; }
.ev-date { background: #fff; border-radius: 8px; padding: 8px 12px; text-align: center; min-width: 54px; flex-shrink: 0; }
.ev-date .ed { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--g1); line-height: 1; }
.ev-date .em { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ev-head-txt h3 { color: #fff; font-size: 15px; font-weight: 700; }
.ev-head-txt p  { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 2px; }
.ev-body { padding: 14px 16px; }
.ev-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.ev-tag { background: var(--g1); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--bdr); display: inline-block; }

/* ── ADMISSION ── */
#admission { background: var(--g1); }
#admission .sec-h, #admission .sec-h em { color: #fff; }
#admission .sec-chip { color: var(--goldf); }
.steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.s-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--g1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900;
}
.s-txt h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.s-txt p  { color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.6; }
.adm-form-title { color: var(--goldf); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.fgroup { margin-bottom: 12px; }
.fgroup label { display: block; color: rgba(255,255,255,.65); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.fgroup input, .fgroup select {
  width: 100%; padding: 12px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 14px; font-family: 'Nunito', sans-serif;
  transition: border-color .2s;
}
.fgroup input::placeholder { color: rgba(255,255,255,.35); }
.fgroup input:focus, .fgroup select:focus { outline: none; border-color: var(--gold); }
.fgroup select option { background: var(--g1); }
.frow { display: grid; grid-template-columns: 1fr; gap: 10px; }
.docs-box { background: rgba(255,255,255,.07); border-radius: var(--rad); padding: 16px; margin-top: 16px; border: 1px solid rgba(201,162,39,.3); }
.docs-box h4 { color: var(--goldf); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.docs-box ul { padding-left: 18px; color: rgba(255,255,255,.65); font-size: 12px; line-height: 2; }

/* ── TESTIMONIALS ── */
#testimonials { background: #fff; overflow: hidden; }
.testi-header { text-align: center; margin-bottom: 32px; }
.testi-header .sec-line { margin: 0 auto; }
.testi-track-wrap { position: relative; overflow: hidden; margin: 0 16px; }
.testi-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.testi-card {
  min-width: 100%; background: var(--cream);
  border-radius: 16px; padding: 28px 24px;
  border-left: 5px solid var(--gold);
  box-shadow: 0 4px 20px rgba(11,77,30,.08);
  position: relative; box-sizing: border-box;
}
.testi-quote { font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 8px; opacity: .5; font-family: 'Playfair Display', serif; }
.testi-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--g1); display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--goldf); font-weight: 700;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; color: var(--g1); font-size: 14px; }
.testi-role { font-size: 11px; color: var(--muted); }
.testi-stars { color: var(--gold); font-size: 13px; margin-top: 2px; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bdr); cursor: pointer; transition: all .3s; border: none; padding: 0; }
.testi-dot.active { background: var(--g1); width: 24px; border-radius: 4px; }
.testi-btns { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.testi-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g1); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; color: #fff; font-size: 16px;
}
.testi-btn:hover { background: var(--gold); color: var(--g1); transform: scale(1.1); }

/* ── CONTACT ── */
#contact { background: #fff; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.c-item { display: flex; align-items: flex-start; gap: 14px; }
.c-ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--g1); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.c-item h4 { font-size: 14px; font-weight: 700; color: var(--g1); margin-bottom: 3px; }
.c-item p  { font-size: 13px; color: var(--muted); line-height: 1.7; }
.social-btns { display: flex; gap: 8px; flex-wrap: nowrap; margin-top: 20px; }
.s-btn {
  padding: 10px 8px; border-radius: 8px; font-size: 11px; font-weight: 700;
  text-decoration: none; transition: .2s; flex: 1; text-align: center; white-space: nowrap;
}
.sb-fb { background: var(--g1); color: #fff; }
.sb-ig { background: var(--g1); color: #fff; }
.sb-wa { background: #25D366; color: #fff; }
.map-box {
  border: 2px solid var(--bdr); border-radius: var(--rad);
  height: 200px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: #edf5f0; margin-bottom: 14px;
}
.map-box .mpin { font-size: 2.5rem; }
.map-box p { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; max-width: 180px; }
.map-open {
  background: var(--g1); color: #fff; border: none;
  padding: 10px 20px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 700; text-decoration: none; display: inline-block;
}
.map-open:hover { background: var(--g2); }
.how-reach {
  background: #edf5f0; border-left: 4px solid var(--g2);
  border-radius: 0 var(--rad) var(--rad) 0; padding: 16px; margin-top: 14px;
}
.how-reach h4 { color: var(--g1); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.how-reach p  { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ── FOOTER ── */
footer { background: #111; padding: 32px 16px 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.footer-brand h3 { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
footer p.foot-desc { color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.7; margin-bottom: 20px; }
.foot-inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.foot-links a { color: rgba(255,255,255,.45); font-size: 12px; text-decoration: none; padding: 4px 0; transition: .2s; }
.foot-links a:hover { color: var(--goldf); }
.foot-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 16px 0; }
.foot-bottom { display: flex; flex-direction: column; gap: 6px; }
.foot-bottom p { color: rgba(255,255,255,.25); font-size: 11px; }
.foot-motto { color: var(--gold); font-style: italic; font-size: 12px; }

/* ============================================================
   3D ROTATING LOGOS
   ============================================================ */
.logo-3d-wrap { width: 44px; height: 44px; perspective: 300px; flex-shrink: 0; }
.logo-3d-inner {
  width: 100%; height: 100%;
  position: relative; border-radius: 50%;
}
.logo-3d-inner .face {
  position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--gold);
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.logo-3d-inner .face img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.logo-3d-inner .face-back {
  transform: rotateY(180deg); background: var(--g1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 14px; font-weight: 900; letter-spacing: .05em;
}
@keyframes logo3dSpin {
  0%   { transform: rotateY(0deg); }
  35%  { transform: rotateY(180deg); }
  50%  { transform: rotateY(180deg); }
  85%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

.hero-logo-3d-wrap { width: 110px; height: 110px; perspective: 500px; margin: 0 auto 16px; }
.hero-logo-3d-inner {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: heroLogo3d 8s cubic-bezier(.45,.05,.55,.95) infinite;
  position: relative; border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(201,162,39,.6));
}
.hero-logo-3d-inner .face {
  position: absolute; inset: 0;
  border-radius: 50%; border: 4px solid var(--gold);
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 40px rgba(201,162,39,.4);
}
.hero-logo-3d-inner .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-logo-3d-inner .face-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle, #1a6b2f, #0b4d1e);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.hero-logo-3d-inner .face-back span:first-child { font-size: 2rem; line-height: 1; }
.hero-logo-3d-inner .face-back span:last-child {
  color: var(--gold); font-family: 'Playfair Display', serif;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
@keyframes heroLogo3d {
  0%   { transform: rotateY(0deg) scale(1); }
  40%  { transform: rotateY(180deg) scale(1.05); }
  55%  { transform: rotateY(180deg) scale(1.05); }
  95%  { transform: rotateY(360deg) scale(1); }
  100% { transform: rotateY(360deg) scale(1); }
}

.loader-logo-3d-wrap { width: 120px; height: 120px; perspective: 600px; position: relative; }
.loader-logo-3d-inner {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: loaderLogo3d 5s ease-in-out infinite;
  border-radius: 50%;
}
.loader-logo-3d-inner .face {
  position: absolute; inset: 0;
  border-radius: 50%; border: 3px solid #c9a227;
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 30px rgba(201,162,39,.55);
}
.loader-logo-3d-inner .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loader-logo-3d-inner .face-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle, #1a6b2f, #0b4d1e);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
@keyframes loaderLogo3d {
  0%   { transform: rotateY(0deg); }
  40%  { transform: rotateY(180deg); }
  60%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
.loader-ring   { position: absolute; inset: -8px;  border-radius: 50%; border: 2px solid rgba(201,162,39,.3);  animation: ringRotate 3s linear infinite; }
.loader-ring-2 { position: absolute; inset: -16px; border-radius: 50%; border: 1.5px solid rgba(201,162,39,.15); animation: ringRotate 5s linear infinite reverse; }
@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Cartoon pencil (only cartoon kept) */
.cartoon-pencil { width: 60px; animation: pencilWiggle 2s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
@keyframes pencilWiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-6px); } }

/* Hide all unused cartoons */
.cartoon-student, .cartoon-teacher, .cartoon-teacher-wrap,
.cartoon-trophy-girl, .cartoon-bookworm, .cartoon-runner { display: none; }

/* ============================================================
   LOADER SCREEN
   ============================================================ */
@keyframes loaderFadeOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); pointer-events: none; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.left  { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.scale { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }
.stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: .1s;   opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: .18s;  opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: .26s;  opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: .34s;  opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: .42s;  opacity: 1; transform: none; }
.stagger.visible > *:nth-child(7) { transition-delay: .5s;   opacity: 1; transform: none; }
.stagger.visible > *:nth-child(8) { transition-delay: .58s;  opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (min-width: 600px) {
  .stats-inner   { grid-template-columns: repeat(4, 1fr); }
  .courses-grid  { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
  .ach-cards     { grid-template-columns: repeat(2, 1fr); }
  .frow          { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .testi-card { min-width: calc(50% - 10px); }
}
@media (min-width: 900px) {
  section { padding: 80px 0; }
  .about-layout    { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
  .about-img       { margin-bottom: 0; }
  .about-img img   { height: 340px; }
  .vmg             { flex-direction: row; flex: 1; }
  .vmg-card        { display: flex; flex-direction: column; min-height: 0; }
  .courses-grid    { grid-template-columns: repeat(3, 1fr); }
  .notice-layout   { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .notice-layout > div:nth-child(2) { position: sticky; top: 80px; }
  .teachers-grid   { grid-template-columns: repeat(4, 1fr); }
  .ach-cards       { grid-template-columns: repeat(2, 1fr); }
  .ach-layout      { display: flex; flex-direction: column; gap: 36px; }
  .ach-layout > div:first-child, .ach-layout > div:last-child { display: flex; flex-direction: column; }
  .ach-layout > div:first-child .ach-cards { flex: 1; }
  .toppers-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .events-list     { display: grid; grid-template-columns: repeat(3, 1fr); }
  .adm-layout      { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-layout  { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-inner      { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
  .chart-grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
  nav              { padding: 0 24px; }
  nav .ham         { display: none; }
  .nav-menu {
    position: static; right: auto; width: auto; height: auto;
    background: none; padding: 0; box-shadow: none;
    display: flex; flex-direction: row; gap: 2px;
    overflow: visible; flex-wrap: nowrap; align-items: center;
  }
  .nav-menu a { padding: 7px 11px; border: none; font-size: 12px; border-radius: 6px; white-space: nowrap; }
  .nav-menu a:hover { padding-left: 14px; }
}
@media (min-width: 1000px) {
  .testi-card { min-width: calc(33.33% - 14px); }
}
@media (min-width: 1200px) {
  .wrap          { max-width: 1200px; }
  section        { padding: 96px 0; }
  .about-img img { height: 420px; }
}

/* Mobile-only spacing tweaks */
@media (max-width: 899px) {
  .nav-menu a:hover { padding-left: 32px; }
  .notice-layout > div + div  { margin-top: 40px; }
  .adm-layout    > div + div  { margin-top: 40px; }
  .contact-layout > div + div { margin-top: 32px; }
  .chart-wrap   { gap: 8px; height: 160px; }
  .bar-inner::after { font-size: 9px; }
}

/* Reduced motion: disable nonessential animations */
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  .hero-pill, .hero-body h1, .hero-tag, .hero-btns { animation: none; opacity: 1; transform: none; }
  .scroll-down { animation: none; }
  * { transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
}

/* Success popup (admission form confirmation) */
#successPopup {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  align-items: center; justify-content: center; z-index: 9999;
}
#successPopup.open { display: flex; }

/* ── LOADER LAYOUT ── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0b4d1e 0%, #1a6b2f 50%, #0b4d1e 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; overflow: hidden;
}
.loader-text { text-align: center; padding: 0 24px; }
.loader-pretitle {
  color: rgba(255, 255, 255, .5); font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase;
  margin-bottom: 12px; animation: fadeinUp .6s ease both;
}
.loader-title {
  font-family: 'Playfair Display', serif;
  color: #fff; font-size: clamp(1.4rem, 6vw, 2.2rem);
  font-weight: 700; line-height: 1.3; min-height: 2.8em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.loader-subtitle {
  color: #c9a227; font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  margin-top: 10px; animation: fadeinUp .6s .3s ease both; opacity: 0; animation-fill-mode: both;
}
.loader-bar-outer {
  width: 220px; height: 3px; background: rgba(255, 255, 255, .1);
  border-radius: 2px; overflow: hidden;
}
.loader-bar-inner {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #c9a227, #f5c842);
  border-radius: 2px; transition: width .05s linear;
}
.loader-tagline {
  color: rgba(255, 255, 255, .35); font-size: 11px;
  font-family: 'Nunito', sans-serif; letter-spacing: .1em;
}

/* ── NAV ADMIN LINK ── */
.nav-admin-link {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 18px;
  color: var(--goldf) !important;
  font-weight: 700; letter-spacing: .06em;
}

/* ── NOTICE PENCIL WRAP ── */
.notice-pencil-wrap { display: flex; justify-content: center; margin-bottom: 12px; }

/* ── GALLERY HINT ── */
.gallery-hint {
  text-align: center; color: var(--muted);
  font-size: 12px; margin-top: 18px; font-style: italic;
}

/* ── ADMISSION HELPERS ── */
.adm-process-title {
  color: var(--g1); font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; margin-bottom: 18px;
}
.admission-submit { width: 100%; margin-top: 8px; padding: 14px; }

/* ── FOOTER EXTRA ── */
.footer-brand-sub {
  font-size: 11px; color: var(--gold); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.foot-links-title {
  color: var(--goldf); font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}

/* ── SUCCESS POPUP CARD ── */
.success-card {
  background: #fff; padding: 24px 20px; border-radius: 14px;
  text-align: center; max-width: 280px; width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.success-ico { font-size: 2rem; margin-bottom: 10px; }
.success-card h3 { margin-bottom: 8px; color: var(--g1); }
.success-card p { font-size: 13px; color: #555; margin-bottom: 16px; }
.success-btn {
  background: var(--g1); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 700; cursor: pointer;
}
