/*
Theme Name: 8FigureTrader Academy
Theme URI: https://8figuretrader.com/blog
Author: WeDoMedia
Description: Academy theme for 8FigureTrader — education, strategy, and funded trader resources.
Version: 1.1.0
Text Domain: 8ft-academy
*/

/* ── Exact main site design tokens ── */
:root {
  --bg:      #07101f;
  --panel:   #0d1626;
  --panel2:  #111d31;
  --line:    #253858;
  --muted:   #7d8fb3;
  --text:    #ecf3ff;
  --soft:    #b7c6e6;
  --gold:    #e4b557;
  --gold2:   #ffd98a;
  --green:   #00c896;
  --red:     #ff476f;
  --blue:    #5b8cff;
  --side:    210px;
  --radius:  14px;
  --shadow:  0 25px 80px rgba(0,0,0,.45);
  --font:    Inter, system-ui, sans-serif;
  --heading: 'Space Grotesk', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: radial-gradient(circle at 60% 0%, #14233b 0%, #070c15 42%, #05080d 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Noise overlay (exact match) ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 0;
}

/* ── Side nav — exact match to main site ── */
.side-nav {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--side);
  background: #03122E;
  border-right: 1px solid var(--line);
  padding: 0 0 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}

/* Logo area — large vertical logo like main site */
.brand-image {
  display: block;
  padding: 24px 20px 28px;
  border-bottom: 1px solid var(--line);
  background: #03122E;
  overflow: hidden;
}
.brand-image .logo-desktop {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(223,180,91,.18)) drop-shadow(0 0 34px rgba(223,180,91,.08));
}
.brand-image .logo-mobile { display: none; }

/* Nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all .3s;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding: 0 16px;
  flex: 1;
  overflow-y: auto;
}
.nav-links a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
  display: block;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a.blog-active {
  background: rgba(228,181,87,.12);
  color: var(--gold2);
  box-shadow: inset 2px 0 var(--gold);
}

/* CTA buttons */
.side-cta {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  transition: all .2s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold) 45%, #9f6a21);
  color: #08101a;
  box-shadow: 0 14px 30px rgba(228,181,87,.18);
}
.btn-gold:hover { box-shadow: 0 18px 40px rgba(228,181,87,.28); filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--gold2);
}
.btn-outline:hover { border-color: var(--gold); }

/* Overlay for mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99;
}
.nav-overlay.open { display: block; }

/* ── Main shell ── */
.site-shell {
  position: relative;
  z-index: 1;
  margin-left: var(--side);
  min-height: 100vh;
}

/* ── Promo bar ── */
.promo-bar {
  background: linear-gradient(90deg, rgba(228,181,87,.1), rgba(228,181,87,.06), rgba(228,181,87,.1));
  border-bottom: 1px solid rgba(228,181,87,.2);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--soft);
}
.promo-bar strong, .promo-bar b { color: var(--gold2); }

/* ── Blog header ── */
.blog-header {
  padding: 60px 44px 44px;
  border-bottom: 1px solid rgba(37,56,88,.72);
}
.blog-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}
.blog-header h1 {
  font-family: var(--heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: .75rem;
  color: var(--text);
}
.blog-header h1 span { color: var(--gold2); }
.blog-header p { color: var(--soft); font-size: 1rem; max-width: 540px; }

/* Category filter */
.cat-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.cat-pill {
  padding: .3rem .85rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--gold);
  color: var(--gold2);
  background: rgba(228,181,87,.08);
}

/* ── Blog layout ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 44px;
  max-width: 1260px;
  margin: 0 auto;
}

/* ── Post cards ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Featured first post */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.post-card-featured:hover {
  border-color: rgba(228,181,87,.4);
  transform: translateY(-3px);
}
.post-card-featured .feat-thumb {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1626, #111d31);
  position: relative;
}
.post-card-featured .feat-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transition: transform .4s;
}
.post-card-featured:hover .feat-thumb img { transform: scale(1.04); }
.feat-thumb-placeholder {
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0d1626, #0c1e3a);
}
.post-card-featured .feat-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-cat {
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: .5rem;
}
.post-title {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: .75rem;
  transition: color .2s;
}
.post-card-featured:hover .post-title { color: var(--gold2); }
.post-excerpt {
  font-size: .88rem;
  color: var(--soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.post-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted);
}
.post-author-wrap { display: flex; align-items: center; gap: .4rem; }
.post-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 900;
  color: #08101a;
  flex-shrink: 0;
}
.read-time {
  background: rgba(228,181,87,.1);
  color: var(--gold);
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .68rem;
  font-weight: 700;
  margin-left: auto;
}

/* Regular post card */
.post-card {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  border-color: rgba(228,181,87,.35);
  transform: translateY(-3px);
}
.post-thumb-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1626, #0c1e3a);
  position: relative;
}
.post-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-thumb-wrap img { transform: scale(1.04); }
.thumb-emoji {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.post-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card:hover .post-title { color: var(--gold2); }
.post-card .post-title { font-size: 1rem; }
.post-card .post-excerpt { font-size: .82rem; margin-bottom: 1rem; }
.post-card .post-footer { margin-top: auto; }

/* ── Pagination ── */
.pagination {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.pagination a, .pagination span.current {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 .6rem;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--soft);
  text-decoration: none;
  transition: all .2s;
}
.pagination a:hover, .pagination span.current {
  border-color: var(--gold);
  color: var(--gold2);
  background: rgba(228,181,87,.08);
}

/* ── Sidebar ── */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-title {
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.widget-body { padding: 1rem 1.25rem; }

.widget-post {
  display: flex; gap: .65rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(37,56,88,.5);
  text-decoration: none;
  transition: all .2s;
}
.widget-post:last-child { border-bottom: none; }
.widget-post-thumb {
  width: 50px; height: 50px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel2);
}
.widget-post-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--soft);
  line-height: 1.35;
  margin-bottom: .2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.widget-post:hover .widget-post-title { color: var(--gold2); }
.widget-post-date { font-size: .65rem; color: var(--muted); }

.widget-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(37,56,88,.4);
  font-size: .82rem; color: var(--soft);
  text-decoration: none;
  transition: color .2s;
}
.widget-cat:last-child { border-bottom: none; }
.widget-cat:hover { color: var(--gold2); }
.widget-cat-count {
  font-size: .65rem;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1rem .4rem;
  color: var(--muted);
}

/* Gold CTA widget */
.widget-cta {
  background: linear-gradient(135deg, rgba(228,181,87,.1), rgba(228,181,87,.04));
  border-color: rgba(228,181,87,.3);
}
.widget-cta .widget-body { text-align: center; padding: 1.5rem; }
.widget-cta h4 { font-family: var(--heading); font-size: .95rem; margin-bottom: .4rem; color: var(--text); }
.widget-cta p { font-size: .78rem; color: var(--soft); margin-bottom: 1rem; line-height: 1.6; }

/* ── Single post layout ── */
.post-hero-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 44px;
}
.post-hero-img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 0 44px 60px;
  max-width: 1260px;
  margin: 0 auto;
}

/* Post header */
.post-header { padding: 44px 44px 2rem; max-width: 1260px; margin: 0 auto; }
.post-header .post-title {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.meta-cat {
  background: rgba(228,181,87,.1);
  color: var(--gold);
  border: 1px solid rgba(228,181,87,.25);
  border-radius: 5px;
  padding: .2rem .65rem;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── THE KEY FIX: Sectioned article card ── */
.post-content-card {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Article typography inside the card */
.post-content-area {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--soft);
}
.post-content-area h1,
.post-content-area h2,
.post-content-area h3,
.post-content-area h4 {
  font-family: var(--heading);
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
  margin: 2rem 0 .75rem;
}
.post-content-area h2 {
  font-size: 1.45rem;
  letter-spacing: -.02em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.post-content-area h3 { font-size: 1.15rem; }
.post-content-area h4 { font-size: 1rem; color: var(--gold2); }
.post-content-area p { margin-bottom: 1.25rem; }
.post-content-area strong { color: var(--text); font-weight: 700; }
.post-content-area em { color: var(--gold); }
.post-content-area a { color: var(--gold); border-bottom: 1px solid rgba(228,181,87,.3); transition: border-color .2s; }
.post-content-area a:hover { border-bottom-color: var(--gold); }
.post-content-area ul, .post-content-area ol {
  margin: .75rem 0 1.25rem 1.5rem;
}
.post-content-area ul { list-style: disc; }
.post-content-area ol { list-style: decimal; }
.post-content-area li { margin-bottom: .4rem; color: var(--soft); }
.post-content-area blockquote {
  border-left: 3px solid var(--gold);
  padding: .75rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(228,181,87,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
.post-content-area img {
  border-radius: 10px;
  margin: 1.5rem 0;
  width: 100%;
  border: 1px solid var(--line);
}
.post-content-area code {
  background: rgba(228,181,87,.1);
  color: var(--gold2);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .88em;
  font-family: 'JetBrains Mono', monospace;
}
.post-content-area pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content-area pre code { background: none; color: var(--text); padding: 0; }
.post-content-area table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
}
.post-content-area th, .post-content-area td {
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  font-size: .88rem;
  text-align: left;
}
.post-content-area th { background: var(--panel2); color: var(--text); font-weight: 700; }
.post-content-area hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Share bar */
.share-bar {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.share-bar span { font-size: .72rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.share-btn {
  padding: .4rem 1rem;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold2); }

/* Tags */
.post-tags {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tag-label { font-size: .68rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.tag-pill {
  padding: .2rem .65rem;
  border-radius: 5px;
  font-size: .72rem;
  border: 1px solid var(--line);
  color: var(--soft);
  text-decoration: none;
  transition: all .2s;
}
.tag-pill:hover { border-color: var(--gold); color: var(--gold2); }

/* Related posts */
.related-section {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(9,16,29,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.related-section h3 { font-family: var(--heading); font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }

/* ── Footer ── */
.blog-footer {
  border-top: 1px solid rgba(37,56,88,.72);
  padding: 0;
  font-size: .82rem;
  color: var(--muted);
  margin-left: var(--side); /* stay right of the fixed sidebar */
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3rem 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 300px; }
.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(223,180,91,.15));
}
.footer-brand p {
  font-size: .8rem;
  color: var(--soft);
  line-height: 1.65;
  margin-bottom: .5rem;
}
.footer-disclaimer {
  font-size: .7rem !important;
  color: var(--muted) !important;
  opacity: .6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h5 {
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .85rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .45rem; }
.footer-col a {
  font-size: .82rem;
  color: var(--soft);
  transition: color .2s;
  opacity: .8;
}
.footer-col a:hover { color: var(--gold2); opacity: 1; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 44px;
  font-size: .78rem;
  color: var(--muted);
}
.footer-bottom p { white-space: nowrap; }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--muted); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold2); }

/* ── No posts ── */
.no-posts {
  text-align: center;
  padding: 5rem 0;
  color: var(--soft);
}
.no-posts div { font-size: 3rem; margin-bottom: 1rem; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  :root { --side: 0px; }
  .side-nav {
    width: 100%;
    height: 84px;
    bottom: auto;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
  }
  .brand-image {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: 8px 16px;
    height: 84px;
    display: flex;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
  }
  .brand-image .logo-desktop { display: none; }
  .brand-image .logo-mobile {
    display: block;
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(223,180,91,.15));
  }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    left: 0; top: 84px;
    width: 280px;
    bottom: 0;
    background: #03122E;
    border-right: 1px solid var(--line);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    gap: 8px;
    margin: 0;
    overflow-y: auto;
    z-index: 101;
    flex-direction: column;
  }
  .nav-links.open { transform: translateX(0); }
  .side-cta { display: none; }
  .site-shell { margin-left: 0; padding-top: 84px; }
  .blog-footer { margin-left: 0; }
  .blog-layout, .single-layout { grid-template-columns: 1fr; padding: 2rem; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; }
  .feat-thumb, .feat-thumb-placeholder { min-height: 220px; }
  .blog-header { padding: 2rem; }
  .post-header { padding: 2rem 2rem 1.5rem; }
  .post-hero-wrap { padding: 0 2rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .blog-footer { padding: 1.5rem 2rem; }
  .post-content-card { padding: 1.75rem; }
}

@media (max-width: 680px) {
  .side-nav { height: 72px; }
  .brand-image { height: 72px; width: 170px; }
  .brand-image .logo-mobile { width: 140px; }
  .nav-links { top: 72px; }
  .site-shell { padding-top: 72px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-layout, .single-layout { padding: 1rem; }
  .blog-header { padding: 1.5rem; }
  .post-header { padding: 1.5rem 1.5rem 1rem; }
  .post-hero-wrap { padding: 0 1rem; }
  .post-content-card { padding: 1.25rem; }
  .footer-top { padding: 1.5rem 1rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 1rem; }
}
