/* ============================================================
   Prentus AI Learning Hub — Main Stylesheet
   Version 3 | March 2026
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --navy:        #0F1F3D;
  --navy-dark:   #080F1E;
  --oc-blue:     #0176D3;
  --oc-blue-light: #0192FF;
  --nc-green:    #76B900;
  --nc-green-dark: #5F9500;
  --n8n-pink:    #EA4B71;
  --n8n-pink-dark: #C73A5E;
  --n8n-pink-light: #F47A92;
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --border:      #E2E8F0;
  --border-dark: #CBD5E1;
  --text:        #1A202C;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;
  --code-bg:     #1E1E2E;
  --code-border: #313244;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.15);
  --radius:      8px;
  --radius-lg:   12px;
  --transition:  0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--oc-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--oc-blue-light); text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.3rem; }
strong { font-weight: 600; color: var(--navy); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { max-width: 720px; }

/* ---- Navigation ---- */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 58px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-logo .logo-emoji { font-size: 1.2rem; }
.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.nav-section { display: flex; align-items: center; gap: 0.25rem; }
.nav-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-section-label.oc { color: var(--oc-blue-light); }
.nav-section-label.nc { color: var(--nc-green); }
.nav-section-label.n8 { color: var(--n8n-pink); }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.15); }
.nav-right { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.nav-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-btn.resources { color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.25); }
.nav-btn.resources:hover { color: white; border-color: rgba(255,255,255,0.5); }
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: white;
  font-size: 1.3rem;
  line-height: 1;
}
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav-group { margin-bottom: 1.2rem; }
.mobile-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-label.oc { color: var(--oc-blue-light); }
.mobile-nav-label.nc { color: var(--nc-green); }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 0.4rem 0;
  font-size: 0.9rem;
  text-decoration: none;
}
.mobile-nav a:hover { color: white; }

/* ---- Hero (Homepage) ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(1,118,211,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  position: relative;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-paths {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.hero-path-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.hero-path-btn.oc {
  background: var(--oc-blue);
  color: white;
  box-shadow: 0 4px 20px rgba(1,118,211,0.4);
}
.hero-path-btn.oc:hover {
  background: var(--oc-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1,118,211,0.5);
  color: white;
}
.hero-path-btn.nc {
  background: var(--nc-green);
  color: white;
  box-shadow: 0 4px 20px rgba(118,185,0,0.4);
}
.hero-path-btn.nc:hover {
  background: #88d500;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(118,185,0,0.5);
  color: white;
}
.hero-path-btn.n8n {
  background: var(--n8n-pink);
  color: white;
  box-shadow: 0 4px 20px rgba(234,75,113,0.4);
}
.hero-path-btn.n8n:hover {
  background: var(--n8n-pink-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234,75,113,0.5);
  color: white;
}

/* ---- Page Hero (Inner Pages) ---- */
.page-hero {
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero.oc-theme { background: linear-gradient(135deg, #EBF4FF 0%, #F0F8FF 100%); }
.page-hero.nc-theme { background: linear-gradient(135deg, #F0F7E6 0%, #F5FAF0 100%); }
.page-hero.n8n-theme { background: linear-gradient(135deg, #FDF1F5 0%, #FEF5F8 100%); }
.page-hero.navy-theme { background: var(--navy); color: white; }
.page-hero.navy-theme h1 { color: white; }
.page-hero.navy-theme .page-hero-sub { color: rgba(255,255,255,0.75); }
.page-hero .container { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 0.6rem; font-size: 2rem; }
.page-hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; line-height: 1.65; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--oc-blue); text-decoration: underline; }
.breadcrumb .sep { color: var(--text-light); }

/* ---- Main Layout (Sidebar + Content) ---- */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.page-layout.no-sidebar { grid-template-columns: 1fr; }
.toc-sidebar { position: sticky; top: 80px; }
.toc-sidebar h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.1rem; }
.toc-list a {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.toc-list a:hover { color: var(--navy); background: var(--off-white); border-left-color: var(--border-dark); }
.toc-list a.active { color: var(--oc-blue); border-left-color: var(--oc-blue); background: #EBF4FF; }
.toc-list li.toc-sub a { padding-left: 1.25rem; font-size: 0.8rem; }

/* ---- Content Area ---- */
.content { min-width: 0; }
.content h2 { padding-top: 0.5rem; }
.content h2:first-child { margin-top: 0; }

/* ---- Callout Boxes ---- */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.93rem;
  line-height: 1.6;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.callout.info { background: #EBF4FF; border: 1px solid #BFDBFE; }
.callout.info .callout-icon { color: var(--oc-blue); }
.callout.warning { background: #FFF8E6; border: 1px solid #FCD34D; }
.callout.warning .callout-icon { color: #B45309; }
.callout.success { background: #F0F7E6; border: 1px solid #86C442; }
.callout.success .callout-icon { color: var(--nc-green-dark); }
.callout.danger { background: #FEF2F2; border: 1px solid #FCA5A5; }
.callout.danger .callout-icon { color: #DC2626; }
.callout p:last-child { margin-bottom: 0; }

/* ---- Code Blocks ---- */
pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  position: relative;
}
pre code {
  font-family: "Cascadia Code", "Fira Code", "JetBrains Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: #CDD6F4;
  background: none;
  padding: 0;
  border-radius: 0;
  line-height: 1.6;
}
code {
  font-family: "Cascadia Code", "Fira Code", "JetBrains Mono", Menlo, monospace;
  font-size: 0.85em;
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: white; }
.copy-btn.copied { color: var(--nc-green); border-color: var(--nc-green); }

/* Syntax color hints */
pre .kw { color: #CBA6F7; }
pre .str { color: #A6E3A1; }
pre .cm { color: #6C7086; }
pre .fn { color: #89B4FA; }
pre .nm { color: #F38BA8; }
pre .nb { color: #FAB387; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th {
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--off-white); }
td code { font-size: 0.82rem; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  text-decoration: none !important;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card:hover {
  border-color: var(--oc-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.card.nc-card:hover { border-color: var(--nc-green); }
.card.n8n-card:hover { border-color: var(--n8n-pink); }
.card-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.card h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.card .card-arrow { color: var(--oc-blue); font-size: 0.85rem; margin-top: auto; padding-top: 0.5rem; font-weight: 600; }
.card.nc-card .card-arrow { color: var(--nc-green-dark); }
.card.n8n-card .card-arrow { color: var(--n8n-pink-dark); }

/* Pathway cards (homepage) */
.pathway-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto;
}
.pathway-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-decoration: none !important;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pathway-card.oc {
  background: linear-gradient(135deg, var(--oc-blue) 0%, #0254A3 100%);
  color: white;
  box-shadow: 0 8px 30px rgba(1,118,211,0.3);
}
.pathway-card.nc {
  background: linear-gradient(135deg, var(--nc-green) 0%, var(--nc-green-dark) 100%);
  color: white;
  box-shadow: 0 8px 30px rgba(118,185,0,0.3);
}
.pathway-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.pathway-card .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.pathway-card h2 {
  color: white;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}
.pathway-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.pathway-card .path-cta {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.5rem 1.1rem;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-block;
  transition: background var(--transition);
}
.pathway-card:hover .path-cta { background: rgba(255,255,255,0.25); }

/* ---- Badges / Pills ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge.new { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.badge.alpha { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.badge.beta { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.badge.green { background: #F0F7E6; color: var(--nc-green-dark); border: 1px solid #86C442; }
.badge.blue { background: #EBF4FF; color: #0254A3; border: 1px solid #93C5FD; }

/* ---- Steps ---- */
.steps { counter-reset: step; margin: 1.5rem 0; }
.step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.8rem;
  bottom: -0.75rem;
  width: 2px;
  background: var(--border);
}
.step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  counter-increment: step;
  content: counter(step);
  position: relative;
  z-index: 1;
}
.step-num::before { content: counter(step); }
.step-content { padding-top: 0.2rem; flex: 1; min-width: 0; }
.step-content h4 { margin-top: 0; color: var(--navy); font-size: 1rem; margin-bottom: 0.4rem; }
.step-content p:last-child { margin-bottom: 0; }

/* ---- FAQ Accordion ---- */
.faq-list { margin: 1.5rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--off-white); }
.faq-question.open { background: var(--off-white); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---- Comparison Table (styled) ---- */
.compare-table th:first-child { min-width: 160px; }
.compare-table .yes { color: var(--nc-green-dark); font-weight: 600; }
.compare-table .no { color: #DC2626; }
.compare-table .partial { color: #D97706; }

/* ---- Learning Path ---- */
.learning-path {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
  position: relative;
  padding-left: 2.5rem;
}
.learning-path::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--border);
}
.lp-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
}
.lp-item:hover { border-color: var(--oc-blue); box-shadow: var(--shadow-sm); }
.lp-item.nc:hover { border-color: var(--nc-green); }
.lp-dot {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
}
.lp-dot.beginner { background: #DBEAFE; color: #1D4ED8; }
.lp-dot.intermediate { background: #FEF3C7; color: #92400E; }
.lp-dot.advanced { background: #FCE7F3; color: #9D174D; }
.lp-content h4 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.lp-content p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.lp-content a { color: inherit; font-weight: 600; text-decoration: none; }
.lp-content a:hover { color: var(--oc-blue); }

/* ---- Helpful Widget ---- */
.helpful-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
  background: var(--off-white);
}
.helpful-box p { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.helpful-btns { display: flex; gap: 0.75rem; justify-content: center; }
.helpful-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  color: var(--text);
}
.helpful-btn:hover { border-color: var(--oc-blue); color: var(--oc-blue); }

/* ---- Related Articles ---- */
.related-articles { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-articles h3 { margin-top: 0; font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 0.75rem; }
.related-item {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--text);
  transition: all var(--transition);
  font-size: 0.88rem;
}
.related-item:hover { border-color: var(--oc-blue); box-shadow: var(--shadow-sm); color: var(--text); }
.related-item .ri-title { font-weight: 600; color: var(--navy); display: block; margin-bottom: 0.2rem; }
.related-item .ri-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; display: block; }

/* ---- News Strip ---- */
.news-strip {
  background: var(--off-white);
  padding: 2.5rem 1.5rem;
}
.news-strip .strip-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.news-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.news-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  gap: 0.75rem;
}
.news-item .ni-icon { font-size: 1.1rem; flex-shrink: 0; }
.news-item .ni-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 0.15rem; }
.news-item .ni-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.news-item .ni-date { font-size: 0.72rem; color: var(--text-light); display: block; margin-top: 0.3rem; }

/* ---- Email Signup ---- */
.email-signup {
  background: var(--navy);
  padding: 3rem 1.5rem;
  text-align: center;
  color: white;
}
.email-signup h2 { color: white; margin-top: 0; font-size: 1.4rem; }
.email-signup p { color: rgba(255,255,255,0.75); font-size: 0.93rem; margin-bottom: 1.5rem; }
.email-form { display: flex; gap: 0.75rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.email-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.email-form input::placeholder { color: rgba(255,255,255,0.5); }
.email-form input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.email-form button {
  background: var(--oc-blue);
  color: white;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.email-form button:hover { background: var(--oc-blue-light); }

/* ---- Section Headers (Hub pages) ---- */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
}
.section-header h2 { margin: 0; }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ---- External Link Badge ---- */
a[target="_blank"]::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.6;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.87rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ---- Section Spacers ---- */
.section { padding: 3.5rem 1.5rem; }
.section-muted { background: var(--off-white); }
.section-navy { background: var(--navy); color: white; }
.section-navy h2 { color: white; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-top: 0; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0.5rem auto 0; font-size: 0.95rem; }

/* ---- Stats / Highlight Row ---- */
.stats-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2.5rem 1.5rem;
  background: var(--navy);
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: white; letter-spacing: -0.03em; display: block; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Dividers ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- Resource List ---- */
.resource-section { margin-bottom: 2.5rem; }
.resource-section h2 { border-left: 4px solid var(--oc-blue); padding-left: 0.75rem; }
.resource-section.nc h2 { border-left-color: var(--nc-green); }
.resource-list { list-style: none; padding: 0; }
.resource-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.resource-list li:last-child { border-bottom: none; }
.resource-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.resource-text strong { display: block; font-size: 0.95rem; color: var(--navy); }
.resource-text span { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.1rem; }

/* ---- Responsive ---- */
@media (max-width: 1400px) {
  .nav-section, .nav-divider, .nav-links, .nav-section-label, .nav-right { display: none !important; }
  .nav-menu-toggle { display: flex !important; }
  .nav-inner { 
    padding: 0 1rem;
    gap: 0.75rem;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    justify-content: space-between;
  }
  .site-nav { 
    width: 100%; 
    max-width: 100vw;
    overflow: hidden;
  }
}

@media (max-width: 1200px) {
  .page-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pathway-cards { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .email-form input { min-width: 100%; }
  .container { padding: 0 1rem; }
  .nav-inner {
    padding: 0 0.75rem;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .nav-logo { font-size: 0.95rem; }
}

/* ---- Print ---- */
@media print {
  .site-nav, .toc-sidebar, .helpful-box, .email-signup, .site-footer { display: none; }
  .page-layout { grid-template-columns: 1fr; }
}

/* ── Logo in nav ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ---- News Hero Section ---- */
.news-hero {
  background: linear-gradient(135deg, #0F1F3D 0%, #1a3557 100%);
  padding: 3.5rem 1.5rem;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}
.news-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.news-hero-label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #60A5FA;
  margin-bottom: 1rem;
  display: block;
}
.news-hero h2 {
  color: white;
  margin: 0 0 0.75rem 0;
  font-size: 1.75rem;
  line-height: 1.3;
}
.news-hero-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.news-hero-summary {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.news-hero-cta {
  display: inline-block;
  color: #60A5FA;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid #60A5FA;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}
.news-hero-cta:hover {
  background: #60A5FA;
  color: var(--navy);
}

@media (max-width: 768px) {
  .news-hero {
    padding: 2.5rem 1.5rem;
  }
  .news-hero h2 {
    font-size: 1.4rem;
  }
}
