/* =====================================================================
   GITP Council – base stylesheet (shared by every page; public pages also load public.css)
   Palette taken from the council seal: navy field, crimson band, gold.
   ===================================================================== */
:root {
  --navy: #0e2148;
  --navy-deep: #08142e;
  --navy-soft: #1f3566;
  --crimson: #7a1b2c;
  --crimson-deep: #5c1220;
  --gold: #b8892b;
  --gold-bright: #d9b25a;
  --gold-pale: #f4ead2;
  --paper: #f8f5ee;
  --white: #ffffff;
  --ink: #1b2033;
  --muted: #5b6276;
  --line: #dde1ea;
  --ok: #1e7a46;
  --warn: #9a6a00;
  --bad: #b3261e;

  --f-display: "Libre Baskerville", "Baskerville", Georgia, serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-tamil: "Noto Sans Tamil", "Latha", "Nirmala UI", sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(20, 32, 74, .08), 0 8px 24px rgba(20, 32, 74, .06);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
.lang-ta body, .lang-ta .btn, .lang-ta input, .lang-ta select, .lang-ta textarea { font-family: var(--f-tamil), var(--f-body); }
.lang-ta h1, .lang-ta h2, .lang-ta h3 { font-family: var(--f-tamil), var(--f-display); letter-spacing: 0; }
.lang-ta h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.3; }

img { max-width: 100%; height: auto; }
a { color: var(--crimson); text-underline-offset: 3px; }
a:hover { color: var(--crimson-deep); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); margin-top: 28px; max-width: 70ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--f-body); padding: 12px 22px; border-radius: var(--r-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn.sm { padding: 8px 14px; font-size: .92rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn-crimson { background: var(--crimson); color: #fff; }
.btn-crimson:hover { background: var(--crimson-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(228,190,90,.6); padding: 8px 14px; font-size: .95rem; }
.btn-ghost-light:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #17733e; color: #fff; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.link { font-weight: 600; }

/* ---------- announcement + header ---------- */
.announce { background: var(--gold); color: var(--navy-deep); font-size: .95rem; font-weight: 600; padding: 8px 0; text-align: center; }
.announce a { color: var(--navy-deep); }
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 700 1.3rem/1 var(--f-display); color: var(--gold-bright); letter-spacing: .01em; }
.brand-sub { font-size: .78rem; color: #cfd6ea; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: #e6eaf5; text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: .98rem; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.account { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.lang-toggle {
  font: 600 .95rem var(--f-tamil), var(--f-body); color: var(--gold-bright); background: transparent;
  border: 1px solid rgba(228,190,90,.45); border-radius: var(--r-sm); padding: 7px 12px; cursor: pointer; margin-left: 6px;
}
.lang-toggle:hover { background: rgba(228,190,90,.12); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-deep); flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    border-bottom: 3px solid var(--gold);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 6px; }
  .lang-toggle { margin: 8px 0 0; align-self: flex-start; }
  .account { margin: 10px 0 0; }
  .brand-sub { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(200,153,46,.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 56px 0 0; position: relative; overflow: hidden;
}
.hero::after { /* crimson band, echoing the lower half of the seal */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: var(--crimson); z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-motto { color: var(--gold-bright); font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; line-height: 1.04;
  margin-bottom: 20px; max-width: 14ch; letter-spacing: -.01em;
}
.hero .lede { font-size: 1.15rem; color: #d6dcef; max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; color: #cfd6ea; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(228,190,90,.25); }
.hero-seal { display: flex; justify-content: center; }
.hero-seal img { width: min(420px, 100%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

.pathway {
  list-style: none; margin: 48px 0 0; padding: 26px 28px 30px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); color: var(--ink);
  border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--shadow); position: relative;
}
.pathway::before { /* the gold track */
  content: ""; position: absolute; left: 52px; right: 52px; top: 44px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
.pathway li { position: relative; padding: 0 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.pathway .node {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-bright);
  display: grid; place-items: center; font: 700 1.1rem var(--f-display); border: 3px solid var(--gold);
  position: relative; z-index: 1; margin-bottom: 10px;
}
.pathway li:nth-child(3) .node { background: var(--crimson); color: #fff; }
.pathway strong { font: 700 1.2rem var(--f-display); color: var(--navy); }
.pathway span:not(.node) { color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-seal { order: -1; }
  .hero-seal img { width: 200px; }
  .pathway { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .pathway::before { display: none; }
}
@media (max-width: 520px) { .pathway { grid-template-columns: 1fr; } .hero h1 { max-width: none; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.prose p { max-width: 68ch; }

/* ---------- programmes ---------- */
.prog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 3px solid var(--navy); max-width: 820px; }
.prog-tabs [role=tab] {
  text-align: left; background: var(--paper); border: 0; padding: 16px 20px; cursor: pointer;
  display: flex; flex-direction: column; border-radius: var(--r-md) var(--r-md) 0 0; margin-right: 6px; color: var(--ink);
}
.prog-tabs [role=tab][aria-selected=true] { background: var(--navy); color: #fff; }
.prog-tabs [data-prog=GITP][aria-selected=true] { background: var(--crimson); }
.tab-code { font: 700 1.7rem/1 var(--f-display); color: inherit; }
.prog-tabs [aria-selected=true] .tab-code { color: var(--gold-bright); }
.tab-name { font-size: .95rem; margin-top: 4px; opacity: .9; }
.prog-panel { padding-top: 36px; }
.prog-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.prog-level { font-weight: 700; color: var(--crimson); margin-bottom: 4px; }
.prog-side h3 { font-size: 1.7rem; }
.prog-side .code { color: var(--gold); }
.prog-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; padding: 18px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prog-facts div { display: flex; flex-direction: column; }
.prog-facts dt { font-size: .85rem; color: var(--muted); }
.prog-facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.prog-facts div:nth-child(3), .prog-facts div:nth-child(4) { grid-column: span 2; }
.prog-facts div:nth-child(4) { grid-column: span 2; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--crimson); border-bottom: 3px solid var(--crimson); transform: rotate(-45deg);
}
.prog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--shadow); }
.syllabus table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 520px; }
.syllabus caption { text-align: left; font: 700 1.2rem var(--f-display); color: #fff; background: var(--navy); padding: 14px 18px; }
.is-gitp .syllabus caption { background: var(--crimson); }
.syllabus th, .syllabus td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.syllabus thead th { background: var(--gold-pale); color: var(--navy); font-size: .9rem; }
.syllabus tbody th { color: var(--navy); font-family: var(--f-display); font-size: 1.05rem; white-space: nowrap; }
.syllabus .mod-title { font-weight: 700; }
.syllabus td ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.syllabus .num { text-align: right; font-variant-numeric: tabular-nums; }
.syllabus tfoot th, .syllabus tfoot td { background: var(--navy); color: #fff; font-weight: 700; border: 0; }
.is-gitp .syllabus tfoot th, .is-gitp .syllabus tfoot td { background: var(--crimson-deep); }
@media (max-width: 960px) { .prog-grid { grid-template-columns: 1fr; } }

/* ---------- model ---------- */
.model-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.model-steps li { padding: 22px 20px 22px 0; border-top: 3px solid var(--navy); display: flex; flex-direction: column; gap: 6px; }
.model-steps li:last-child { border-top-color: var(--crimson); }
.step-n { font: 700 2.2rem/1 var(--f-display); color: var(--gold); }
.model-steps strong { font-family: var(--f-display); font-size: 1.15rem; color: var(--navy); line-height: 1.25; }
.model-steps span:last-child { color: var(--muted); font-size: .95rem; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { background: var(--white); padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); display: flex; flex-direction: column; }
.facts strong { color: var(--navy); }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .model-steps { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .model-steps, .facts { grid-template-columns: 1fr; } }

/* ---------- simulators ---------- */
.sim-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: 600 .95rem var(--f-body); padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sim-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.sim-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.sim-screen {
  height: 108px; background:
    linear-gradient(180deg, #0b3d59 0 26px, transparent 26px),
    repeating-linear-gradient(180deg, transparent 0 14px, #e9edf4 14px 15px),
    #f7f9fc;
  position: relative; border-bottom: 3px solid var(--gold);
}
.sim-screen .bar { position: absolute; left: 10px; top: 9px; display: flex; gap: 5px; }
.sim-screen .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.sim-chap { position: absolute; left: 14px; bottom: 12px; font: 700 1.6rem var(--f-display); color: var(--navy); }
.sim-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sim-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.sim-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.live { background: #e3f3ea; color: var(--ok); }
.badge.soon { background: #eef0f5; color: var(--muted); }
.badge.done { background: var(--gold-pale); color: #7a5a10; }
.badge.pending { background: #fff3d6; color: var(--warn); }
.badge.bad { background: #fde7e5; color: var(--bad); }
.sim-chapters { display: flex; flex-direction: column; gap: 10px; }
.chapter { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.chapter summary {
  list-style: none; cursor: pointer; padding: 14px 18px; display: grid;
  grid-template-columns: 78px 1fr auto 14px; gap: 14px; align-items: baseline;
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--crimson); border-bottom: 2px solid var(--crimson);
  transform: rotate(45deg); align-self: center; justify-self: end; transition: transform .2s;
}
.chapter[open] summary::after { transform: rotate(-135deg); }
.chapter summary:hover .ch-title { text-decoration: underline; text-underline-offset: 3px; }
.prog-group { font: 700 1.25rem var(--f-display); color: var(--navy); margin: 18px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.prog-group span { font: 400 .95rem var(--f-body); color: var(--muted); }
.prog-group:first-child { margin-top: 0; }
.ch-code { font: 700 1.1rem var(--f-display); color: var(--crimson); }
.ch-title { font-weight: 600; color: var(--navy); }
.ch-count { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.chapter[open] summary { border-bottom: 1px solid var(--line); }
.chapter ul { list-style: none; margin: 0; padding: 4px 18px 10px; }
.chapter li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.chapter li:last-child { border-bottom: 0; }
.chapter li > div:first-child { display: flex; flex-direction: column; }
.chapter li span { color: var(--muted); font-size: .93rem; }
.chapter li.is-live strong { color: var(--navy); }
.li-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
@media (max-width: 640px) {
  .chapter summary { grid-template-columns: 1fr 14px; gap: 2px 10px; }
  .chapter summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .chapter li { flex-direction: column; }
  .li-end { align-items: flex-start; flex-direction: row; }
}

/* ---------- events ---------- */
.events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.event { display: grid; grid-template-columns: 84px 1fr; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.ev-date { background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 16px 6px; border-right: 4px solid var(--gold); }
.ev-date .d { font: 700 2.1rem/1 var(--f-display); color: var(--gold-bright); }
.ev-date .m { font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.ev-date .y { font-size: .8rem; opacity: .75; }
.ev-body { padding: 18px 20px; }
.ev-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 12px; }
.ev-meta { color: var(--crimson); font-weight: 600; font-size: .92rem; text-transform: capitalize; }
.event.compact .ev-date .d { font-size: 1.5rem; }
.past-events { margin-top: 28px; }
.past-events summary { cursor: pointer; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 28px; grid-column: 1 / -1; max-width: 680px; }

/* ---------- about / team ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.team { background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 28px; border-top: 5px solid var(--gold); }
.team h3 { color: var(--gold-bright); }
.team-list { display: flex; flex-direction: column; gap: 18px; }
.member { display: flex; gap: 14px; align-items: flex-start; }
.member img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.avatar { display: grid; place-items: center; background: var(--crimson); font: 700 1.6rem var(--f-display); color: #fff; }
.member strong { display: block; font-family: var(--f-display); font-size: 1.2rem; }
.member span { color: var(--gold-bright); font-size: .95rem; }
.member p { color: #d6dcef; font-size: .93rem; margin: 6px 0 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.g-item { position: relative; border: 0; padding: 0; background: var(--navy); cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.g-item:hover img { transform: scale(1.03); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: .9rem; text-align: left; background: linear-gradient(transparent, rgba(13,22,54,.85)); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); }
.lightbox::backdrop { background: rgba(10,15,35,.88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; display: block; margin: 0 auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #fff; text-align: center; padding: 10px; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--crimson); border-radius: var(--r-md); padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.quote blockquote p::before { content: "“"; font: 700 2.6rem/0 var(--f-display); color: var(--gold); vertical-align: -.45em; margin-right: 4px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; }
.quote figcaption span span { color: var(--muted); font-size: .9rem; }

/* ---------- fees ---------- */
.fee-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.fee { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.fee h3 { font-size: 1.2rem; margin-bottom: 4px; }
.fee-cat { font-size: .85rem; color: var(--crimson); font-weight: 700; text-transform: capitalize; margin-bottom: 4px; }
.fee .amount { font: 700 1.6rem var(--f-display); color: var(--navy); margin: auto 0 14px; padding-top: 10px; }

/* ---------- faq ---------- */
.faq-list { max-width: 860px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--crimson); border-bottom: 2px solid var(--crimson); transform: rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq p { color: var(--muted); padding-bottom: 12px; max-width: 70ch; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lede-dark { color: var(--muted); font-size: 1.1rem; }
.contact-list { margin: 20px 0; display: grid; gap: 12px; }
.contact-list div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; font-weight: 600; color: var(--navy); }
.contact-actions { margin: 10px 0 16px; }
.social { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.social a { font-weight: 700; }
.map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- forms + cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--f-body); padding: 11px 12px; border: 1px solid #c5cbd8; border-radius: var(--r-sm);
  background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 2px solid rgba(20,32,74,.18); outline-offset: 0; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.form .check input { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; color: var(--ok); }
.form-msg.bad { color: var(--bad); }

/* ---------- dialogs ---------- */
.modal { border: 0; border-radius: var(--r-md); padding: 30px; width: min(560px, 94vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); border-top: 5px solid var(--gold); }
.modal::backdrop { background: rgba(13,22,54,.6); }
.modal-x { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.modal-x.light { color: #fff; position: fixed; right: 18px; top: 14px; }
.modal h3 { padding-right: 30px; }

/* ---------- toast ---------- */
#toast-host { position: fixed; right: 18px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow); border-left: 4px solid var(--gold); max-width: 360px; transition: opacity .4s, transform .4s; }
.toast.bad { border-left-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- footer + whatsapp ---------- */
.site-footer { background: var(--navy-deep); color: #c9d0e6; padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 4px solid var(--crimson); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { display: block; color: #fff; font-family: var(--f-display); font-size: 1.15rem; }
.footer-brand span { font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footer-nav a { color: #e6eaf5; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--gold-bright); }
.copy { grid-column: 1 / -1; font-size: .88rem; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { justify-content: flex-start; } }
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float:hover { color: #fff; background: #1ebe5b; }

/* =====================================================================
   App pages: login, dashboard, admin
   ===================================================================== */
.app-body { background: var(--paper); min-height: 100vh; }
.app-main { padding: 36px 0 80px; }
.auth-wrap { display: grid; place-items: center; padding: 48px 0 80px; }
.auth-card { width: min(460px, 100%); }
.auth-card .seal { display: block; margin: 0 auto 14px; }
.auth-card h1 { text-align: center; font-size: 1.7rem; }
.auth-switch { text-align: center; margin-top: 8px; font-size: .95rem; }
.notice { padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-pale); color: #5c4310; border-left: 4px solid var(--gold); margin-bottom: 16px; font-size: .95rem; }
.notice.bad { background: #fde7e5; color: var(--bad); border-left-color: var(--bad); }

.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 26px; }
.dash-head h1 { font-size: 2rem; margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.dash-grid > section { margin-bottom: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border-radius: var(--r-sm); padding: 14px; }
.stat b { display: block; font: 700 1.7rem var(--f-display); color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }
.list-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.list-table th, .list-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list-table th { font-size: .85rem; color: var(--muted); font-weight: 700; }
.pay-box { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; margin-top: 14px; padding: 16px; background: var(--paper); border-radius: var(--r-sm); }
.pay-box #upi-qr { background: #fff; padding: 8px; border-radius: var(--r-sm); width: 180px; height: 180px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pay-box { grid-template-columns: 1fr; } .stat-row { grid-template-columns: 1fr 1fr; } }

/* admin */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 73px); }
.admin-side { background: var(--navy-deep); padding: 18px 12px; }
.admin-side button {
  display: flex; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0;
  color: #d6dcef; font: 600 .98rem var(--f-body); padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer;
}
.admin-side button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side button[aria-current=true] { background: var(--gold); color: var(--navy-deep); }
.admin-side .grp { color: #8f9abf; font-size: .78rem; font-weight: 700; margin: 16px 12px 6px; letter-spacing: .04em; }
.admin-side .count { font-size: .8rem; background: var(--crimson); color: #fff; border-radius: 999px; padding: 0 8px; }
.admin-main { padding: 26px 30px 60px; overflow: auto; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-toolbar h1 { font-size: 1.7rem; margin: 0; }
.admin-toolbar .tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-toolbar input[type=search], .admin-toolbar select { padding: 8px 10px; border: 1px solid #c5cbd8; border-radius: var(--r-sm); font: inherit; font-size: .95rem; }
.data-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data th, .data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data th { background: var(--paper); color: var(--navy); font-size: .85rem; white-space: nowrap; position: sticky; top: 0; }
.data td.clip { max-width: 320px; }
.data td .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.data tr:hover td { background: #fbfbfd; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 10px; cursor: pointer; font: 600 .85rem var(--f-body); color: var(--navy); }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn.del { color: var(--bad); }
.icon-btn.del:hover { border-color: var(--bad); }
.icon-btn.ok { color: var(--ok); }
.admin-modal { width: min(720px, 96vw); }
.admin-modal .form { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; border-top: 4px solid var(--navy); }
.kpi:nth-child(2n) { border-top-color: var(--crimson); }
.kpi:nth-child(3n) { border-top-color: var(--gold); }
.kpi b { display: block; font: 700 2rem var(--f-display); color: var(--navy); }
.kpi span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
  .admin-side button { white-space: nowrap; width: auto; }
  .admin-side .grp { display: none; }
  .admin-main { padding: 20px 16px 60px; }
}

/* small floating bar shown on simulator pages */
.gitp-simbar {
  position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 99999;
  display: flex; align-items: center; gap: 8px; background: #14204a; color: #fff; border: 2px solid #c8992e;
  border-radius: 999px; padding: 6px 14px 6px 6px; font: 600 13px/1.2 "Source Sans 3", system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.gitp-simbar a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.gitp-simbar img { width: 28px; height: 28px; }
.gitp-simbar .st { color: #e4be5a; font-weight: 600; border-left: 1px solid rgba(255,255,255,.25); padding-left: 8px; }
@media print { .gitp-simbar, .wa-float { display: none !important; } }
.lang-ta .fee .amount { font-size: 1.15rem; line-height: 1.4; }

/* ---- final programme structure (papers, assessment) ---- */
.ptype{display:block;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5b6276);margin-top:2px}
tr.ptype-practical th{color:#1F6E43} tr.ptype-project th{color:#8a5a00}
.prog-facts small{color:var(--muted,#5b6276);font-weight:400}
.assess-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.25rem}
.assess-grid .card{padding:1rem 1.1rem}
.assess-grid h4{margin:.1rem 0 .6rem}
table.mini{width:100%;border-collapse:collapse;font-size:.92rem}
table.mini th,table.mini td{padding:.35rem .4rem;border-bottom:1px solid #e3e6ee;text-align:left;vertical-align:top}
table.mini td.num{text-align:right;white-space:nowrap;font-weight:600}
.verify-result{margin-top:1rem;padding:1rem 1.1rem;border-radius:10px;border:1px solid #e3e6ee}
.verify-result.good{background:#eef8f1;border-color:#9fd3ae}
.verify-result.bad{background:#fdeeee;border-color:#f0b4b4}
.verify-result h2{margin:0 0 .6rem;font-size:1.2rem}
.assess-grid table.mini{min-width:0 !important;width:100%;table-layout:auto}
.assess-grid table.mini th,.assess-grid table.mini td{white-space:normal;word-break:normal}
.assess-grid .card{min-width:0;overflow:hidden}
