/* =========================================================
   IILM BBA 2027 – styled to match apply.iilm.edu/bba-admissions-2026
   Navy hero, Playfair Display headings, Inter body,
   gold numbers/pills, maroon-red CTA.
   ========================================================= */
/* ---------- Self-hosted font: Plus Jakarta Sans (variable 200–800, @fontsource-variable) ---------- */
@font-face { font-family: "Plus Jakarta Sans Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* latin-ext: needed for the ₹ (U+20B9) symbol */
@font-face { font-family: "Plus Jakarta Sans Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --navy-900: #131c38;
  --navy-800: #1a2749;
  --navy-700: #22325c;
  --gold:     #d6a94d;
  --gold-soft:#f3e6c6;
  --red:      #a51d2d;
  --red-dk:   #871522;
  --ink:      #1b2340;
  --muted:    #5b6378;
  --line:     #e3e6ee;
  --light:    #f5f6fa;
  --white:    #ffffff;
  --error:    #b42318;
  --success:  #067647;

  --serif: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; /* headings (single-family system) */
  --sans:  "Plus Jakarta Sans Variable", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy-800); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--red); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 4px; font-family: var(--sans); font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 14px 32px; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.88); font-size: .875rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--gold); }

/* ---------- Pills & kickers ---------- */
.pill { display: inline-block; padding: 7px 16px; border: 1px solid rgba(214,169,77,.55); border-radius: 999px; background: rgba(214,169,77,.1); color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill-dark { color: var(--navy-800); background: var(--gold-soft); border-color: var(--gold); }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.kicker-gold { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 48px; color: #fff; background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 70%); }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-1 { width: 620px; height: 620px; right: -180px; top: -200px; background: rgba(255,255,255,.035); }
.hero-orb-2 { width: 360px; height: 360px; left: -140px; bottom: -160px; background: rgba(214,169,77,.06); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-top: 20px; font-family: var(--serif); font-weight: 700; font-size: clamp(2.25rem, 8vw, 3.5rem); line-height: 1.12; letter-spacing: -.005em; max-width: 20ch; }
.hero-lead { margin-top: 16px; font-size: 1.0625rem; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 52ch; }
.hero-stats { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 28px; }
.hero-stats li { text-align: center; padding: 0 6px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stats li:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: clamp(1.375rem, 5vw, 1.875rem); font-weight: 700; color: var(--gold); line-height: 1.15; }
.hero-stats span { display: block; margin-top: 4px; font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---------- Form ---------- */
.form-card { background: #fff; color: var(--ink); border-radius: 10px; padding: 22px 22px 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.form-card h2 { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; color: var(--navy-800); }
.form-sub { margin: 4px 0 8px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.field-error { margin-top: 3px; font-size: .75rem; color: var(--error); }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; margin-top: 4px; }
.field-check .field-error { grid-column: 2; }

/* ---------- Sections ---------- */
.sec { padding: 64px 0; }
.sec-light { background: var(--light); }
.sec-dark { background: var(--navy-900); color: #fff; }
.sec-head { max-width: 760px; margin: 0 auto 36px; }
.sec-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 5.5vw, 2.5rem); line-height: 1.18; color: var(--navy-800); }
.sec-dark .sec-head h2 { color: #fff; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* ---------- Campus switch ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 14px; border-radius: 999px; background: var(--light); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--navy-800); }
.tags-lg span { padding: 8px 16px; font-size: .875rem; background: #fff; }

/* ---------- Campus card ---------- */
.campus-card { display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(19,28,56,.45); }
.campus-main { padding: 30px 24px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; }
.campus-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.campus-main h3 { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.2; }
.campus-intro { margin-top: 12px; color: rgba(255,255,255,.82); font-size: .9375rem; }
.campus-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 16px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.campus-meta > div { padding: 14px 4px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.campus-meta > div:last-child { border-right: 0; }
.campus-meta dt { font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.campus-meta dd { margin-top: 2px; font-weight: 700; font-size: 1.0625rem; color: var(--gold); }
.campus-list { padding: 20px 24px; background: #fff; }
.campus-list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.campus-list li:last-child { border-bottom: 0; }
.campus-list span { font-size: 1.25rem; line-height: 1.3; }
.campus-list p { font-size: .9375rem; color: var(--muted); }
.campus-list strong { color: var(--navy-800); }

/* ---------- Journey ---------- */
.journey { display: grid; gap: 14px; }
.journey li { padding: 24px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.03); border-top: 3px solid var(--gold); }
.yr { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.journey h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 1.25rem; }
.journey p { font-size: .9375rem; color: rgba(255,255,255,.75); }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 16px; }
.why { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.why span { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-800); font-size: 1.5rem; margin-bottom: 16px; }
.why h3 { font-family: var(--serif); font-size: 1.1875rem; color: var(--navy-800); margin-bottom: 6px; }
.why p { font-size: .9375rem; color: var(--muted); }

/* ---------- Labs ---------- */
.lab-grid { display: grid; gap: 18px; }
.lab { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.lab img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--light); }
.lab figcaption { padding: 16px 18px 20px; }
.lab h3 { font-family: var(--serif); font-size: 1.0625rem; color: var(--navy-800); }
.lab p { font-size: .875rem; color: var(--muted); margin-top: 4px; }

/* ---------- Faculty ---------- */
.fac-grid { display: grid; gap: 16px; }
.fac { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.fac-av { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.375rem; margin-bottom: 14px; border: 3px solid var(--gold-soft); }
.fac h3 { font-family: var(--serif); font-size: 1.125rem; color: var(--navy-800); }
.fac-role { margin: 2px 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.fac p:last-child { font-size: .875rem; color: var(--muted); }

/* ---------- Careers ---------- */
.career-grid { display: grid; gap: 24px; }
.career-col { padding: 24px 22px; border: 1px solid var(--line); border-radius: 10px; }
.career-col h3 { font-family: var(--serif); font-size: 1.1875rem; color: var(--navy-800); margin-bottom: 14px; }
.alumni { margin-top: 24px; padding: 26px 22px; border-radius: 10px; background: var(--light); border-left: 4px solid var(--red); }
.alumni h3 { margin-top: 12px; font-family: var(--serif); font-size: 1.375rem; color: var(--navy-800); }
.alumni p { color: var(--muted); }

/* ---------- CTA band ---------- */
.band { padding: 56px 0; background: linear-gradient(120deg, var(--navy-700), var(--navy-900)); color: #fff; }
.band-inner { display: grid; gap: 24px; align-items: center; }
.band h2 { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.625rem, 5vw, 2.25rem); line-height: 1.2; }
.band p { margin-top: 10px; color: rgba(255,255,255,.8); max-width: 54ch; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-wrap details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.faq-wrap summary { list-style: none; cursor: pointer; position: relative; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--navy-800); }
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--red); }
.faq-wrap details[open] summary::after { content: "–"; }
.faq-wrap details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Final + footer ---------- */
.final { padding: 72px 0; background: var(--navy-900); color: #fff; }
.final h2 { font-family: var(--serif); font-size: clamp(1.875rem, 6vw, 2.75rem); line-height: 1.15; }
.final p { margin: 12px auto 28px; max-width: 52ch; color: rgba(255,255,255,.8); }
.footer { padding: 28px 0 96px; background: #0e1530; color: rgba(255,255,255,.7); font-size: .8125rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer img { height: 30px; width: auto; }
.footer a { color: var(--gold); }

/* ---------- Bottom bar ---------- */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--navy-900); border-top: 2px solid var(--gold); color: #fff; transform: translateY(110%); transition: transform .25s ease; }
.bottom-bar.show { transform: translateY(0); }
.bottom-bar p { display: none; font-size: .9375rem; }
.bottom-bar .btn { flex: 1; max-width: 420px; min-height: 46px; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 640px) {
  .why-grid, .fac-grid, .lab-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .career-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats span { font-size: .6875rem; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --nav-h: 72px; }
  .nav-links { display: flex; }
  .sec { padding: 88px 0; }
  .hero { padding: 64px 0 80px; min-height: 620px; display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-stats { max-width: 600px; }
  .hero-stats li:first-child { text-align:center; padding-left: 0; }
  .form-card { padding: 24px 26px 12px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .fac-grid, .lab-grid, .journey { grid-template-columns: repeat(4, 1fr); }
  .campus-card { grid-template-columns: 1fr 1fr; }
  .campus-main { padding: 40px 36px; }
  .campus-list { padding: 24px 36px; }
  .band-inner { grid-template-columns: 1fr auto; }
  .bottom-bar { justify-content: space-between; padding-left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); padding-right: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
  .bottom-bar p { display: block; }
  .bottom-bar .btn { flex: 0 0 auto; margin-left: auto; }
  .footer { padding-bottom: 90px; }
}

/* Combined programme card sub-labels */
@media (min-width: 960px) { .fac-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Specialisations: numbered list ---------- */
.spec-list { counter-reset: spec; max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 22px; }
.spec-list li { counter-increment: spec; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 13px 0 13px 40px; position: relative; border-bottom: 1px solid var(--line); break-inside: avoid; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before { content: counter(spec, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; color: var(--gold); }
.spec-name { font-weight: 600; font-size: .9375rem; color: var(--navy-800); line-height: 1.4; }
.spec-name small { font-weight: 400; font-size: .8125rem; color: var(--muted); }
.spec-partner { font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: var(--navy-800); color: var(--gold); white-space: nowrap; }
@media (min-width: 768px) {
  .spec-list { columns: 2; column-gap: 40px; padding: 8px 28px; }
  .spec-list li:nth-child(7) { border-bottom: 0; }
}

/* ---------- Global immersions (highlighted, with flags) ---------- */
.immersions { margin: 4px 0 24px; padding: 16px 16px 18px; border: 1px solid rgba(214,169,77,.45); border-radius: 10px; background: rgba(214,169,77,.08); }
.immersions-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.immersion-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.immersion-list li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); text-align: center; }
.immersion-list .flag { width: 42px; height: 28px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.immersion-list span { font-size: .9375rem; font-weight: 700; color: #fff; line-height: 1.2; }
.immersion-list small { display: block; font-size: .6875rem; font-weight: 500; color: rgba(255,255,255,.6); }

/* =========================================================
   Font, mobile & speed pass (Oct 2026) – mirrors the Lodhi Road PGDM page
   ========================================================= */

/* Large headings: Plus Jakarta Sans 800, tight tracking */
.hero h1, .sec-head h2, .band h2, .final h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

/* Hero stats: 2x2 on mobile, numbers never wrap */
.hero-stats strong { white-space: nowrap; }
@media (max-width: 639px) {
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-stats li:nth-child(2) { border-right: 0; }
}

/* NoPaperForms widget: reserve its height so the hero doesn't jump when it loads */
.npf_wgts { min-height: 520px; }

/* Tap targets */
.btn-sm { min-height: 44px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Line icons in soft squares (replace emoji) */
.campus-list li { grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.campus-list .cl-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--gold-soft); color: var(--navy-800); font-size: inherit; }
.why { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.why .why-ic { display: inline-flex; width: 44px; height: 44px; margin: 0; border-radius: 10px; background: var(--gold-soft); color: var(--navy-800); font-size: inherit; }
.why .why-ic svg { margin: auto; }
.immersions-title { display: flex; align-items: center; gap: 8px; }

/* Fixed bottom CTA – mobile only, never shown with the form on screen (see script.js) */
.bottom-bar { justify-content: space-between; gap: 12px; }
.bb-text strong { display: block; font-size: .9375rem; line-height: 1.3; }
.bb-text span { display: block; font-size: .75rem; color: rgba(255,255,255,.72); }
.bottom-bar .btn { flex: 0 0 auto; max-width: none; min-height: 46px; padding: 0 22px; }
@media (min-width: 960px) {
  .bottom-bar { display: none !important; }
  .footer { padding-bottom: 28px; }
}

/* Performance: skip rendering off-screen sections until they are near the viewport */
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Mobile header: logo + "Apply Now" fit on one line at 360–390px */
.btn { white-space: nowrap; }
@media (max-width: 639px) {
  .nav-inner { gap: 12px; }
  .nav-logo img { height: 30px; width: auto; }
  .nav .btn-sm { padding: 8px 12px; }
}

/* Mobile: no arrow on buttons */
.btn-arrow { margin-left: .35em; }
@media (max-width: 639px) { .btn-arrow { display: none; } }

/* Intro text on dark sections */
.sec-dark .sec-head p { color: rgba(255,255,255,.75); }
