/* STEM Scholars public site: modelled on the ScienceXperts layout. Arial, pale blue, centred headings. */
:root {
  --navy: #19578f;          /* heading blue */
  --navy-700: #154a7a;
  --navy-900: #0f2f55;
  --blue: #0a85f0;          /* bright call-to-action blue */
  --blue-600: #0670cc;
  --brand: #2b69a6;         /* register button / footer family */
  --footer: #2e73b8;
  --sky: #a9cdf5;
  --blue-100: #d6e6fb;
  --blue-50: #edf4fe;
  --indigo-1: #8a8cff;
  --indigo-2: #6b6df6;
  --indigo-3: #4c4ff0;
  --paper: #ffffff;
  --mist: #f1f6fe;
  --line: #dbe4ef;
  --line-strong: #bccbdc;
  --ink: #19578f;
  --text: #454659;
  --body: #454659;
  --muted: #6b7282;
  --ok: #17703f;  --ok-bg: #e5f3ea;
  --warn: #8a5a00; --warn-bg: #fbf1dc;
  --bad: #a3261c;  --bad-bg: #fbe8e6;
  --info: #0670cc; --info-bg: #e7f1fd;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: var(--sans);
  --r: 0;                   /* square corners everywhere */
  --rb: 0;
  --wrap: 1120px;
  --focus: 0 0 0 3px rgba(10, 133, 240, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--text); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow.light { color: var(--sky); }
.hidden { display: none !important; }
.center { text-align: center; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; font: 700 1rem/1 var(--sans); border: 2px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; border-radius: var(--rb); transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(10,133,240,.7); }
.btn-navy, .btn-brand { background: var(--brand); border-color: var(--brand); }
.btn-navy:hover, .btn-brand:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-indigo { background: var(--indigo-3); border-color: var(--indigo-3); letter-spacing: .06em; }
.btn-indigo:hover { background: #3a3cd6; border-color: #3a3cd6; }
.btn-blue { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { background: var(--blue-50); color: var(--navy); border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--blue-50); color: var(--navy); border-color: var(--blue-50); }
.btn-ghost-light, .btn-pill-light { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 999px; }
.btn-ghost-light:hover, .btn-pill-light:hover { background: #fff; color: var(--navy); }
.btn-danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #0f5a31; border-color: #0f5a31; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center-row { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245,249,255,.94); backdrop-filter: blur(10px); box-shadow: 0 2px 12px rgba(15,47,85,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand-logo img { height: 66px; width: auto; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.login-box { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 34px; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 700; }
.login-box:hover { border-color: var(--navy); color: var(--navy); }
.login-box svg { width: 22px; height: 22px; fill: var(--brand); }
.head-actions .btn { min-height: 34px; padding: 0 30px; font-size: .9rem; background: var(--brand); border-color: var(--brand); }
.menu-btn { background: none; border: 0; padding: 6px; cursor: pointer; display: grid; gap: 7px; }
.menu-btn span { display: block; width: 46px; height: 4px; background: var(--brand); }
.menu-panel { position: absolute; right: 0; top: 84px; width: min(320px, 100%); background: #fff; box-shadow: 0 18px 40px -16px rgba(15,47,85,.35); border-radius: 0 0 0 var(--r); padding: 14px 0; display: none; }
.menu-panel.open { display: block; }
.menu-panel a { display: block; padding: 12px 28px; color: var(--navy); text-decoration: none; font-weight: 700; }
.menu-panel a:hover { background: var(--blue-50); }
.menu-panel .divider { height: 1px; background: var(--line); margin: 8px 0; }
@media (max-width: 760px) {
  .login-box { padding: 0 14px; }
  .login-box span { display: none; }
  .head-actions { gap: 10px; }
  .head-actions .btn { padding: 0 14px; }
  .brand-logo img { height: 50px; }
  .menu-btn span { width: 34px; }
}

/* ------------------------------------------------------------ messages */
.messages { list-style: none; margin: 0; padding: 0; }
.msg { padding: 14px 18px; border-left: 4px solid var(--blue); background: var(--info-bg); color: var(--navy-900); margin-bottom: 10px; font-size: .95rem; border-radius: var(--rb); }
.msg.success { border-color: var(--ok); background: var(--ok-bg); }
.msg.error { border-color: var(--bad); background: var(--bad-bg); }
.msg.warning { border-color: var(--warn); background: var(--warn-bg); }
.site-messages { padding-top: 18px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; background: #1d2b3a; }
.hero > img { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; object-position: center 35%; filter: blur(3px) brightness(.62); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 60px 20px 70px; }
.hero-welcome { font-size: 1.6rem; font-weight: 700; margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.15; margin: 0 0 38px; }
.hero p { font-weight: 700; font-size: 1.02rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); max-width: 600px; margin: 0 auto 22px; }
.hero .btn { margin-top: 24px; min-height: 48px; padding: 0 26px; }

/* ------------------------------------------------------------ page background & sections */
.soft { background:
  radial-gradient(ellipse 40% 30% at 20% 20%, rgba(176,203,255,.35), transparent 70%),
  radial-gradient(ellipse 35% 30% at 85% 60%, rgba(196,214,255,.35), transparent 70%),
  radial-gradient(ellipse 45% 35% at 40% 90%, rgba(206,222,255,.35), transparent 70%),
  #f2f7ff; }
.section { padding: 100px 0; }
.section.tight { padding-top: 40px; }
.section.alt { background: var(--mist); }
.big-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--navy); text-align: center; margin: 0 0 26px; }
.big-title.bright { color: #0b83df; }
.lede { text-align: center; color: #2c5d8c; max-width: 620px; margin: 0 auto 60px; font-size: 1.05rem; }
.lede.bold { font-weight: 700; color: #1d6fc0; line-height: 2; }
.sub-title { font-size: 1.75rem; color: #1e3f86; margin-bottom: 26px; }
@media (max-width: 800px) { .section { padding: 70px 0; } }
/* kept for inner pages */
.title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); margin: 0 0 20px; }
.title.on-light { color: var(--navy); }
.rule { display: none; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head p { max-width: 640px; }
.section-head.center p { margin-inline: auto; }

/* circles row */
.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; text-align: center; }
.circle-item:nth-child(2) { margin-top: 64px; }
.circle { width: 236px; height: 236px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 6px 22px -8px rgba(25,87,143,.45); overflow: hidden; margin: 0 auto 50px; }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle-item h3 { color: #484a5c; font-size: 1.08rem; margin-bottom: 26px; }
.circle-item p { font-size: 1rem; max-width: 250px; margin: 0 auto; }
@media (max-width: 860px) { .circles { grid-template-columns: 1fr; gap: 50px; } .circle-item:nth-child(2) { margin-top: 0; } }

/* tutor rows (image + text, like the members section) */
.tutor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 900px; margin: 0 auto 70px; }
.tutor-row:last-child { margin-bottom: 0; }
.tutor-row.flip .tutor-photo { order: 2; }
.tutor-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 25%; border-radius: var(--r); box-shadow: 0 22px 40px -22px rgba(15,47,85,.55); }
.tutor-row h3 { font-size: 1.75rem; color: #1e3f86; margin-bottom: 4px; }
.tutor-row .role { color: var(--muted); font-weight: 700; font-size: .95rem; margin-bottom: 16px; }
.tutor-row p { font-size: 1.02rem; }
.facts { display: flex; gap: 26px; margin: 4px 0 20px; flex-wrap: wrap; }
.facts div { min-width: 76px; }
.facts strong { display: block; font-size: 1.7rem; color: #0b83df; line-height: 1.1; }
.facts span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: .78rem; font-weight: 700; padding: 5px 12px; background: #dce9fd; color: #1e3f86; border-radius: 999px; }
@media (max-width: 860px) { .tutor-row { grid-template-columns: 1fr; gap: 26px; } .tutor-row.flip .tutor-photo { order: 0; } }

/* portal teaser (like the community section) */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 900px; margin: 0 auto; }
.teaser .sub-title { text-align: right; grid-column: 1 / -1; margin-bottom: 0; }
.teaser p { font-size: 1.1rem; }
.teaser .cta-label { color: #2b6cb0; font-weight: 700; font-size: 1.3rem; margin: 30px 0 22px; }
.teaser .btn { min-width: 176px; }
.mock { background: #1b1b1f; color: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 26px 50px -24px rgba(0,0,0,.6); max-width: 300px; justify-self: center; width: 100%; }
.mock-head { text-align: center; padding: 6px 0 14px; }
.mock-head img { width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 8px; margin: 0 auto 10px; object-fit: contain; }
.mock-head b { display: block; font-size: 1.15rem; }
.mock-head span { font-size: .8rem; color: #a6a6ad; }
.mock-row { display: flex; justify-content: space-between; padding: 9px 12px; background: #2a2a30; border-radius: 8px; margin-bottom: 6px; font-size: .82rem; }
.mock-row b { color: #fff; }
.mock-ok { margin-top: 10px; padding: 10px 12px; background: #163d26; color: #7ee2a1; font-size: .8rem; border-radius: 8px; }

/* how to join */
.join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 860px; margin: 0 auto; text-align: center; }
.join-step { position: relative; }
.blob { width: 120px; height: 116px; margin: 0 auto 30px; display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 700; border-radius: 52% 48% 46% 54% / 55% 50% 50% 45%; box-shadow: 0 8px 20px -10px rgba(76,79,240,.6); }
.join-step:nth-child(1) .blob { background: var(--indigo-1); }
.join-step:nth-child(2) .blob { background: var(--indigo-2); border-radius: 46% 54% 52% 48% / 50% 45% 55% 50%; }
.join-step:nth-child(3) .blob { background: var(--indigo-3); border-radius: 50% 50% 44% 56% / 48% 54% 46% 52%; }
.join-step:not(:last-child)::after { content: ""; position: absolute; top: 58px; left: calc(50% + 74px); width: calc(100% - 118px); border-top: 3px dashed #a5cbea; }
.join-step h3 { color: #484a5c; font-size: 1.25rem; margin-bottom: 16px; }
.join-step p { font-size: .98rem; max-width: 240px; margin: 0 auto; }
.join-cta { max-width: 860px; margin: 40px auto 0; text-align: center; }
.join-cta .btn { min-width: 320px; min-height: 42px; font-size: 1.05rem; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; gap: 40px; } .join-step::after { display: none; } .join-cta .btn { min-width: 0; width: 100%; } }

/* packages: big coloured cards */
.grade-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 40px; justify-content: center; }
.grade-card { border-radius: 26px; color: #fff; text-align: center; padding: 40px 40px 34px; box-shadow: 0 20px 40px -22px rgba(76,79,240,.6); }
.grade-card:nth-child(1) { background: linear-gradient(160deg, #a9abff, #8e90fb); }
.grade-card:nth-child(2) { background: linear-gradient(160deg, #8fb2fb, #6c9cf6); }
.grade-card:nth-child(3) { background: linear-gradient(160deg, #7a8cf7, #5a6cf0); }
.grade-card h3 { color: #fff; font-size: 1.7rem; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 2px solid rgba(255,255,255,.85); }
.grade-card .from { text-align: left; font-weight: 700; margin: 40px 0 0; }
.grade-card .amount { font-size: 3.6rem; font-weight: 700; line-height: 1; margin: 6px 0 4px; }
.grade-card .amount sup { font-size: 1.1rem; vertical-align: top; position: relative; top: 8px; margin-right: 6px; }
.grade-card .per { text-align: right; font-weight: 700; font-size: .95rem; margin-bottom: 48px; padding-right: 20px; }
.grade-card .btn-pill-light { width: 100%; min-height: 40px; font-size: 1.05rem; }
.grade-card .note { font-size: .9rem; font-weight: 700; margin-top: 10px; }
@media (max-width: 1000px) { .grade-cards { grid-template-columns: minmax(0, 340px); } }
.unsure { text-align: center; color: #6f9be0; font-weight: 700; margin-top: 60px; }
.unsure h4 { color: #6f9be0; letter-spacing: .04em; text-transform: uppercase; font-size: 1.05rem; margin-bottom: 14px; }
.unsure a { color: #2b6cb0; }

/* package detail grid (packages page + choose links) */
.grade-tabs { display: flex; width: fit-content; margin: 0 auto 34px; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 6px 18px -10px rgba(25,87,143,.4); }
.grade-tabs button { font: 700 .95rem var(--sans); background: transparent; border: 0; padding: 12px 26px; cursor: pointer; color: var(--navy); border-radius: 999px; }
.grade-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.grade-panel h3.grade-title { text-align: center; font-size: 1.4rem; margin: 0 0 18px; }
.js .grade-panel h3.grade-title { display: none; }
.grade-panel + .grade-panel { margin-top: 40px; }
.js .grade-panel + .grade-panel { margin-top: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pkg { border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; color: #fff; background: linear-gradient(160deg, #8fb2fb, #6c9cf6); box-shadow: 0 18px 36px -22px rgba(76,79,240,.6); }
.pkg:nth-child(3n+1) { background: linear-gradient(160deg, #a9abff, #8e90fb); }
.pkg:nth-child(3n) { background: linear-gradient(160deg, #7a8cf7, #5a6cf0); }
.pkg.featured { background: linear-gradient(160deg, #5a5cf2, #3f42e0); }
.pkg .flag { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--indigo-3); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pkg h4 { color: #fff; font-size: 1.08rem; min-height: 2.6em; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 2px solid rgba(255,255,255,.8); }
.pkg.featured h4 { padding-right: 76px; }
.pkg .price { font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.pkg .per { font-size: .9rem; font-weight: 700; margin: 6px 0 18px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .95rem; display: grid; gap: 6px; }
.pkg li::before { content: "✓  "; font-weight: 700; }
.pkg .btn { margin-top: auto; background: transparent; border: 2px solid #fff; border-radius: 999px; color: #fff; }
.pkg .btn:hover { background: #fff; color: var(--indigo-3); }
.pkg-note { margin-top: 26px; text-align: center; font-size: .95rem; color: var(--muted); }

/* commitment card */
.commit { position: relative; max-width: 650px; margin: 0 auto; padding: 60px 85px 50px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,255,255,.95) 0%, rgba(240,244,255,.9) 55%, rgba(196,216,255,.85) 100%);
  box-shadow: 0 24px 50px -28px rgba(15,47,85,.45); }
.commit .quote-mark { width: 40px; height: 34px; stroke: #4b4f63; fill: none; stroke-width: 1.4; }
.commit header { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.commit header h3 { color: #4b4f63; margin: 0; font-size: 1.3rem; }
.commit blockquote { margin: 0 0 22px; color: #3d6fa6; font-size: 1.45rem; font-weight: 700; line-height: 1.3; }
.commit cite { display: block; font-style: normal; font-weight: 700; color: #3d6fa6; font-size: .95rem; margin-bottom: 30px; }
.commit .btn-outline { border-radius: 999px; min-height: 34px; padding: 0 34px; background: transparent; color: #6b7282; }
.commit .circle { position: absolute; right: -70px; bottom: -95px; width: 240px; height: 240px; margin: 0; }
@media (max-width: 860px) { .commit { padding: 40px 28px; } .commit .circle { position: static; margin: 30px auto 0; } }

/* ------------------------------------------------------------ forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy-900); margin-bottom: 7px; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--bad); font-size: .85rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: 400 .98rem var(--sans); color: #1f2937; background: #fff; border: 1.5px solid var(--line-strong); padding: 11px 14px; min-height: 46px; border-radius: var(--rb); transition: border-color .15s; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: var(--focus); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; line-height: 1.5; }
.check input { margin-top: 2px; }
input[type=file] { font: inherit; width: 100%; padding: 12px; border: 1.5px dashed var(--line-strong); background: var(--mist); border-radius: var(--rb); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 62px; border: 0; border-left: 1px solid var(--line); background: var(--mist); font: 700 .72rem var(--sans); color: var(--navy); cursor: pointer; text-transform: uppercase; border-radius: 0 var(--rb) var(--rb) 0; }
.form-errors { background: var(--bad-bg); border-left: 4px solid var(--bad); padding: 12px 16px; margin-bottom: 18px; color: var(--bad); font-size: .92rem; border-radius: var(--rb); }
.form-errors ul { margin: 0; padding-left: 18px; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards label { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; background: #fff; border-radius: var(--rb); }
.radio-cards label:hover { border-color: var(--navy); }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: var(--blue-50); }

/* ------------------------------------------------------------ contact page */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 40px -26px rgba(15,47,85,.45); }
.contact-info { background: var(--footer); color: #e7f0fb; padding: 46px; }
.contact-info h2 { color: #fff; }
.contact-info dl { margin: 30px 0 0; }
.contact-info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #cfe2f7; margin-top: 20px; font-weight: 700; }
.contact-info dd { margin: 4px 0 0; color: #fff; font-weight: 700; }
.contact-info a { color: #fff; }
.contact-form { padding: 46px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } .contact-info, .contact-form { padding: 30px 24px; } }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--footer); color: #fff; font-size: .9rem; }
.site-footer .top { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 50px; padding: 50px 0 70px; }
.foot-brand { text-align: center; }
.foot-brand img { height: 96px; width: auto; margin: 0 auto 22px; }
.foot-brand .name { font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; margin-bottom: 30px; line-height: 1.3; }
.foot-brand h4 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.foot-brand p { margin: 0 0 2px; font-size: .85rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-form h3 { color: #fff; font-size: 1.6rem; margin-bottom: 22px; }
.foot-form .form-grid { gap: 0 60px; max-width: 460px; }
.foot-form label { color: #fff; font-weight: 400; font-size: .95rem; }
.foot-form input, .foot-form textarea { min-height: 30px; padding: 5px 12px; font-size: .9rem; border: 1px solid #c9d6e6; border-radius: 3px; }
.foot-form textarea { min-height: 92px; }
.foot-form .msg-field { max-width: 470px; }
.foot-form button { background: var(--footer); border: 0; color: #fff; font: 700 .95rem var(--sans); padding: 11px 40px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); cursor: pointer; margin-top: 10px; }
.foot-form button:hover { background: #2766a5; }
.foot-menu { text-align: center; padding-top: 40px; }
.foot-menu h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.foot-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-weight: 700; }
.site-footer .bottom { border-top: 2px solid rgba(255,255,255,.9); padding: 18px 0; text-align: center; font-size: .82rem; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr; } .foot-menu { padding-top: 0; } }

/* ------------------------------------------------------------ tutor detail */
.profile-hero { padding: 70px 0 30px; }
.profile-hero .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.profile-hero .portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: 0 12px 30px -12px rgba(25,87,143,.5); }
.profile-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--navy); margin-bottom: 4px; }
.profile-hero .role { color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.highlights { list-style: none; padding: 0; margin: 24px 0; }
.highlights li { padding: 10px 0; display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.highlights li::before { content: "✓"; color: #0b83df; font-weight: 700; flex: none; }
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r); }
.feature-photo figcaption { padding: 12px 0; font-size: .88rem; color: var(--muted); text-align: center; }
.prose { max-width: 720px; }
.crumb { font-size: .85rem; margin-bottom: 14px; font-weight: 700; }
.crumb a { color: var(--brand); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .profile-hero .wrap, .split { grid-template-columns: 1fr; gap: 30px; } .profile-hero .portrait { max-width: 280px; } }

/* ------------------------------------------------------------ auth pages */
.auth { min-height: calc(100vh - 85px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: #1d2b3a; color: #fff; padding: 70px 60px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side > img { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); object-fit: cover; filter: blur(3px) brightness(.55); }
.auth-side > *:not(img) { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 2.2rem; max-width: 440px; }
.auth-side .quote { font-weight: 700; font-size: 1rem; max-width: 420px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 470px; background: #fff; padding: 40px; border-radius: var(--r); box-shadow: 0 24px 50px -30px rgba(15,47,85,.5); }
.auth-card.wide { max-width: 660px; }
.auth-card h1 { font-size: 2rem; color: var(--navy); margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.secure-note { font-size: .8rem; color: var(--muted); margin-top: 18px; line-height: 1.6; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-card { padding: 28px 22px; } }
.qr-box { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: start; border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; background: var(--mist); border-radius: var(--r); }
.qr-box svg { width: 200px; height: 200px; background: #fff; display: block; }
.qr-box svg path { fill: #111827; }
.secret-key { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 1px solid var(--line); padding: 10px 12px; word-break: break-all; font-size: .9rem; margin-top: 8px; color: #111827; border-radius: var(--rb); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; padding: 20px; border: 1.5px dashed var(--brand); background: var(--mist); border-radius: var(--r); }
.codes code { font-size: 1.05rem; font-weight: 700; color: #111827; letter-spacing: .06em; }
@media (max-width: 560px) { .qr-box { grid-template-columns: 1fr; } }
.steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.steps-mini li { counter-increment: s; display: flex; gap: 12px; margin-bottom: 8px; font-size: .92rem; line-height: 1.5; }
.steps-mini li::before { content: counter(s); flex: none; width: 24px; height: 24px; background: var(--indigo-2); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border-radius: 50%; }

/* ------------------------------------------------------------ legal & errors */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-page .code { font-size: 6rem; font-weight: 700; color: #0b83df; line-height: 1; }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
/* ------------------------------------------------------------ portal shell */
.portal { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--mist); }
.sidebar { background: var(--navy-900); color: #b5c5d6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: 24px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand-word small { color: #8fa5bc; }
.side-section { padding: 18px 12px 6px; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: #7590ad; padding: 0 12px 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #c6d4e2; text-decoration: none; font-size: .93rem; font-weight: 500; border-left: 3px solid transparent; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: #6fa3dc; }
.side-nav .count { margin-left: auto; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 7px; }
.side-nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
.side-user { margin-top: auto; padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user .who { min-width: 0; font-size: .85rem; }
.side-user .who strong { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user form { margin-left: auto; }
.side-user button { background: none; border: 1px solid rgba(255,255,255,.25); color: #d6e2ef; font: 600 .75rem var(--sans); padding: 7px 10px; cursor: pointer; }
.side-user button:hover { background: #fff; color: var(--navy); }
.portal-main { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0 36px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-family: var(--sans); font-size: 1.25rem; margin: 0; font-weight: 600; }
.topbar .crumbs { font-size: .8rem; color: var(--muted); }
.portal-body { padding: 32px 36px 60px; max-width: 1320px; }
.portal-toggle { display: none; }
@media (max-width: 980px) {
  .portal { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .portal-toggle { display: block; background: none; border: 1.5px solid var(--navy); width: 42px; height: 42px; cursor: pointer; color: var(--navy); }
  .portal-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; }
  .topbar { padding: 0 18px; }
  .portal-body { padding: 22px 18px 50px; }
}

/* ------------------------------------------------------------ dashboard parts */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; margin-bottom: 24px; }
.kpi { padding: 22px 24px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .k-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kpi .k-value { font-family: var(--serif); font-size: 2rem; color: var(--ink); font-weight: 600; line-height: 1.15; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.kpi .k-meta { font-size: .83rem; color: var(--muted); }
.kpi.primary { background: var(--navy); border-color: var(--navy); }
.kpi.primary .k-label { color: #a9c0d9; }
.kpi.primary .k-value { color: #fff; }
.kpi.primary .k-meta { color: #c8d6e6; }
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--bad); font-weight: 600; }
.kpi.primary .delta-up { color: #8ee0ae; }
.kpi.primary .delta-down { color: #ffb4ab; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .kpi { border-right: 0; border-bottom: 1px solid var(--line); } }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .grid-2, .grid-2.even { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }
.panel-head .muted { font-size: .85rem; }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }
.panel.navy { background: var(--navy); border-color: var(--navy); color: #c8d6e6; }
.panel.navy h2, .panel.navy strong { color: #fff; }
.panel.navy .panel-head { border-color: rgba(255,255,255,.12); }
.empty { padding: 34px 22px; text-align: center; color: var(--muted); font-size: .95rem; }

/* chart */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: #e6ebf1; stroke-width: 1; }
.chart .axis text { fill: var(--muted); font: 500 11px var(--sans); }
.chart .baseline { stroke: var(--line-strong); stroke-width: 1; }
.chart .bar { fill: var(--navy); }
.chart .bar.current { fill: var(--blue); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { fill: var(--blue-600); }
.chart-wrap { position: relative; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy-900); color: #fff; padding: 8px 12px; font-size: .82rem; white-space: nowrap; transform: translate(-50%, -110%); z-index: 5; }
.chart-tip strong { display: block; font-size: .95rem; }
.legend-line { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.legend-line span::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--navy); margin-right: 6px; vertical-align: -1px; }
.legend-line span.cur::before { background: var(--blue); }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fbfcfd; white-space: nowrap; }
table.data td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcfe; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data a { font-weight: 600; text-decoration: none; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border: 1px solid; white-space: nowrap; }
.badge-ok { color: var(--ok); background: var(--ok-bg); border-color: #b7dcc5; }
.badge-warn { color: var(--warn); background: var(--warn-bg); border-color: #ecd29b; }
.badge-info { color: var(--info); background: var(--info-bg); border-color: #b9d0ea; }
.badge-muted { color: var(--muted); background: var(--mist); border-color: var(--line); }
.badge-bad { color: var(--bad); background: var(--bad-bg); border-color: #efbdb7; }
.filters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); background: #fff; width: fit-content; }
.filters a { padding: 10px 16px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); }
.filters a:last-child { border-right: 0; }
.filters a.active { background: var(--navy); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; }
.search { display: flex; }
.search input { min-height: 42px; width: 260px; }
.search button { min-height: 42px; }

/* key-value lists (EFT details, invoice) */
.kv { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel.navy .kv dt { color: #a9c0d9; border-color: rgba(255,255,255,.12); }
.panel.navy .kv dd { color: #fff; border-color: rgba(255,255,255,.12); }
.panel.navy .kv { border-color: rgba(255,255,255,.12); }
.copy { background: none; border: 1px solid var(--line-strong); font: 600 .7rem var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; cursor: pointer; color: var(--navy); }
.copy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel.navy .copy { color: #fff; border-color: rgba(255,255,255,.35); }
.panel.navy .copy:hover { background: #fff; color: var(--navy); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.ref-big { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: .08em; }
.amount-big { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--blue); background: #fff; padding: 16px 18px; margin-bottom: 20px; font-size: .93rem; }
.notice.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.notice.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-bg); }
.notice strong { color: var(--ink); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.list-row:last-child { border-bottom: 0; }
.list-row .meta { color: var(--muted); font-size: .82rem; }
.date-box { width: 52px; flex: none; text-align: center; border: 1px solid var(--line); }
.date-box b { display: block; background: var(--navy); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 0; }
.date-box span { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); padding: 3px 0; }
.split-bar { display: flex; height: 10px; background: var(--mist); margin: 8px 0 4px; }
.split-bar i { display: block; height: 100%; background: var(--navy); }
.position { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.pkg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pkg-pick label { display: block; border: 1.5px solid var(--line); background: #fff; padding: 18px; cursor: pointer; position: relative; }
.pkg-pick label:hover { border-color: var(--navy); }
.pkg-pick label:has(input:checked) { border-color: var(--navy); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--navy); }
.pkg-pick input { position: absolute; top: 18px; right: 18px; }
.pkg-pick .g { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.pkg-pick .n { display: block; font-weight: 600; color: var(--ink); margin: 6px 30px 12px 0; }
.pkg-pick .p { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.pkg-pick .p small { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 400; }
.grade-group { margin-bottom: 26px; }
.grade-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.welcome { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.welcome h2 { font-size: 1.7rem; margin: 0 0 4px; }
.welcome p { margin: 0; color: var(--muted); }
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 20px; } .mb-2 { margin-bottom: 20px; }
.right { text-align: right; }
.portal { background: linear-gradient(90deg, var(--navy-900) 260px, var(--mist) 260px); }
@media (max-width: 980px) { .portal { background: var(--mist); } }
a.list-row { text-decoration: none; color: inherit; }
a.list-row:hover { background: var(--blue-50); }
a.list-row strong { color: var(--navy); }
.nowrap { white-space: nowrap; }
.panel-body > .kv:first-child { border-top: 0; margin-top: -13px; }
input[type=file]::file-selector-button { font: 600 .85rem var(--sans); background: var(--navy); color: #fff; border: 0; padding: 9px 14px; margin-right: 12px; cursor: pointer; }
/* Portal type adjustments for Poppins */
.topbar h1 { font-weight: 600; letter-spacing: -.01em; }
.kpi .k-value { font-weight: 700; letter-spacing: -.02em; font-size: 1.85rem; }
.position, .amount-big { font-weight: 700; letter-spacing: -.02em; }
.panel-head h2 { font-size: .95rem; }
.welcome h2 { font-weight: 700; }
/* Portal adjustments for the new theme */
.portal { background: linear-gradient(90deg, var(--navy-900) 260px, var(--mist) 260px); }
.sidebar { background: var(--navy-900); }
.panel, .kpis { border-radius: var(--r); overflow: hidden; }
.kpi .k-value { font-weight: 700; }
.badge { border-radius: 999px; }
.filters { border-radius: var(--rb); overflow: hidden; }
.notice { border-radius: var(--rb); }
.pkg-pick label { border-radius: var(--r); }
.date-box { border-radius: var(--rb); overflow: hidden; }
.avatar { border-radius: 50%; }
.copy { border-radius: var(--rb); }
.side-user button { border-radius: var(--rb); }
.portal-toggle { border-radius: var(--rb); }

/* No round edges anywhere: squares for photos, cards, buttons, inputs and step markers. */
*, *::before, *::after { border-radius: 0 !important; }

/* ------------------------------------------------------------ Motswedi-style tutor blocks + shine */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-300-normal.8d91ec1ca2d8.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.9212f6f9860f.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.a09f2fccfee3.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.72993dddf88a.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.25b0e113ca7c.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --display: "Poppins", Arial, sans-serif; }

/* Reflective metallic text: blue steel with a slow light sweep */
.shine {
  background: linear-gradient(100deg, #173a73 0%, #2f6fc4 28%, #9cc9ff 42%, #ffffff 48%, #9cc9ff 54%, #2f6fc4 68%, #173a73 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
.shine.on-dark { background-image: linear-gradient(100deg, #cfe3ff 0%, #ffffff 30%, #8fbaf0 44%, #ffffff 50%, #8fbaf0 56%, #ffffff 70%, #cfe3ff 100%); }
@keyframes sheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
.reflect { -webkit-box-reflect: below -0.18em linear-gradient(transparent 62%, rgba(255,255,255,.28)); }

.tutor-row { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.tutor-photo { position: relative; }
.tutor-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid #2f6fc4; z-index: 0; }
.tutor-row.flip .tutor-photo::before { inset: 22px 22px -22px -22px; }
.tutor-photo img { position: relative; z-index: 1; box-shadow: none; }
.t-kicker { font: 500 .74rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: #5b6b80; margin: 0 0 10px; }
.t-name { font: 300 clamp(2.1rem, 4vw, 2.9rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 22px; display: inline-block; }
.t-rule { width: 64px; height: 2px; border: 0; background: #2f6fc4; margin: 0 0 22px; }
.t-subjects { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.t-subjects li { font: 500 .9rem var(--display); color: #173a73; display: flex; align-items: center; gap: 10px; }
.t-subjects li::before { content: ""; width: 8px; height: 8px; background: #2f6fc4; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 26px; margin: 0 0 26px; }
.t-stats div { border-top: 1px solid #b9c9dd; padding-top: 14px; }
.t-stats strong { display: inline-block; font: 600 2.2rem/1 var(--display); letter-spacing: -.02em; }
.t-stats span { display: block; font: 500 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #5b6b80; margin-top: 8px; }
.t-bio { font-size: 1.02rem; line-height: 1.85; color: #3d4b5c; margin-bottom: 28px; }
.t-link { display: inline-flex; align-items: center; gap: 12px; font: 600 .78rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: #173a73; padding: 15px 22px; text-decoration: none; transition: background .2s, gap .2s; }
.t-link:hover { background: #2f6fc4; color: #fff; gap: 18px; }
.t-link span { font-size: 1.1rem; letter-spacing: 0; }
@media (max-width: 860px) { .tutor-row { grid-template-columns: 1fr; gap: 44px; } .tutor-photo { margin-right: 22px; } .tutor-row.flip .tutor-photo { margin: 0 0 0 22px; } }

/* Section titles and hero get the same metallic finish */
.big-title.shine { display: block; }
.hero h1.shine { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.profile-hero h1 { font: 300 clamp(2.4rem, 5vw, 3.4rem)/1.05 var(--display); text-transform: uppercase; display: inline-block; }
.tutor-row h3.t-name, .profile-hero h1.shine { font: 300 clamp(2.3rem, 4.2vw, 3.1rem)/1.05 var(--display); color: transparent; text-transform: uppercase; margin: 0 0 34px; }
.t-stats span { letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 1100px) { .t-stats span { white-space: normal; } }
/* Keep the sweep readable on light grounds: highlight never goes near white */
.shine { background-image: linear-gradient(100deg, #12305f 0%, #1f58b0 30%, #3f8fe8 44%, #86c0ff 50%, #3f8fe8 56%, #1f58b0 70%, #12305f 100%); }
.shine.on-dark { background-image: linear-gradient(100deg, #d6e8ff 0%, #ffffff 30%, #9fc7f5 44%, #ffffff 50%, #9fc7f5 56%, #ffffff 70%, #d6e8ff 100%); }
/* "Read more": plain text link, Bridgeco style (no box, no arrow) */
.t-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; color: #173a73; font: 600 .78rem var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color .2s ease; }
.t-link:hover { background: none; color: #2f6fc4; gap: 0; }

/* ------------------------------------------------------------ tutor cards: photo above, intro in a squiggly panel */
.tutor-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; max-width: 1080px; margin: 0 auto; }
.tcard-photo { position: relative; width: min(340px, 78%); margin: 0 auto -58px; z-index: 2; }
.tcard-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid #2f6fc4; z-index: -1; }
.tcard-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; box-shadow: 0 22px 40px -24px rgba(15,47,85,.6); }
.tcard-body { position: relative; }
.squiggle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.squiggle .sq-fill { fill: #fff; filter: drop-shadow(0 18px 26px rgba(15,47,85,.14)); }
.squiggle .sq-line { fill: none; stroke: #2f6fc4; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .55; }
.tcard-inner { position: relative; z-index: 1; padding: 96px 52px 60px; }
.tcard .t-name { margin-bottom: 30px; }
.tcard .t-stats { gap: 0 18px; }
.tcard .t-stats strong { font-size: 1.9rem; }
@media (max-width: 960px) { .tutor-cards { grid-template-columns: 1fr; max-width: 560px; gap: 72px; } }
@media (max-width: 480px) { .tcard-inner { padding: 88px 30px 52px; } .tcard .t-stats span { white-space: normal; } }
.tcard-photo img { height: auto; }
.squiggle .sq-line, .squiggle .sq-fill { stroke-linejoin: round; }
.t-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 .92rem var(--display); margin: -8px 0 18px; }
.t-phone a { color: #173a73; text-decoration: none; white-space: nowrap; }
.t-phone a:hover { color: #2f6fc4; text-decoration: underline; text-underline-offset: 4px; }
.t-phone span { color: #b9c9dd; }
.profile-hero .t-phone { margin: 0 0 22px; }

/* ------------------------------------------------------------ final polish */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.fade-img { opacity: 0; transition: opacity .6s ease; }
.fade-img.loaded { opacity: 1; }

.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header .wrap { transition: min-height .25s ease; }
.brand-logo img { transition: height .25s ease; }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 8px 24px -12px rgba(15,47,85,.35); }
.site-header.scrolled .wrap { min-height: 68px; }
.site-header.scrolled .brand-logo img { height: 52px; }
.site-header.scrolled .menu-panel { top: 68px; }

.hero > img { animation: hero-settle 14s ease-out both; }
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: scale(1); } }

.circle { transition: transform .35s ease, box-shadow .35s ease; }
.circle-item:hover .circle { transform: translateY(-8px); box-shadow: 0 18px 30px -14px rgba(25,87,143,.55); }
.grade-card, .pkg { transition: transform .3s ease, box-shadow .3s ease; }
.grade-card:hover, .pkg:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -24px rgba(76,79,240,.75); }
.tcard-photo img { transition: transform .45s ease; }
.tcard:hover .tcard-photo img { transform: translateY(-6px); }
.tcard-photo::before { transition: transform .45s ease; }
.tcard:hover .tcard-photo::before { transform: translate(4px, 4px); }
.btn:active { transform: translateY(1px); }

/* Floating WhatsApp helper (square, site blue) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border: 0; background: var(--brand); color: #fff; font: 700 .92rem var(--sans); cursor: pointer; box-shadow: 0 14px 28px -12px rgba(15,47,85,.6); transition: transform .2s ease, background .2s ease; }
.wa-btn:hover { background: #173a73; transform: translateY(-2px); }
.wa-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.wa-panel { width: 290px; background: #fff; padding: 18px; box-shadow: 0 24px 50px -20px rgba(15,47,85,.5); border-top: 4px solid var(--brand); animation: wa-in .25s ease; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-title { font: 600 1.05rem var(--display); color: #173a73; margin: 0 0 2px; }
.wa-sub { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.wa-person { display: flex; gap: 12px; align-items: center; padding: 10px; text-decoration: none; color: var(--text); border: 1px solid var(--line); margin-top: 8px; transition: border-color .2s, background .2s; }
.wa-person:hover { border-color: var(--brand); background: var(--blue-50); color: var(--text); }
.wa-person img { width: 44px; height: 44px; object-fit: cover; object-position: center 22%; }
.wa-person span { font-size: .82rem; line-height: 1.35; }
.wa-person strong { display: block; color: #173a73; font-size: .95rem; }
@media (max-width: 600px) { .wa-btn span { display: none; } .wa-btn { padding: 0 14px; } .wa-float { right: 14px; bottom: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero > img { animation: none; }
}
.commit cite span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
/* Commitment card: logo emblem instead of a photo */
.commit-mark { position: absolute; right: 56px; bottom: 44px; width: 74px; height: auto; opacity: .9; filter: drop-shadow(0 10px 16px rgba(15,47,85,.18)); }
@media (max-width: 860px) { .commit-mark { position: static; margin: 26px 0 0; width: 56px; } }
.res-group { padding: 12px 22px; background: var(--mist); font: 700 .75rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
/* Portal sidebar brand (restored after the public-site redesign) */
.sidebar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; padding: 24px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand img { width: 26px; height: auto; flex: none; }
.sidebar .brand-word { display: block; font: 700 1.05rem/1.1 var(--display); color: #fff; letter-spacing: -.01em; }
.sidebar .brand-word small { display: block; font: 500 .6rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: #9fbbe0; margin-top: 5px; }
/* Team page */
.team-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.team-row:last-child { border-bottom: 0; }
.team-row img { width: 56px; height: 70px; object-fit: cover; object-position: center 22%; }
.team-main .meta { font-size: .82rem; color: var(--muted); }
.team-actions { display: grid; gap: 6px; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.checklist li { font-size: .72rem; font-weight: 700; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
.checklist li::before { content: "○ "; }
.checklist li.done { color: var(--ok); background: var(--ok-bg); border-color: #b7dcc5; }
.checklist li.done::before { content: "✓ "; }
@media (max-width: 700px) { .team-row { grid-template-columns: 56px 1fr; } .team-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; } }
.profile-edit { display: grid; grid-template-columns: 180px 1fr; gap: 26px; margin-bottom: 10px; }
.profile-photo img { width: 180px; height: 225px; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 640px) { .profile-edit { grid-template-columns: 1fr; } }
/* Tutor account setup (claim) */
.claim-steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.claim-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .78rem; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); line-height: 1.25; }
.claim-steps li:last-child { border-right: 0; }
.claim-steps li span { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font: 700 .72rem var(--display); border: 1px solid var(--line-strong); color: var(--muted); }
.claim-steps li.on { color: var(--navy); background: var(--blue-50); }
.claim-steps li.on span { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 520px) { .claim-steps { grid-template-columns: 1fr; } .claim-steps li { border-right: 0; border-bottom: 1px solid var(--line); } .claim-steps li:last-child { border-bottom: 0; } }
/* Site settings */
.key-state { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--mist); border: 1px solid var(--line); font-size: .88rem; margin-bottom: 14px; }
.key-state .dot { width: 9px; height: 9px; background: var(--line-strong); flex: none; }
.key-state.on .dot { background: var(--ok); }
/* Sign-in pages: crisp brand panel instead of a stretched photo */
.auth-side { background: linear-gradient(160deg, #1d64a6 0%, var(--navy-900) 100%); }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border: 1px solid rgba(169,205,245,.22); box-shadow: 0 0 0 60px rgba(169,205,245,.05), 0 0 0 120px rgba(169,205,245,.035); transform: rotate(45deg); }
.auth-side > *:not(img), .auth-side > .auth-logo { position: relative; z-index: 1; }
.auth-side > img.auth-logo { position: relative; inset: auto; width: 112px; height: auto; filter: none; object-fit: contain; }
.auth-facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; max-width: 420px; border-top: 1px solid rgba(255,255,255,.16); }
.auth-facts li { display: grid; grid-template-columns: 92px 1fr; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.auth-facts strong { font: 700 1.9rem/1 var(--display); color: #fff; letter-spacing: -.02em; }
.auth-facts span { color: #cfe0f6; font-size: .95rem; }
.auth-side .quote { color: #cfe0f6; font-weight: 500; }
.wa-person img.wa-logo { object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--line); }
