/* ============================================================================
   Gopal ji Mahavidyalaya — Public Website
   Design system: deep maroon + warm gold on cream/ivory.
   Editorial typography: Playfair Display (display) + Inter (text).
   ========================================================================= */

:root {
  /* Brand */
  --maroon-50:  #fdf3f3;
  --maroon-100: #f6dada;
  --maroon-200: #ecb5b9;
  --maroon-300: #db8089;
  --maroon-400: #c45460;
  --maroon-500: #9c2a37;
  --maroon-600: #7a1f2b;
  --maroon-700: #5d1822;
  --maroon-800: #41121a;
  --maroon-900: #270b10;

  --gold-50:  #fbf6e8;
  --gold-100: #f4e6b4;
  --gold-200: #ead07a;
  --gold-300: #dbb747;
  --gold-400: #c89b3c;
  --gold-500: #a8802a;
  --gold-600: #826320;

  /* Neutrals */
  --ink:        #161217;
  --ink-soft:   #2a2329;
  --ink-mute:   #5e555c;
  --line:       #e7dfd7;
  --line-soft:  #f0eae3;
  --cream:      #fbf8f3;
  --cream-deep: #f4ecdf;
  --paper:      #ffffff;
  --shadow-1: 0 1px 2px rgba(35, 20, 25, .06), 0 1px 3px rgba(35, 20, 25, .04);
  --shadow-2: 0 4px 12px rgba(35, 20, 25, .08), 0 2px 4px rgba(35, 20, 25, .04);
  --shadow-3: 0 24px 56px rgba(35, 20, 25, .14), 0 6px 16px rgba(35, 20, 25, .08);

  --ok:   #157f4d;
  --warn: #b25a00;
  --err:  #b3271d;

  /* System */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max:       1180px;
  --max-tight: 920px;
  --max-text:  720px;

  --font-display: "Playfair Display", "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
  --font-deva:    "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Mukta", serif;

  --header-h: 76px;
}

/* ----------------------------- Reset & base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--maroon-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--maroon-700); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--maroon-600); color: #fff; padding: 10px 14px; z-index: 1000; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* container helpers */
.wrap   { max-width: var(--max);       margin: 0 auto; padding: 0 28px; }
.wrap-t { max-width: var(--max-tight); margin: 0 auto; padding: 0 28px; }
.wrap-x { max-width: var(--max-text);  margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--maroon-600); padding: 6px 10px; border: 1px solid var(--maroon-200);
  border-radius: 100px; background: var(--maroon-50);
}
.eyebrow.gold { color: var(--gold-600); border-color: var(--gold-200); background: var(--gold-50); }
.eyebrow.dark { color: var(--gold-200); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }

.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.center { text-align: center; }

/* ----------------------------- Top utility bar ----------------------------- */
.utilbar {
  background: var(--maroon-700);
  color: #f3e6d5;
  font-size: 13px;
}
.utilbar .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; gap: 18px; flex-wrap: wrap;
}
.utilbar a { color: #f3e6d5; }
.utilbar a:hover { color: #fff; }
.utilbar .left, .utilbar .right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.utilbar .dot::before { content: "·"; margin-right: 14px; color: rgba(255,255,255,.35); }

/* ----------------------------- Header / nav ----------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand .crest { width: 46px; height: 46px; flex: 0 0 auto; }
.brand .bn {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: .01em; line-height: 1.05;
}
.brand .bn small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--maroon-600); margin-top: 3px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 14.5px;
  padding: 10px 12px; border-radius: 8px;
  position: relative;
}
.nav-links a:hover { color: var(--maroon-700); background: var(--maroon-50); }
.nav-links a.active { color: var(--maroon-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--gold-400); border-radius: 2px;
}
.nav-cta {
  display: flex; gap: 8px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px; padding: 11px 18px;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-family: inherit; text-decoration: none;
}
.btn.primary { background: var(--maroon-600); color: #fff; }
.btn.primary:hover { background: var(--maroon-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.gold { background: var(--gold-400); color: #2c1d09; }
.btn.gold:hover { background: var(--gold-500); color: #1d1306; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper); border-color: var(--ink-mute); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn.lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* mobile menu toggle */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ----- Inline Hindi hints (English stays primary, Hindi shown below) ----- */
.hi-hint {
  font-family: var(--font-deva), "Tiro Devanagari Hindi", "Mukta", serif;
  color: var(--maroon-700);
  font-weight: 400;
  line-height: 1.45;
  display: block;
}
/* Inline appendage on eyebrows (small uppercase tags) */
.hi-hint-inline {
  display: inline;
  font-family: var(--font-deva), "Tiro Devanagari Hindi", "Mukta", serif;
  color: var(--maroon-600);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 4px;
  font-size: 12.5px;
  opacity: 0.85;
}
.hero-eyebrow .hi-hint-inline { color: var(--gold-200); opacity: 0.9; }

/* Below H1 (hero / page header) */
.hi-hint-block {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  margin: -10px 0 22px;
  color: var(--maroon-700);
  font-style: normal;
  font-weight: 500;
}
.hero .hi-hint-block,
.page-header .hi-hint-block {
  color: #f3d99a;
  opacity: 0.92;
}

/* Below H2 (section headings) */
.section-head h2 + .hi-hint-block {
  font-size: 1.05rem;
  text-align: center;
  margin: -16px auto 16px;
  max-width: 640px;
  color: var(--maroon-600);
  opacity: 0.9;
}
.cta-banner h2 + .hi-hint-block { color: #f3d99a; text-align: left; opacity: 0.85; }

/* Below section-head <p> (already a description) */
.hi-hint-para {
  margin: -14px auto 24px;
  text-align: center;
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--ink-mute);
  opacity: 0.85;
}
.hero .hi-hint-para,
.page-header .hi-hint-para {
  text-align: left;
  color: rgba(255, 220, 170, 0.85);
  max-width: 540px;
  margin: -18px 0 28px;
  font-size: 1rem;
}

/* Below feature cards' h4 */
.feature .hi-hint-feature {
  font-size: 0.92rem;
  margin: -6px 0 6px;
  color: var(--maroon-600);
  opacity: 0.85;
  font-weight: 500;
}

/* Below stat labels */
.hi-hint-stat {
  font-size: 11px;
  color: var(--maroon-600);
  opacity: 0.8;
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}
.hero-art .stat + .hi-hint-stat,
.hero-art .hi-hint-stat { color: var(--gold-200); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, var(--maroon-500) 0%, var(--maroon-700) 45%, var(--maroon-900) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 10vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,224,160,.18), transparent 30%),
    radial-gradient(circle at 92% 80%, rgba(255,180,180,.14), transparent 35%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-200);
  padding: 7px 14px; border: 1px solid rgba(232,205,128,.4); border-radius: 100px;
  background: rgba(232,205,128,.08);
  margin-bottom: 22px; font-weight: 600;
}
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold-300); font-style: italic; }
.hero .deva {
  font-family: var(--font-deva); color: #f4d99a; font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin: -6px 0 18px; opacity: .92; line-height: 1.5;
}
.hero .lede { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 32px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero illustration card */
.hero-art {
  position: relative; aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #fbf8f3 0%, #f0e2c8 100%);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-3);
}
.hero-art .badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold-400); color: #2c1d09;
  border-radius: 100px; padding: 9px 16px; font-weight: 700;
  font-size: 12.5px; letter-spacing: .04em; box-shadow: var(--shadow-2);
  z-index: 3;
}
.hero-art .frame {
  background: var(--maroon-700); border-radius: var(--radius-lg);
  height: 100%; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #f3e6d5;
  position: relative; overflow: hidden;
}
.hero-art .frame::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(232,205,128,.22), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.05), transparent 40%);
}
.hero-art .frame-top { position: relative; z-index: 2; }
.hero-art .frame-top .est { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-200); }
.hero-art .frame-top h3 { color: #fff; font-size: 1.45rem; margin-top: 4px; line-height: 1.25; }
.hero-art .frame-mid { position: relative; z-index: 2; padding: 8px 0; }
.hero-art .frame-mid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-art .frame-mid li { color: #f3e6d5; font-size: 14px; padding-left: 24px; position: relative; line-height: 1.45; }
.hero-art .frame-mid li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 100px;
  background: var(--gold-400); color: var(--maroon-800);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.hero-art .frame-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-art .stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; }
.hero-art .stat .n { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-200); line-height: 1.1; }
.hero-art .stat .l { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
.hero-art .crest-bg {
  position: absolute; right: -20px; bottom: -20px; width: 200px; opacity: .12; z-index: 1; pointer-events: none;
}

/* ----------------------------- Sections ----------------------------- */
.section {
  padding: clamp(64px, 8vw, 110px) 0;
}
.section.alt    { background: var(--paper); }
.section.cream  { background: var(--cream-deep); }
.section.dark   { background: var(--ink); color: #f3e6d5; }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark .muted { color: rgba(255,255,255,.65); }

.section-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255,255,255,.7); }

/* ----------------------------- Stats strip ----------------------------- */
.stats-strip {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  margin-top: -1px;
}
.stats-strip .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center;
}
.stats-strip .stat .n {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--maroon-700); line-height: 1; font-weight: 700;
}
.stats-strip .stat .l {
  margin-top: 8px; color: var(--ink-mute); font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}

/* ----------------------------- Course cards ----------------------------- */
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.course-card {
  position: relative;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--maroon-200); }
.course-card .tag {
  display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-600); margin-bottom: 14px;
}
.course-card h3 {
  font-size: 1.45rem; color: var(--maroon-700); margin-bottom: 6px;
}
.course-card .terms { color: var(--ink-mute); font-size: 14px; }
.course-card .desc { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; }
.course-card .fee {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.course-card .fee .amt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.course-card .fee .lbl { color: var(--ink-mute); font-size: 12.5px; }
.course-card .fee.req .amt { font-size: 1.1rem; color: var(--maroon-600); font-family: var(--font-body); font-weight: 600; }
.course-card .more {
  margin-top: 18px; font-size: 14px; font-weight: 600;
  color: var(--maroon-600); display: inline-flex; gap: 6px; align-items: center;
}

/* ----------------------------- Two-col / split ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.tight { gap: 36px; }
.split .pic {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--maroon-700);
  box-shadow: var(--shadow-2);
  position: relative;
}

/* ----------------------------- Feature grid ----------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.feature {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature .ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--maroon-50); color: var(--maroon-600);
  display: grid; place-items: center;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h4 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.feature.gold .ico { background: var(--gold-50); color: var(--gold-600); }

/* ----------------------------- Notice list ----------------------------- */
.notice-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.notice-item {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--maroon-500);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
}
.notice-item .date {
  text-align: center; color: var(--maroon-600);
  border-right: 1px dashed var(--line); padding-right: 18px;
}
.notice-item .date .d { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.notice-item .date .m { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.notice-item h4 { margin: 0; font-family: var(--font-body); font-size: 15.5px; font-weight: 600; }
.notice-item p { margin: 4px 0 0; color: var(--ink-mute); font-size: 13.5px; }
.notice-item .pill { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }

/* ----------------------------- Testimonials ----------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.testimonial::before {
  content: "“"; position: absolute; top: -18px; left: 18px;
  font-family: var(--font-display); font-size: 80px; color: var(--gold-300); line-height: 1;
}
.testimonial p { color: var(--ink-soft); font-size: 15px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .who .avi {
  width: 40px; height: 40px; border-radius: 100px; background: var(--maroon-100); color: var(--maroon-700);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-display);
}
.testimonial .who .n { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.testimonial .who .r { color: var(--ink-mute); font-size: 12.5px; }

/* ----------------------------- CTA banner ----------------------------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--maroon-700) 0%, var(--maroon-900) 100%);
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px); overflow: hidden;
  box-shadow: var(--shadow-3);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 100%, rgba(232,205,128,.22), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 540px; margin-bottom: 24px; }
.cta-banner .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .cta .btn.primary { background: var(--gold-400); color: #2c1d09; }
.cta-banner .cta .btn.primary:hover { background: var(--gold-300); color: #2c1d09; }

/* ----------------------------- Form ----------------------------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow-2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-grid input, .form-grid select, .form-grid textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: var(--paper); color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--maroon-500); box-shadow: 0 0 0 3px var(--maroon-50);
}
.form-grid textarea { resize: vertical; min-height: 90px; }
.form .btn { margin-top: 22px; width: 100%; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { text-align: center; margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form-msg.ok  { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ----------------------------- Faculty / leadership cards ----------------------------- */
.person-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.person .avi {
  width: 80px; height: 80px; border-radius: 100px;
  background: linear-gradient(135deg, var(--maroon-100), var(--gold-100));
  color: var(--maroon-700);
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; margin: 0 auto 14px;
}
.person h4 { margin: 0 0 4px; font-size: 1.05rem; }
.person .role { color: var(--maroon-600); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.person .meta { color: var(--ink-mute); font-size: 13px; margin-top: 6px; }

/* ----------------------------- Page header (subpages) ----------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--maroon-700) 0%, var(--maroon-900) 100%);
  color: #fff; padding: clamp(50px, 7vw, 96px) 0 clamp(46px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,205,128,.18), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,200,200,.12), transparent 35%);
}
.page-header::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.section.alt + .page-header::after,
.page-header.cream-after::after { background: linear-gradient(to bottom, transparent, var(--paper)); }
.page-header .wrap { position: relative; z-index: 2; }
.page-header .crumbs {
  font-size: 13.5px; color: rgba(255,255,255,.7);
  display: flex; gap: 8px; align-items: center; margin-bottom: 18px;
}
.page-header .crumbs a { color: rgba(255,255,255,.7); }
.page-header .crumbs a:hover { color: #fff; }
.page-header .crumbs .sep { color: rgba(255,255,255,.4); }
.page-header h1 { color: #fff; max-width: 800px; }
.page-header p { color: rgba(255,255,255,.78); max-width: 640px; font-size: 1.1rem; }

/* ----------------------------- Tabs ----------------------------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs button {
  border: 0; background: transparent; padding: 12px 18px;
  font-weight: 600; font-size: 14.5px; color: var(--ink-mute);
  border-bottom: 2px solid transparent;
}
.tabs button.on { color: var(--maroon-700); border-color: var(--maroon-600); }

/* ----------------------------- Gallery ----------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-grid .tile {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--maroon-100), var(--gold-100));
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  color: var(--maroon-700); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-align: center; padding: 14px;
  border: 1px solid var(--line);
}
.gallery-grid .tile:nth-child(3n)   { background: linear-gradient(135deg, var(--gold-100), var(--maroon-100)); }
.gallery-grid .tile:nth-child(5n+1) { background: linear-gradient(135deg, var(--cream-deep), var(--maroon-100)); }
.gallery-grid .tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 50%);
  pointer-events: none;
}

/* ----------------------------- FAQ ----------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 16px 22px; margin-bottom: 10px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.faq details[open] { border-color: var(--maroon-300); box-shadow: var(--shadow-1); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  outline: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--maroon-600); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ----------------------------- Timeline ----------------------------- */
.timeline { position: relative; padding-left: 28px; max-width: 720px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(to bottom, var(--gold-400), var(--maroon-500));
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 18px; height: 18px;
  border-radius: 100px; background: var(--gold-400); border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--maroon-500);
}
.timeline-item .yr { color: var(--maroon-700); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.timeline-item h4 { margin: 4px 0 6px; font-family: var(--font-body); font-size: 15.5px; }
.timeline-item p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ----------------------------- Contact info card ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { display: grid; gap: 14px; }
.contact-info .row {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-info .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--maroon-50); color: var(--maroon-700);
  display: grid; place-items: center;
}
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }
.contact-info .val { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.contact-info a { color: var(--ink); }
.contact-info a:hover { color: var(--maroon-700); }
.map-frame {
  width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

/* ----------------------------- Footer ----------------------------- */
.footer {
  background: var(--ink); color: #d9cdc1;
  padding: 64px 0 24px;
  border-top: 4px solid var(--gold-400);
}
.footer .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.footer h5 {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200);
  margin: 0 0 14px;
}
.footer a { color: #d9cdc1; display: block; padding: 4px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .about-col p { font-size: 14.5px; line-height: 1.6; color: #b9aea2; max-width: 320px; margin-top: 8px; }
.footer .about-col .brand .bn { color: #fff; }
.footer .about-col .brand .bn small { color: var(--gold-200); }
.footer .crest { background: rgba(255,255,255,.04); border-radius: 12px; padding: 4px; }
.footer .social { display: flex; gap: 10px; margin-top: 14px; }
.footer .social a {
  width: 38px; height: 38px; border-radius: 100px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; padding: 0;
}
.footer .social a:hover { background: var(--maroon-700); border-color: var(--maroon-500); }
.footer .social svg { width: 18px; height: 18px; }
.copy {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: #8e8478; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ----------------------------- Floating action buttons ----------------------------- */
.fab-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.whatsapp-fab, .phone-fab {
  width: 56px; height: 56px; border-radius: 100px;
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
  color: #fff;
}
.whatsapp-fab { background: #25d366; box-shadow: 0 12px 32px rgba(37,211,102,.4); }
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.05); color: #fff; }
.phone-fab { background: var(--maroon-600); box-shadow: 0 12px 32px rgba(122,31,43,.4); }
.phone-fab:hover { transform: translateY(-2px) scale(1.05); color: #fff; background: var(--maroon-700); }
.whatsapp-fab svg, .phone-fab svg { width: 28px; height: 28px; }
.whatsapp-fab .pulse, .phone-fab .pulse {
  position: absolute; inset: 0; border-radius: 100px;
  border: 2px solid currentColor; opacity: 0.6;
  animation: gjm-pulse 2.2s ease-out infinite;
}
@keyframes gjm-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-fab .pulse, .phone-fab .pulse { display: none; } }

/* ----------------------------- Welcome contact popup ----------------------------- */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(38, 11, 16, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.popup-backdrop.show { opacity: 1; pointer-events: auto; }
.popup-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  max-width: 460px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.popup-backdrop.show .popup-card { transform: translateY(0) scale(1); }
.popup-head {
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  color: #fff; padding: 28px 28px 22px; text-align: center;
  position: relative;
}
.popup-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(232,205,128,.22), transparent 50%);
  pointer-events: none;
}
.popup-head .crest { width: 56px; height: 56px; margin: 0 auto 12px; display: block; position: relative; z-index: 2; }
.popup-head .eyebrow { background: var(--gold-400); color: #2c1d09; border: 0; margin-bottom: 12px; position: relative; z-index: 2; }
.popup-head h2 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; position: relative; z-index: 2; }
.popup-head .deva { font-family: var(--font-deva); color: #f4d99a; font-size: 14px; margin: 0; position: relative; z-index: 2; }
.popup-body { padding: 22px 22px 24px; }
.popup-body .lead { text-align: center; font-size: 14.5px; margin: 0 0 18px; color: var(--ink-soft); }
.popup-actions { display: grid; gap: 10px; }
.popup-action {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.popup-action:hover { transform: translateY(-1px); border-color: var(--maroon-300); box-shadow: var(--shadow-1); color: var(--ink); }
.popup-action .ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 100px;
  display: grid; place-items: center; color: #fff;
}
.popup-action .ico.call { background: var(--maroon-600); }
.popup-action .ico.wa   { background: #25d366; }
.popup-action .ico.mail { background: var(--gold-500); }
.popup-action .ico.app  { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #2c1d09; }
.popup-action .ico svg { width: 20px; height: 20px; }
.popup-action .meta b { display: block; font-size: 14.5px; line-height: 1.2; }
.popup-action .meta small { font-size: 12.5px; color: var(--ink-mute); }
.popup-action.primary {
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-800));
  color: #fff; border-color: transparent;
}
.popup-action.primary:hover { color: #fff; }
.popup-action.primary .meta small { color: rgba(255,255,255,0.8); }
.popup-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 32px; height: 32px; border: 0; border-radius: 100px;
  background: rgba(255,255,255,0.18); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .12s ease;
}
.popup-close:hover { background: rgba(255,255,255,0.32); }
.popup-foot { text-align: center; padding: 14px 20px 20px; font-size: 12.5px; color: var(--ink-mute); }
.popup-foot a { font-weight: 600; }

@media (max-width: 480px) {
  .popup-card { max-width: none; }
  .popup-head { padding: 22px 22px 18px; }
  .popup-head h2 { font-size: 1.2rem; }
  .popup-body { padding: 18px 16px 20px; }
  .popup-action { padding: 12px 14px; gap: 12px; }
  .popup-action .ico { width: 38px; height: 38px; }
}

/* ----------------------------- Inline content blocks ----------------------------- */
.prose { max-width: var(--max-text); margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { color: var(--ink-soft); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--gold-400); background: var(--cream-deep);
  padding: 18px 22px; margin: 1.4em 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  color: var(--maroon-700);
}

.kv {
  display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.kv dt { font-weight: 600; color: var(--ink-mute); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--ink); }

.callout {
  background: var(--cream-deep); border: 1px solid var(--gold-200); border-radius: var(--radius);
  padding: 18px 22px;
}
.callout.maroon { background: var(--maroon-50); border-color: var(--maroon-200); }
.callout h4 { margin: 0 0 8px; font-family: var(--font-body); }
.callout p { margin: 0; color: var(--ink-soft); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 100px;
  background: var(--maroon-600); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tbl thead th { background: var(--cream-deep); color: var(--ink); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.tbl tbody tr:hover { background: var(--cream); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----------------------------- Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 10px 9px; font-size: 14px; }
  .brand .bn { font-size: 1rem; }
  .brand .bn small { font-size: 10.5px; letter-spacing: .1em; }
}
@media (max-width: 1060px) {
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 14px; border-radius: 8px; font-size: 15.5px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--maroon-50); color: var(--maroon-700); }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 760px) {
  .nav-cta .btn:not(.primary):not(.nav-toggle) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .footer .grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .notice-item { grid-template-columns: 72px 1fr; }
  .notice-item .pill { display: none; }
  .utilbar { font-size: 12px; }
  .utilbar .left .dot { display: none; }
  .utilbar .right { display: none; }
  .whatsapp-fab { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .brand .bn small { display: none; }
}
@media (max-width: 480px) {
  .stats-strip .grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn { padding: 9px 13px; font-size: 13px; }
  .hero { padding: 50px 0 70px; }
  .section { padding: 56px 0; }
}

/* print */
@media print {
  .nav, .footer, .utilbar, .whatsapp-fab, .cta-banner { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
}
