/*
 * NigeriaScholarshipHub — Main Stylesheet
 * Design: Editorial Nigerian Excellence
 * Palette: Deep Green + Warm Gold + Cream
 * Fonts: Playfair Display (headings) + Lora (body)
 * =============================================
 */

/* ──────────────────────────────────────────
   FONTS
────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ──────────────────────────────────────────
   CSS CUSTOM PROPERTIES
────────────────────────────────────────── */
:root {
  /* Brand colours */
  --green-900: #002918;
  --green-800: #003D24;
  --green-700: #005534;
  --green-600: #006B3F;
  --green-500: #007A47;
  --green-400: #009150;
  --green-300: #22A86B;
  --green-100: #D4EDDF;
  --green-50:  #EBF7F1;

  --gold-700: #9A6400;
  --gold-600: #C8860A;
  --gold-500: #E09A00;
  --gold-400: #F0A500;
  --gold-300: #FFB833;
  --gold-100: #FFF3CC;
  --gold-50:  #FFFAEB;

  /* Neutral */
  --cream:    #FAF9F4;
  --white:    #FFFFFF;
  --gray-900: #111111;
  --gray-800: #1F1F1F;
  --gray-700: #2D2D2D;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  /* Semantic */
  --color-primary:   var(--green-600);
  --color-secondary: var(--gold-400);
  --color-text:      var(--gray-700);
  --color-heading:   var(--gray-900);
  --color-muted:     var(--gray-500);
  --color-border:    var(--gray-200);
  --color-bg:        var(--cream);
  --color-surface:   var(--white);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Source Sans 3', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-width: 1200px;
  --sidebar-width:   300px;
  --nav-height:      72px;

  /* Borders & radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --shadow-green: 0 4px 20px rgba(0,107,63,.18);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ──────────────────────────────────────────
   TYPOGRAPHY
────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-5); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

a:hover { color: var(--color-primary); }

/* ──────────────────────────────────────────
   LAYOUT UTILITIES
────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-20); }
.section--sm { padding-block: var(--space-12); }

/* ──────────────────────────────────────────
   READING PROGRESS BAR
────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green-600), var(--gold-400));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ──────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  transition: box-shadow var(--transition-base);
}

.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--green-700);
  transition: color var(--transition-fast);
}

.nav-logo:hover { color: var(--green-500); }

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-700), var(--green-400));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.logo-text { line-height: 1.1; }
.logo-name { display: block; }
.logo-tagline {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-menu a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green-600);
  background: var(--green-50);
}

.nav-cta {
  background: var(--green-600) !important;
  color: white !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-2) var(--space-6) !important;
}

.nav-cta:hover { background: var(--green-700) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: var(--space-2);
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* ──────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 45%, var(--green-800) 100%);
  overflow: hidden;
  padding-block: var(--space-16);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-overlay img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(30%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 50%, rgba(240,165,0,.08) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.02) 40px,
      rgba(255,255,255,.02) 41px
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(240,165,0,.15);
  border: 1px solid rgba(240,165,0,.30);
  color: var(--gold-300);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.80);
  margin-bottom: var(--space-8);
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-400);
  color: var(--green-900);
  border-color: var(--gold-400);
}

.btn-primary:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--green-900);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,165,0,.40);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.50);
}

.btn-outline:hover {
  background: rgba(255,255,255,.10);
  border-color: white;
  color: white;
}

.btn-green {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

.btn-green:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-sm { padding: var(--space-2) var(--space-5); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-10); font-size: var(--text-base); }

/* ──────────────────────────────────────────
   SECTION HEADERS
────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-12);
  max-width: 620px;
}

.section-header.centered {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}

.section-header h2 { margin-bottom: var(--space-4); }

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

/* ──────────────────────────────────────────
   BLOG CARDS
────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-100);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
}

.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .card-image-wrap img { transform: scale(1.04); }

.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.50);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-4);
}

.card-image-placeholder span { font-size: 2rem; }

.card-category {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--green-600);
  color: white;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.card-meta-dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.blog-card:hover .card-title { color: var(--green-600); }

.card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.tag {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.card-read-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast);
}

.blog-card:hover .card-read-link { gap: var(--space-3); }

.card-read-time {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ──────────────────────────────────────────
   FEATURED CARD (large horizontal)
────────────────────────────────────────── */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.featured-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.featured-card .card-image-wrap {
  aspect-ratio: unset;
  min-height: 320px;
}

.featured-card .card-body {
  padding: var(--space-10);
}

.featured-card .card-title {
  font-size: var(--text-3xl);
}

/* ──────────────────────────────────────────
   AD UNIT PLACEHOLDERS
────────────────────────────────────────── */
.ad-unit {
  display: none; /* Controlled by JS/ADS_CONFIG */
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: var(--space-6) var(--space-4);
  margin-block: var(--space-6);
  min-height: 90px;
  position: relative;
}

.ad-unit::before {
  content: 'ADVERTISEMENT';
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  position: absolute;
  top: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
}

/* Leaderboard 728×90 */
.ad-unit--leaderboard { min-height: 90px; }

/* Rectangle 300×250 */
.ad-unit--rectangle { min-height: 250px; max-width: 300px; }

/* Wide banner 970×90 */
.ad-unit--banner { min-height: 90px; }

.ad-unit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* Centered wrapper for leaderboard ads */
.ad-center-wrap {
  display: flex;
  justify-content: center;
  margin-block: var(--space-8);
}

/* ──────────────────────────────────────────
   WHY US SECTION (features grid)
────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--gold-400));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 52px; height: 52px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  transition: background var(--transition-fast);
}

.feature-card:hover .feature-icon { background: var(--green-100); }

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

/* ──────────────────────────────────────────
   NEWSLETTER SECTION
────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: rgba(240,165,0,.06);
  border-radius: 50%;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  left: -80px; bottom: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.newsletter-content h2 { color: white; margin-bottom: var(--space-4); }
.newsletter-content p { color: rgba(255,255,255,.75); margin: 0; }

.newsletter-form {
  display: flex;
  gap: var(--space-3);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.12);
  color: white;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.50); }
.newsletter-form input:focus { border-color: var(--gold-400); }

.newsletter-form button {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-4) var(--space-8);
  background: var(--gold-400);
  color: var(--green-900);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover { background: var(--gold-300); }

/* ──────────────────────────────────────────
   CATEGORY PILLS
────────────────────────────────────────── */
.categories-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: white;
}

.category-pill-count {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.category-pill:hover .category-pill-count,
.category-pill.active .category-pill-count {
  background: rgba(255,255,255,.25);
  color: white;
}

/* ──────────────────────────────────────────
   ARTICLE LAYOUT
────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
  align-items: start;
  padding-block: var(--space-12);
}

.article-main {}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--green-600);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }

/* Article header */
.article-header { margin-bottom: var(--space-8); }

.article-category {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-700);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--green-100);
  margin-bottom: var(--space-4);
}

.article-title {
  font-size: clamp(var(--text-2xl), 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-5);
  color: var(--gray-900);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
  flex-wrap: wrap;
}

.article-meta-divider { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.article-featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  position: relative;
}

.article-featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.article-featured-image .img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: rgba(255,255,255,.85);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  padding: var(--space-4) var(--space-6) var(--space-3);
  text-align: right;
}

/* Summary box */
.article-summary {
  background: var(--green-50);
  border-left: 4px solid var(--green-600);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-8);
}

.article-summary h3 {
  font-size: var(--text-lg);
  color: var(--green-800);
  margin-bottom: var(--space-3);
}

.article-summary p {
  font-size: var(--text-sm);
  color: var(--green-800);
  line-height: 1.7;
  margin: 0;
}

/* Article body typography */
.article-body h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
  color: var(--gray-900);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--green-100);
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.article-body h4 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: var(--space-5);
}

.article-body ul, .article-body ol {
  list-style: none;
  margin-bottom: var(--space-6);
  padding: 0;
}

.article-body ul li, .article-body ol li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: var(--space-3);
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  background: var(--green-600);
  border-radius: 50%;
}

.article-body ol { counter-reset: list-counter; }

.article-body ol li { counter-increment: list-counter; }

.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--green-600);
  color: white;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 4px;
}

.article-body a {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article-body a:hover { color: var(--green-700); }

.article-body strong { color: var(--gray-900); }

/* Callout / Info box */
.callout {
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-8);
  border-left: 4px solid;
}

.callout-info {
  background: #EFF6FF;
  border-color: #3B82F6;
}

.callout-success {
  background: var(--green-50);
  border-color: var(--green-600);
}

.callout-warning {
  background: var(--gold-50);
  border-color: var(--gold-500);
}

.callout-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

/* Data table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body th {
  background: var(--green-700);
  color: white;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 700;
}

.article-body td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--gray-700);
}

.article-body tr:nth-child(even) td { background: var(--gray-50); }
.article-body tr:last-child td { border-bottom: none; }

/* ──────────────────────────────────────────
   TABLE OF CONTENTS
────────────────────────────────────────── */
.toc-box {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.toc-box h4 {
  font-size: var(--text-sm);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toc-list { padding: 0; }

.toc-item { margin-bottom: var(--space-1); }

.toc-link {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.toc-link:hover { color: var(--green-600); background: var(--green-50); }
.toc-link.active { color: var(--green-600); border-left-color: var(--green-600); background: var(--green-50); font-weight: 600; }
.toc-h3 .toc-link { padding-left: var(--space-7); font-size: var(--text-xs); }

/* ──────────────────────────────────────────
   SIDEBAR
────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.sidebar-widget h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-post {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { opacity: 0.75; }

.sidebar-post-image {
  width: 64px; height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-100);
}

.sidebar-post-image img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-post-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* ──────────────────────────────────────────
   FAQ SECTION
────────────────────────────────────────── */
.faq-section { margin-top: var(--space-12); }

.faq-section h2 { margin-bottom: var(--space-8); }

.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open { border-color: var(--green-300); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-800);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--green-600); }
.faq-item.open .faq-question { color: var(--green-700); }

.faq-icon {
  width: 24px; height: 24px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.faq-item.open .faq-icon {
  background: var(--green-100);
  color: var(--green-700);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.8;
}

/* ──────────────────────────────────────────
   SHARE BAR
────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-600);
  margin-right: var(--space-2);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.share-twitter  { background: #1DA1F2; color: white; }
.share-whatsapp { background: #25D366; color: white; }
.share-facebook { background: #1877F2; color: white; }
.share-copy     { background: var(--gray-200); color: var(--gray-700); }

.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: white; }
.share-copy:hover { color: var(--gray-700); }

/* ──────────────────────────────────────────
   AUTHOR BOX
────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-8);
  background: var(--green-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--green-100);
  margin-bottom: var(--space-10);
}

.author-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--green-700);
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.author-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--green-700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.author-bio {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ──────────────────────────────────────────
   RELATED POSTS
────────────────────────────────────────── */
.related-posts { margin-top: var(--space-12); }
.related-posts h3 { margin-bottom: var(--space-8); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ──────────────────────────────────────────
   STATIC PAGES (About, Contact, Privacy)
────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding-block: var(--space-16);
  text-align: center;
}

.page-header h1 { color: white; margin-bottom: var(--space-4); }

.page-header p {
  color: rgba(255,255,255,.75);
  font-size: var(--text-lg);
  max-width: 520px;
  margin-inline: auto;
}

.page-content {
  max-width: 780px;
  margin-inline: auto;
  padding-block: var(--space-16);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); }

.contact-detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.form-input, .form-textarea, .form-select {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(0,107,63,.12);
}

.form-textarea { min-height: 150px; resize: vertical; }

.btn-submit {
  align-self: flex-start;
  background: var(--green-600);
  color: white;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-submit:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow-green); }

.form-success {
  text-align: center;
  padding: var(--space-10);
}

.success-icon {
  width: 56px; height: 56px;
  background: var(--green-600);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-5);
}

/* ──────────────────────────────────────────
   BLOG LISTING PAGE
────────────────────────────────────────── */
.blog-list-header {
  padding-block: var(--space-12) var(--space-8);
}

.blog-search-bar {
  position: relative;
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.blog-search-icon {
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 1rem;
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  padding: var(--space-4) var(--space-5) var(--space-4) 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  outline: none;
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search-input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(0,107,63,.12);
}

/* ──────────────────────────────────────────
   BACK TO TOP
────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px; height: 48px;
  background: var(--green-700);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 900;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-600); transform: translateY(-2px); }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.70);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-about .nav-logo { color: white; margin-bottom: var(--space-5); }

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.70);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  background: var(--green-600);
  color: white;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: var(--space-5);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.60);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.40);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom a { color: rgba(255,255,255,.60); }
.footer-bottom a:hover { color: white; }

/* ──────────────────────────────────────────
   HOMEPAGE STATISTICS BANNER
────────────────────────────────────────── */
.stats-banner {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

/* ──────────────────────────────────────────
   RESPONSIVE — TABLET (max 1024px)
────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-image-wrap { min-height: 240px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1 1 300px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   RESPONSIVE — MOBILE (max 768px)
────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .container { padding-inline: var(--space-5); }

  /* Mobile Nav */
  .hamburger {
    display: flex;
  }

  .nav-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
  .nav-overlay.active { opacity: 1; pointer-events: all; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-height) + var(--space-6)) var(--space-6) var(--space-8);
    gap: var(--space-2);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active { right: 0; }

  .nav-menu a {
    padding: var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
  }

  .nav-cta {
    text-align: center;
    margin-top: var(--space-4);
  }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .related-grid { grid-template-columns: 1fr; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { min-height: 500px; padding-block: var(--space-12); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--space-5); }

  /* Stats banner */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }

  /* Article */
  .share-bar { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .back-to-top { bottom: var(--space-5); right: var(--space-5); }
}

/* ──────────────────────────────────────────
   PRINT STYLES
────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .back-to-top,
  .share-bar, .newsletter-section,
  .ad-unit, .related-posts { display: none !important; }

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }

  body { font-size: 12pt; color: #000; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* ──────────────────────────────────────────
   ACCESSIBILITY
────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--green-700);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius-md) 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
