/*
Theme Name: TechBold
Theme URI: https://example.com/techbold
Author: Claude
Author URI: https://claude.ai
Description: A bold, modern dark tech blog theme with British Racing Green and Yellow accents, sharp typography, and editorial-magazine energy.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, dark, modern, technology, bold
Text Domain: techbold
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:       #1e1e22;
  --bg-surface:    #0a0a0a;
  --bg-card:       #0a0a0a;
  --bg-hover:      #161616;
  --accent:        #004225;
  --accent-bright: #ffd100;
  --accent-dim:    #002b18;
  --accent-glow:   rgba(0, 66, 37, 0.18);
  --text-primary:  #f5f5f5;
  --text-secondary:#a0a0a0;
  --text-muted:    #555555;
  --border:        rgba(0, 66, 37, 0.25);
  --border-strong: rgba(0, 66, 37, 0.55);
  --font-display:  'Space Grotesk', 'Syne', sans-serif;
  --font-body:     'DM Sans', 'IBM Plex Sans', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --radius:        4px;
  --radius-lg:     8px;
  --max-width:     1140px;
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.4rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
code, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}
code { background: var(--bg-card); padding: 0.15em 0.45em; border-radius: var(--radius); color: var(--accent-bright); }
pre code { background: none; padding: 0; color: var(--text-primary); }
blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--text-secondary);
}
hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0a0a;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo-mark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.site-logo-mark img {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--accent-bright); }

.main-navigation { display: flex; align-items: center; gap: 2rem; }
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; }
.main-navigation a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.nav-search-btn {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.nav-search-btn:hover { color: var(--text-primary); border-color: var(--accent); background: var(--accent-glow); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: var(--accent);
}
.hero-eyebrow::before { content: '//'; opacity: 0.6; }
.hero-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.hero-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}
.hero-heading-text { min-width: 0; }
.hero-heading .hero-eyebrow { margin-bottom: 0.5rem; }
.hero-heading .hero-title { margin-bottom: 0; }
.hero-title span { color: var(--accent-bright); }
.hero-title .hero-title-white { color: var(--text-primary); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #000; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 66, 37, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent); background: var(--accent-glow); }

/* =============================================
   FEATURED POST STRIP
   ============================================= */
.featured-strip {
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 5rem;
  overflow: hidden;
}
.featured-strip-inner { display: flex; align-items: center; gap: 0; }
.strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-strong);
  margin-right: 1.5rem;
}
.strip-items { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.strip-items::-webkit-scrollbar { display: none; }
.strip-item {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.strip-item:hover { color: var(--text-primary); border-bottom-color: var(--accent); }

/* =============================================
   POST GRID
   ============================================= */
.posts-section { padding-bottom: 6rem; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.section-title span { color: var(--accent); margin-right: 0.5rem; }
.section-link { font-size: 0.8rem; color: var(--accent); }
.section-link:hover { color: #fff; }

/* Single-column stacked post list — all cards equal size */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Keep .posts-grid as an alias so archive.php / index.php can still reference it */
.posts-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.post-card,
.post-card-featured {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 232px;
}

.post-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}
.post-card:hover,
.post-card-featured:hover {
  border-color: var(--accent);
  border-left-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 66, 37, 0.25);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  height: 100%;
}
.post-thumbnail img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-thumbnail img,
.post-card-featured:hover .post-thumbnail img { transform: scale(1.04); }
.post-thumbnail-placeholder {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-hover) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.post-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-cat {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid var(--border-strong);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.65rem;
  text-decoration: none;
  width: fit-content;
}
.post-cat:hover { background: var(--accent); color: var(--accent-bright); }

/* Title is capped at 2 lines so a long title can never steal the
   excerpt's vertical space and cause a half-cut line. */
.post-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--accent-bright); }

/* Excerpt reserves an exact 2-line box (2 x line-height) instead of
   flexing, so it always renders two whole lines - never a clipped one. */
.post-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
  flex: none;
  height: 3.1em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}
.post-meta-author { display: flex; align-items: center; gap: 6px; }
.author-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.post-read-time { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* Legacy alias — no longer a separate layout */
.posts-row2 { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }

/* =============================================
   PAGE CONTENT (non-blog pages, no card boxes)
   ============================================= */
.page-content-wrap {
  padding: 5rem 0 6rem;
  max-width: 820px;
}
.page-content-wrap .page-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-bright);
}
.page-content-wrap .entry-content { color: var(--text-secondary); line-height: 1.8; }
.page-content-wrap .entry-content h2 { margin-top: 2.5rem; color: var(--text-primary); }
.page-content-wrap .entry-content h3 { margin-top: 2rem; color: var(--text-primary); }
.page-content-wrap .entry-content p { margin-bottom: 1.5rem; }
.page-content-wrap .entry-content a { color: var(--accent-bright); border-bottom: 1px solid transparent; }
.page-content-wrap .entry-content a:hover { border-bottom-color: var(--accent-bright); }

/* =============================================
   SIDEBAR LAYOUT (for archive/single)
   ============================================= */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; padding: 4rem 0 6rem; align-items: start; }
.content-area {}
.sidebar { position: sticky; top: 84px; }

/* =============================================
   SINGLE POST
   ============================================= */
.post-header { padding: 5rem 0 3rem; text-align: center; }
.post-header .post-cat { margin-bottom: 1.5rem; }
.post-header h1 { max-width: 760px; margin: 0 auto 1.5rem; color: var(--accent-bright); }
.post-header .post-meta { justify-content: center; border-top: none; padding-top: 0; }
.post-hero-img { margin-bottom: 3rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }

/* Headings inside the post body use the yellow accent */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 { color: var(--accent-bright); }

/* Bold text inside the post body uses the yellow accent */
.post-content strong,
.post-content b { color: var(--accent-bright); }

/* "Sources" block: the link lines after the closing heading sit tight together.
   Covers both plain paragraphs and a real list. */
.post-content h3:last-of-type ~ p { margin-bottom: 0.15rem; }
.post-content h3:last-of-type ~ ul,
.post-content h3:last-of-type ~ ol { margin-bottom: 0.15rem; }
.post-content h3:last-of-type ~ ul li,
.post-content h3:last-of-type ~ ol li { margin-bottom: 0.15rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 3rem 0; }
.post-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover { color: var(--accent-bright); border-color: var(--border-strong); }

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.widget-title span { color: var(--accent); margin-right: 0.4rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: none; }
.widget li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition), padding var(--transition);
}
.widget li a:hover { color: var(--accent-bright); padding-left: 6px; }

.widget-search form { display: flex; gap: 0.5rem; }
.widget-search input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.widget-search input:focus { border-color: var(--accent); }
.widget-search input::placeholder { color: var(--text-muted); }
.widget-search button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.widget-search button:hover { background: var(--accent-bright); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a {
  font-size: 0.78rem !important;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  transition: all var(--transition);
}
.tag-cloud a:hover { color: var(--accent-bright); border-color: var(--border-strong); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; padding: 3rem 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  text-decoration: none;
}
.page-numbers:hover { color: var(--text-primary); border-color: var(--accent); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: none; background: none; width: auto; }

/* =============================================
   COMMENTS
   ============================================= */
.comments-area { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.1rem; margin-bottom: 2rem; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.comment-author-name { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.8rem; color: var(--text-muted); }
.comment-content { font-size: 0.95rem; color: var(--text-secondary); }
.comment-reply-link { font-size: 0.78rem; color: var(--accent); margin-top: 0.5rem; display: inline-block; }

.comment-respond { margin-top: 3rem; }
.comment-respond h3 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.comment-form label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; letter-spacing: 0.05em; text-transform: uppercase; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  margin-bottom: 1.2rem;
  transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit { background: var(--accent); color: #fff; border: none; padding: 0.7rem 1.6rem; border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font-display); font-weight: 600; cursor: pointer; transition: all var(--transition); }
.comment-form .submit:hover { background: var(--accent-bright); transform: translateY(-1px); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .site-title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; max-width: 260px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-bright); }

/* =============================================
   UTILITY / ACCESSIBILITY
   ============================================= */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  word-wrap: normal;
}
.screen-reader-text:focus {
  background: var(--bg-card); border-radius: var(--radius);
  clip: auto; display: block; width: auto; height: auto;
  padding: 1rem; z-index: 9999; top: 1rem; left: 1rem;
}
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { text-align: center; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .post-card,
  .post-card-featured { grid-template-columns: 240px 1fr; height: 232px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.toggled { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1rem; }
  .main-navigation.toggled ul { flex-direction: column; gap: 0; }
  .main-navigation.toggled ul li { border-bottom: 1px solid var(--border); }
  .main-navigation.toggled ul li:last-child { border-bottom: none; }
  .main-navigation.toggled a { display: block; padding: 0.75rem 0; }
  .menu-toggle { display: block; }
  /* Stack card vertically on small screens */
  .post-card,
  .post-card-featured { grid-template-columns: 1fr; height: auto; }
  .post-thumbnail { height: 180px; position: relative; }
  .posts-row2 { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero { padding: 4rem 0 3rem; }
}
