/* =====================================================
   BiLOU GATES - Blog CSS Global
   Style unique et facile à éditer
   ===================================================== */

/* ===== VARIABLES CSS ===== */
:root {
  --accent: #16a34a;
  --accent-bg: #16a34a12;
  --purple: #8b5cf6;
  --purple-bg: #8b5cf612;
  --amber: #d97706;
  --amber-bg: #d9770610;
  --red: #dc2626;
}

/* ===== THÈME LIGHT ===== */
[data-theme="light"] {
  --bg-main: #ffffff;
  --bg-alt: #f3f4f6;
  --bg-raised: #ffffff;
  --bg-card: #f9fafb;
  --bg-card-hover: #f1f2f4;
  --bg-nav: rgba(255,255,255,0.75);
  --bg-input: #f4f4f5;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-dim: #888;
  --text-body: #444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --parallax-tint: rgba(255,255,255,0.55);
  --layer-opacity: 0.07;
  --banner-overlay: rgba(255,255,255,0.7);
  --grad-start: rgba(255,255,255,0);
  --grad-end: rgba(255,255,255,0.92);
  --grad-solid: rgba(255,255,255,0.97);
}

/* ===== THÈME DARK ===== */
[data-theme="dark"] {
  --bg-main: #161618;
  --bg-alt: #1c1c1f;
  --bg-raised: #1e1e21;
  --bg-card: #222225;
  --bg-card-hover: #2a2a2e;
  --bg-nav: rgba(22,22,24,0.8);
  --bg-input: #18181a;
  --text: #e5e5e5;
  --text-mid: #999;
  --text-dim: #666;
  --text-body: #bbb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --parallax-tint: rgba(22,22,24,0.6);
  --layer-opacity: 0.12;
  --banner-overlay: rgba(22,22,24,0.72);
  --grad-start: rgba(30,30,33,0);
  --grad-end: rgba(30,30,33,0.92);
  --grad-solid: rgba(30,30,33,0.97);
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  color: var(--text);
  font-family: 'Asap', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
.topbar {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}

.topbar-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }

.logo-mark {
  background: var(--accent); color: #fff; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; font-size: 12px;
}

.logo-sub { color: var(--text-dim); font-weight: 400; font-size: 13px; margin-left: 4px; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; }

.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  padding: 6px 14px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--bg-card); color: var(--text); }
.nav-links a.on { background: var(--accent-bg); color: var(--accent); }

.theme-toggle {
  margin-left: 12px; width: 36px; height: 36px; border: none;
  background: var(--bg-card); border-radius: 8px; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: background 0.15s;
}

.theme-toggle:hover { background: var(--bg-card-hover); }

/* ===== PROGRESS BAR (pour page article) ===== */
.progress {
  position: fixed; top: 56px; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 99;
}

/* ===== LAYOUT ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== PARALLAX HERO (Homepage) ===== */
.parallax-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Base layer: circuit board photo */
.plx-base {
  position: absolute;
  top: -80px; left: 0; right: 0; bottom: -80px;
  background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1600&q=80') center/cover no-repeat;
  will-change: transform;
}

.plx-tint {
  position: absolute; inset: 0;
  background: var(--parallax-tint);
  transition: background 0.3s;
}

/* Floating SVG layers */
.plx-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  will-change: transform;
}

.plx-layer svg {
  position: absolute;
  opacity: var(--layer-opacity);
  transition: opacity 0.3s;
}

/* Layer 1: large slow shapes */
.plx-l1 .shape-1 { top: 8%; left: 5%; width: 180px; height: 180px; }
.plx-l1 .shape-2 { top: 55%; right: 8%; width: 220px; height: 220px; }
.plx-l1 .shape-3 { top: 30%; left: 55%; width: 140px; height: 140px; }

/* Layer 2: medium speed shapes */
.plx-l2 .shape-4 { top: 15%; right: 15%; width: 120px; height: 120px; }
.plx-l2 .shape-5 { top: 60%; left: 12%; width: 100px; height: 100px; }
.plx-l2 .shape-6 { top: 40%; right: 35%; width: 90px; height: 90px; }

/* Layer 3: small fast shapes */
.plx-l3 .shape-7 { top: 20%; left: 30%; width: 60px; height: 60px; }
.plx-l3 .shape-8 { top: 70%; right: 25%; width: 50px; height: 50px; }
.plx-l3 .shape-9 { top: 10%; right: 40%; width: 45px; height: 45px; }
.plx-l3 .shape-10 { top: 50%; left: 40%; width: 55px; height: 55px; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 48px 24px; width: 100%;
}

.hero-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px;
}

.hero-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--bg-raised); border-radius: 14px; overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
}

.hero-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.hero-img {
  aspect-ratio: 16/10; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; opacity: 0.7;
}

.hero-body {
  padding: 32px 36px; display: flex; flex-direction: column;
  justify-content: center; gap: 10px;
}

.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 4px; width: fit-content;
}

.tag-green { background: var(--accent-bg); color: var(--accent); }
.tag-purple { background: var(--purple-bg); color: var(--purple); }

.hero-title { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.hero-excerpt { color: var(--text-mid); font-size: 14px; line-height: 1.6; }
.hero-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 16px; }
.hero-meta .cmt { color: var(--purple); }
.hero-cta { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ===== DIAGONALS ===== */
.diagonal-down {
  height: 60px; background: var(--bg-main); position: relative;
}

.diagonal-down::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg-alt);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  transition: background 0.3s;
}

.diagonal-up {
  height: 60px; background: var(--bg-alt); position: relative;
}

.diagonal-up::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg-main);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  transition: background 0.3s;
}

/* ===== ARTICLES GRID (Homepage) ===== */
.section-articles { background: var(--bg-alt); padding: 0 0 20px; transition: background 0.3s; }

.section-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mid); }

.section-more { font-size: 12px; font-weight: 600; color: var(--text-dim); transition: color 0.15s; }
.section-more:hover { color: var(--accent); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--bg-raised); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 0.15s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer; box-shadow: var(--shadow-sm);
}

.card:hover { background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-thumb {
  aspect-ratio: 16/9; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; opacity: 0.6;
}

.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }

.card-title { font-size: 15px; font-weight: 700; line-height: 1.3; transition: color 0.15s; }
.card:hover .card-title { color: var(--accent); }

.card-desc {
  font-size: 13px; color: var(--text-mid); line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); padding-top: 10px; margin-top: auto; }
.card-foot .cmt { color: var(--purple); }

/* ===== BOTTOM SECTION (Homepage) ===== */
.section-bottom { padding: 32px 0 48px; background: var(--bg-main); transition: background 0.3s; }

.cols-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }

.cmt-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; }

.cmt-av {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}

.av-1 { background: var(--accent); }
.av-2 { background: var(--purple); }
.av-3 { background: var(--amber); }
.av-4 { background: var(--red); }

.cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cmt-author { font-weight: 600; font-size: 14px; }
.cmt-date { font-size: 11px; color: var(--text-dim); }

.cmt-text {
  font-size: 13px; color: var(--text-mid); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cmt-src { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.cmt-src a { color: var(--accent); font-weight: 500; }
.cmt-src a:hover { text-decoration: underline; }

.rub-list { display: flex; flex-direction: column; gap: 6px; }

.rub-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-card); border-radius: 10px;
  transition: background 0.15s; cursor: pointer; box-shadow: var(--shadow-sm);
}

.rub-item:hover { background: var(--bg-card-hover); }
.rub-name { font-size: 14px; font-weight: 600; }

.rub-count {
  font-size: 12px; color: var(--text-dim); background: var(--bg-alt);
  padding: 2px 10px; border-radius: 20px; font-weight: 600;
}

/* ===== ARTICLE BANNER (Page article) ===== */
.article-banner {
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: -40px; left: 0; right: 0; bottom: -40px;
  background: url('https://images.unsplash.com/photo-1591799264318-7e6ef8ddb7ea?w=1600&q=80') center/cover no-repeat;
  filter: blur(24px);
  transform: scale(1.15);
  will-change: transform;
}

.banner-overlay {
  position: absolute; inset: 0;
  background: var(--banner-overlay);
  transition: background 0.3s;
}

.banner-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px 32px; width: 100%;
}

.breadcrumb {
  font-size: 12px; color: var(--text-dim);
  display: flex; gap: 6px; margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .cur { color: var(--text-mid); }

/* Thumbnail with integrated header */
.article-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Gradient overlay on bottom of image */
.article-hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(
    to bottom,
    var(--grad-start) 0%,
    var(--grad-end) 60%,
    var(--grad-solid) 100%
  );
  transition: background 0.3s;
  pointer-events: none;
}

/* Header info positioned over gradient */
.article-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 32px 28px;
}

.article-tags-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 10px;
}

.article-date { font-size: 12px; color: var(--text-dim); }
.article-read { font-size: 12px; color: var(--text-dim); }

.article-hero-info h1 {
  font-size: 28px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 8px;
  color: var(--text);
}

.article-lead {
  font-size: 15px; font-style: italic; color: var(--text-mid); line-height: 1.55;
  max-width: 720px;
}

/* ===== BLOG GRID (Page article) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}

.article-body-card {
  background: var(--bg-raised);
  border-radius: 14px;
  padding: 36px 36px 28px;
  transition: background 0.3s;
}

/* ===== PROSE (Contenu article) ===== */
.prose { font-size: 15px; line-height: 1.8; color: var(--text-body); }
.prose p { margin-bottom: 16px; }

.prose h2 {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin: 36px 0 12px; padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.prose strong { color: var(--text); font-weight: 600; }

.prose a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

.prose blockquote {
  margin: 20px 0; padding: 16px 20px; background: var(--bg-card);
  border-left: 4px solid var(--purple); border-radius: 0 10px 10px 0;
  color: var(--text-mid); font-style: italic;
}

.prose .callout {
  margin: 20px 0; padding: 14px 18px; background: var(--amber-bg);
  border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0;
  font-size: 14px; color: var(--amber);
}

.prose .callout strong { color: var(--amber); }
.prose ul { margin: 12px 0 16px 20px; }
.prose li { margin-bottom: 6px; }

.prose code {
  font-size: 0.9em; background: var(--bg-card);
  padding: 2px 6px; border-radius: 4px; color: var(--accent);
}

.article-bottom {
  margin-top: 32px; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.hash-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.hash-tags span {
  font-size: 12px; color: var(--text-dim); background: var(--bg-card);
  padding: 3px 10px; border-radius: 20px; cursor: pointer; transition: color 0.15s;
}

.hash-tags span:hover { color: var(--accent); }

.share-row { display: flex; gap: 6px; }

.share-btn {
  width: 34px; height: 34px; background: var(--bg-card); border: none;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; color: var(--text-dim); transition: color 0.15s, background 0.15s;
}

.share-btn:hover { background: var(--bg-card-hover); color: var(--accent); }

/* ===== SIDEBAR (Page article) ===== */
.sidebar {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 16px;
}

.sb-block {
  background: var(--bg-card); border-radius: 12px;
  padding: 18px; box-shadow: var(--shadow-sm); transition: background 0.3s;
}

.sb-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mid);
  margin-bottom: 14px; padding-bottom: 10px;
}

.author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.author-av {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-dim); }
.author-bio { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

.toc { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.toc li a {
  display: block; font-size: 13px; color: var(--text-mid);
  padding: 7px 12px; border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0; transition: all 0.15s;
}

.toc li a:hover { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
.toc li a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.rel-list { display: flex; flex-direction: column; gap: 12px; }
.rel-item { display: flex; gap: 10px; cursor: pointer; }
.rel-item:hover .rel-title { color: var(--accent); }

.rel-thumb {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--bg-alt); opacity: 0.7;
}

.rel-title { font-size: 13px; font-weight: 600; line-height: 1.3; transition: color 0.15s; }
.rel-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ===== COMMENTS ===== */
.comments-band {
  background: var(--bg-alt);
  margin-top: 48px; position: relative;
  padding: 0 0 48px; transition: background 0.3s;
}

.comments-band::before {
  content: '';
  position: absolute; top: -50px; left: 0; right: 0; height: 50px;
  background: var(--bg-alt);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%, 0 100%);
  transition: background 0.3s;
}

.comments-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.comments-head {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mid);
  margin-bottom: 20px; padding-top: 20px;
  display: flex; align-items: center; gap: 10px;
}

.comments-head .badge {
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 20px;
}

.cform {
  background: var(--bg-raised); border-radius: 12px;
  padding: 20px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm); transition: background 0.3s;
}

.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.cform input, .cform textarea {
  width: 100%; background: var(--bg-input); border: none; border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-family: 'Asap', sans-serif;
  font-size: 14px; outline: none; transition: background 0.15s;
}

.cform input::placeholder, .cform textarea::placeholder { color: var(--text-dim); }
.cform input:focus, .cform textarea:focus { background: var(--bg-card-hover); }
.cform textarea { min-height: 90px; resize: vertical; margin-bottom: 10px; }

.cform-btn {
  font-family: 'Asap', sans-serif; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff; border: none;
  padding: 9px 22px; border-radius: 8px; cursor: pointer; transition: opacity 0.15s;
}

.cform-btn:hover { opacity: 0.85; }

.c-thread { display: flex; flex-direction: column; }

.c-entry {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0;
}

.c-av {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}

.c-av-1 { background: var(--accent); }
.c-av-2 { background: var(--purple); }
.c-av-3 { background: var(--amber); }
.c-av-4 { background: var(--red); }

.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.c-name { font-weight: 600; font-size: 14px; }
.c-date { font-size: 11px; color: var(--text-dim); }
.c-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

.c-reply {
  margin-top: 6px; background: none; border: none;
  font-family: 'Asap', sans-serif; font-size: 12px;
  color: var(--text-dim); cursor: pointer; padding: 0; transition: color 0.15s;
}

.c-reply:hover { color: var(--accent); }

/* ===== NEWSLETTER ===== */
.newsletter-band { background: var(--accent); padding: 28px 0; position: relative; overflow: hidden; }

.newsletter-band::before {
  content: ''; position: absolute; top: -30px; left: 0; right: 0; height: 30px;
  background: var(--bg-main);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.newsletter-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.newsletter-text { color: #fff; }
.newsletter-text strong { font-size: 17px; font-weight: 800; display: block; margin-bottom: 2px; }
.newsletter-text span { font-size: 13px; opacity: 0.85; }

.newsletter-form { display: flex; gap: 8px; }

.newsletter-form input {
  font-family: 'Asap', sans-serif; font-size: 14px; padding: 10px 16px;
  border: none; border-radius: 8px; background: rgba(255,255,255,0.2);
  color: #fff; width: 280px; outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { background: rgba(255,255,255,0.28); }

.newsletter-form button {
  font-family: 'Asap', sans-serif; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border: none; border-radius: 8px;
  background: #fff; color: var(--accent); cursor: pointer; transition: opacity 0.15s;
}

.newsletter-form button:hover { opacity: 0.9; }

/* ===== FOOTER ===== */
.footer { padding: 20px 0; background: var(--bg-main); transition: background 0.3s; }

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .parallax-hero { min-height: 380px; }
  .blog-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .article-hero-info h1 { font-size: 22px; }

  /* Responsive banner: no blur bg, thumbnail full-width, header below */
  .banner-bg,
  .banner-overlay { display: none; }

  .article-banner { overflow: visible; }

  .banner-content { padding: 16px 0 0; }

  .breadcrumb { padding: 0 24px; }

  .article-hero { border-radius: 0; box-shadow: none; }

  .article-hero img { border-radius: 0; }

  .article-hero-gradient { display: none; }

  .article-hero-info {
    position: static;
    padding: 20px 24px 0;
    background: var(--bg-main);
  }

  .article-lead { max-width: 100%; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .topbar { padding: 0 16px; }
  .hero-title { font-size: 19px; }
  .hero-body { padding: 24px; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .parallax-hero { min-height: 320px; }
  .article-hero-info { padding: 16px 16px 0; }
  .article-hero-info h1 { font-size: 18px; }
  .article-body-card { padding: 24px 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .cform-row { grid-template-columns: 1fr; }
  .article-lead { font-size: 13px; }
  .breadcrumb { padding: 0 16px; }
}
