/* ==========================================================
   STARs College — main stylesheet
   Built by Ijaz Software House · 0092-344-0807888 / 0092-316-9334525 · www.ijazs.online
   Edit colours and fonts in :root below.
   ========================================================== */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --navy-3: #1D4577;
  --gold: #F2A900;
  --gold-deep: #C98A00;
  --gold-soft: #FFF4D6;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --ink: #1B2432;
  --muted: #5B6677;
  --line: #DDE3EA;
  --red: #C62828;
  --red-soft: #FDECEC;
  --green: #1E7B4A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .07);
  --container: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #D8E1EE; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section-head p { color: #AFC0D6; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #FFC02E; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 8px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-more { font-weight: 600; text-decoration: none; color: var(--navy-3); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #C9D5E6; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #E7EDF6; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__group { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1; display: block; }
.brand__sub { font-size: .8rem; color: var(--muted); display: block; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav__list a {
  display: block; padding: 10px 11px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .98rem; border-radius: 8px;
}
.nav__list a:hover { color: var(--navy-3); background: var(--paper); }
.nav__list a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav__cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Announcement ticker ---------- */
.ticker { background: var(--gold-soft); border-bottom: 1px solid #F3DFA6; font-size: .95rem; }
.ticker .container { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker__label {
  flex: none; background: var(--navy); color: var(--white); font-weight: 700; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; text-decoration: none;
}
.ticker__label:hover { color: var(--gold); }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 100%; }
.ticker__viewport:hover .ticker__track, .ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track a { color: var(--navy); text-decoration: none; font-weight: 600; }
.ticker__track a:hover { text-decoration: underline; }
.ticker__track .is-urgent { color: var(--red); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #D8E1EE;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(29,69,119,.9), transparent 60%),
    var(--navy);
  /* To use a campus photo instead, uncomment:
  background: linear-gradient(90deg, rgba(11,37,69,.95) 35%, rgba(11,37,69,.6)), url("../img/campus.jpg") center/cover; */
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero__lead { font-size: 1.2rem; max-width: 34em; color: #C5D2E3; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 600; color: var(--gold); }
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,169,0,.25); }

/* Constellation — the student's journey from Class 8 to the four groups */
.constellation { width: 100%; height: auto; }
.constellation .path { fill: none; stroke: rgba(242,169,0,.55); stroke-width: 1.6; }
.constellation .path--branch { stroke: rgba(255,255,255,.28); stroke-dasharray: 4 5; }
.constellation .star { fill: var(--gold); }
.constellation .star--group { fill: var(--white); }
.constellation .halo { fill: rgba(242,169,0,.14); }
.constellation .dust { fill: rgba(255,255,255,.35); }
.constellation text { font-family: var(--sans); font-size: 15px; fill: #E7EDF6; font-weight: 600; }
.constellation .t-sub { font-size: 12.5px; fill: #9FB2CB; font-weight: 400; }
.constellation a:hover text, .constellation a:focus text { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .constellation .path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s ease-out forwards .3s; }
  .constellation .path--branch { stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0; animation: fadein .8s ease-out forwards 2.2s; }
  .constellation .node { opacity: 0; animation: fadein .5s ease-out forwards; }
  .constellation .n1 { animation-delay: .3s; } .constellation .n2 { animation-delay: .7s; }
  .constellation .n3 { animation-delay: 1.1s; } .constellation .n4 { animation-delay: 1.5s; }
  .constellation .n5 { animation-delay: 1.9s; } .constellation .g { animation-delay: 2.4s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); font-weight: 700; line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .98rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.card--shadow { box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

.program { display: flex; flex-direction: column; }
.program__classes { font-weight: 700; color: var(--gold-deep); margin-bottom: 6px; }
.program ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.program .link-more { margin-top: auto; align-self: flex-start; }

.group-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.group-card__top { background: var(--navy); color: var(--white); padding: 22px 22px 18px; }
.group-card__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(242,169,0,.16); display: grid; place-items: center; margin-bottom: 12px; }
.group-card__icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.group-card__top h3 { color: var(--white); margin: 0; }
.group-card__top span { color: #AFC0D6; font-size: .95rem; }
.group-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.group-card__body p { color: var(--muted); }
.group-card__body .link-more { margin-top: auto; align-self: flex-start; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.why__item h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.why__item h3 svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }
.why__item p { color: var(--muted); margin: 0; }

/* Toppers */
.topper { text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 26px 18px; }
.topper__pos { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .85rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }
.topper .avatar { margin: 0 auto 14px; }
.topper h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 2px; }
.topper__meta { color: #AFC0D6; font-size: .95rem; }
.topper__marks { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); font-weight: 700; }

.avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.8rem; font-weight: 700;
  background: var(--gold-soft); color: var(--navy); border: 3px solid var(--gold);
  object-fit: cover;
}

/* Article cards */
.article-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; }
.article-card:hover { border-color: #BCC7D4; }
.article-card:hover h3 { color: var(--navy-3); }
.article-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--paper); }
.article-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.article-card p { color: var(--muted); margin-bottom: 0; }
.chip { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--navy-2); border: 1px solid var(--line); }
.chip--gold { background: var(--gold-soft); border-color: #F3DFA6; color: #7A5300; }
.chip--red { background: var(--red-soft); border-color: #F5C6C6; color: var(--red); }

/* Announcement list */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice {
  display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.notice:first-child { padding-top: 0; }
.notice__date { text-align: center; background: var(--paper); border-radius: var(--radius); padding: 8px 4px; align-self: start; }
.notice__day { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; display: block; }
.notice__mon { font-size: .82rem; color: var(--muted); font-weight: 600; }
.notice h3 { font-size: 1.1rem; margin: 4px 0 4px; font-family: var(--sans); font-weight: 700; }
.notice p { margin: 0; color: var(--muted); }
.notice__attach { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 600; font-size: .95rem; }
.notice--urgent { background: var(--red-soft); border-radius: var(--radius); padding: 16px; border: 1px solid #F5C6C6; margin-bottom: 10px; }
.notice--urgent .notice__date { background: var(--white); }
.notice--urgent h3 { color: var(--red); }
.notice--urgent:first-child { padding-top: 16px; }

/* Testimonials */
.quote-slider { position: relative; max-width: 820px; }
.quote { display: none; }
.quote.is-active { display: block; }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.45; color: var(--navy); }
.quote blockquote::before { content: "\201C"; color: var(--gold); font-size: 3rem; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
.quote cite { font-style: normal; font-weight: 700; }
.quote cite span { font-weight: 400; color: var(--muted); }
.quote-controls { display: flex; gap: 10px; margin-top: 24px; }
.quote-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; font-size: 1.2rem; }
.quote-controls button:hover { background: var(--navy); color: var(--white); }

/* CTA strip */
.cta-strip { background: var(--gold); }
.cta-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.cta-strip h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-strip p { margin: 4px 0 0; color: #5C4200; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: var(--navy); color: #C5D2E3; padding: 54px 0 48px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 320px; height: 320px; opacity: .12;
  background: url("../img/star-mark.svg") no-repeat center/contain;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.page-hero p { max-width: 640px; margin: 0; font-size: 1.12rem; }
.crumbs { font-size: .92rem; margin-bottom: 12px; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs span { color: #8FA3BF; }

/* ---------- Prose / content ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .35em; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.4em 0; padding: 4px 0 4px 18px; color: var(--navy-2); font-style: italic; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose a { font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col--wide { grid-template-columns: 1.5fr 1fr; }

.message-card { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; background: var(--white); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.message-card .avatar { width: 150px; height: 150px; font-size: 3rem; }
.message-card blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.15rem; color: var(--navy-2); line-height: 1.55; }
.message-card__name { font-weight: 700; }
.message-card__role { color: var(--muted); font-size: .95rem; }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.values li { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; }
.values strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.1rem; }

.facility { border-top: 3px solid var(--gold); background: var(--white); padding: 22px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.facility h3 { font-size: 1.12rem; }
.facility p { margin: 0; color: var(--muted); }

/* Tabs (Programs) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; padding: 12px 18px; font: 700 1rem var(--sans); color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.tab:hover { color: var(--navy); }
.tabpanel[hidden] { display: none; }

.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { font-weight: 600; text-align: right; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--paper); color: var(--navy); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.careers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.careers li { background: var(--gold-soft); color: #6B4800; font-weight: 600; font-size: .92rem; padding: 5px 12px; border-radius: 999px; }

/* Admission timeline — a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-top: 54px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font: 700 1.1rem/40px var(--serif); text-align: center;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -8px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 32px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23C98A00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .96rem; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29,69,119,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__error { color: var(--red); font-size: .9rem; margin-top: 5px; display: none; }
.field.has-error .field__error { display: block; }
.field__hint { color: var(--muted); font-size: .88rem; margin-top: 5px; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #E7F5EC; color: var(--green); border: 1px solid #BFE3CC; }
.form-status.is-err { display: block; background: var(--red-soft); color: var(--red); border: 1px solid #F5C6C6; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }

/* ---------- Filters & search ---------- */
.toolbar { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips button {
  border: 1.5px solid var(--line); background: var(--white); padding: 7px 14px; border-radius: 999px;
  font: 600 .94rem var(--sans); color: var(--ink); cursor: pointer;
}
.filter-chips button:hover { border-color: var(--navy-3); }
.filter-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.search { position: relative; min-width: 260px; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--muted); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--paper); border-radius: var(--radius-lg); }
.center { text-align: center; }
.mt-lg { margin-top: 32px; }

/* ---------- Single article ---------- */
.article-head { padding: 48px 0 28px; }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 30ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); align-items: center; font-size: .98rem; }
.article-cover { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16/8; object-fit: cover; margin-bottom: 36px; background: var(--paper); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
.share { position: sticky; top: 110px; }
.share h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; }
.share__btns { display: flex; flex-direction: column; gap: 10px; }
.share__btns a, .share__btns button {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--white); text-decoration: none; font: 600 .96rem var(--sans); color: var(--ink); cursor: pointer;
}
.share__btns a:hover, .share__btns button:hover { border-color: var(--navy-3); color: var(--navy); }
.share__btns svg { width: 18px; height: 18px; }

/* ---------- Results chart ---------- */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 64px 1fr 60px; gap: 14px; align-items: center; }
.bar__year { font-weight: 700; color: var(--navy); }
.bar__track { background: var(--paper); border-radius: 999px; height: 18px; overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--navy)); border-radius: 999px; }
.bar__fill--best { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.bar__val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Faculty ---------- */
.teacher { text-align: center; padding: 28px 18px; }
.teacher .avatar { margin: 0 auto 14px; }
.teacher h3 { font-size: 1.12rem; margin-bottom: 2px; }
.teacher__subject { color: var(--gold-deep); font-weight: 700; font-size: .95rem; }
.teacher__qual { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: var(--white); font-weight: 600; font-size: .92rem; text-align: left; background: linear-gradient(transparent, rgba(11,37,69,.85)); }
.lightbox { position: fixed; inset: 0; background: rgba(7,20,38,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; border-radius: var(--radius); }
.lightbox__cap { color: var(--white); text-align: center; margin-top: 12px; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; }
.lightbox__nav--next { right: 18px; top: 50%; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; }
.contact-list .ic svg { width: 20px; height: 20px; fill: var(--gold-deep); }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { color: var(--ink); text-decoration: none; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius-lg); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #071A33; color: #AFC0D6; padding: 60px 0 0; font-size: .98rem; }
.site-footer h2 { color: var(--white); font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D2DCEA; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand__sub { color: #8FA3BF; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: var(--white); }
.socials a:hover svg { fill: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; }
.footer-bottom a { color: var(--gold); font-weight: 600; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { background: #1EBE5A; }

/* Demo-mode note (shown only before Firebase is connected) */
.demo-note { background: var(--gold-soft); border: 1px dashed var(--gold-deep); color: #6B4800; font-size: .92rem; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 20px; }

/* Skeleton while loading */
.skeleton { background: linear-gradient(90deg, var(--paper), #E9EEF4, var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); min-height: 160px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list a { padding: 10px 8px; font-size: .94rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: var(--white); flex-direction: column;
    align-items: stretch; padding: 84px 20px 24px; transform: translateX(100%); transition: transform .25s;
    box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 60; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 13px 12px; font-size: 1.05rem; }
  .nav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); background: var(--paper); border-radius: 0 8px 8px 0; }
  .nav__cta { margin: 16px 0 0; }
  .nav-close { position: absolute; top: 18px; right: 18px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(7,20,38,.45); z-index: 55; display: none; }
  .nav-backdrop.is-open { display: block; }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .constellation { max-width: 560px; margin: 0 auto; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .share { position: static; }
  .share__btns { flex-direction: row; flex-wrap: wrap; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1181px) { .nav-close, .nav-backdrop, .nav__home { display: none; } }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .section { padding: 52px 0; }
  .topbar__group--right { display: none; }
  .brand__name { font-size: 1.25rem; }
  .brand img { width: 40px; height: 40px; }
  .site-header .container { min-height: 66px; }
  .header-cta { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why__item { padding-right: 0; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 58px; min-height: 40px; }
  .steps li::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .message-card { grid-template-columns: 1fr; padding: 22px; }
  .message-card .avatar { width: 110px; height: 110px; font-size: 2.3rem; }
  .values { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .stat__num { font-size: 1.8rem; }
  .form-panel { padding: 20px; }
  .bar { grid-template-columns: 50px 1fr 52px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker__track { padding-left: 0; flex-wrap: wrap; white-space: normal; }
}
@media print {
  .topbar, .site-header, .ticker, .wa-float, .site-footer, .share { display: none !important; }
}
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; }

.site-header .container, .topbar .container, .ticker .container { max-width: 1320px; }
.brand__sub { white-space: nowrap; }
.nav__cta { white-space: nowrap; }
@media (min-width: 1181px) { .nav__list a { padding: 10px 9px; font-size: .96rem; } }
.two-col > *, .grid > * { min-width: 0; }
