/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --blue:        #2d3fd4;
  --blue-dark:   #1a2db0;
  --blue-deep:   #132490;
  --blue-light:  #eef1fb;
  --orange:      #f47221;
  --orange-dark: #d9610d;
  --yellow:      #f5c400;

  --bg:          #f4f6fb;
  --surface:     #ffffff;
  --surface-2:   #eef1f8;
  --border:      #dde3f0;
  --border-h:    #b8c4df;

  --text:        #0d1b3e;
  --muted:       #5a6a8a;
  --light:       #8fa0bf;

  --success:     #059669;
  --success-bg:  #ecfdf5;
  --success-bd:  #6ee7b7;
  --error:       #dc2626;
  --warning:     #b45309;
  --warning-bg:  #fffbeb;
  --warning-bd:  #fde68a;

  --physics:     #0891b2;
  --physics-bg:  #ecfeff;
  --physics-bd:  #a5f3fc;
  --chemistry:   #7c3aed;
  --chemistry-bg:#f5f3ff;
  --chemistry-bd:#ddd6fe;
  --biology:     #059669;
  --biology-bg:  #ecfdf5;
  --biology-bd:  #6ee7b7;

  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --nav-h: 66px;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--surface); border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 1px 4px rgba(45,63,212,.06);
}
.nav__logo { font-size: 1.25rem; font-weight: 900; color: var(--blue); letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 0.2rem; list-style: none; align-items: center; }
.nav__links a {
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border-radius: var(--r-sm);
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav__links a:hover  { color: var(--blue); background: var(--blue-light); text-decoration: none; }
.nav__links a.active { color: var(--blue); background: var(--blue-light); font-weight: 700; }
.nav__cta {
  background: var(--orange) !important; color: #fff !important;
  font-weight: 700 !important; font-size: 0.8rem !important;
  padding: 0.5rem 1.25rem !important; border-radius: var(--r-sm) !important;
  box-shadow: 0 3px 10px rgba(244,114,33,.3);
}
.nav__cta:hover { background: var(--orange-dark) !important; transform: translateY(-1px); text-decoration: none !important; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; background: none;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; padding: 7px 8px;
}
.nav__hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(13,27,62,.1); z-index: 199;
  padding: 1rem 1.5rem 1.5rem; flex-direction: column; gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; color: var(--muted); font-size: 0.9rem; font-weight: 500;
  padding: 0.65rem 0.75rem; border-radius: var(--r-sm); transition: all .15s;
}
.mobile-menu a:hover  { background: var(--surface-2); color: var(--blue); text-decoration: none; }
.mobile-menu a.active { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.mobile-menu .mob-cta {
  text-align: center; background: var(--orange) !important; color: #fff !important;
  font-weight: 700 !important; border-radius: var(--r-sm) !important;
  padding: 0.75rem !important; margin-top: 0.5rem;
}

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
  max-width: 1120px; margin: 0 auto;
  padding: 1rem 1.75rem 0;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--light); flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); text-decoration: none; }
.breadcrumb strong { color: var(--text); font-weight: 700; }

/* ══════════════════════════════════════
   PAGE SHELL — two-column layout
══════════════════════════════════════ */
.page { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.75rem 5rem; }
.layout { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: start; }
.main-col { display: flex; flex-direction: column; gap: 1.25rem; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, #3d52e8 100%);
  border-radius: var(--r-lg); padding: 2rem 2.5rem;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  animation: fadeUp .45s ease both;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.hero::before { width: 340px; height: 340px; top: -90px; right: -60px; }
.hero::after  { width: 160px; height: 160px; bottom: -50px; right: 220px; }
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.8rem; border-radius: 20px; margin-bottom: 0.65rem;
}
.hero__title {
  font-size: 2rem; font-weight: 900; color: #fff;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 0.4rem;
}
.hero__title span { color: var(--yellow); }
.hero__sub { color: rgba(255,255,255,.72); font-size: 0.9rem; line-height: 1.7; max-width: 600px; }

/* Key fact pills */
.hero__facts {
  display: flex; gap: 0.65rem; margin-top: 1.4rem; flex-wrap: wrap;
}
.hero__fact {
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm); padding: 0.55rem 1rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.hero__fact-val { font-size: 1.1rem; font-weight: 900; color: #fff; line-height: 1; }
.hero__fact-lbl { font-size: 0.6rem; color: rgba(255,255,255,.6); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

/* ══════════════════════════════════════
   CONTENT CARDS
══════════════════════════════════════ */
.content-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 2px 10px rgba(45,63,212,.04);
  animation: fadeUp .45s .06s ease both;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.content-card + .content-card { animation-delay: .1s; }

.card-head {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  padding: 0.85rem 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.card-head h2 {
  font-size: 0.875rem; font-weight: 800; color: #fff;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.5rem;
}

.card-body { padding: 1.4rem 1.5rem; }
.card-body p {
  font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 0.85rem;
}
.card-body p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════
   IMPORTANT DATES TIMELINE
══════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  margin-top: 0.35rem;
  background: var(--border);
}
.tl-dot--done   { background: var(--success); }
.tl-dot--active { background: var(--orange); box-shadow: 0 0 0 3px rgba(244,114,33,.2); }
.tl-dot--future { background: var(--blue); }

.tl-date {
  font-size: 0.72rem; font-weight: 800; color: var(--muted);
  white-space: nowrap; min-width: 105px; flex-shrink: 0;
}
.tl-label { font-size: 0.85rem; font-weight: 600; color: var(--text); flex: 1; }
.tl-badge {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.tl-badge--done   { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-bd); }
.tl-badge--active { background: #fff5ee; color: var(--orange); border: 1px solid #fdd0a8; }
.tl-badge--future { background: var(--blue-light); color: var(--blue); border: 1px solid #c7d2f8; }

/* ══════════════════════════════════════
   EXAM PATTERN GRID
══════════════════════════════════════ */
.pattern-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1rem;
}
.pattern-stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  text-align: center;
}
.pattern-stat__val {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--blue); line-height: 1;
}
.pattern-stat__lbl {
  font-size: 0.65rem; font-weight: 700; color: var(--light);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* subject distribution bar */
.subject-dist { display: flex; flex-direction: column; gap: 0.6rem; }
.dist-row { display: flex; align-items: center; gap: 0.75rem; }
.dist-row__label {
  font-size: 0.78rem; font-weight: 700; color: var(--text);
  min-width: 80px; display: flex; align-items: center; gap: 0.35rem;
}
.dist-row__bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.dist-row__fill { height: 100%; border-radius: 4px; }
.dist-row__fill--physics   { background: linear-gradient(90deg, var(--physics), #22d3ee); }
.dist-row__fill--chemistry { background: linear-gradient(90deg, var(--chemistry), #a855f7); }
.dist-row__fill--biology   { background: linear-gradient(90deg, var(--biology), #34d399); }
.dist-row__count {
  font-size: 0.72rem; font-weight: 800; white-space: nowrap;
}
.dist-row__count--physics   { color: var(--physics); }
.dist-row__count--chemistry { color: var(--chemistry); }
.dist-row__count--biology   { color: var(--biology); }

/* ══════════════════════════════════════
   ELIGIBILITY LIST
══════════════════════════════════════ */
.elig-list { display: flex; flex-direction: column; gap: 0.85rem; }
.elig-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.elig-item__icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue-light); display: flex; align-items: center;
  justify-content: center; font-size: 1rem;
}
.elig-item__title { font-size: 0.82rem; font-weight: 800; color: var(--text); margin-bottom: 0.2rem; }
.elig-item__desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════
   SYLLABUS TABS
══════════════════════════════════════ */
.syll-tabs {
  display: flex; gap: 0; margin-bottom: 1rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 4px; width: fit-content;
}
.syll-tab {
  padding: 0.5rem 1.1rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all .15s; white-space: nowrap;
  border: none; background: none; font-family: inherit;
}
.syll-tab.active { background: var(--surface); box-shadow: 0 1px 4px rgba(45,63,212,.1); }
.syll-tab.active.phys { color: var(--physics); }
.syll-tab.active.chem { color: var(--chemistry); }
.syll-tab.active.bio  { color: var(--biology); }
.syll-tab:hover:not(.active) { color: var(--text); }

.syll-panel { display: none; }
.syll-panel.visible { display: block; }

.syll-subhead {
  font-size: 0.7rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 1rem 0 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.syll-subhead::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.syll-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.syll-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.6rem; border-radius: var(--r-xs);
  font-size: 0.8rem; color: var(--muted); transition: background .12s;
}
.syll-item:hover { background: var(--surface-2); color: var(--text); }
.syll-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  flex-shrink: 0; background: var(--border);
}
.syll-panel.visible.phys .syll-item::before { background: var(--physics); }
.syll-panel.visible.chem .syll-item::before { background: var(--chemistry); }
.syll-panel.visible.bio  .syll-item::before { background: var(--biology); }

/* ══════════════════════════════════════
   IMPORTANT LINKS
══════════════════════════════════════ */
.link-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ext-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.ext-link:hover {
  border-color: var(--blue); background: var(--blue-light);
  box-shadow: 0 2px 10px rgba(45,63,212,.08); color: var(--blue);
  text-decoration: none;
}
.ext-link__icon { font-size: 1rem; flex-shrink: 0; }
.ext-link__arrow { margin-left: auto; color: var(--light); font-size: 0.8rem; transition: transform .15s; }
.ext-link:hover .ext-link__arrow { transform: translateX(3px); color: var(--blue); }

/* ══════════════════════════════════════
   GUIDELINES LIST
══════════════════════════════════════ */
.guideline-list { display: flex; flex-direction: column; gap: 0.65rem; }
.guideline-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); line-height: 1.6;
}
.guideline-item__num {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 900; margin-top: 0.1rem;
}

/* ══════════════════════════════════════
   RIGHT SIDEBAR
══════════════════════════════════════ */
.sidebar {
  position: sticky; top: calc(var(--nav-h) + 1rem);
  display: flex; flex-direction: column; gap: 1rem;
  animation: fadeUp .45s .08s ease both;
}
.scard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 2px 8px rgba(45,63,212,.04);
}
.scard__head {
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  font-size: 0.68rem; font-weight: 800; color: rgba(255,255,255,.9);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* quick-nav jump list */
.qnav-list { padding: 0.5rem 0; }
.qnav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem; font-size: 0.8rem; color: var(--muted);
  cursor: pointer; transition: background .12s, color .12s;
  font-weight: 600;
}
.qnav-item:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.qnav-item__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); flex-shrink: 0; transition: background .12s;
}
.qnav-item:hover .qnav-item__dot { background: var(--blue); }

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: var(--r-lg); padding: 1.4rem 1.25rem;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.05); top: -50px; right: -40px;
}
.cta-card__title {
  font-size: 0.95rem; font-weight: 900; color: #fff;
  line-height: 1.3; margin-bottom: 0.4rem;
}
.cta-card__title span { color: var(--yellow); }
.cta-card__sub {
  font-size: 0.75rem; color: rgba(255,255,255,.7);
  line-height: 1.6; margin-bottom: 1rem;
}
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--orange); color: #fff;
  font-weight: 800; font-size: 0.85rem;
  padding: 0.7rem 1.25rem; border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(244,114,33,.45);
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.btn-cta:hover { background: var(--orange-dark); transform: translateY(-1px); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border); background: var(--surface); padding: 1.5rem 2.5rem;
}
.footer__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; font-size: 0.775rem; color: var(--muted);
}
.footer__inner strong { color: var(--blue); font-weight: 800; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cta-card { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav { padding: 0 1rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .page { padding: 1rem 1rem 4rem; }
  .breadcrumb { padding: 0.75rem 1rem 0; }
  .hero { padding: 1.5rem 1.25rem; }
  .hero__title { font-size: 1.5rem; }
  .pattern-grid { grid-template-columns: repeat(2,1fr); }
  .syll-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .tl-date { min-width: 80px; font-size: 0.68rem; }
  .footer { padding: 1.25rem 1rem; }
}
