@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

/* Palette taken from the YUS brochures: deep indigo, one violet accent, teal for ticks, white space. */
:root {
  --navy: #1b1259;
  --navy-deep: #0f0a34;
  --navy-soft: #2c1e77;
  --blue: #5a45d6;
  --teal: #14b89a;
  --flame: #e8622a;
  --flame-dark: #c24a17;
  --white: #ffffff;
  --mist: #f7f6fc;
  --line: #e6e3f3;
  --text: #1d1a33;
  --muted: #625e7c;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(27, 18, 89, 0.09);
  --serif: "Poppins", "Segoe UI", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }
.alt { background: var(--mist); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--flame-dark); margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin-top: 12px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.15; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: .95rem; letter-spacing: .04em; flex: none; }
.brand small { display: block; font-family: var(--sans); font-weight: 600; font-size: .68rem; letter-spacing: .14em; color: var(--blue); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.menu a:hover { background: var(--mist); }
.menu a.active { background: var(--navy); color: var(--white); }
.menu a.login-link { border: 1.5px solid var(--navy); margin-left: 6px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: .95rem; border: 2px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer; transition: transform .15s, background .15s, color .15s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); background: var(--navy-soft); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.light.ghost { background: transparent; color: var(--white); }
.btn.light.ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft)); color: var(--white); padding: 96px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: #c9d6ee; }
.hero .eyebrow { color: #ffb48f; }
.hero.small { padding: 64px 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px); }
.hero-card h3 { color: var(--white); margin-bottom: 14px; }
.hero-card li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.hero-card li:last-child { border: 0; }
.hero-card li a { color: #9fc0ff; font-weight: 700; }

/* Cards & grids */
.grid { display: grid; gap: 22px; margin-top: 36px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--navy); }
.card p { color: var(--muted); margin-top: 8px; font-size: .96rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--blue); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; margin-bottom: 16px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--navy); margin-bottom: 12px; align-self: flex-start; }
.checks li { padding-left: 28px; position: relative; margin-top: 10px; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .7rem; display: grid; place-items: center; margin-top: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; }
.panel h3 { color: var(--white); }
.panel p { color: #c9d6ee; margin-top: 10px; }

/* Steps */
.steps { counter-reset: s; }
.steps .card { counter-increment: s; }
.steps .card::before { content: "0" counter(s); font-family: var(--serif); font-size: 1.8rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; }

/* Filter & tabs */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.center .pills, .pills.center { justify-content: center; }
.pill { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 700; font-size: .88rem; cursor: pointer; font-family: inherit; }
.pill[aria-selected="true"], .pill.on { background: var(--navy); color: var(--white); }
.tab-panel { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tab-panel[hidden] { display: none; }
.hide { display: none !important; }

/* Accordion */
.faq { margin-top: 32px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 18px 22px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Forms */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.field .err { color: #b3261e; font-size: .82rem; margin-top: 5px; min-height: 1em; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 6px 8px; font-family: inherit; font-size: .82rem; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--mist); border-left: 4px solid var(--navy); font-size: .92rem; }
.notice[hidden] { display: none; }
.login-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: linear-gradient(160deg, var(--navy-deep), var(--navy-soft)); color: var(--white); padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-side h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.login-side p { color: #c9d6ee; margin-top: 14px; max-width: 44ch; }
.login-side .checks li { color: var(--white); }
.login-side .checks li::before { background: var(--white); color: var(--navy); }
.login-main { display: grid; place-items: center; padding: 48px 20px; background: var(--mist); }
.login-main .form { width: min(430px, 100%); }
.form-foot { display: flex; justify-content: space-between; font-size: .88rem; margin: 4px 0 18px; flex-wrap: wrap; gap: 8px; }
.form-foot a { color: var(--blue); font-weight: 600; }

/* CTA + footer */
.cta { background: var(--navy); color: var(--white); border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--white); }
.cta p { color: #c9d6ee; margin-top: 8px; }
.footer { background: var(--navy-deep); color: #c9d6ee; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; font-size: .94rem; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer .brand-mark { background: var(--white); color: var(--navy); }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; text-align: center; }

/* Brand logos */
.header { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #1f6fa8, #452a6b 60%, var(--flame)) 1; }
.brand img { height: 50px; width: auto; }
.footer .brand { background: var(--white); padding: 8px 14px; border-radius: 10px; display: inline-flex; }
.logo-card { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; place-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.logo-card img { max-height: 240px; width: auto; }
.card .logo { height: 96px; display: flex; align-items: center; margin-bottom: 16px; }
.card .logo img { max-height: 96px; max-width: 100%; width: auto; }
.login-logo { background: var(--white); border-radius: 12px; padding: 14px 18px; align-self: flex-start; margin-bottom: 26px; }
.login-logo img { height: 70px; width: auto; }

/* Leaders, lists, tables, contact */
.leader .role { color: var(--flame-dark); font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.leader .quals { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.leader .checks li { font-size: .94rem; }
.unlearn li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--flame); border-radius: 10px; padding: 14px 18px; margin-top: 12px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 480px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: var(--white); font-weight: 600; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 700; background: var(--mist); color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: .86rem; }
.contact-grid a { align-items: flex-start; }
.contact-grid .k { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--flame-dark); }
.contact-grid .v { font-weight: 700; color: var(--navy); margin-top: 4px; overflow-wrap: anywhere; }
.btn.flame { background: var(--flame); border-color: var(--flame); color: var(--white); }
.btn.flame:hover { background: var(--flame-dark); border-color: var(--flame-dark); }

/* Courses & fees */
.course-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.course-tools input { flex: 1 1 220px; max-width: 340px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.course-tools input:focus { outline: none; border-color: var(--navy); }
.hide-s { display: none !important; }
.fee { font-family: var(--serif); font-size: 1.7rem !important; font-weight: 700; color: var(--navy) !important; margin-top: 10px !important; font-variant-numeric: tabular-nums; }
.fee small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); }
.course details { margin: 14px 0 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.course summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: .92rem; }
.course .checks li { font-size: .9rem; }
.course .btn { margin-top: auto; padding: 10px 16px; font-size: .88rem; }
.price.best { border: 2px solid var(--flame); box-shadow: var(--shadow); }
.price.best .tag { background: var(--flame); color: var(--white); }
.price .checks { margin-top: 8px; }
.stats { margin-top: 28px; }
.stats .card { text-align: center; padding: 20px; }
.stats .num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
td a { color: var(--navy); font-weight: 600; }
td a:hover { color: var(--blue); text-decoration: underline; }

/* Comparison table & faculty photos */
.compare { background: var(--white); border: 1px solid var(--line); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; white-space: nowrap; }
.compare th:nth-child(3), .compare td:nth-child(3) { background-color: #eef3ff; }
.compare th:nth-child(3) { background-color: var(--flame); }
.compare .group td { background: var(--mist); color: var(--navy); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; }
.compare .y { color: #12805c; font-weight: 700; font-size: 1.1rem; }
.compare .n { color: #a3adc2; }
.leader .photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--mist); border: 3px solid var(--line); margin-bottom: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.top-btn { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.top-btn.show { opacity: 1; pointer-events: auto; }

@media (max-width: 1120px) {
  .burger { display: block; }
  .menu { position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
  .menu a.login-link { margin: 6px 0 0; text-align: center; }
  .hero-grid, .split, .login-wrap { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .login-side { padding: 48px 24px; }
}
@media (max-width: 620px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0; }
  .g2, .g3, .g4, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 30px 22px; }
  .brand span.full { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Brochure theme: minimalist indigo ===== */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; }
h3 { font-weight: 600; }
.eyebrow, .leader .role, .contact-grid .k { color: var(--blue); }
.header { border-image: none; border-bottom: 1px solid var(--line); }
.menu a { font-weight: 500; }
.hero { background: radial-gradient(900px 500px at 85% 0%, #3a2a9a 0%, transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft)); }
.hero::after { display: none; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.hero .eyebrow { color: #6ee7d2; }
.hero .lead, .panel p, .cta p, .login-side p { color: #d3cff0; }
.hero-card li a { color: #6ee7d2; }
.card { border-color: var(--line); }
.card:hover { border-color: var(--blue); }
.icon { background: #eeebfc; color: var(--blue); font-size: .9rem; }
.tag { background: #eeebfc; color: var(--blue); }
.checks li::before { background: var(--teal); }
.steps .card::before { color: var(--blue); }
.unlearn li { border-left-color: var(--blue); }
.panel, .cta { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); }
.card .more, .course summary, .form-foot a, .pw-wrap button { color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(90, 69, 214, .18); }
.fee, .stats .num { font-family: var(--serif); letter-spacing: -0.02em; }
.login-side { background: linear-gradient(160deg, var(--navy-deep), var(--navy-soft)); }

/* Fee cards as in the brochure: white cards, one filled "best" card */
.price { border-width: 1.5px; }
.price.best { background: linear-gradient(160deg, var(--blue), #3d2bb0); border-color: transparent; color: var(--white); }
.price.best h3, .price.best .fee, .price.best .checks li { color: var(--white) !important; }
.price.best .tag { background: var(--teal); color: var(--white); }
.price.best .checks li::before { background: var(--white); color: var(--blue); }

/* Comparison table as in the brochure */
.compare { border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.compare th { background: var(--navy); padding: 16px 14px; }
.compare th:nth-child(3) { background-color: var(--blue); }
.compare th:nth-child(3), .compare td:nth-child(3) { background-color: #f1eefd; }
.compare th:nth-child(3) { background-color: var(--blue); }
.compare .group td { background: var(--navy); color: var(--white); }
.compare .y { color: var(--white); font-size: 0; }
.compare .y::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: .75rem; }
.compare td:nth-child(3):not(.y):not(.n) { color: var(--blue); font-weight: 600; }

/* Marks strip ("the road to the final list") */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.road div { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.road div:last-child { border-right: 0; background: var(--navy); }
.road .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--blue); display: block; }
.road b { display: block; color: var(--navy); font-size: .95rem; }
.road span.s { font-size: .82rem; color: var(--muted); }
.road div:last-child .num, .road div:last-child b { color: var(--white); }
.road div:last-child span.s { color: #d3cff0; }
@media (max-width: 620px) { .road { grid-template-columns: 1fr 1fr; } .road div:nth-child(2) { border-right: 0; } .road div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
/* Course banners */
.course { overflow: hidden; }
.course .banner { display: block; width: calc(100% + 52px); max-width: none; margin: -26px -26px 20px; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.course .banner.plain { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px; background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); color: var(--white); }
.course .banner.plain small { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6ee7d2; }
.course .banner.plain b { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }

/* Home programme logos: larger and centred */
.card .logo { height: 180px; justify-content: center; }
.card .logo img { max-height: 180px; }
/* Videos and banner gallery */
.video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--navy) center / cover no-repeat; cursor: pointer; position: relative; overflow: hidden; }
button.video::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 10, 52, .82); color: var(--white); font-size: 1.3rem; display: grid; place-items: center; padding-left: 4px; transition: transform .15s, background .15s; }
button.video:hover::after { transform: scale(1.08); background: var(--blue); }
.video-title { margin-top: 12px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.gallery a:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; }
.menu a { padding: 8px 10px; }
/* Course cards: four per row on wide screens, compact and even */
#course-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.course { padding: 18px; }
.course .banner { width: calc(100% + 36px); margin: -18px -18px 16px; }
.course .banner.plain { padding: 20px; }
.course .banner.plain b { font-size: 1.2rem; }
.course .tag { margin-bottom: 8px; font-size: .66rem; }
.course h3 { font-size: 1.02rem; line-height: 1.3; min-height: 2.6em; }
.course .fee { font-size: 1.4rem !important; margin-top: 4px !important; }
.course details { margin: 10px 0 14px; padding-top: 10px; }
.course .checks li { font-size: .85rem; margin-top: 8px; }
.course .btn { padding: 9px 12px; font-size: .84rem; }

/* Brochure-style blocks (TNPSC Dude) */
.hero h1 .accent { display: block; color: #6ee7d2; font-size: .62em; margin-top: 10px; letter-spacing: -0.01em; }
.hl { border-radius: var(--radius); padding: 28px; color: var(--white); background: linear-gradient(135deg, var(--blue), #3d2bb0); }
.hl.alt-hl { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); border: 1.5px solid var(--teal); }
.hl h3 { color: var(--white); font-size: 1.35rem; margin-top: 12px; }
.hl p { color: #dedaf6; margin-top: 8px; }
.chip { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--flame); color: var(--white); }
.alt-hl .chip { background: var(--teal); }
.feats { margin-top: 16px; }
.feat { flex-direction: row; gap: 18px; align-items: flex-start; padding: 22px; }
.feat .no { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #eeebfc; color: var(--blue); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.feat p { margin-top: 4px; }
.fees td:first-child { width: 70%; }
.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.includes li { position: relative; padding: 14px 16px 14px 48px; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.includes li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: .72rem; display: grid; place-items: center; }
.touch { margin-top: 48px; border-radius: 20px; padding: 40px; color: var(--white); background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.touch h2 { color: var(--white); }
.touch .eyebrow { color: #6ee7d2; }
.touch li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); display: flex; gap: 16px; overflow-wrap: anywhere; }
.touch li:last-child { border: 0; }
.touch li span { flex: none; width: 56px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6ee7d2; padding-top: 3px; }
.touch a:hover { text-decoration: underline; }
@media (max-width: 760px) { .includes, .touch { grid-template-columns: 1fr; } .touch { padding: 28px 22px; } }
/* Home hero: full-width photo with centred text */
.hero.photo { min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center; padding: 110px 0; background: var(--navy-deep); isolation: isolate; }
.hero.photo .bg { position: absolute; inset: -30px; z-index: -2; background: url("../images/hero-temp.webp") center / cover no-repeat; filter: blur(14px) brightness(.62) saturate(1.1); }
.hero.photo .bg.clean { inset: 0; filter: none; }
.hero.photo .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 10, 52, .35), rgba(15, 10, 52, .62)); }
.hero.photo .eyebrow { color: var(--white); font-size: clamp(.85rem, 1.6vw, 1.15rem); font-weight: 500; letter-spacing: .22em; margin-bottom: 14px; }
.hero.photo h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 1.12; }
.hero.photo .tagline { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--white); margin-top: 28px; }
.hero.photo .lead { color: var(--white); margin: 22px auto 0; max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero.photo .btn-row { justify-content: center; margin-top: 44px; }
.btn.join { background: #12a7e6; border-color: #12a7e6; color: var(--white); border-radius: 14px; padding: 15px 30px; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.btn.join:hover { background: #0d8fc7; border-color: #0d8fc7; }
/* Blog */
.post-card h3 { font-size: 1.02rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); max-width: 28ch; line-height: 1.25; }
.post { max-width: 780px; margin-inline: auto; font-size: 1.04rem; line-height: 1.8; overflow-wrap: anywhere; }
.post .back { color: var(--blue); font-weight: 600; font-size: .92rem; }
.post h2 { font-size: 1.45rem; margin: 40px 0 12px; line-height: 1.3; scroll-margin-top: 90px; }
.post h3 { font-size: 1.15rem; margin: 28px 0 8px; scroll-margin-top: 90px; }
.post h4 { color: var(--navy); margin: 22px 0 6px; }
.post p { margin-top: 14px; }
.post ul, .post ol { margin: 12px 0 0 22px; }
.post ul { list-style: disc; }
.post li { margin-top: 8px; }
.post a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.post blockquote { border-left: 4px solid var(--blue); background: var(--mist); padding: 14px 18px; border-radius: 0 12px 12px 0; margin-top: 18px; }
.post table { min-width: 520px; font-size: .92rem; border: 1px solid var(--line); }
.post th, .post td { vertical-align: top; text-align: left !important; white-space: normal !important; }
.post-nav { max-width: 780px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-weight: 600; color: var(--navy); font-size: .92rem; line-height: 1.4; }
.post-nav a:hover { border-color: var(--blue); }
.post-nav a.next { text-align: right; grid-column: 2; }
.post-nav span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.next { grid-column: 1; text-align: left; } }
/* Talk to our expert team: navy panel + white form */
.ic { display: inline-block; width: 20px; height: 20px; flex: none; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.talk { --tn: #0b1f4b; --tn2: #15346f; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 24px; overflow: hidden; background: var(--white); border: 1px solid #dfe5f1; box-shadow: 0 24px 60px rgba(11, 31, 75, .12); }
.talk-side { background: linear-gradient(155deg, var(--tn), var(--tn2)); color: var(--white); padding: 48px 44px; }
.talk-side .eyebrow { color: #a9c1f5; }
.talk-side h2 { color: var(--white); }
.talk-lead { color: #cdd8f0; margin-top: 12px; max-width: 40ch; }
.talk-list { margin-top: 30px; }
.talk-list li + li { margin-top: 6px; }
.talk-list a { display: flex; align-items: center; gap: 16px; padding: 12px 14px; margin-left: -14px; border-radius: 14px; transition: background .15s; font-weight: 600; overflow-wrap: anywhere; line-height: 1.4; }
.talk-list a:hover { background: rgba(255, 255, 255, .08); }
.talk-list a > .ic { width: 44px; height: 44px; border-radius: 12px; background: none; -webkit-mask: none; mask: none; position: relative; border: 1px solid rgba(255, 255, 255, .28); }
.talk-list a > .ic::before { content: ""; position: absolute; inset: 11px; background: var(--white); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.talk-list small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a9c1f5; margin-bottom: 2px; }
.talk-follow { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a9c1f5; }
.talk-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.talk-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--tn); display: grid; place-items: center; transition: transform .15s, background .15s; }
.talk-social a:hover { transform: translateY(-3px); background: #dbe6ff; }
.talk-form { padding: 48px 44px; }
.talk-form h3 { color: var(--tn); font-size: 1.35rem; margin-bottom: 22px; }
.talk-form .field label { color: var(--tn); }
.talk-form .field input, .talk-form .field select, .talk-form .field textarea { border-color: #dfe5f1; background: #f8fafd; }
.talk-form .field input:focus, .talk-form .field select:focus, .talk-form .field textarea:focus { border-color: var(--tn); background: var(--white); box-shadow: 0 0 0 3px rgba(11, 31, 75, .12); }
.btn.navy { background: var(--tn); border-color: var(--tn); color: var(--white); padding: 14px 22px; }
.btn.navy:hover { background: var(--tn2); border-color: var(--tn2); }
.talk .notice { border-left-color: var(--tn); background: #f1f5fc; }
@media (max-width: 860px) { .talk { grid-template-columns: 1fr; } .talk-side, .talk-form { padding: 34px 24px; } }
/* Footer social logos */
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); color: var(--white); display: grid; place-items: center; transition: background .15s, color .15s, transform .15s; }
.foot-social a:hover { background: var(--white); color: var(--navy-deep); transform: translateY(-3px); text-decoration: none; }
.foot-social .ic { width: 18px; height: 18px; }
/* Rotating course dial */
.dial-box { --tn: #0b1f4b; --tn2: #15346f; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; margin-top: 36px; padding: 44px; background: var(--white); border: 1px solid #dfe5f1; border-radius: 24px; box-shadow: 0 24px 60px rgba(11, 31, 75, .10); }
.dial-side { display: grid; justify-items: center; gap: 22px; }
.dial { --size: 340px; --rot: 0deg; position: relative; width: var(--size); height: var(--size); border-radius: 50%; background: radial-gradient(circle at 50% 50%, #f4f7fd 0 58%, #e9eef9 58% 100%); border: 1px solid #dfe5f1; touch-action: none; outline-offset: 6px; }
.dial .tick { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; border: 0; background: none; cursor: pointer; padding: 0; transform: rotate(var(--a)) translateY(calc(var(--size) / -2 + 30px)) rotate(calc(-1 * var(--a))); }
.dial .tick span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font: 600 .82rem var(--sans); color: var(--tn); background: var(--white); border: 1px solid #cfd8ea; transition: background .2s, color .2s, transform .2s; }
.dial .tick:hover span { border-color: var(--tn); }
.dial .tick.on span { background: var(--tn); color: var(--white); border-color: var(--tn); transform: scale(1.22); box-shadow: 0 6px 16px rgba(11, 31, 75, .3); }
.knob { position: absolute; inset: 21%; border-radius: 50%; cursor: grab; transform: rotate(var(--rot)); transition: transform .6s cubic-bezier(.2, .9, .25, 1.1); background: conic-gradient(from 0deg, var(--tn), var(--tn2), var(--tn)); box-shadow: 0 18px 40px rgba(11, 31, 75, .35), inset 0 0 0 10px rgba(255, 255, 255, .07), inset 0 0 0 11px rgba(255, 255, 255, .16); }
.dial.dragging .knob { cursor: grabbing; transition-duration: .15s; }
.knob-mark { position: absolute; left: 50%; top: 9px; width: 8px; height: 26px; margin-left: -4px; border-radius: 4px; background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, .7); }
.knob-face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--white); transform: rotate(calc(-1 * var(--rot))); transition: transform .6s cubic-bezier(.2, .9, .25, 1.1); pointer-events: none; }
.dial.dragging .knob-face { transition-duration: .15s; }
.knob-face small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #a9c1f5; }
.knob-face b { font-family: var(--serif); font-size: 3rem; line-height: 1.1; }
.dial-ctrl { display: flex; align-items: center; gap: 16px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tn); }
.dial-ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--tn); background: var(--white); color: var(--tn); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.dial-ctrl button:hover { background: var(--tn); color: var(--white); }
.dial-card { min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; }
.dial-card.pop { animation: dial-pop .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dial-pop { from { opacity: 0; transform: translateX(-28px) scale(.94); } to { opacity: 1; transform: none; } }
.dial-card .tag { background: #e9eef9; color: var(--tn); }
.dial-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--tn); line-height: 1.25; }
.dial-card .fee { font-size: clamp(2rem, 4vw, 2.8rem) !important; color: var(--tn) !important; margin-top: 8px !important; }
.dial-card .checks { margin: 10px 0 22px; }
.dial-card .checks li { font-size: .95rem; }
.dial-card .checks li::before { background: var(--tn); }
.dial-card .btn { margin-top: auto; }
.fee-list { margin-top: 26px; }
.fee-list summary { cursor: pointer; font-weight: 700; color: var(--blue); width: fit-content; margin-inline: auto; }
@media (max-width: 900px) { .dial-box { grid-template-columns: 1fr; gap: 30px; padding: 28px 18px; } .dial-card { min-height: 0; } }
@media (max-width: 420px) { .dial { --size: 290px; } .dial .tick { width: 32px; height: 32px; margin: -16px; transform: rotate(var(--a)) translateY(calc(var(--size) / -2 + 24px)) rotate(calc(-1 * var(--a))); } .dial .tick span { font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { .dial-card.pop { animation: none; } }
/* Dial with a logo in the knob */
.knob-face.has-logo { inset: 11%; border-radius: 50%; background: var(--white); overflow: hidden; box-shadow: inset 0 0 0 1px #dfe5f1, 0 4px 14px rgba(0, 0, 0, .25); }
.knob-face.has-logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(.9); }
.knob:has(.has-logo) .knob-mark { top: 4px; height: 18px; }
/* E-book: cover shown like a real book, plus the full-screen reader */
.ebook { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: center; margin-top: 36px; }
.book { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px 12px 12px 4px; transform: perspective(1400px) rotateY(-14deg); transform-origin: left center; transition: transform .35s ease, box-shadow .35s ease; box-shadow: 0 2px 0 #fff inset, 14px 18px 34px rgba(15, 10, 52, .28), 6px 6px 0 -1px #e9e6f5, 7px 7px 0 -1px #cfcbe2, 12px 12px 0 -2px #e9e6f5, 13px 13px 0 -2px #cfcbe2; }
.book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .22) 40%, rgba(0, 0, 0, .1) 60%, transparent); z-index: 1; }
.book img { display: block; width: 100%; height: auto; border-radius: 4px 12px 12px 4px; }
.book:hover, .book:focus-visible { transform: perspective(1400px) rotateY(-4deg) translateY(-4px); }
.book-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(15, 10, 52, .88); color: var(--white); font: 600 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; z-index: 2; }
.book:hover .book-hint, .book:focus-visible .book-hint { opacity: 1; }
.ebook-info h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25; }
.ebook-info > p { color: var(--muted); margin-top: 10px; max-width: 56ch; }
.ebook-info .checks { margin-top: 14px; }
@media (max-width: 760px) { .ebook { grid-template-columns: 1fr; gap: 34px; } .book { max-width: 260px; margin-inline: auto; } .book-hint { opacity: 1; } }

.reader { position: fixed; inset: 0; z-index: 200; background: #0c0a1f; display: grid; grid-template-rows: auto 1fr; color: var(--white); }
.reader-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #15123a; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.reader-bar b { font-family: var(--serif); font-weight: 600; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reader-count { margin-left: auto; font-size: .86rem; color: #cfcbe8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reader-btn { flex: none; padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .3); background: none; color: var(--white); font: 600 .84rem var(--sans); cursor: pointer; }
.reader-btn:hover { background: var(--white); color: var(--navy-deep); }
.reader-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 14px 10px; min-height: 0; }
.reader-pages { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; }
.reader-pages canvas { background: var(--white); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); border-radius: 2px; }
.reader-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: var(--white); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.reader-nav:hover:not(:disabled) { background: var(--white); color: var(--navy-deep); }
.reader-nav:disabled { opacity: .25; cursor: default; }
.reader-error { color: #cfcbe8; text-align: center; max-width: 40ch; }
@media (max-width: 620px) { .reader-bar b { display: none; } .reader-count { margin-left: 0; margin-right: auto; } .reader-stage { padding: 8px 4px; gap: 2px; } .reader-nav { width: 38px; height: 38px; font-size: 1.4rem; } }
/* Reader pages are images */
.reader-pages img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; background: var(--white); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); border-radius: 2px; }
.reader-pages.two img { max-width: calc(50% - 2px); }
/* Reader on phones: page uses the full width, arrows sit underneath */
@media (max-width: 620px) {
  .reader-stage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 6px 6px 12px; gap: 10px 18px; }
  .reader-pages { grid-column: 1 / -1; grid-row: 1; }
  .reader-nav { grid-row: 2; width: 46px; height: 46px; }
  .reader-nav[data-go="-1"] { justify-self: end; }
  .reader-nav[data-go="1"] { justify-self: start; }
}
/* Navy course banners */
.course .banner.plain { background: linear-gradient(160deg, #0a1238, #1b2a6e); aspect-ratio: 4 / 3; align-items: center; text-align: center; }
.course .banner.plain small { color: var(--white); background: #f7941d; padding: 5px 14px; border-radius: 999px; letter-spacing: .12em; }
.course .banner.plain b { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.price { overflow: hidden; }
.price .banner { display: block; width: calc(100% + 52px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -26px -26px 20px; }
/* TNPSC banners: white and red title band for courses without an image; centred last row in the gallery */
.course .banner.plain.tnpsc { background: radial-gradient(circle at 50% 45%, #ffffff 0 40%, #fdecec 100%); border-bottom: 1px solid #f4d6d6; }
.course .banner.plain.tnpsc small { background: #c8102e; color: var(--white); }
.course .banner.plain.tnpsc b { color: #1a1a1a; }
.gallery { justify-content: center; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
/* Course card buttons: optional "Join Now" above the WhatsApp button */
.course-actions { margin-top: auto; display: grid; gap: 8px; }
.course-actions .btn { margin-top: 0; width: 100%; }
.btn.join-now { background: var(--flame); border-color: var(--flame); color: var(--white); padding: 9px 12px; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.btn.join-now:hover { background: var(--flame-dark); border-color: var(--flame-dark); }
/* Announcements ticker under the home hero */
.ticker { display: flex; align-items: stretch; background: #0b1f4b; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--flame); font: 700 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; position: relative; z-index: 1; }
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: ticker-blink 1.4s ease-in-out infinite; }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker-move var(--ticker-time, 30s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { flex: none; display: flex; align-items: center; gap: 14px; padding: 13px 28px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.ticker-track a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6ee7d2; flex: none; }
.ticker-track a:hover, .ticker-track a:focus-visible { color: #6ee7d2; text-decoration: underline; text-underline-offset: 4px; }
@keyframes ticker-move { to { transform: translateX(-50%); } }
@keyframes ticker-blink { 50% { opacity: .25; } }
@media (max-width: 620px) { .ticker-label { padding: 0 12px; font-size: .68rem; } .ticker-track a { padding: 12px 20px; font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; } .ticker-track a { white-space: normal; } .ticker-track a[aria-hidden] { display: none; } .ticker-label::before { animation: none; } .ticker-view { -webkit-mask-image: none; mask-image: none; } }

/* Course card reached from an announcement: scroll clear of the menu and highlight it */
.course { scroll-margin-top: 110px; }
.course.spot { border-color: var(--flame); box-shadow: 0 0 0 3px rgba(232, 98, 42, .35), var(--shadow); animation: spot-pulse 1.2s ease-in-out 3; }
@keyframes spot-pulse { 50% { box-shadow: 0 0 0 9px rgba(232, 98, 42, .12), var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .course.spot { animation: none; } }
/* Sections reached from the announcements bar stop clear of the menu */
section[id], #latest-videos { scroll-margin-top: 84px; }
/* Blog archive list */
.post .archive { list-style: none; margin: 8px 0 0; }
.post .archive li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post .archive a { display: block; font-weight: 600; text-decoration: none; color: var(--navy); line-height: 1.45; }
.post .archive a:hover { color: var(--blue); text-decoration: underline; }
.post .archive span { display: block; font-size: .84rem; color: var(--muted); margin-top: 4px; }
/* Release popup on the home page */
.popup { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(9, 13, 40, .72); backdrop-filter: blur(3px); animation: popup-fade .3s ease; }
.popup[hidden] { display: none; }
.popup-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: 260px 1fr; background: var(--white); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: popup-rise .4s cubic-bezier(.2, .9, .3, 1.15); }
.popup-cover { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px 0 0 22px; }
.popup-body { padding: 40px 36px 34px; align-self: center; }
.popup-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: #0b1f4b; line-height: 1.25; margin-top: 14px; }
.popup-body p { color: var(--muted); margin-top: 12px; }
.popup-body .btn-row { margin-top: 24px; }
.popup-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: #0b1f4b; font-size: 1rem; cursor: pointer; z-index: 1; }
.popup-close:hover { background: #0b1f4b; color: var(--white); }
.tag.new { background: var(--flame); color: var(--white); }
@keyframes popup-fade { from { opacity: 0; } }
@keyframes popup-rise { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@media (max-width: 640px) { .popup-card { grid-template-columns: 1fr; } .popup-cover { height: 210px; border-radius: 22px 22px 0 0; } .popup-body { padding: 24px 22px 26px; } .popup-body .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .popup, .popup-card { animation: none; } }
.ebook + .ebook { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
/* Pictures inside blog posts */
.post .post-img { margin-top: 20px; text-align: center; }
.post .post-img img, .post img { display: inline-block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
/* Popup with several announcements */
.popup-card { display: block; width: min(820px, 100%); }
.popup-slide { display: grid; grid-template-columns: 300px 1fr; align-items: center; }
.popup-slide[hidden] { display: none; }
.popup-cover-link { display: block; height: 100%; }
.popup-slide .popup-cover { display: block; width: 100%; height: auto; border-radius: 22px 0 0 0; }  /* whole poster visible */
.popup-body .checks { margin-top: 12px; }
.popup-body .checks li { font-size: .97rem; }
.popup-fee { font-size: 1rem; color: var(--muted); margin-top: 14px !important; }
.popup-fee b { font-family: var(--serif); font-size: 1.7rem; color: #0b1f4b; margin-left: 6px; }
.popup-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; border-top: 1px solid var(--line); }
.popup-nav[hidden] { display: none; }
.popup-nav > button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #0b1f4b; background: var(--white); color: #0b1f4b; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.popup-nav > button:hover { background: #0b1f4b; color: var(--white); }
.popup-dots { display: flex; gap: 8px; }
.popup-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #cdd5e6; cursor: pointer; }
.popup-dots button[aria-current="true"] { background: var(--flame); width: 26px; border-radius: 999px; }
@media (max-width: 640px) { .popup-slide { grid-template-columns: 1fr; } .popup-slide .popup-cover { height: 230px; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; } }

/* Brochure link on a course card */
.brochure-link { text-align: center; font-weight: 700; font-size: .84rem; color: var(--blue); padding: 4px 0 0; }
.brochure-link:hover { text-decoration: underline; }
/* Popup slide with a wide (4:3) banner instead of a tall poster */
.popup-slide .popup-cover.landscape { border-radius: 14px; margin: 26px 0 26px 26px; width: calc(100% - 26px); border: 1px solid var(--line); }
@media (max-width: 640px) { .popup-slide .popup-cover.landscape { margin: 0; width: 100%; height: auto; border-radius: 22px 22px 0 0; border: 0; } }
/* Course without a fixed price */
.course .fee.on-enquiry { font-size: 1.05rem !important; color: var(--flame-dark) !important; letter-spacing: 0; }
.popup-fee:not(:has(b)) { color: #0b1f4b; font-weight: 600; }
/* Flagship course card */
.course { position: relative; }
.course.flagship { border: 2px solid #d9a521; box-shadow: 0 10px 30px rgba(217, 165, 33, .22); }
.course .tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.course .tag-row .tag { margin-bottom: 0; }
.course .ribbon { padding: 5px 11px; border-radius: 999px; background: linear-gradient(135deg, #f4c542, #d9a521); color: #2a1c00; font: 700 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
/* ---------- PYQ Finder ---------- */
.pyq-search { display: flex; gap: 10px; margin-top: 26px; max-width: 720px; }
.pyq-search input { flex: 1; min-width: 0; padding: 15px 22px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: 1.02rem; color: var(--text); background: var(--white); }
.pyq-search input:focus { outline: none; border-color: var(--teal); }
.pyq-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; color: #c9d6ee; font-size: .88rem; }
.pyq-suggest button { font: inherit; font-size: .84rem; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; }
.pyq-suggest button:hover { background: var(--white); color: var(--navy); }
.pyq-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 26px; }
.pyq-bar label { display: grid; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pyq-bar select { font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text); padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); max-width: 100%; }
.pyq-bar .btn { padding: 9px 18px; }
.pyq-analysis { background: var(--mist); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin-bottom: 28px; }
.pyq-sum h3 { margin: 0; }
.pyq-sum p { color: var(--muted); margin-top: 6px; }
.pyq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 20px; }
.pyq-cols h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flame-dark); margin: 0 0 10px; }
.pyq-cols h4:not(:first-child) { margin-top: 20px; }
.pyq-bars { display: grid; gap: 4px; }
.pyq-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 30px; gap: 12px; align-items: center; font: inherit; font-size: .9rem; text-align: left; padding: 5px 8px; margin: 0 -8px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.pyq-row:hover { background: var(--white); }
.pyq-row .bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pyq-row .bar i { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.pyq-row .ct { font-weight: 700; text-align: right; color: var(--navy); }
.pyq-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pyq-tags button { font: inherit; font-size: .8rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; }
.pyq-tags button:hover { border-color: var(--navy); color: var(--navy); }
.pyq-tags button b { color: var(--flame-dark); }
.pyq-list { display: grid; gap: 18px; }
.pyq-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.pyq-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.pyq-meta .tag { margin: 0; }
.pyq-q p { margin: 0 0 6px; font-weight: 500; }
.pyq-q p.st { font-weight: 400; padding-left: 20px; }
.pyq-opts { list-style: none; counter-reset: opt; display: grid; gap: 4px; margin: 12px 0 16px; padding: 0; }
.pyq-opts li { counter-increment: opt; padding-left: 34px; position: relative; color: var(--text); }
.pyq-opts li::before { content: "(" counter(opt, lower-alpha) ")"; position: absolute; left: 0; color: var(--muted); }
.pyq-card mark, .pyq-analysis mark { background: #ffe9a8; color: inherit; padding: 0 2px; border-radius: 3px; }
.pyq-empty h3 { margin: 0 0 6px; }
.pyq-empty p { color: var(--muted); }
.pyq-note { font-size: .88rem; max-width: none; margin: 30px 0 46px; }
@media (max-width: 760px) {
  .pyq-search { flex-direction: column; }
  .pyq-cols { grid-template-columns: 1fr; gap: 8px; }
  .pyq-analysis, .pyq-card { padding: 20px 18px; }
  .pyq-row { grid-template-columns: minmax(96px, 130px) 1fr 26px; }
}
/* ---------- YUS app (Google Play) ---------- */
.app-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 12px; border-radius: 10px; background: #000; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 600; font-size: 1.02rem; line-height: 1.15; transition: transform .15s, border-color .15s; }
.app-badge:hover { transform: translateY(-2px); border-color: #fff; text-decoration: none; color: #fff; }
.app-badge span { display: grid; text-align: left; }
.app-badge small { font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.menu a.app-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; margin-left: 4px; border-radius: 50%; border: 1.5px solid var(--line); }
.menu a.app-link svg { width: 20px; height: 20px; }
.menu a.app-link span { display: none; }
.login-main .app-badge { margin-top: 22px; }
@media (max-width: 1120px) {
  .menu a.app-link { border-radius: 8px; padding: 12px 14px; margin: 6px 0 0; background: #000; border-color: #000; color: #fff; }
  .menu a.app-link span { display: inline; }
}
/* ---------- Brochure download enquiry form ---------- */
.lead-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--white); border-radius: 22px; padding: 34px 30px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lead-card h2 { font-size: 1.45rem; color: #0b1f4b; line-height: 1.25; }
.lead-sub { color: var(--muted); margin: 8px 0 20px; }
.lead-note { color: var(--muted); font-size: .8rem; margin-top: 14px; text-align: center; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }