/* GenioPrep Career Guides — shared content page template
   Reused by /content/index.html and all /content/*.html article pages. */

:root {
  --navy: #0A1026;
  --navy-mid: #0E1530;
  --surface: #0E1530;
  --surface2: #141C3A;
  --ink-sq: #1A1A2E;
  --blue: #2E6BFF;
  --sky: #38BDF8;
  --cyan: #38BDF8;
  --indigo: #6366F1;
  --amber: #F0A500;
  --gold-bright: #FFD56A;
  --gold-core: #FFF6E0;
  --gold-deep: #8A5400;
  --white: #FFFFFF;
  --text: #F6F8FF;
  --text-mid: #C4CDEA;
  --muted: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.15);
  --success: #22C55E;
  --container: 1160px;
  --grad-brand: linear-gradient(135deg, #38BDF8 0%, #2E6BFF 55%, #6366F1 100%);
  --tint-cyan: rgba(56,189,248,0.10);
  --tint-cyan-line: rgba(56,189,248,0.26);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3 { font-family: 'Sora', sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; }
img { display: block; max-width: 100%; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: opacity 120ms, transform 120ms, box-shadow 120ms;
  border: none; white-space: nowrap;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px rgba(46,107,255,0.35); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-hi); }
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,35,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 24%;
  background: var(--ink-sq);
  display: grid; place-items: center; flex: none;
  position: relative; overflow: hidden; font-size: 0;
}
.brand-mark::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; position: relative; z-index: 1;
  background: radial-gradient(circle at 50% 40%, var(--gold-core) 0%, var(--gold-bright) 20%, var(--amber) 48%, #C97E00 74%, var(--gold-deep) 100%);
  box-shadow: 0 0 10px 1px rgba(240,165,0,.5), 0 0 24px 3px rgba(240,165,0,.26), inset 0 -3px 7px rgba(120,72,0,.45), inset 0 3px 6px rgba(255,246,224,.55);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(240,165,0,.22), transparent 62%);
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; font-weight: 600; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  max-width: 780px; margin: 0 auto; padding: 28px 24px 0;
  font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span[aria-current] { color: var(--text); }

/* ── Article shell ──────────────────────────────────────── */
.article-main, .hub-main { max-width: 780px; margin: 0 auto; padding: 24px 24px 100px; position: relative; z-index: 1; }

.page-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 14px;
}
.page-h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 18px; }
.page-intro { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 32px; max-width: 700px; }

/* ── Quick answer box ───────────────────────────────────── */
.quick-answer {
  background: linear-gradient(135deg, rgba(46,107,255,0.12), rgba(56,189,248,0.05));
  border: 1px solid rgba(46,107,255,0.28); border-radius: 18px; padding: 24px 26px; margin-bottom: 36px;
}
.quick-answer-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 10px;
}
.quick-answer p { font-size: 15.5px; line-height: 1.75; color: var(--text); }

/* ── Table of contents ──────────────────────────────────── */
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 26px; margin-bottom: 40px;
}
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 14.5px; }
.toc li a { color: var(--text); font-weight: 600; }
.toc li a:hover { color: var(--sky); }
.toc li::before { content: counter(toc) "."; color: var(--sky); font-weight: 700; margin-right: 8px; }

/* ── Body sections ──────────────────────────────────────── */
.article-body h2 {
  font-size: 24px; font-weight: 800; margin: 44px 0 14px; scroll-margin-top: 84px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: var(--text); }
.article-body p { font-size: 15.5px; color: rgba(255,255,255,0.82); line-height: 1.8; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body li { font-size: 15.5px; color: rgba(255,255,255,0.82); line-height: 1.75; margin-bottom: 8px; }
.article-body strong { color: var(--white); }
.article-body a.inline-link { color: var(--sky); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(56,189,248,0.35); }
.article-body a.inline-link:hover { text-decoration-color: var(--sky); }

/* ── Example / scenario box ─────────────────────────────── */
.example-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; margin: 20px 0 28px;
}
.example-box .example-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 10px;
}
.example-box p { font-size: 14.5px; color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* ── Risk / requirement checklist ───────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px;
  color: rgba(255,255,255,0.82); line-height: 1.65;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px;
}
.checklist .risk-icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: rgba(240,165,0,0.15); color: var(--amber);
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
}
.checklist strong { color: var(--white); }

/* ── Weak vs. stronger comparison cards ─────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 28px; }
.compare-card { border-radius: 14px; padding: 18px 20px; border: 1px solid var(--border); }
.compare-card.weak { background: rgba(255,77,77,0.06); border-color: rgba(255,77,77,0.25); }
.compare-card.strong { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.25); }
.compare-card.safe { background: rgba(56,189,248,0.06); border-color: rgba(56,189,248,0.25); grid-column: 1 / -1; }
.compare-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.compare-card.weak .compare-label { color: var(--danger); }
.compare-card.strong .compare-label { color: var(--success); }
.compare-card.safe .compare-label { color: var(--sky); }
.compare-card p { font-size: 14px; color: rgba(255,255,255,0.82); margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card.safe { grid-column: auto; }
}

/* ── How GenioPrep helps ─────────────────────────────────── */
.helps-box {
  background: var(--surface2); border: 1px solid var(--border-hi); border-radius: 18px;
  padding: 26px 28px; margin: 32px 0;
}
.helps-box h2 { margin-top: 0 !important; }
.helps-box .btn { margin-top: 14px; }

/* ── Trust / safety note ─────────────────────────────────── */
.trust-box {
  background: rgba(240,165,0,0.07); border: 1px solid rgba(240,165,0,0.25); border-radius: 16px;
  padding: 22px 24px; margin: 28px 0;
}
.trust-box .trust-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 10px;
}
.trust-box p { font-size: 14.5px; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.trust-box p:last-child { margin-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.faq-a { font-size: 14.5px; color: rgba(255,255,255,0.78); line-height: 1.75; }

/* ── CTA block ──────────────────────────────────────────── */
.cta-block {
  text-align: center; margin-top: 56px;
  background: linear-gradient(135deg, rgba(46,107,255,0.16), rgba(56,189,248,0.06));
  border: 1px solid rgba(46,107,255,0.3); border-radius: 22px; padding: 44px 30px;
}
.cta-block h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.cta-block p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Related article cards ──────────────────────────────── */
.related { margin-top: 48px; }
.related-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; transition: border-color 0.15s;
}
.related-card:hover { border-color: rgba(56,189,248,0.35); }
.related-card .related-tag { font-size: 11px; font-weight: 700; color: var(--sky); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.related-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.related-card p { font-size: 13px; color: var(--muted); }

/* ── Hub: category cards ─────────────────────────────────── */
.hub-hero { text-align: center; padding: 8px 0 40px; }
.hub-hero .page-h1 { margin: 0 auto 16px; }
.hub-hero .page-intro { margin: 0 auto 28px; }

.category-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.category-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
.category-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.category-card .category-desc { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.category-links { display: flex; flex-direction: column; gap: 10px; }
.category-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; font-size: 14.5px; font-weight: 600; transition: border-color 0.15s;
}
.category-link:hover { border-color: rgba(56,189,248,0.4); color: var(--sky); }
.category-link .arrow { color: var(--sky); font-weight: 900; }
.coming-soon {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  border: 1px dashed var(--border-hi); border-radius: 12px;
}
.coming-soon .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 30px; background: var(--navy-mid); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 30px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 0.86rem; max-width: 300px; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 26px; color: var(--muted); font-size: 0.83rem; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; color: var(--muted); font-size: 0.8rem; }

/* ── Background orbs ────────────────────────────────────── */
.orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .article-main, .hub-main { padding: 16px 16px 80px; }
  .breadcrumb { padding: 20px 16px 0; }
  .nav-wrap { padding: 0; }
  .site-header .container { width: calc(100% - 28px); }
  .toc, .quick-answer, .example-box, .helps-box, .trust-box, .category-card { padding: 18px; }
  .cta-block { padding: 32px 20px; }
}
@media (max-width: 420px) {
  .nav-wrap { gap: 8px; }
  .brand { font-size: 0.92rem; gap: 6px; }
  .brand-mark { width: 26px; height: 26px; font-size: 0.78rem; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 0.72rem; }
}

/* ── Hub Featured Article ──────────────────────────────────── */
.hub-featured {
  border: 1px solid var(--border-hi);
  border-left: 4px solid var(--cyan);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 28px 32px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-featured-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--tint-cyan);
  border: 1px solid var(--tint-cyan-line);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.hub-featured-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0;
}

.hub-featured-title a {
  color: var(--text);
  text-decoration: none;
}

.hub-featured-title a:hover { color: var(--cyan); }

.hub-featured-excerpt {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ── Hub Category Sections ─────────────────────────────────── */
.hub-category {
  margin-bottom: 48px;
}

.hub-category-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.hub-category-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}

.hub-category--sky .hub-category-icon {
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  color: var(--sky);
}

.hub-category--amber .hub-category-icon {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  color: var(--amber);
}

.hub-category--cyan .hub-category-icon {
  background: var(--tint-cyan);
  border: 1px solid var(--tint-cyan-line);
  color: var(--cyan);
}

.hub-category-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}

.hub-category-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Hub Article Rows ──────────────────────────────────────── */
.hub-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.hub-article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.hub-article-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hub-article-text a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.hub-category--sky .hub-article-text a:hover { color: var(--sky); }
.hub-category--amber .hub-article-text a:hover { color: var(--amber); }
.hub-category--cyan .hub-article-text a:hover { color: var(--cyan); }

.hub-article-desc {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.hub-article-arrow {
  flex-shrink: 0;
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-top: 3px;
}

/* ── Hub FAQ ───────────────────────────────────────────────── */
.hub-faq {
  margin-bottom: 48px;
}

.hub-faq-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.hub-faq-item {
  border-bottom: 1px solid var(--border);
}

.hub-faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.hub-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: 12px;
}

.hub-faq-question::-webkit-details-marker { display: none; }

.hub-faq-question::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--cyan);
  transition: transform 200ms;
}

.hub-faq-item[open] > .hub-faq-question::after {
  transform: rotate(45deg);
}

.hub-faq-answer {
  padding: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.hub-faq-answer p { margin-bottom: 0.5rem; }
.hub-faq-answer p:last-child { margin-bottom: 0; }

/* ── Hub Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .hub-featured {
    padding: 20px 18px;
  }

  .hub-featured-title {
    font-size: 1.15rem;
  }
}

/* ── Light mode overrides ────────────────────────────────────── */
/* content.css hardcodes rgba(255,255,255,…) for body text;      */
/* CSS-variable swaps alone cannot fix those. Override here.      */
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body li { color: rgba(10,16,38,0.82); }
[data-theme="light"] .article-body strong { color: #0A1026; }
[data-theme="light"] .example-box p { color: rgba(10,16,38,0.78); }
[data-theme="light"] .checklist li { color: rgba(10,16,38,0.82); }
[data-theme="light"] .compare-card p { color: rgba(10,16,38,0.82); }
[data-theme="light"] .trust-box p { color: rgba(10,16,38,0.80); }
[data-theme="light"] .faq-a { color: rgba(10,16,38,0.78); }
[data-theme="light"] .faq-q { color: #0A1026; }
[data-theme="light"] .checklist strong { color: #0A1026; }
