/*
Theme Name: EarnSmartHub
Theme URI: https://earnsmarthub.com
Author: Lloyd Media Lab
Author URI: https://lloydmedialab.co.za
Description: EarnSmartHub — clean light theme for a money-making content site with affiliate course promotion
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: earnsmarthub
Tags: affiliate, finance, light, clean, responsive
*/

/* ── TOKENS ── */
:root {
  --brand:       #16A34A;
  --brand-light: #DCFCE7;
  --brand-mid:   #BBF7D0;
  --brand-dark:  #15803D;
  --ink:         #0F172A;
  --body:        #475569;
  --muted:       #94A3B8;
  --border:      #E2E8F0;
  --bg:          #F8FAFC;
  --white:       #FFFFFF;
  --r:           12px;
  --r-lg:        20px;
  --shadow:      0 4px 16px rgba(0,0,0,.06);
  --font-head:   'Inter', sans-serif;
  --font-body:   'Inter', sans-serif;
  --transition:  all .18s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPE ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(16px, 2vw, 20px); }
p  { color: var(--body); line-height: 1.75; }

/* ── LAYOUT ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  padding: 11px 24px; border-radius: 999px;
  transition: var(--transition); cursor: pointer; white-space: nowrap; border: none;
}
.btn-green  { background: var(--brand); color: var(--white); }
.btn-green:hover { background: var(--brand-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: #94A3B8; color: var(--ink); }
.btn-lg { padding: 13px 30px; font-size: 1rem; }

/* ── EYEBROW ── */
.eyebrow {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 8px;
}

/* ── COURSE TAG BADGE ── */
.course-tag {
  display: inline-block; background: var(--brand); color: var(--white);
  font-size: .65rem; font-weight: 700; padding: 3px 12px;
  border-radius: 999px; letter-spacing: .06em; margin-bottom: 12px;
}

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
#site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 62px;
}
.site-logo {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
}
.site-logo span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { margin-left: 6px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

#mobile-nav {
  display: none; position: fixed; inset: 62px 0 0;
  background: var(--white); z-index: 800;
  padding: 28px; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--ink);
}
#mobile-nav a:last-child { border-bottom: none; }
#mobile-nav a:hover { color: var(--brand); }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
#hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.hero-inner { max-width: 680px; margin: 0 auto; text-align: center; padding: 0 28px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 16px;
  font-size: .78rem; font-weight: 600; color: var(--body); margin-bottom: 24px;
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
#hero h1 { margin-bottom: 18px; }
#hero h1 span { color: var(--brand); }
#hero > .hero-inner > p { font-size: 1.05rem; max-width: 500px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

/* Stats bar */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.stat-item {
  padding: 18px 10px; text-align: center;
  border-right: 1px solid var(--border); background: var(--bg);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block; font-size: 1.7rem; font-weight: 800;
  color: var(--ink); letter-spacing: -.03em; line-height: 1;
}
.stat-label {
  display: block; font-size: .68rem; color: var(--muted);
  margin-top: 4px; line-height: 1.35;
}

/* ════════════════════════════════════
   RECOMMENDED COURSE SECTION
════════════════════════════════════ */
#course {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.course-inner {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.course-header {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-bottom: 1px solid var(--brand-mid);
  padding: 32px 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start;
}
.course-header h2 { margin-bottom: 10px; font-size: clamp(18px, 2.5vw, 26px); }
.course-header h2 span { color: var(--brand); }
.course-header p { font-size: .9rem; line-height: 1.65; max-width: 480px; }
.course-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.course-badges { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.cbadge {
  background: var(--white); border: 1px solid var(--brand-mid);
  border-radius: 999px; padding: 6px 16px;
  font-size: .75rem; font-weight: 600; color: var(--brand-dark); white-space: nowrap;
}
.course-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.cstep {
  padding: 24px; border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.cstep:last-child { border-right: none; }
.cstep-n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.cstep h4 { font-size: .85rem; font-weight: 700; margin-bottom: 5px; }
.cstep p  { font-size: .78rem; color: var(--body); line-height: 1.5; }
.course-footer {
  padding: 18px 36px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.course-footer p { font-size: .85rem; color: var(--body); }
.course-footer strong { color: var(--ink); }

/* ════════════════════════════════════
   INCOME STREAMS
════════════════════════════════════ */
#categories { padding: 56px 0; border-bottom: 1px solid var(--border); }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head h2 span { color: var(--brand); }
.sec-head p { font-size: .92rem; max-width: 500px; }
.earn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.earn-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; transition: var(--transition);
}
.earn-card:hover { border-color: #94A3B8; box-shadow: var(--shadow); }
.earn-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
}
.earn-card h3 { font-size: .88rem; font-weight: 700; margin-bottom: 5px; }
.earn-card p  { font-size: .78rem; line-height: 1.5; margin-bottom: 12px; }
.earn-link    { font-size: .78rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }
.earn-link:hover { color: var(--brand-dark); }

/* ════════════════════════════════════
   NEWSLETTER
════════════════════════════════════ */
#newsletter { background: var(--bg); border-bottom: 1px solid var(--border); padding: 56px 0; }
.nl-inner {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px;
}
.nl-inner h2 { font-size: clamp(18px, 2.5vw, 26px); margin-bottom: 10px; }
.nl-inner h2 span { color: var(--brand); }
.nl-inner p  { font-size: .9rem; margin-bottom: 24px; }
.nl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.nl-field {
  padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 9px; font-size: .9rem; color: var(--ink);
  font-family: var(--font-body); background: var(--white); outline: none; transition: var(--transition); width: 100%;
}
.nl-field:focus { border-color: var(--brand); }
.nl-field::placeholder { color: var(--muted); }
.nl-note { font-size: .72rem; color: var(--muted); margin-top: 8px; }

/* ════════════════════════════════════
   FOOTER — LIGHT
════════════════════════════════════ */
#site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-logo { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); display: block; margin-bottom: 10px; }
.footer-logo span { color: var(--brand); }
.footer-about p { font-size: .82rem; color: var(--body); line-height: 1.65; max-width: 240px; }
.footer-col h4 { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .82rem; color: var(--body); }
.footer-col ul li a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: .75rem; color: var(--muted); }
.footer-tagline { font-size: .75rem; color: var(--brand); font-weight: 600; }

/* ════════════════════════════════════
   BREADCRUMB
════════════════════════════════════ */
.breadcrumb {
  padding: 13px 0; border-bottom: 1px solid var(--border);
  background: var(--bg); font-size: .78rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand-dark); }

/* ════════════════════════════════════
   SINGLE POST
════════════════════════════════════ */
.post-hero-wrap { border-bottom: 1px solid var(--border); padding: 44px 0 36px; }
.post-tag {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  font-size: .68rem; font-weight: 700; padding: 4px 14px;
  border-radius: 999px; letter-spacing: .05em; margin-bottom: 16px;
}
.post-hero-wrap h1 { margin-bottom: 16px; max-width: 760px; }
.post-intro { font-size: 1.05rem; color: var(--body); line-height: 1.75; max-width: 680px; margin-bottom: 24px; }
.post-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-name  { font-size: .82rem; font-weight: 600; color: var(--ink); display: block; }
.author-role  { font-size: .72rem; color: var(--muted); display: block; }
.meta-divider { width: 1px; height: 30px; background: var(--border); }
.meta-stat    { font-size: .75rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.meta-stat span { display: flex; align-items: center; gap: 5px; }

/* Post layout */
.post-layout {
  display: grid; grid-template-columns: 1fr 268px;
  gap: 36px; padding: 36px 0 80px; align-items: start;
}
.post-content-area { min-width: 0; }

/* Post content typography */
.post-content-area h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.post-content-area h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.post-content-area p  { font-size: .97rem; margin-bottom: 18px; line-height: 1.8; }
.post-content-area ul, .post-content-area ol { padding-left: 20px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.post-content-area li { font-size: .97rem; color: var(--body); line-height: 1.7; }
.post-content-area li::marker { color: var(--brand); }
.post-content-area strong { color: var(--ink); font-weight: 600; }
.post-content-area a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-content-area img { border-radius: var(--r); margin: 24px 0; }
.post-content-area blockquote {
  border-left: 3px solid var(--brand); border-radius: 0 var(--r) var(--r) 0;
  background: var(--brand-light); padding: 16px 20px; margin: 20px 0;
  font-style: italic; color: var(--brand-dark);
}
.post-content-area blockquote p { color: var(--brand-dark); margin: 0; }

/* Callout */
.callout {
  background: var(--brand-light); border-left: 3px solid var(--brand);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 20px 0;
}
.callout p { font-size: .9rem; color: var(--brand-dark); line-height: 1.65; margin: 0; }

/* Step rows */
.steps-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.step-row {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px;
}
.step-badge {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand); color: var(--white);
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.step-body h4 { font-size: .88rem; font-weight: 700; margin-bottom: 4px; }
.step-body p  { font-size: .82rem; margin: 0; line-height: 1.6; }

/* In-content course CTA */
.incontent-cta {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border: 1.5px solid var(--brand-mid); border-radius: 16px;
  padding: 28px; margin: 32px 0; text-align: center;
}
.incontent-cta h3 { font-size: 1.1rem; margin-bottom: 8px; }
.incontent-cta h3 span { color: var(--brand); }
.incontent-cta p { font-size: .88rem; margin-bottom: 18px; }

/* Post table */
.post-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .85rem; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.post-table th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: .75rem; font-weight: 700; border-bottom: 1px solid var(--border); }
.post-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--body); }
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:hover td { background: var(--bg); }
.check { color: var(--brand); font-weight: 700; }
.cross { color: var(--muted); }

/* Post tags */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.ptag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 14px;
  font-size: .75rem; color: var(--body); font-weight: 500;
}
.ptag:hover { border-color: #94A3B8; color: var(--ink); }

/* ── SIDEBAR ── */
.post-sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; }
.sb-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px;
}
.sb-box h4 {
  font-size: .8rem; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--ink);
}

/* TOC */
.toc-list { display: flex; flex-direction: column; gap: 4px; }
.toc-list a {
  font-size: .78rem; color: var(--body); padding: 5px 10px;
  border-radius: 7px; display: block;
  border-left: 2px solid transparent; transition: var(--transition);
}
.toc-list a:hover { color: var(--brand); border-left-color: var(--brand); background: var(--bg); }
.toc-list a.active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-light); font-weight: 600; }

/* Sidebar course CTA */
.sb-cta {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border: 1.5px solid var(--brand-mid); border-radius: var(--r); padding: 20px; text-align: center;
}
.sb-cta h4 { font-size: .9rem; margin-bottom: 6px; border: none; padding: 0; }
.sb-cta p  { font-size: .75rem; color: var(--body); margin-bottom: 14px; line-height: 1.5; }
.sb-cta .btn { width: 100%; justify-content: center; border-radius: 9px; font-size: .82rem; padding: 10px; }
.sb-note { font-size: .68rem; color: var(--muted); display: block; margin-top: 8px; }

/* Related in sidebar */
.sb-related-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.sb-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.sb-thumb { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sb-related-item h5 { font-size: .75rem; font-weight: 600; line-height: 1.4; margin-bottom: 3px; color: var(--ink); }
.sb-related-item span { font-size: .68rem; color: var(--muted); }

/* ── RELATED POSTS SECTION ── */
#related-posts { padding: 48px 0; border-top: 1px solid var(--border); background: var(--bg); }
#related-posts h2 { font-size: 1.25rem; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rcard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: var(--transition); display: block;
}
.rcard:hover { border-color: #94A3B8; box-shadow: var(--shadow); }
.rcard-img { height: 90px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.rcard-body { padding: 14px; }
.rcard-tag { font-size: .65rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; display: inline-block; }
.rcard-body h3 { font-size: .8rem; font-weight: 700; line-height: 1.4; color: var(--ink); margin-bottom: 6px; }
.rcard-meta { font-size: .7rem; color: var(--muted); }

/* ── ARCHIVE / CATEGORY ── */
#archive-hero { padding: 44px 0 32px; border-bottom: 1px solid var(--border); background: var(--white); }
#archive-hero h1 { margin-bottom: 8px; }
#archive-hero p { font-size: .95rem; max-width: 480px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.archive-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: var(--transition); display: block;
}
.archive-card:hover { border-color: #94A3B8; box-shadow: var(--shadow); transform: translateY(-2px); }
.archive-card-top { padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.archive-card-bottom { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; }
.archive-card h3 { font-size: .88rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: var(--ink); }
.archive-card p { font-size: .78rem; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.archive-card-meta { font-size: .72rem; color: var(--muted); }
.archive-card-link { font-size: .78rem; font-weight: 600; color: var(--brand); }

/* Pagination */
.esh-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.esh-pagination ul { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.esh-pagination li { display: flex; }
.esh-pagination a,
.esh-pagination span,
.esh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border); font-size: .85rem; font-weight: 600;
  color: var(--body); background: var(--white); transition: var(--transition);
}
.esh-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.esh-pagination .current { background: var(--brand); color: var(--white); border-color: var(--brand); }
.esh-pagination .dots { border: none; background: transparent; color: var(--muted); }

/* ── PAGE (static) ── */
.page-hero-wrap { padding: 44px 0 32px; border-bottom: 1px solid var(--border); background: var(--white); }
.page-body { padding: 48px 0 80px; }
.page-content h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.page-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.page-content p { font-size: .97rem; margin-bottom: 18px; line-height: 1.8; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.page-content li { font-size: .97rem; color: var(--body); line-height: 1.7; }
.page-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ── 404 ── */
.not-found-wrap { padding: 120px 0; text-align: center; background: var(--bg); min-height: 60vh; display: flex; align-items: center; }
.not-found-wrap h1 { margin-bottom: 14px; }
.not-found-wrap p { max-width: 420px; margin: 0 auto 32px; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .earn-grid { grid-template-columns: repeat(2, 1fr); }
  .earn-grid .earn-card:last-child { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #hero { padding: 52px 0 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .course-header { grid-template-columns: 1fr; }
  .course-badges { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .course-steps-row { grid-template-columns: repeat(2, 1fr); }
  .cstep:nth-child(2) { border-right: none; }
  .earn-grid { grid-template-columns: 1fr; }
  .nl-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
