/* Maths Blueprint — Shared Stylesheet */

:root {
  --bg:        #eeeae2;
  --surface:   #f7f4ef;
  --surface2:  #e2dbd0;
  --border:    rgba(59,159,219,0.18);
  --accent:    #3B9FDB;
  --accent2:   #6ABBE8;
  --gold:      #2A85BF;
  --text:      #2a2520;
  --muted:     #7a7570;
  --grid:      rgba(59,159,219,0.06);
  --grid-major:rgba(59,159,219,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SITE HEADER ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238,234,226,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.site-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.site-nav a.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.site-nav a.primary:hover {
  background: #2A85BF;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 16px 48px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 4px; color: var(--border); }

/* ── PAGE CONTAINER ── */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}
.page-header h1 .accent { color: var(--accent); }
.page-header .subtitle {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 600px;
}
.page-header .stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ── STAT PILLS ── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(59,159,219,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}
.stat-pill strong { color: var(--accent); }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,159,219,0.12);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}
.search-bar input::placeholder { color: var(--muted); opacity: 0.6; }
.search-icon { color: var(--muted); font-size: 16px; flex-shrink: 0; }
.search-icon-img { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.8; }
.clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.clear-btn:hover { color: var(--text); background: var(--surface2); }
#searchInfo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 20px;
}
#searchInfo strong { color: var(--accent); }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

/* ── LINK CARD ── */
.link-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(59,159,219,0.15);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: block;
}
.link-card:hover {
  border-color: rgba(59,159,219,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,159,219,0.1);
  text-decoration: none;
}
.link-card .card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.link-card .card-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.5;
}
.link-card .card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}
.link-card .card-arrow {
  float: right;
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.2s;
}
.link-card:hover .card-arrow { transform: translateX(4px); }

/* ── SECTION HEADING ── */
.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-heading .count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}

/* ── TOPIC LIST ── */
.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}
.topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s;
}
.topic-item:hover {
  border-color: rgba(59,159,219,0.3);
  background: rgba(255,255,255,1);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,159,219,0.08);
}
.topic-item .topic-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(59,159,219,0.08);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── QUESTION CARD (static pages) ── */
.q-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.q-card:hover {
  border-color: rgba(59,159,219,0.3);
  box-shadow: 0 4px 24px rgba(59,159,219,0.08);
}
.q-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.q-card-header a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.q-card-header a:hover { text-decoration: none; }
.q-number {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  min-width: 44px;
}
.q-meta { flex: 1; min-width: 0; }
.q-topic {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(59,159,219,0.1);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tag.board-tag  { background: rgba(106,187,232,0.10); color: #3b82f6; border-color: rgba(106,187,232,0.30); }
.tag.year-tag   { background: rgba(16,185,129,0.10); color: #10b981; border-color: rgba(16,185,129,0.30); }
.tag.marks-tag  { background: rgba(245,158,11,0.10); color: #f59e0b; border-color: rgba(245,158,11,0.30); }
.tag.paper-tag  { background: rgba(139,92,246,0.10); color: #8b5cf6; border-color: rgba(139,92,246,0.30); }
.tag.topic-tag  { background: rgba(6,182,212,0.10);  color: #06b6d4; border-color: rgba(6,182,212,0.30); }
.q-card-header { cursor: pointer; user-select: none; }
.q-chevron {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.q-card.open { border-color: rgba(59,159,219,0.35); box-shadow: 0 4px 20px rgba(59,159,219,0.10); }
.q-card.open .q-chevron { color: var(--accent); }
.q-expand { border-top: 1px solid var(--border); }

/* ── QUESTION DETAIL (question page) ── */
.q-detail-image { padding: 16px 20px; background: #fff; border-radius: 8px; margin-bottom: 16px; }
.q-detail-image img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

.q-parts { padding: 16px 20px; background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
.q-part {
  padding: 10px 0;
  border-bottom: 1px solid rgba(59,159,219,0.1);
  display: flex;
  gap: 10px;
  font-size: 14px;
}
.q-part:last-child { border-bottom: none; }
.part-label { color: var(--accent); font-weight: 600; min-width: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.part-text { flex: 1; color: var(--text); }
.part-marks { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 12px; white-space: nowrap; }

/* ── MARK SCHEME ── */
.ms-section {
  margin-top: 24px;
}
.ms-section h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.ms-toggle-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: rgba(59,159,219,0.08);
  border: 1px solid rgba(59,159,219,0.25);
  border-radius: 8px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
  margin-bottom: 12px;
}
.ms-toggle-btn:hover {
  background: rgba(59,159,219,0.14);
  border-color: rgba(59,159,219,0.4);
}
.ms-images { margin-top: 8px; }
.ms-images img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ── PREV/NEXT NAV ── */
.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.prev-next a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s;
}
.prev-next a:hover {
  border-color: var(--accent);
  background: rgba(59,159,219,0.06);
  text-decoration: none;
}
.prev-next .next { margin-left: auto; }

/* ── RELATED QUESTIONS ── */
.related-section {
  margin-top: 40px;
}
.related-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

/* ── PAPER PAGE ── */
.paper-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.paper-meta-item {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.paper-meta-item .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.paper-meta-item .value {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border: 2px solid rgba(59,159,219,0.4);
  text-decoration: none;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}
.pdf-link:hover {
  border-color: rgba(59,159,219,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,159,219,0.1);
  text-decoration: none;
}
.pdf-link .pdf-icon {
  font-size: 18px;
}
.pdf-link .pdf-label {
  color: var(--accent);
  font-weight: 600;
}

/* ── PAPER QUESTION LIST ── */
.paper-q-list {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.paper-topics-toggle {
  padding: 10px 20px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  text-align: center;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.paper-topics-toggle:hover { background: rgba(59,159,219,0.06); }
.pq-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(59,159,219,0.1);
  font-size: 13px;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.pq-row:hover { background: rgba(59,159,219,0.06); text-decoration: none; }
.pq-row:last-child { border-bottom: none; }
.pq-num  { font-family: 'IBM Plex Mono', monospace; color: var(--accent); min-width: 36px; font-size: 12px; font-weight: 600; }
.pq-topic { flex: 1; color: var(--muted); }
.pq-marks { font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: 12px; }

/* ── HOMEPAGE HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 48px 60px;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,159,219,0.08);
  border: 1px solid rgba(59,159,219,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--text);
  max-width: 820px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
  font-weight: 300;
}

/* Homepage stats */
.home-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 0 48px 60px;
}
.home-stat { text-align: center; }
.home-stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.home-stat .num span { color: var(--accent); }
.home-stat .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 4px 0;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
}
.site-footer a { color: var(--accent); }

/* ── SIBLING NAV ── */
.sibling-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.sibling-nav a {
  padding: 6px 14px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.sibling-nav a:hover {
  background: rgba(59,159,219,0.06);
  border-color: rgba(59,159,219,0.25);
  color: var(--text);
  text-decoration: none;
}
.sibling-nav a.active {
  background: rgba(59,159,219,0.10);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ── SIDEBAR LAYOUT (topic pages) ── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1360px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}
.topic-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  background: rgba(238,234,226,0.85);
  backdrop-filter: blur(8px);
}
.sidebar-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.sidebar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px;
  margin-bottom: 8px;
}
.sidebar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-strand-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.sidebar-strand-btn:hover {
  background: rgba(59,159,219,0.06);
  border-color: rgba(59,159,219,0.25);
  color: var(--text);
  text-decoration: none;
}
.sidebar-strand-btn.active {
  background: rgba(59,159,219,0.10);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.sidebar-topic-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.sidebar-topic:hover {
  background: rgba(59,159,219,0.07);
  color: var(--text);
  text-decoration: none;
}
.sidebar-topic.active {
  background: rgba(59,159,219,0.10);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.sidebar-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-main {
  padding: 32px 40px;
  overflow-y: auto;
}

/* ── TUITION PAGE ── */
.tuition-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.tuition-main { min-width: 0; }
.tuition-section { margin-bottom: 40px; }
.tuition-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  align-items: start;
}
.tuition-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tuition-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(59,159,219,0.15);
  border-radius: 14px;
  padding: 20px;
}
.tuition-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.tuition-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.tuition-experience { display: flex; flex-direction: column; gap: 14px; }
.exp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.exp-icon { flex-shrink: 0; margin-top: 2px; }
.exp-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.pricing-card {
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(59,159,219,0.3);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.pricing-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-per {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}
.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Tuition sidebar / contact form */
.tuition-sidebar { align-self: start; }
.contact-card {
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(59,159,219,0.25);
  border-radius: 16px;
  padding: 28px;
}
.contact-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,159,219,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.5; }
.form-submit {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover {
  background: #2A85BF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,159,219,0.25);
}
.form-submit:disabled {
  background: var(--muted);
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .site-header { padding: 16px 20px; }
  .breadcrumbs { padding: 12px 20px; }
  .page-container { padding: 0 20px 40px; }
  .hero { padding: 40px 20px 30px; }
  .card-grid { grid-template-columns: 1fr; }
  .topic-list { grid-template-columns: 1fr; }
  .home-stats { gap: 24px; flex-wrap: wrap; }
  .prev-next { flex-direction: column; }
  .paper-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .tuition-grid { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .tuition-sidebar { position: static; }
  .tuition-cards { grid-template-columns: 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .topic-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-main { padding: 20px 16px; }
}
