:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #16202b;
  --color-text-muted: #5b6b7c;
  --color-border: #e4e9ef;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eaf1ff;
  --color-accent: #0ea5a4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
ul { margin: 0; padding: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
}
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: 0.2s; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--color-text); font-weight: 600; }

/* Hero */
.hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(900px 400px at 100% 0%, rgba(14, 165, 164, 0.08), transparent);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  max-width: 900px;
  margin: 0 auto 20px;
}
.hero .lede {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  box-shadow: var(--shadow-sm);
}
.stat-card .num { font-size: 1.6rem; font-weight: 800; color: var(--color-primary); }
.stat-card .label { font-size: 0.82rem; color: var(--color-text-muted); font-weight: 600; }

/* Category chips nav */
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.chip {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  transition: 0.15s;
}
.chip:hover, .chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Category cards grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.cat-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.cat-card h3 { font-size: 1.1rem; }
.cat-card p { font-size: 0.92rem; margin-bottom: 14px; flex-grow: 1; }
.cat-card .meta { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 600; margin-bottom: 14px; }
.cat-card .explore { font-weight: 700; font-size: 0.9rem; }

/* Table */
.table-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.table-toolbar input, .table-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}
.table-toolbar input[type="search"] { flex: 1; min-width: 200px; }
.result-count { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 12px; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 680px; }
thead th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-bg-alt); }
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.pill-da { background: #eaf1ff; color: var(--color-primary-dark); }
.pill-pa { background: #e6f7f6; color: #0d7a79; }
.empty-row td { text-align: center; padding: 40px; color: var(--color-text-muted); }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: 0.18s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card h3 { font-size: 1rem; }
.feature-card p { font-size: 0.88rem; }

/* Content / education section */
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.content-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.content-block h3 { font-size: 1.15rem; }
.content-block ul { list-style: disc; padding-left: 20px; color: var(--color-text-muted); }
.content-block li { margin-bottom: 6px; font-size: 0.94rem; }

/* Stats band */
.stats-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  text-align: center;
}
.stats-band h2 { color: #fff; }
.stats-band .sub { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 32px; }
.stats-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-band-grid .num { font-size: 2rem; font-weight: 800; }
.stats-band-grid .label { font-size: 0.85rem; color: rgba(255,255,255,0.85); font-weight: 600; }

/* Footer */
.site-footer { background: #101827; color: #cbd5e1; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #94a3b8; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Utility page header for subpages */
.page-header { padding: 40px 0 8px; }
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.related-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 960px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .stats-band { padding: 32px 20px; }
}
