/* ==========================================================================
   M.S.I. Inter College — Design System
   Palette drawn from the campus itself: emerald lawn, sandstone facade,
   gilded crest, brick trim.
   ========================================================================== */

:root {
  --emerald-950: #06231a;
  --emerald-900: #0a3326;
  --emerald-800: #0f4433;
  --emerald-700: #155a43;
  --emerald-600: #1c7255;
  --emerald-100: #dcefe6;
  --emerald-50:  #eff8f3;

  --saffron: #ff9933;
  --india-green: #138808;
  --navy: #0b2a5b;
  --gold-600: #a87a1c;
  --gold-500: #c8962e;
  --gold-400: #ddb45a;
  --gold-100: #f8ecd0;

  --sand-50:  #fbf8f2;
  --sand-100: #f5efe3;
  --sand-200: #ebe1cd;

  --brick: #8a3b1f;
  --ink-900: #14201b;
  --ink-700: #34423c;
  --ink-500: #5e6b65;
  --ink-300: #a3ada8;
  --line: #e4ddd0;
  --white: #ffffff;

  --success: #1f8a4c;
  --warning: #b7791f;
  --danger:  #c0392b;
  --info:    #2563a8;

  --bg: var(--sand-50);
  --surface: var(--white);
  --surface-2: var(--sand-100);
  --text: var(--ink-900);
  --text-soft: var(--ink-500);

  --font-display: "Fraunces", "Tiro Devanagari Hindi", Georgia, serif;
  --font-body: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hindi: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 51, 38, .06), 0 1px 3px rgba(10, 51, 38, .05);
  --shadow:    0 6px 20px -6px rgba(10, 51, 38, .14), 0 2px 6px rgba(10, 51, 38, .05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 51, 38, .28), 0 10px 24px -10px rgba(10, 51, 38, .12);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-100); color: var(--emerald-900); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--emerald-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.hi { font-family: var(--font-hindi); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--emerald-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn i { font-size: .95em; }
.btn-gold { --btn-bg: var(--gold-500); --btn-fg: var(--emerald-950); }
.btn-gold:hover { --btn-bg: var(--gold-400); }
.btn-outline { background: transparent; color: var(--emerald-800); border-color: var(--emerald-800); }
.btn-outline:hover { background: var(--emerald-800); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--emerald-900); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--emerald-950); color: rgba(255,255,255,.78); font-size: 13px; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility-bar a:hover { color: var(--gold-400); }
.utility-left, .utility-right { display: flex; align-items: center; gap: 22px; }
.utility-left i, .utility-right i { color: var(--gold-400); margin-right: 6px; }
.utility-codes span { opacity: .85; }
.utility-codes strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(10,51,38,.25); background: rgba(251,248,242,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-crest { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-hi { font-family: var(--font-hindi); font-size: 17px; font-weight: 400; color: var(--emerald-900); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-en { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px; border: 0; background: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  transition: color .2s, background .2s;
}
.primary-nav > a:hover, .nav-drop > button:hover, .primary-nav > a.active { color: var(--emerald-800); background: var(--emerald-50); }
.nav-drop { position: relative; }
.nav-drop > button i { font-size: 10px; transition: transform .2s; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  min-width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop:hover > button i { transform: rotate(180deg); }
.nav-drop-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-700); }
.nav-drop-menu a i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--emerald-50); color: var(--emerald-700); font-size: 13px; }
.nav-drop-menu a:hover { background: var(--sand-100); color: var(--emerald-900); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--emerald-800);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--emerald-50); }
.menu-toggle { display: none; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; overflow: hidden;
}
.mobile-drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6,35,26,.55); opacity: 0; transition: opacity .3s; }
.mobile-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
  background: var(--sand-50); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; font-weight: 500; color: var(--ink-700); }
.drawer-nav a i { width: 22px; color: var(--emerald-700); text-align: center; }
.drawer-nav a:hover, .drawer-nav a:active { background: var(--emerald-50); color: var(--emerald-900); }
.drawer-nav .drawer-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); padding: 16px 12px 6px; font-weight: 600; }
.drawer-foot { padding: 16px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff;
  padding: clamp(120px, 18vh, 180px) 0 clamp(48px, 8vh, 88px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,35,26,.25) 0%, rgba(6,35,26,.35) 35%, rgba(6,35,26,.92) 100%),
    linear-gradient(90deg, rgba(6,35,26,.75) 0%, rgba(6,35,26,0) 70%);
}
.hero-content { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  font-size: 13.5px; margin-bottom: 22px;
}
.hero-pill .dot { display: inline-grid; place-items: center; padding: 3px 10px; border-radius: 999px; background: var(--gold-500); color: var(--emerald-950); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--gold-400); font-weight: 400; }
.hero-hi { font-family: var(--font-hindi); font-size: clamp(1.15rem, 2.4vw, 1.55rem); color: rgba(255,255,255,.9); margin-top: 14px; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255,255,255,.82); max-width: 600px; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(40px, 7vh, 72px);
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(10px);
}
.hero-meta div { padding: 18px 22px; background: rgba(6,35,26,.45); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; color: #fff; line-height: 1.1; }
.hero-meta span { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold-500); color: var(--emerald-950); overflow: hidden; }
.ticker .container { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.ticker-label { flex: none; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: var(--emerald-900); color: var(--gold-400); padding: 6px 12px; border-radius: 999px; }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-items { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; font-weight: 500; font-size: 14.5px; }
.ticker-items span { white-space: nowrap; }
.ticker-items span::before { content: "◆"; font-size: 9px; margin-right: 14px; color: var(--brick); vertical-align: 2px; }
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--emerald-900); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > div { max-width: 680px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; margin-inline: auto; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); color: var(--emerald-900); margin-top: 12px; }
.section-dark .section-title { color: #fff; }
.section-title em { font-style: italic; color: var(--gold-600); font-weight: 400; }
.section-dark .section-title em { color: var(--gold-400); }
.section-sub { color: var(--text-soft); font-size: 1.05rem; margin-top: 14px; }
.section-sub .hi { display: block; margin-top: 4px; }
.section-dark .section-sub { color: rgba(255,255,255,.72); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-visual { position: relative; }
.about-visual .frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -18px; bottom: 36px;
  background: var(--emerald-900); color: #fff; padding: 22px 26px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); max-width: 220px;
}
.about-badge strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold-400); font-weight: 500; display: block; }
.about-badge span { font-size: 13.5px; color: rgba(255,255,255,.8); }
.about-thumb { position: absolute; left: -22px; top: 32px; width: 38%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.about-copy p + p { margin-top: 16px; }
.about-copy .lead { font-size: 1.15rem; color: var(--ink-700); }
.about-copy .hi { color: var(--ink-500); }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fact i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--emerald-50); color: var(--emerald-700); }
.fact small { display: block; font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }
.fact strong { font-size: 14.5px; font-weight: 600; color: var(--ink-900); line-height: 1.35; display: block; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 7vw, 80px); }
.pillar { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 120px; height: 120px; border-radius: 50%; background: var(--gold-100); opacity: .6; }
.pillar .num { font-family: var(--font-display); font-size: 14px; color: var(--gold-600); font-weight: 600; letter-spacing: .1em; }
.pillar h3 { font-size: 1.45rem; color: var(--emerald-900); margin: 10px 0 10px; }
.pillar p { color: var(--ink-500); position: relative; z-index: 1; }
.pillar p.hi { margin-top: 8px; color: var(--ink-700); }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.leader {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.leader-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  box-shadow: 0 0 0 6px rgba(221,180,90,.18);
}
.leader blockquote { margin: 0; font-family: var(--font-hindi); font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,.9); position: relative; }
.leader blockquote::before { content: "“"; position: absolute; left: -6px; top: -36px; font-family: var(--font-display); font-size: 5rem; color: var(--gold-500); opacity: .5; line-height: 1; }
.leader-role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.leader-name { font-size: 1.3rem; margin-top: 18px; color: #fff; }
.leader-name small { display: block; font-family: var(--font-body); font-size: 13.5px; color: rgba(255,255,255,.6); font-weight: 400; margin-top: 4px; }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1180px) { .programs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programs { grid-template-columns: 1fr; } }
.program {
  position: relative; padding: 26px 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--emerald-700); }
.program:nth-child(2) .program-icon { background: #2563a8; }
.program:nth-child(3) .program-icon { background: var(--success); }
.program:nth-child(4) .program-icon { background: var(--gold-600); }
.program:nth-child(5) .program-icon { background: var(--brick); }
.program .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.program h3 { font-size: 1.3rem; color: var(--emerald-900); }
.program h3 .hi { display: block; font-size: 1rem; color: var(--ink-500); margin-top: 4px; font-weight: 400; }
.program ul { display: grid; gap: 8px; font-size: 14px; color: var(--ink-700); }
.program li { display: flex; gap: 10px; align-items: flex-start; }
.program li i { color: var(--success); font-size: 12px; margin-top: 6px; }
.program .program-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-500); }
.program .program-foot a { color: var(--emerald-700); font-weight: 600; }
.program .program-foot a:hover { color: var(--gold-600); }

/* ---------- Toppers ---------- */
.toppers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topper { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.topper:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topper-top { padding: 28px 20px 18px; background: radial-gradient(circle at 50% 0%, var(--gold-100), transparent 70%); }
.topper-avatar { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold-400); font-family: var(--font-display); font-size: 1.5rem; border: 3px solid var(--gold-400); }
.topper h3 { font-family: var(--font-hindi); font-size: 1.15rem; font-weight: 400; color: var(--emerald-900); }
.topper p { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.topper-score { font-family: var(--font-display); font-size: 2.4rem; color: var(--emerald-800); font-weight: 500; padding: 10px 0 4px; }
.topper-rank { display: inline-block; margin-bottom: 20px; padding: 5px 12px; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); font-weight: 600; font-size: 12.5px; }

/* ---------- Facilities ---------- */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facility { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: background .3s, transform .3s var(--ease); }
.facility:hover { background: var(--emerald-900); transform: translateY(-4px); }
.facility i { font-size: 22px; color: var(--emerald-700); width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--emerald-50); transition: background .3s, color .3s; }
.facility h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin-top: 18px; color: var(--ink-900); transition: color .3s; }
.facility h3 .hi { display: block; font-weight: 400; font-size: .95rem; color: var(--ink-500); margin-top: 2px; transition: color .3s; }
.facility p { font-size: 14px; color: var(--ink-500); margin-top: 8px; transition: color .3s; }
.facility:hover i { background: var(--gold-500); color: var(--emerald-950); }
.facility:hover h3 { color: #fff; }
.facility:hover h3 .hi, .facility:hover p { color: rgba(255,255,255,.7); }

/* ---------- Student life ---------- */
.life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.life-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.life-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,35,26,0) 20%, rgba(6,35,26,.92)); }
.life-card:hover img { transform: scale(1.06); }
.life-body { padding: 28px; }
.life-body .tag { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.life-body h3 { font-family: var(--font-hindi); font-weight: 400; font-size: 1.45rem; margin: 8px 0; }
.life-body p { font-size: 14.5px; color: rgba(255,255,255,.8); }

/* ---------- Admissions ---------- */
.admission-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--emerald-900); color: var(--gold-400); font-family: var(--font-display); font-size: 1.3rem; }
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--ink-500); margin-top: 4px; }
.admission-card { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-xl); background: var(--emerald-900); color: #fff; overflow: hidden; }
.admission-card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 60px solid rgba(221,180,90,.08); right: -140px; top: -140px; }
.admission-card h3 { font-size: 1.8rem; position: relative; }
.admission-card > p { color: rgba(255,255,255,.75); margin: 10px 0 22px; position: relative; }
.doc-list { display: grid; gap: 10px; margin-bottom: 26px; position: relative; }
.doc-list li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; padding: 10px 14px; background: rgba(255,255,255,.06); border-radius: 12px; }
.doc-list li i { color: var(--gold-400); }
.admission-card .btn + .btn { margin-top: 10px; }

/* ---------- Notices ---------- */
.notice-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-700); transition: all .2s; }
.tab:hover { border-color: var(--emerald-700); color: var(--emerald-800); }
.tab.active { background: var(--emerald-900); border-color: var(--emerald-900); color: #fff; }
.notice-list { display: grid; gap: 10px; }
.notice { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.notice:hover { border-color: var(--emerald-600); box-shadow: var(--shadow-sm); }
.notice-date { text-align: center; padding: 8px 0; border-radius: 12px; background: var(--sand-100); line-height: 1.1; }
.notice-date strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--emerald-900); font-weight: 600; }
.notice-date span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.notice h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.4; }
.notice .chip { margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.chip-exam { background: #e7effa; color: var(--info); }
.chip-admission { background: var(--emerald-100); color: var(--emerald-700); }
.chip-general { background: var(--gold-100); color: var(--gold-600); }
.chip-new { background: #fde8e4; color: var(--danger); }
.notice[hidden] { display: none; }

.side-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.side-card + .side-card { margin-top: 18px; }
.side-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.side-card h3 i { color: var(--gold-600); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-700); }
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover { color: var(--emerald-700); }
.link-list a i { font-size: 12px; color: var(--ink-300); }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.download { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.download:hover { border-color: var(--emerald-600); transform: translateY(-2px); }
.download > i { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fde8e4; color: var(--danger); font-size: 18px; }
.download strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.download small { color: var(--ink-500); font-size: 12.5px; }

/* ---------- Gallery ---------- */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin-bottom: 14px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--sand-200); border: 0; padding: 0; width: 100%; display: block; }
.gallery-item img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.gallery-item:nth-child(3n+1) img { aspect-ratio: 1 / 1.2; object-fit: cover; }
.gallery-item:nth-child(3n+2) img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-item:nth-child(3n) img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: 13px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(6,35,26,.85)); opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(6,20,15,.94); }
.lightbox.open { display: flex; animation: fadeIn .25s; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 15px; }
.lightbox-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; font-size: 18px; }
.lightbox-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--emerald-50); color: var(--emerald-800); font-size: 20px; font-weight: 400; transition: transform .3s, background .3s; }
.faq[open] summary::after { transform: rotate(45deg); background: var(--gold-500); color: var(--emerald-950); }
.faq[open] { border-color: var(--emerald-600); }
.faq-body { padding: 0 22px 20px; color: var(--ink-700); font-size: 15px; }
.faq-body .hi { display: block; margin-bottom: 6px; }

/* ---------- Contact & Map ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-card > i { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-900); color: var(--gold-400); font-size: 18px; }
.contact-card small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }
.contact-card strong, .contact-card a { font-size: 15.5px; font-weight: 600; color: var(--ink-900); }
.contact-card a:hover { color: var(--emerald-700); }
.contact-card p { font-size: 14px; color: var(--ink-500); }

.map-shell { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--sand-200); min-height: 460px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.map-canvas { flex: 1; min-height: 380px; width: 100%; }
.map-canvas iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: var(--surface); border-top: 1px solid var(--line); }
.map-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-700); transition: all .2s; }
.map-chip:hover, .map-chip.active { background: var(--emerald-900); color: #fff; border-color: var(--emerald-900); }
.map-chip i { color: var(--gold-600); }
.map-chip:hover i, .map-chip.active i { color: var(--gold-400); }
.map-route-info { position: absolute; left: 14px; top: 14px; z-index: 2; max-width: calc(100% - 28px); padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); font-size: 14px; display: none; }
.map-route-info.show { display: block; animation: fadeIn .3s; }
.map-route-info strong { color: var(--emerald-800); }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-500); font-size: 14px; }

.contact-form-wrap { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reach-list { display: grid; gap: 12px; }
.reach { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reach i { color: var(--emerald-700); font-size: 18px; margin-top: 4px; width: 22px; text-align: center; }
.reach strong { font-size: 14.5px; display: block; }
.reach span { font-size: 13.5px; color: var(--ink-500); }

/* ---------- Forms ---------- */
.card { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.field label .req { color: var(--danger); }
.field label .hi { font-weight: 400; color: var(--ink-500); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--sand-50);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--emerald-600); background: #fff; box-shadow: 0 0 0 4px rgba(28,114,85,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field-error { font-size: 12.5px; color: var(--danger); min-height: 0; display: none; }
.field.invalid .field-error { display: block; }
.field-hint { font-size: 12.5px; color: var(--ink-500); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-300); pointer-events: none; }
.input-icon input { padding-left: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; color: var(--ink-500); border-radius: 8px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sand-50); font-weight: 500; font-size: 14.5px; cursor: pointer; transition: all .2s; }
.radio-card input:checked + span { border-color: var(--emerald-700); background: var(--emerald-50); color: var(--emerald-900); box-shadow: 0 0 0 3px rgba(28,114,85,.1); }
.radio-card input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-700); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--emerald-700); flex: none; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.alert i { margin-top: 3px; }
.alert-info { background: #e7effa; color: #1d4f86; }
.alert-success { background: var(--emerald-100); color: var(--emerald-800); }
.alert-warn { background: var(--gold-100); color: #7a5410; }
.alert-error { background: #fde8e4; color: #8e2a1f; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; display: grid; gap: 10px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--emerald-950); color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px; animation: toastIn .35s var(--ease); }
.toast i { color: var(--gold-400); }
.toast.error i { color: #ff8a7a; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 64px); background: linear-gradient(120deg, var(--emerald-900), var(--emerald-700)); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(221,180,90,.35), transparent 65%); }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 10px; position: relative; z-index: 1; }
.cta-band .hero-cta { margin: 0; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-950); color: rgba(255,255,255,.7); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; font-weight: 600; }
.site-footer ul { display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 340px; }
.footer-brand .brand-hi { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--gold-500); color: var(--emerald-950); }
.footer-bottom { margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Floating & mobile dock ---------- */
.fab-whatsapp { position: fixed; right: 20px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); transition: transform .25s var(--ease); }
.fab-whatsapp:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 26px; bottom: 96px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--emerald-800); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

.mobile-dock { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ==========================================================================
   Portal pages (register / dashboard / admin)
   ========================================================================== */
.portal-body { background: var(--sand-100); min-height: 100vh; }
.portal-hero { background: var(--emerald-900); color: #fff; padding: 48px 0 110px; position: relative; overflow: hidden; }
.portal-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 80px solid rgba(221,180,90,.07); }
.portal-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 500; }
.portal-hero p { color: rgba(255,255,255,.75); margin-top: 10px; max-width: 640px; }
.portal-main { margin-top: -72px; padding-bottom: 80px; position: relative; z-index: 2; }

.auth-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px; background: var(--sand-100); margin-bottom: 26px; }
.auth-tab { padding: 12px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 14.5px; color: var(--ink-500); transition: all .25s; }
.auth-tab.active { background: var(--surface); color: var(--emerald-900); box-shadow: var(--shadow-sm); }

.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.stepper-item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.stepper-item:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; transition: background .3s; }
.stepper-item.done:not(:last-child)::after { background: var(--emerald-600); }
.stepper-dot { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-500); transition: all .3s; }
.stepper-item.active .stepper-dot { border-color: var(--emerald-700); color: var(--emerald-800); box-shadow: 0 0 0 4px rgba(28,114,85,.12); }
.stepper-item.done .stepper-dot { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.stepper-label { font-size: 13px; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.stepper-item.active .stepper-label { color: var(--emerald-900); }

.form-step { display: none; animation: stepIn .4s var(--ease); }
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.form-step h2 { font-size: 1.5rem; color: var(--emerald-900); }
.form-step > p { color: var(--ink-500); margin: 6px 0 22px; font-size: 14.5px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review-grid div { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-grid div:nth-child(odd) { background: var(--sand-50); }
.review-grid small { display: block; color: var(--ink-500); font-size: 12px; }
.review-grid strong { font-weight: 600; word-break: break-word; }

.fee-box { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--emerald-50); border: 1px solid var(--emerald-100); }
.fee-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.fee-row.total { border-top: 1px dashed var(--emerald-600); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 16px; color: var(--emerald-900); }

.info-panel { position: sticky; top: 24px; display: grid; gap: 16px; }
.info-panel .card { padding: 24px; }
.info-panel h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.info-panel h3 i { color: var(--gold-600); }
.info-panel li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-700); padding: 6px 0; }
.info-panel li i { color: var(--success); margin-top: 5px; font-size: 12px; }

.success-panel { text-align: center; padding: 20px 0; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-100); color: var(--emerald-700); font-size: 36px; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.reg-id { display: inline-block; margin: 16px 0; padding: 12px 22px; border-radius: 14px; background: var(--sand-100); border: 2px dashed var(--gold-500); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.35rem; font-weight: 700; color: var(--emerald-900); letter-spacing: .06em; }

/* Dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.dash-user { display: flex; align-items: center; gap: 16px; }
.dash-avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--emerald-950); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; flex: none; }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 20px; }
.status-track { display: grid; gap: 0; margin-top: 8px; }
.track-item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.track-item:last-child { padding-bottom: 0; }
.track-item::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.track-item:last-child::before { display: none; }
.track-item.done::before { background: var(--emerald-600); }
.track-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100); color: var(--ink-300); border: 2px solid var(--line); font-size: 14px; z-index: 1; }
.track-item.done .track-dot { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.track-item.current .track-dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--emerald-950); box-shadow: 0 0 0 5px rgba(200,150,46,.2); }
.track-item.rejected .track-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.track-item strong { display: block; font-size: 15px; }
.track-item span { font-size: 13.5px; color: var(--ink-500); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-submitted { background: #e7effa; color: var(--info); }
.status-review { background: var(--gold-100); color: #8a5d0c; }
.status-approved { background: var(--emerald-100); color: var(--emerald-700); }
.status-rejected { background: #fde8e4; color: var(--danger); }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.kv small { display: block; font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; }
.kv strong { font-weight: 600; font-size: 14.5px; word-break: break-word; }

/* Admin */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.stat-card small { font-size: 12.5px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: var(--emerald-900); line-height: 1.2; margin-top: 4px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 14px; }
.admin-toolbar .input-icon { flex: 1; min-width: 220px; }
.admin-toolbar select { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.data th { text-align: left; padding: 14px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); background: var(--sand-50); border-bottom: 1px solid var(--line); font-weight: 600; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--sand-50); }
table.data .mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--emerald-800); font-weight: 600; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-500); }
.empty-state i { font-size: 40px; color: var(--ink-300); margin-bottom: 12px; }

.modal { position: fixed; inset: 0; z-index: 350; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(6,35,26,.55); }
.modal.open { display: flex; animation: fadeIn .2s; }
.modal-panel { width: min(720px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.modal-head { position: sticky; top: 0; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-head h3 { font-size: 1.3rem; color: var(--emerald-900); }
.modal-body { padding: 24px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 16px 24px 24px; }

.portal-topbar { background: var(--emerald-950); }
.portal-topbar .container { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 16px; }
.portal-topbar .brand-hi { color: #fff; }
.portal-topbar a.back { color: rgba(255,255,255,.8); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.portal-topbar a.back:hover { color: var(--gold-400); }

/* Printable receipt */
.receipt { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .primary-nav > a.hide-lg { display: none; }
  .facilities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .primary-nav, .header-actions .btn-apply-desktop { display: none; }
  .menu-toggle { display: grid; }
  .about-grid, .admission-layout, .notice-layout, .faq-layout, .contact-layout, .auth-wrap, .dash-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .toppers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admission-card, .info-panel { position: static; }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; padding-bottom: 72px; }
  .utility-bar .utility-codes, .utility-bar .hide-sm { display: none; }
  .utility-bar .container { justify-content: center; }
  .brand-crest { width: 42px; height: 42px; }
  .brand-hi { font-size: 15.5px; }
  .brand-en { font-size: 10px; letter-spacing: .1em; }
  .header-actions { gap: 8px; }
  .header-actions .icon-btn { width: 42px; height: 42px; }

  .hero { min-height: auto; padding-top: 56px; }
  .hero-pill { font-size: 12.5px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta div { padding: 14px 16px; }
  .hero-cta .btn { flex: 1 1 100%; }

  .pillars, .leaders, .life-grid, .facilities, .contact-form-wrap, .downloads { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr 1fr; gap: 12px; }
  .facility { padding: 18px; }
  .facility p { display: none; }
  .fact-list { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .about-badge { right: 12px; bottom: 16px; padding: 16px 18px; }
  .about-badge strong { font-size: 2.2rem; }
  .about-thumb { display: none; }
  .life-card { min-height: 280px; }
  .notice { grid-template-columns: 56px 1fr; gap: 14px; padding: 14px; }
  .notice > .btn, .notice > a.dl { grid-column: 1 / -1; }
  .notice-date strong { font-size: 1.25rem; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-item figcaption { opacity: 1; transform: none; font-size: 12px; padding: 24px 10px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .map-shell { min-height: 420px; border-radius: var(--radius-lg); }
  .form-grid, .review-grid, .kv { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .stepper-label { display: none; }
  .stat-cards { gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card strong { font-size: 1.8rem; }
  .form-nav .btn { flex: 1; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; }

  .fab-whatsapp { bottom: 86px; right: 16px; width: 52px; height: 52px; font-size: 24px; }
  .to-top { display: none; }

  .mobile-dock {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--ink-500); border-radius: 12px; }
  .mobile-dock a i { font-size: 18px; }
  .mobile-dock a.active, .mobile-dock a:active { color: var(--emerald-800); }
  .mobile-dock a.dock-cta { color: var(--emerald-950); }
  .mobile-dock a.dock-cta i { width: 46px; height: 46px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); box-shadow: 0 8px 18px -6px rgba(168,122,28,.7); border: 4px solid #fff; }
  .portal-body { padding-bottom: 0; }
}

@media (max-width: 380px) {
  .hero-meta strong { font-size: 1.35rem; }
  .facilities { grid-template-columns: 1fr; }
  .toppers { grid-template-columns: 1fr; }
}

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


/* ==========================================================================
   Government theme
   ========================================================================== */
.tricolor { height: 5px; background: linear-gradient(90deg, var(--saffron) 0 33.33%, #fff 33.33% 66.66%, var(--india-green) 66.66%); }
.a11y-tools { display: flex; align-items: center; gap: 4px; }
.a11y-tools button { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 12px; font-weight: 600; }
.a11y-tools button:hover, .a11y-tools button.active { background: var(--gold-500); color: var(--emerald-950); border-color: var(--gold-500); }
.a11y-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 8px; }

.gov-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.gov-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--gold-500) 50%, var(--india-green)); opacity: .9; }
.gov-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 3vw, 32px); padding-block: 18px 20px; }
.gov-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gov-logo img { width: 82px; height: 82px; object-fit: contain; }
.gov-logo span { font-size: 11px; line-height: 1.3; color: var(--ink-500); font-weight: 600; }
.gov-text { text-align: center; min-width: 0; }
.gov-label { display: inline-block; font-family: var(--font-hindi); font-size: 14px; color: var(--navy); font-weight: 600; letter-spacing: .02em; padding: 3px 14px; border-radius: 999px; background: #eef3fb; border: 1px solid #d6e2f5; }
.gov-text h1 { font-family: var(--font-hindi); font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.5rem); color: var(--emerald-900); margin-top: 8px; line-height: 1.2; }
.gov-text .gov-en { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.35rem); color: var(--brick); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gov-text .gov-addr { font-size: 13.5px; color: var(--ink-500); margin-top: 4px; }
.gov-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.gov-badges span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.gov-badges .b1 { background: #fff3e6; color: #a65300; border: 1px solid #ffd9b0; }
.gov-badges .b2 { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.gov-badges .b3 { background: #eef3fb; color: var(--navy); border: 1px solid #d6e2f5; }
.site-header.gov-nav { background: var(--emerald-900); border-bottom: 0; }
.site-header.gov-nav.is-scrolled { background: rgba(10,51,38,.97); }
.gov-nav .primary-nav > a, .gov-nav .nav-drop > button { color: rgba(255,255,255,.88); }
.gov-nav .primary-nav > a:hover, .gov-nav .nav-drop > button:hover, .gov-nav .primary-nav > a.active { color: #fff; background: rgba(255,255,255,.1); }
.gov-nav .brand-hi { color: #fff; }
.gov-nav .brand-en { color: var(--gold-400); }
.gov-nav .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.gov-nav .brand { opacity: 0; pointer-events: none; transition: opacity .3s; }
.gov-nav.is-scrolled .brand { opacity: 1; pointer-events: auto; }
.gov-nav .header-inner { height: 60px; }
.portals-strip { background: #fff; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.portals-strip .container { display: flex; align-items: center; gap: 10px; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.portals-strip .container::-webkit-scrollbar { display: none; }
.portals-strip strong { flex: none; color: var(--brick); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.portals-strip a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-700); font-weight: 500; white-space: nowrap; }
.portals-strip a:hover { border-color: var(--emerald-600); color: var(--emerald-800); }
.portals-strip a img { width: 18px; height: 18px; object-fit: contain; }

.gov-topbar .container { height: 72px; }
.gov-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gov-emblem-sm { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.gov-label-sm { font-size: 11px; color: var(--gold-400); font-weight: 600; letter-spacing: .04em; }
.gov-topbar .brand-hi { font-size: 16px; }

/* High contrast mode */
html.hc { --bg: #fff; --surface-2: #fff; --text: #000; --text-soft: #000; --ink-500: #000; --ink-700: #000; --line: #000; }
html.hc body { background: #fff; }
html.hc .hero::before { background: rgba(0,0,0,.82); }
html.hc a { text-decoration: underline; }

/* ==========================================================================
   Uploads, payment, receipts
   ========================================================================== */
.muted { color: var(--ink-500); }
.muted-label { color: var(--ink-500); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.reg-id-inline { font-family: ui-monospace, Menlo, monospace; font-size: 1.2rem; font-weight: 700; color: var(--emerald-900); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.app-photo { width: 56px; height: 68px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); flex: none; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.upload-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.upload-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box { position: relative; display: flex; align-items: center; justify-content: center; min-height: 74px; padding: 14px 16px; border: 2px dashed var(--sand-200); border-radius: 14px; background: var(--sand-50); cursor: pointer; transition: border-color .2s, background .2s; overflow: hidden; }
.upload-box:hover { border-color: var(--emerald-600); background: #fff; }
.upload-box.has-file { border-style: solid; border-color: var(--emerald-600); background: var(--emerald-50); }
.upload-box.loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23155a43' stroke-width='5' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat; }
.field.invalid .upload-box { border-color: var(--danger); background: #fff8f7; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink-500); }
.upload-empty.row, .upload-done { flex-direction: row; text-align: left; gap: 14px; width: 100%; display: flex; align-items: center; }
.upload-empty i { font-size: 22px; color: var(--emerald-700); }
.upload-empty strong, .upload-done strong { display: block; color: var(--ink-900); font-size: 14px; word-break: break-all; }
.upload-empty small, .upload-done small { display: block; font-size: 12px; color: var(--ink-500); }
.upload-done i { font-size: 22px; color: var(--success); }
.upload-photo { aspect-ratio: 3 / 3.6; min-height: 0; padding: 0; }
.upload-photo img { width: 100%; height: 100%; object-fit: cover; }
.upload-photo .upload-empty i { font-size: 34px; }

.review-photo { grid-column: 1 / -1; padding: 14px 16px !important; background: #fff !important; }
.review-photo img { width: 96px; height: 116px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }

.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pay-amount { text-align: right; }
.pay-amount small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.pay-amount strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--emerald-900); font-weight: 600; line-height: 1.1; }
.pay-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 26px 0 14px; }
.pay-methods { display: grid; gap: 12px; }
.pay-method { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; text-align: left; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: all .2s; }
.pay-method:hover { border-color: var(--emerald-600); box-shadow: var(--shadow-sm); }
.pay-method.active { border-color: var(--emerald-700); background: var(--emerald-50); box-shadow: 0 0 0 3px rgba(28,114,85,.1); }
.pay-method > i { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--emerald-900); color: var(--gold-400); font-size: 20px; }
.pay-method span { flex: 1; min-width: 0; }
.pay-method strong { display: block; font-size: 15.5px; }
.pay-method small { display: block; font-size: 13px; color: var(--ink-500); }
.pay-method .pay-badge { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); }
.pay-method[data-method="demo"] > i { background: var(--sand-200); color: var(--ink-700); }
.pay-panel { margin-top: 16px; padding: 22px; border-radius: 16px; background: var(--sand-50); border: 1px solid var(--line); }
.upi-wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.upi-qr { width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; }
.upi-qr img, .upi-qr canvas { width: 200px !important; height: 200px !important; }
.success-icon.pending { background: var(--gold-100); color: var(--gold-600); }

/* Admin extras */
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.doc-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.doc-links a:hover { border-color: var(--emerald-600); color: var(--emerald-800); }
.admin-photo { width: 110px; height: 132px; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); }

@media (max-width: 1024px) {
  .gov-logo img { width: 64px; height: 64px; }
  .gov-nav .brand { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
  .gov-inner { grid-template-columns: 46px 1fr 46px; gap: 8px; padding-block: 14px; }
  .gov-logo img { width: 46px !important; height: 46px !important; }
  .gov-logo img { width: 52px; height: 52px; }
  .gov-logo span { display: none; }
  .gov-label { font-size: 10px; padding: 2px 8px; letter-spacing: 0; }
  .gov-text .gov-en { letter-spacing: .02em; }
  .gov-text h1 { font-size: 1.25rem; margin-top: 6px; }
  .gov-text .gov-en { font-size: .78rem; }
  .gov-text .gov-addr, .gov-badges .b3 { display: none; }
  .gov-badges { gap: 6px; margin-top: 8px; }
  .gov-badges span { font-size: 10.5px; padding: 3px 7px; }
  .a11y-tools { display: none; }
  .gov-topbar .brand-hi { font-size: 13.5px; white-space: normal; }
  .gov-label-sm { font-size: 10px; }
  .upload-grid, .upload-docs, .upi-wrap { grid-template-columns: 1fr; }
  .upload-photo { width: 170px; margin: 0 auto; }
  .upi-qr { margin: 0 auto; }
  .pay-amount { text-align: left; }
  .pay-method { padding: 14px; gap: 12px; }
  .pay-method .pay-badge { display: none; }
}

/* ==========================================================================
   Print (application form & receipt)
   ========================================================================== */
@media print {
  @page { size: A4; margin: 12mm; }
  body { padding: 0 !important; background: #fff !important; }
  body > *:not(.receipt) { display: none !important; }
  .receipt { display: block !important; font-family: Arial, "Noto Sans Devanagari", sans-serif; color: #000; font-size: 12.5px; }
  .r-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 3px double #000; text-align: center; }
  .r-title { flex: 1; }
  .r-gov { font-size: 12px; font-weight: 700; }
  .r-head h2 { font-family: "Tiro Devanagari Hindi", serif; font-size: 24px; margin: 2px 0; }
  .r-en { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
  .r-small { font-size: 10.5px; margin-top: 2px; }
  .r-doc-title { text-align: center; font-weight: 700; font-size: 14px; margin: 12px 0; padding: 6px; background: #eee !important; border: 1px solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .r-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; line-height: 1.8; }
  .r-photo { width: 110px; height: 135px; border: 1px solid #000; display: grid; place-items: center; font-size: 11px; color: #666; overflow: hidden; }
  .r-photo img { width: 100%; height: 100%; object-fit: cover; }
  .r-paid { border: 3px solid #138808; color: #138808; font-weight: 800; font-size: 22px; padding: 6px 18px; transform: rotate(-8deg); letter-spacing: .1em; }
  .r-mono { font-family: monospace; font-size: 14px; font-weight: 700; }
  .receipt table { width: 100%; border-collapse: collapse; }
  .receipt td, .receipt th { border: 1px solid #555; padding: 6px 9px; vertical-align: top; }
  .receipt td.k { width: 36%; font-weight: 600; background: #f6f6f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .r-decl { margin-top: 12px; font-size: 11.5px; line-height: 1.6; }
  .r-foot { margin-top: 46px; display: flex; justify-content: space-between; font-size: 11.5px; }
  .r-foot span { border-top: 1px solid #000; padding-top: 4px; min-width: 150px; text-align: center; }
  .r-office { margin-top: 18px; padding: 8px; border: 1px dashed #000; font-size: 11.5px; }
}

/* ==========================================================================
   Google sign-in & live content
   ========================================================================== */
.google-auth { text-align: center; max-width: 440px; margin: 0 auto; padding: 12px 0 6px; }
.google-auth-emblem { width: 64px; height: 64px; margin: 0 auto 14px; }
.google-auth h2 { font-size: 1.6rem; color: var(--emerald-900); }
.google-auth > p.muted { margin: 10px 0 24px; font-size: 14.5px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid #dadce0; background: #fff; color: #3c4043; font-weight: 600; font-size: 15px; transition: background .2s, box-shadow .2s; }
.btn-google:hover { background: #f8faff; box-shadow: 0 2px 10px rgba(60,64,67,.15); }
.btn-google[disabled] { opacity: .55; pointer-events: none; }
.leader-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(221,180,90,.18); }
.leader-name { margin-top: 10px; }
.topper-photo { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-400); }
.notice-body { font-size: 13.5px; color: var(--ink-500); margin: 4px 0 6px; white-space: pre-line; }
.muted-on-dark { color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .leader-photo { width: 72px; height: 72px; } }

/* English-first headings */
.gov-text h1.gov-title-en { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.gov-text .gov-en { font-family: var(--font-hindi); text-transform: none; letter-spacing: 0; font-weight: 400; }
.brand-hi.brand-en-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }

.gis-btn { display: flex; justify-content: center; min-height: 44px; align-items: center; }
.header-actions a.icon-btn { overflow: hidden; }
