/* =============================================
   InfratoAI Theme — Main Stylesheet
   ============================================= */

:root {
  --bg: #080c14;
  --bg2: #0c1018;
  --bg3: #111827;
  --card: #0f1520;
  --border: #1a2540;
  --accent: #00e5ff;
  --accent2: #6d28d9;
  --accent3: #10b981;
  --warn: #f59e0b;
  --red: #ef4444;
  --text: #cbd5e1;
  --muted: #4b5a72;
  --heading: #f1f5f9;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ── NAV ─────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,20,0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  color: var(--heading); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; }
.logo-text .ai { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none; margin: 0; padding: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.search-bar {
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px; gap: 8px; width: 230px;
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 0.85rem; width: 100%;
  font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder { color: var(--muted); }

.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--text); cursor: pointer; padding: 4px;
}

/* ── HERO ─────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  padding: 110px 2rem 90px;
  text-align: center;
  max-width: 960px; margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 24px; padding: 7px 18px;
  font-size: 0.78rem; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
  animation: fadeUp 0.5s ease forwards;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: livePulse 2s infinite;
  box-shadow: 0 0 6px var(--accent);
}

@keyframes livePulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.4; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to { opacity:1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--heading); line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted); font-size: 1.1rem;
  line-height: 1.75; max-width: 640px;
  margin: 0 auto 44px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00aac4);
  color: #000; font-weight: 800;
  padding: 13px 30px; border-radius: 8px;
  text-decoration: none; font-size: 0.95rem;
  font-family: 'Syne', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,229,255,0.35);
  color: #000;
}

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 30px; border-radius: 8px;
  text-decoration: none; font-size: 0.95rem;
  font-family: 'Syne', sans-serif; font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── STATS BAR ─────────────────────────────── */
.stats-bar {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15,21,32,0.6);
  padding: 24px 2rem; margin-bottom: 80px;
}

.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-around;
  flex-wrap: wrap; gap: 24px;
}

.stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.9rem; font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0,229,255,0.4);
}

.stat-label { color: var(--muted); font-size: 0.82rem; }

/* ── SECTIONS ─────────────────────────────── */
.section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 88px;
}

.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 36px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.6rem; color: var(--heading);
}

.view-all {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: color 0.2s;
}

.view-all:hover { color: var(--accent); }

/* ── CATEGORY CARDS ─────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 22px; text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}

.cat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--cc, var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--cc, var(--accent));
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  font-size: 2rem; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.cat-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1rem; color: var(--heading);
}

.cat-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

.cat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--cc, var(--accent)); margin-top: auto;
}

/* ── TUTORIAL CARDS ─────────────────────────────── */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.tut-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px; text-decoration: none;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tut-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

.tut-top { display: flex; align-items: center; gap: 10px; }

/* ── TAGS ─────────────────────────────── */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; padding: 3px 10px;
  border-radius: 4px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.tag-linux     { background: rgba(16,185,129,0.12); color: #10b981; }
.tag-docker    { background: rgba(0,229,255,0.1);   color: var(--accent); }
.tag-k8s       { background: rgba(109,40,217,0.15); color: #a78bfa; }
.tag-ai        { background: rgba(245,158,11,0.12); color: #fbbf24; }
.tag-ml        { background: rgba(249,115,22,0.12); color: #fb923c; }
.tag-security  { background: rgba(239,68,68,0.12);  color: #f87171; }
.tag-infra     { background: rgba(56,189,248,0.12); color: #38bdf8; }
.tag-devops    { background: rgba(52,211,153,0.12); color: #34d399; }

.tut-diff { margin-left: auto; font-size: 0.73rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.tut-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--heading); line-height: 1.4; }
.tut-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.65; flex: 1; }
.tut-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.tut-time { font-size: 0.78rem; color: var(--muted); }
.tut-cta { font-size: 0.8rem; color: var(--accent); font-weight: 600; font-family: 'Syne', sans-serif; }

/* ── TERMINAL SECTION ─────────────────────────────── */
.terminal-section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 88px;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: center;
}

.ts-text h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 2rem;
  color: var(--heading); margin-bottom: 16px; line-height: 1.2;
}

.ts-text p { color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.8rem; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}

.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent3); }

.terminal-window {
  background: #060a10; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.05);
}

.t-bar {
  background: #0d1219; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.t-title { margin: 0 auto; font-family: 'JetBrains Mono', monospace; font-size: 0.73rem; color: var(--muted); }

.t-body { padding: 22px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.9; }

.tp { color: #10b981; } .tc { color: var(--text); }
.tco { color: #2d4060; } .to { color: #5a6d85; }
.ts { color: #10b981; } .th { color: var(--accent); }
.tw { color: #fbbf24; }
.tcur { display: inline-block; width: 8px; height: 15px; background: var(--accent); animation: blink 1s infinite; vertical-align: middle; }

@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }

/* ── AD SLOTS ─────────────────────────────── */
.ad-slot {
  background: var(--bg3);
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  text-align: center; letter-spacing: 0.05em;
}

.ad-leaderboard { height: 90px; margin-bottom: 48px; }
.ad-sidebar { height: 250px; margin-bottom: 20px; }
.ad-inline { height: 90px; margin: 32px 0; }

/* ── NEWSLETTER ─────────────────────────────── */
.newsletter {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto 88px; padding: 0 2rem;
}

.newsletter-inner {
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(109,40,217,0.06) 100%);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 18px; padding: 56px 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}

.nl-text h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--heading); margin-bottom: 12px; }
.nl-text p { color: var(--muted); line-height: 1.7; }

.nl-form { display: flex; flex-direction: column; gap: 12px; }

.nl-form input {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 18px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}

.nl-form input:focus { border-color: var(--accent); }
.nl-form input::placeholder { color: var(--muted); }

/* ── SINGLE POST / TUTORIAL PAGE ─────────────────────────────── */
.page-layout {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 2rem;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start;
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

.article-header { margin-bottom: 36px; }
.article-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.article-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--heading); line-height: 1.2; margin-bottom: 16px;
}

.article-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; }

/* Article content styling */
.article-content { line-height: 1.85; }

.article-content h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.4rem; color: var(--heading);
  margin: 44px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 1.1rem; color: var(--heading);
  margin: 28px 0 12px;
}

.article-content p { color: var(--text); margin-bottom: 18px; }

.article-content a { color: var(--accent); }

.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; color: var(--text); }

/* Code blocks — works with syntax highlighter plugins */
.article-content pre, pre {
  background: #060a10 !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 20px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.82rem !important;
  line-height: 1.8 !important;
  overflow-x: auto !important;
  margin: 20px 0 !important;
  position: relative;
}

.article-content code, code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em; color: var(--accent);
}

.article-content pre code {
  background: none; border: none; padding: 0;
  color: var(--text); font-size: inherit;
}

/* Tables */
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; font-size: 0.875rem;
}

.article-content th {
  background: var(--bg3); color: var(--heading);
  font-family: 'Syne', sans-serif; font-weight: 700;
  padding: 12px 16px; text-align: left;
  border-bottom: 2px solid var(--accent);
}

.article-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text);
}

.article-content tr:hover td { background: rgba(255,255,255,0.02); }

/* Info/note boxes — use WP shortcode or block */
.info-box {
  border-radius: 10px; padding: 16px 20px;
  margin: 24px 0; border-left: 3px solid;
  display: flex; gap: 12px;
}

.info-box.note    { background: rgba(0,229,255,0.06);   border-color: var(--accent); }
.info-box.warning { background: rgba(251,191,36,0.06);  border-color: #fbbf24; }
.info-box.success { background: rgba(16,185,129,0.06);  border-color: var(--accent3); }

/* Post nav */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid var(--border);
}

.article-nav-link {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.article-nav-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-nav-link.next { text-align: right; }
.nav-dir { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.nav-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--heading); }

/* ── SIDEBAR ─────────────────────────────── */
.sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
}

.sidebar-card h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: var(--heading);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.related-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.related-list li a {
  color: var(--text); text-decoration: none;
  font-size: 0.85rem; line-height: 1.4;
  display: flex; gap: 8px; align-items: flex-start;
  transition: color 0.2s;
}

.related-list li a:hover { color: var(--accent); }
.related-list li a::before { content: '→'; color: var(--accent); flex-shrink: 0; font-family: 'JetBrains Mono', monospace; }

.affiliate-card {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(109,40,217,0.06)) !important;
  border-color: rgba(0,229,255,0.2) !important;
}

.affiliate-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }
.affiliate-card small { display: block; color: var(--muted); font-size: 0.72rem; text-align: center; margin-top: 8px; }

.affiliate-btn {
  display: block; text-align: center;
  padding: 10px; border-radius: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #00aac4);
  color: #000; font-weight: 700;
  font-family: 'Syne', sans-serif; font-size: 0.9rem;
}

/* ── PAGINATION ─────────────────────────────── */
.pagination {
  margin-top: 48px; display: flex;
  justify-content: center; gap: 8px; flex-wrap: wrap;
}

.pagination .page-numbers {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 8px 16px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .current {
  background: var(--accent); color: #000;
  border-color: var(--accent); font-weight: 700;
}

/* ── FOOTER ─────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg2); padding: 60px 2rem 28px;
}

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}

.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.75; margin-top: 14px; max-width: 270px; }

.footer-col h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.85rem; color: var(--heading);
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}

/* ── NO RESULTS ─────────────────────────────── */
.no-results {
  color: var(--muted); font-size: 1rem;
  grid-column: 1 / -1; text-align: center; padding: 48px;
}

.no-results a { color: var(--accent); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 20px 2rem; gap: 16px; z-index: 99;
  }
  .terminal-section { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { width: 160px; }
}

@media (max-width: 600px) {
  .hero { padding: 70px 1.5rem 60px; }
  .tut-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 20px; }
  .newsletter-inner { padding: 32px 24px; }
}
