/* =====================================================================
   DREAM NEET ACADEMY (DNA) — dreamneetacademy.com
   Self-contained stylesheet. No external framework or CDN.
   Palette taken from the official DNA pamphlet.
   ===================================================================== */

:root {
  --navy-900: #071b38;
  --navy-800: #0a1f3d;
  --navy-700: #0d2a52;
  --navy-600: #143a6b;
  --gold: #f5c518;
  --gold-bright: #ffd54a;
  --gold-dark: #b8860b;
  --green: #1b7a3e;
  --green-light: #e7f3ec;
  --blue: #1a5fb4;
  --blue-light: #e8f0fb;
  --red: #c0392b;
  --text: #16233a;
  --text-soft: #4a5a72;
  --border: #dfe5ee;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --radius: 14px;
  --max: 1180px;
  --shadow: 0 10px 30px rgba(7, 27, 56, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { color: var(--navy-800); margin: 0 0 .45em; line-height: 1.22; font-weight: 800; }
h1 { font-size: clamp(28px, 4.4vw, 44px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { color: var(--text-soft); margin: 0 0 1em; }
strong { color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 68px 0; }
.section-sm { padding: 44px 0; }
.soft { background: var(--bg-soft); }
.center { text-align: center; }
.lede { max-width: 720px; font-size: 17px; }
.center .lede { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 36px; }

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-soft);
}
.eyebrow.gold { background: rgba(245,197,24,.16); color: var(--gold-dark); }
.eyebrow.green { background: var(--green-light); color: var(--green); }
.eyebrow.blue { background: var(--blue-light); color: var(--blue); }
.eyebrow.on-dark { background: rgba(245,197,24,.16); color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 800; font-size: 15px; border: 2px solid transparent;
  transition: transform .12s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-800); }
.btn-gold:hover { filter: brightness(.94); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.08); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Top strip ---------- */
.topstrip {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-600));
  color: #fff; font-size: 13.5px; padding: 8px 16px; text-align: center;
}
.topstrip a { color: var(--gold-bright); font-weight: 700; text-decoration: underline; }
.topstrip strong { color: #fff; }
.hero strong, .dark strong, .pagehead strong, .dark-card strong { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-in {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand .bn { font-weight: 900; font-size: 15.5px; color: var(--navy-800); letter-spacing: .01em; line-height: 1.15; white-space: nowrap; }
.brand .bt { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; color: var(--gold-dark); text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 17px; }
.nav a {
  font-size: 13.5px; font-weight: 700; color: var(--text); padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  background: var(--gold); transition: width .18s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--navy-800); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { white-space: nowrap; padding: 12px 20px; }
.hamburger {
  display: none; background: none; border: 0; padding: 6px; line-height: 0;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1280px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  .hamburger { display: block; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 460px) {
  .brand .bt { display: none; }
  .header-cta .btn-gold { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(26,95,180,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff;
}
.hero-in { max-width: var(--max); margin: 0 auto; padding: 74px 20px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold-bright); }
.hero p { color: #c6d2e4; font-size: 17.5px; max-width: 560px; }
.hero-motto { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: var(--gold-bright); text-transform: uppercase; margin-bottom: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 24px;
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hstat { background: rgba(255,255,255,.07); border-radius: 12px; padding: 18px; text-align: center; }
.hstat b { display: block; font-size: 22px; color: var(--gold-bright); font-weight: 900; }
.hstat span { font-size: 12.5px; color: #b9c6da; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; padding: 52px 20px; gap: 32px; } }

/* ---------- Page banner (inner pages) ---------- */
.pagehead {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  color: #fff; padding: 54px 0 46px;
}
.pagehead h1 { color: #fff; margin-bottom: 10px; }
.pagehead p { color: #c6d2e4; max-width: 760px; margin: 0; }
.crumbs { font-size: 13px; color: #8ea3c0; margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold-bright); }

/* ---------- Grids ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3, .card h4 { margin-bottom: .35em; }
.card p { margin-bottom: 0; font-size: 15px; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 26px; font-weight: 900; margin-bottom: 14px;
}
.ib-green { background: var(--green-light); color: var(--green); }
.ib-blue { background: var(--blue-light); color: var(--blue); }
.ib-gold { background: rgba(245,197,24,.18); color: var(--gold-dark); }

/* Program cards (home) */
.prog-card { border-top: 5px solid var(--green); }
.prog-card.tuition { border-top-color: var(--blue); }
.prog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.timing-chip {
  background: var(--navy-800); color: #fff; border-radius: 12px;
  padding: 12px 16px; text-align: center; min-width: 128px;
}
.timing-chip b { display: block; color: var(--gold-bright); font-size: 15px; }
.timing-chip span { font-size: 11.5px; color: #b9c6da; text-transform: uppercase; letter-spacing: .05em; }

/* Checklists */
.checks li {
  position: relative; padding-left: 30px; margin-bottom: 11px; font-size: 15px; color: var(--text-soft);
}
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.checks.blue li::before { background: var(--blue); }
.checks.no li::before { content: '\00d7'; background: var(--red); font-size: 14px; }

/* Numbered flow (A Day at DNA) */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 980px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.flow-step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: var(--gold-bright);
  font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15px;
}
.flow-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.flow-step p { font-size: 14px; margin: 0; }

/* Stat tiles */
.tile { background: var(--navy-800); color: #fff; border-radius: 12px; padding: 22px 18px; text-align: center; }
.tile b { display: block; font-size: 17.5px; font-weight: 900; color: var(--gold-bright); line-height: 1.3; }
.tile span { font-size: 12.5px; color: #b9c6da; }

/* Banner strip */
.strip {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  color: var(--navy-900); text-align: center; padding: 16px 20px;
  font-weight: 900; letter-spacing: .04em; font-size: clamp(13px, 2vw, 16px);
}

/* Dark section */
.dark { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: #c6d2e4; }
.dark-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 24px; }
.dark-card h4 { color: var(--gold-bright); }

/* Callout */
.callout {
  border-left: 5px solid var(--gold); background: #fffdf3;
  border-radius: 10px; padding: 18px 20px; font-size: 15px; color: var(--text-soft);
}
.callout.blue { border-left-color: var(--blue); background: var(--blue-light); }
.callout.green { border-left-color: var(--green); background: var(--green-light); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
th, td { padding: 14px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
th { background: var(--navy-800); color: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy-800); }

/* Placeholder flag */
.pending {
  display: inline-block; background: #fff4d6; color: #8a6100;
  border: 1px dashed #e0a800; border-radius: 6px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.photo-slot {
  border: 2px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); min-height: 190px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-soft); font-size: 14px; padding: 20px;
}

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cbd5e3; border-radius: 9px;
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.25);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-soft); margin: 14px 0 18px; }
.consent input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
#form-status { font-size: 14px; font-weight: 700; margin-top: 12px; min-height: 1.3em; }
#form-status.ok { color: var(--green); }
#form-status.err { color: var(--red); }
#form-status.warn { color: var(--gold-dark); }

/* ---------- Contact blocks ---------- */
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-ico {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px;
}
.contact-ico.blue { background: var(--blue); }
.contact-ico.gold { background: var(--gold); color: var(--navy-900); }
.contact-line b { display: block; color: var(--navy-800); font-size: 14px; }
.contact-line span, .contact-line a { color: var(--text-soft); font-size: 15px; }
.contact-line a:hover { color: var(--green); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); font-size: 26px; color: #fff;
}
.wa-float:hover { filter: brightness(1.06); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bad2; padding: 52px 0 22px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1.2fr; gap: 26px; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 {
  color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 14px; font-weight: 800;
}
.site-footer a { display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand b { color: #fff; font-size: 15px; font-weight: 900; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px;
  text-align: center; font-size: 12.5px; color: #6f849f;
}
.footer-bottom a { display: inline; margin: 0 8px; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal h3 { font-size: 17px; margin-top: 22px; }
.legal p, .legal li { font-size: 15px; color: var(--text-soft); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: 24px; background: var(--navy-800); color: #fff;
  padding: 13px 22px; border-radius: 10px; box-shadow: var(--shadow);
  font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 200; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media print { .site-header, .wa-float, .topstrip { display: none; } }

/* =====================================================================
   NEET TOOLS — marks vs rank slider, college explorer
   ===================================================================== */

.tool-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow);
}
.tool-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.tool-label {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px;
}
.year-select {
  padding: 11px 16px; border: 1.5px solid #cbd5e3; border-radius: 9px;
  font-size: 15.5px; font-weight: 700; font-family: inherit; color: var(--navy-800); background: #fff;
}
.year-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.quick-jumps { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.quick-jumps .tool-label { margin: 0 4px 0 0; }
.quick-jumps button {
  border: 1.5px solid var(--border); background: var(--bg-soft); color: var(--navy-800);
  border-radius: 7px; padding: 7px 12px; font-size: 13.5px; font-weight: 800;
}
.quick-jumps button:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.slider-block { padding: 28px 0 4px; }
.marks-display { text-align: center; margin-bottom: 14px; }
.marks-display span {
  font-size: clamp(44px, 8vw, 68px); font-weight: 900; color: var(--navy-800);
  line-height: 1; letter-spacing: -.02em;
}
.marks-display small { display: block; font-size: 14px; font-weight: 700; color: var(--text-soft); margin-top: 6px; }

input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px;
  border-radius: 999px; background: linear-gradient(90deg, #dbe4f0, var(--gold));
  outline: none; margin: 6px 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-800); border: 4px solid var(--gold); cursor: pointer;
  box-shadow: 0 2px 8px rgba(7,27,56,.3);
}
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-800); border: 4px solid var(--gold); cursor: pointer;
}
.slider-scale {
  display: flex; justify-content: space-between; font-size: 12px;
  color: var(--text-soft); font-weight: 700; margin-top: 2px;
}

.result-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr; gap: 16px; margin-top: 26px; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }
.result-box {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
}
.result-box.primary { background: var(--navy-800); border-color: var(--navy-800); }
.result-box.primary .result-label { color: #b9c6da; }
.result-box.primary strong { color: var(--gold-bright); }
.result-label {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px;
}
.result-box strong {
  display: block; font-size: 30px; font-weight: 900; color: var(--navy-800); line-height: 1.15;
}
.result-range { display: block; font-size: 13.5px; color: #b9c6da; margin-top: 6px; font-weight: 600; }
.basis { font-size: 13px; color: var(--text-soft); margin: 10px 0 0; line-height: 1.55; }

.src-badge {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.src-badge.official { background: #e7f3ec; color: #14682f; border: 1px solid #b7ddc5; }
.src-badge.estimate { background: #fdf1dc; color: #8a5a06; border: 1px solid #edcf98; }

.chart-wrap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.chart-legend {
  display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px;
  color: var(--text-soft); font-weight: 700; margin-bottom: 12px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.k-line { width: 22px; height: 0; border-top-width: 3px; border-top-style: solid; border-radius: 2px; }
.k-line.official { border-color: #1a5fb4; }
.k-line.estimate { border-color: #c47f0a; border-top-style: dashed; }
.k-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--navy-800); }
#curve { width: 100%; height: auto; display: block; }
.chart-note { font-size: 12.5px; color: var(--text-soft); margin: 10px 0 0; }

.seat-context {
  margin-top: 24px; background: var(--blue-light); border-left: 5px solid var(--blue);
  border-radius: 10px; padding: 16px 20px; font-size: 14.5px; color: var(--text-soft);
}
.seat-context strong { color: var(--navy-800); }

.ministat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .ministat-row { grid-template-columns: 1fr 1fr; } }
.ministat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.ministat b { display: block; font-size: 18px; font-weight: 900; color: var(--navy-800); line-height: 1.25; }
.ministat span { font-size: 12.5px; color: var(--text-soft); }

.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.pill.yes { background: #e7f3ec; color: #14682f; }
.pill.no { background: #fdeaea; color: #9c2b1f; }

.filters {
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.filter-field { display: flex; flex-direction: column; min-width: 170px; }
.filter-field.grow { flex: 1 1 260px; }
.filter-field label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px;
}
.filter-field input, .filter-field select {
  padding: 11px 14px; border: 1.5px solid #cbd5e3; border-radius: 9px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
.filter-field input:focus, .filter-field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.25);
}
.filter-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--text); padding-bottom: 11px; }
.filter-check input { width: 17px; height: 17px; }
.filter-count { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--text-soft); padding-bottom: 11px; }

.college-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .college-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .college-grid { grid-template-columns: 1fr; } }

.col-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease;
}
.col-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.col-card.no-mbbs { background: #fbfbfc; border-style: dashed; }
.col-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.col-rank {
  background: var(--navy-800); color: var(--gold-bright); font-size: 11.5px; font-weight: 900;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .03em;
}
.col-rank.alt { background: var(--bg-soft); color: var(--text-soft); }
.col-type {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--text-soft);
}
.col-type.taiims { background: #e7f3ec; color: #14682f; }
.col-type.tgovernment { background: var(--blue-light); color: var(--blue); }
.col-type.tdeemed { background: #f3ecfb; color: #6b3fa0; }
.col-type.tprivate { background: #fdf1dc; color: #8a5a06; }
.col-card h3 { font-size: 16.5px; margin-bottom: 4px; line-height: 1.3; }
.col-place { font-size: 13.5px; font-weight: 700; color: var(--text-soft); margin: 0 0 14px; }
.col-warn {
  background: #fdeaea; border-left: 4px solid var(--red); border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; color: #7d2b20; margin-bottom: 14px;
}
.col-warn strong { color: #7d2b20; }
.col-meta { margin: 0 0 14px; display: grid; gap: 8px; }
.col-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.col-meta dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.col-meta dd { margin: 0; font-size: 13.5px; color: var(--text); font-weight: 600; }
.col-fact { font-size: 13.5px; color: var(--text-soft); margin: 0 0 16px; flex: 1; }
.col-site { font-weight: 800; font-size: 14px; color: var(--green); margin-top: auto; }
.col-site:hover { text-decoration: underline; }
.col-nosite {
  font-size: 12.5px; color: #8a5a06; background: #fdf1dc; border-radius: 8px;
  padding: 10px 12px; margin-top: auto; display: block;
}
.col-empty { grid-column: 1/-1; text-align: center; color: var(--text-soft); padding: 40px; }

/* ---------- Tools index tiles ---------- */
.tool-tile {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.tool-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.tool-tile.featured { border-top: 5px solid var(--gold); }
.tool-tile.static { background: var(--bg-soft); border-style: dashed; }
.tool-tag {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: rgba(245,197,24,.18); color: var(--gold-dark); margin-bottom: 12px;
}
.tool-tag.exact { background: var(--green-light); color: var(--green); }
.tool-tile h3 { font-size: 21px; margin-bottom: 8px; }
.tool-tile p { font-size: 15px; flex: 1; }
.tool-go { font-weight: 800; color: var(--green); font-size: 15px; margin-top: auto; }

/* ---------- Score calculator ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-subject { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.calc-subject-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-subject-head h4 { margin: 0; }
.calc-qcount { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 12px; }
.calc-inputs label {
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft);
}
.calc-inputs input {
  padding: 11px 12px; border: 1.5px solid #cbd5e3; border-radius: 9px;
  font-size: 18px; font-weight: 800; font-family: inherit; color: var(--navy-800); background: #fff;
  text-align: center;
}
.calc-inputs input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.calc-subject-out {
  display: flex; justify-content: space-between; font-size: 13.5px;
  color: var(--text-soft); font-weight: 600; margin-bottom: 10px;
}
.calc-subject-out b { color: var(--navy-800); font-weight: 800; }
.calc-score b { font-size: 16px; }
.calc-bar { height: 7px; background: #e3e9f2; border-radius: 999px; overflow: hidden; }
.calc-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .2s ease; }

.calc-total { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; margin-top: 24px; }
@media (max-width: 760px) { .calc-total { grid-template-columns: 1fr; } }
.calc-total-box {
  background: var(--navy-800); border-radius: 14px; padding: 24px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.calc-total-box .result-label { color: #b9c6da; }
.calc-total-box strong { display: block; font-size: 56px; font-weight: 900; color: var(--gold-bright); line-height: 1; }
.calc-breakdown {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
@media (max-width: 520px) { .calc-breakdown { grid-template-columns: 1fr; } }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--text-soft); }
.calc-breakdown b { color: var(--navy-800); font-weight: 800; }
.calc-warn { color: #9c2b1f; font-size: 14px; font-weight: 700; margin: 14px 0 0; }
.calc-next {
  margin-top: 20px; background: var(--blue-light); border-left: 5px solid var(--blue);
  border-radius: 10px; padding: 16px 20px; font-size: 15px; color: var(--text-soft);
}
.calc-next a { color: var(--blue); font-weight: 800; }
.calc-next a:hover { text-decoration: underline; }

/* ---------- Seat ladder ---------- */
.ladder { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.ladder-title { margin-bottom: 16px; }
.ladder-row { margin-bottom: 18px; }
.ladder-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 7px;
}
.ladder-head b { color: var(--navy-800); }
.ladder-flag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ladder-row.in .ladder-flag { color: var(--green); }
.ladder-row.out .ladder-flag { color: #9c2b1f; }
.ladder-bar { height: 12px; background: #e3e9f2; border-radius: 999px; overflow: hidden; }
.ladder-row.in .ladder-bar i { background: var(--green); }
.ladder-row.out .ladder-bar i { background: #d98b84; }
.ladder-bar i { display: block; height: 100%; border-radius: 999px; transition: width .2s ease; }
.ladder-note { font-size: 13px; color: var(--text-soft); margin: 7px 0 0; }

.sc-verdict {
  margin-top: 26px; background: #fffdf3; border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 20px; font-size: 15px; color: var(--text-soft);
}
.sc-verdict h4 { margin-bottom: 8px; }
.sc-verdict strong { color: var(--navy-800); }

/* ---------- Syllabus tracker ---------- */
.syl-summary {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--navy-800); border-radius: 16px; padding: 24px 28px; color: #fff;
}
.syl-summary-main { min-width: 190px; }
.syl-summary-main .result-label { color: #b9c6da; }
.syl-summary-main strong { display: block; font-size: 40px; font-weight: 900; color: var(--gold-bright); line-height: 1; }
.syl-summary-main strong small { font-size: 20px; color: #b9c6da; font-weight: 700; }
.syl-left { display: block; font-size: 13.5px; color: #b9c6da; margin-top: 6px; }
.syl-summary-bar { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 14px; }
.syl-summary-bar b { font-size: 20px; font-weight: 900; color: var(--gold-bright); min-width: 54px; text-align: right; }
.syl-summary .btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.syl-summary .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.syl-note { font-size: 13.5px; color: #8a5a06; background: #fdf1dc; border-radius: 8px; padding: 10px 14px; margin-top: 12px; }

.syl-bar { flex: 1; height: 12px; background: rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; }
.syl-bar.big { height: 16px; }
.syl-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .2s ease; }

.syl-subject { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; margin-bottom: 22px; }
.syl-subject.a-blue { border-top: 5px solid var(--blue); }
.syl-subject.a-gold { border-top: 5px solid var(--gold); }
.syl-subject.a-green { border-top: 5px solid var(--green); }
.syl-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.syl-head h3 { margin: 0; }
.syl-progress { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 240px; justify-content: flex-end; }
.syl-progress span { font-size: 13px; font-weight: 700; color: var(--text-soft); white-space: nowrap; }
.syl-progress .syl-bar { background: #e3e9f2; max-width: 200px; }
.syl-progress .syl-bar i { background: var(--green); }
.syl-progress b { font-size: 15px; font-weight: 900; color: var(--navy-800); min-width: 44px; text-align: right; }

.syl-group { margin-bottom: 20px; }
.syl-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: 10px; }
.syl-count { color: var(--navy-800); font-weight: 900; }
.syl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 760px) { .syl-list { grid-template-columns: 1fr; } }

.syl-item {
  display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; cursor: pointer; transition: background .14s ease, border-color .14s ease;
}
.syl-item:hover { border-color: var(--gold); }
.syl-item.done { background: var(--green-light); border-color: #b7ddc5; }
.syl-item input { width: 19px; height: 19px; margin: 1px 0 0; cursor: pointer; accent-color: var(--green); }
.syl-name { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.syl-item.done .syl-name { color: var(--text-soft); }
.syl-why { grid-column: 2; font-size: 12.5px; color: #8a5a06; margin: 6px 0 0; line-height: 1.5; }
.syl-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; margin-left: 7px; vertical-align: 1px;
}
.syl-tag.bot { background: var(--green-light); color: var(--green); }
.syl-tag.zoo { background: var(--blue-light); color: var(--blue); }
.syl-tag.warn { background: #fdeaea; color: #9c2b1f; }

.nmc-list { padding-left: 20px; margin: 8px 0 0; }
.nmc-list li { font-size: 13.5px; color: var(--text-soft); margin-bottom: 5px; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
  font-weight: 800; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Article pages ---------- */
.art-meta { font-size: 13.5px; color: #8ea3c0 !important; margin-top: 10px !important; }
.article { max-width: 780px; }
.article .art-lede {
  font-size: 19px; line-height: 1.6; color: var(--text);
  border-left: 4px solid var(--gold); padding-left: 20px; margin-bottom: 34px;
}
.article h2 { font-size: 25px; margin-top: 40px; margin-bottom: 14px; }
.article h4 { margin-bottom: 6px; }
.article p { font-size: 16.5px; line-height: 1.72; }
.article ul.checks li, .article ol.art-steps li { font-size: 16px; }
.article a:not(.btn) { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.article a:not(.btn):hover { color: var(--navy-800); }
.art-steps { counter-reset: s; padding-left: 0; list-style: none; margin: 18px 0; }
.art-steps li {
  position: relative; padding-left: 44px; margin-bottom: 16px;
  color: var(--text-soft); line-height: 1.65;
}
.art-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-bright);
  font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.article .g2, .article .g3, .article .g4, .article .table-wrap, .article .callout { margin-bottom: 24px; }

.art-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.art-card.featured { border-top: 5px solid var(--gold); }
.art-card.static { background: var(--bg-soft); border-style: dashed; }
.art-card h3 { font-size: 20px; margin-bottom: 8px; line-height: 1.3; }
.art-card p { font-size: 15px; flex: 1; }

/* ---------- Consent banner ---------- */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 620px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(7,27,56,.22); padding: 20px 24px;
}
.cookie-consent p { font-size: 14.5px; margin: 0 0 14px; }
.cookie-consent a { color: var(--green); font-weight: 700; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent-actions .btn { padding: 10px 22px; font-size: 14.5px; }
@media (max-width: 520px) { .cookie-consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .topstrip, .wa-float, .site-footer, .cookie-consent,
  .skip-link, .btn, .hero-cta, .dark, #toast { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .pagehead { background: none !important; color: #000 !important; padding: 0 0 12pt; }
  .pagehead h1, .pagehead p, .crumbs { color: #000 !important; }
  .section { padding: 12pt 0; }
  .card, .syl-item, .table-wrap { break-inside: avoid; page-break-inside: avoid; }
  .syl-list { grid-template-columns: 1fr 1fr; }
  .syl-summary { background: none !important; color: #000 !important; border: 1px solid #999; }
  .syl-summary-main strong, .syl-summary-main .result-label, .syl-left { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ---------- Header search icon ---------- */
.header-search {
  font-size: 18px; line-height: 1; padding: 9px 11px; border-radius: 9px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--navy-800);
}
.header-search:hover { background: var(--navy-800); }
@media (max-width: 460px) { .header-search { display: none; } }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; gap: 16px; }
.gal-item {
  position: relative; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  display: block; width: 100%; transition: transform .16s ease, box-shadow .16s ease;
}
.gal-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gal-item img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gal-cap {
  display: block; padding: 11px 14px; font-size: 13.5px; font-weight: 700;
  color: var(--navy-800); text-align: left; background: #fff;
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(7, 27, 56, .93); padding: 24px;
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 1100px; max-height: 88vh; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; border-radius: 10px; margin: 0 auto; }
.lb-figure figcaption { color: #cbd5e3; font-size: 14.5px; font-weight: 600; margin-top: 14px; }
.lb-close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0;
  color: #fff; font-size: 40px; line-height: 1; padding: 4px 12px;
}
.lb-nav {
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  font-size: 34px; line-height: 1; width: 52px; height: 52px; border-radius: 50%;
  flex-shrink: 0;
}
.lb-nav:hover { background: rgba(255,255,255,.24); }
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox { padding: 12px; }
}

/* ---------- Site search ---------- */
.search-box input {
  width: 100%; padding: 16px 20px; font-size: 18px; font-family: inherit;
  border: 2px solid #cbd5e3; border-radius: 12px; color: var(--text); background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,197,24,.22); }
.search-count { font-size: 14px; font-weight: 700; color: var(--text-soft); margin: 14px 0 0; }
.search-results { display: grid; gap: 12px; margin-top: 16px; }
.search-hit {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; transition: border-color .14s ease, transform .14s ease;
}
.search-hit:hover { border-color: var(--gold); transform: translateY(-2px); }
.search-hit h3 { font-size: 17.5px; margin: 6px 0 5px; }
.search-hit p { font-size: 14.5px; margin: 0; }
.search-sec {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--green-light); padding: 3px 9px; border-radius: 5px;
}
.search-hit mark { background: rgba(245,197,24,.45); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-empty { color: var(--text-soft); font-size: 15px; padding: 18px 0; }
.search-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.search-chips a {
  font-size: 14px; font-weight: 700; color: var(--navy-800);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 8px 15px; border-radius: 999px;
}
.search-chips a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- Tool failure notice ---------- */
.tool-error {
  background: #fdeaea; border-left: 5px solid var(--red); border-radius: 10px;
  padding: 18px 20px; font-size: 15px; color: #7d2b20;
}
.tool-error strong { color: #7d2b20; }
.tool-error a { color: var(--red); font-weight: 800; text-decoration: underline; }
.field-hint { display: block; font-size: 12.5px; color: var(--text-soft); margin-top: 5px; }
