/*
Theme Name: Safer Screens
Theme URI: https://saferscreens.com.au
Author: Safer Screens
Description: A clean, warm theme for the Safer Screens online safety blog for Australian parents and carers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saferscreens
Tags: blog, custom-menu, featured-images, right-sidebar
*/

/* ===========================
   Design System Tokens
   =========================== */
:root {
  --blue-900: #0c1f3f;
  --blue-800: #1e3a5f;
  --blue-600: #1d6fa4;
  --blue-500: #2e86c1;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;

  --green-600: #16a34a;
  --green-100: #dcfce7;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--blue-100);
  color: var(--blue-800);
}
.tag.social-media, .tag.category-social-media   { background: #fce7f3; color: #9d174d; }
.tag.gaming, .tag.category-gaming               { background: #ede9fe; color: #5b21b6; }
.tag.cyberbullying, .tag.category-cyberbullying { background: #fef3c7; color: #92400e; }
.tag.privacy-security, .tag.category-privacy-security { background: var(--blue-100); color: var(--blue-800); }
.tag.screen-time, .tag.category-screen-time     { background: var(--green-100); color: #14532d; }
.tag.scams-phishing, .tag.category-scams-phishing { background: var(--orange-100); color: #9a3412; }
.tag.primary-school                             { background: #e0f2fe; color: #075985; }
.tag.high-school                                { background: #f0fdf4; color: #14532d; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange-500); color: var(--white); }
.btn-primary:hover { background: var(--orange-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost { background: transparent; color: var(--blue-600); padding: 10px 0; }
.btn-ghost:hover { color: var(--blue-800); }
.btn-ghost svg { transition: transform .2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ---------- Section Headers ---------- */
.section-label {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-500); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; color: var(--slate-900);
  line-height: 1.25; margin-bottom: 12px;
}
.section-subtitle { font-size: 16px; color: var(--slate-500); max-width: 560px; }
.section-header { margin-bottom: 40px; }
.section-header-row {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}

/* ---------- NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center;
  gap: 10px; flex-shrink: 0;
}
.nav-logo-icon { width: 36px; height: 36px; }
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  color: var(--blue-900); line-height: 1.2;
}
.nav-logo-text span { color: var(--orange-500); }
.nav-links {
  display: flex; align-items: center;
  gap: 2px; flex: 1; justify-content: center;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 500;
  color: var(--slate-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-links a:hover { background: var(--slate-100); color: var(--blue-800); }
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--blue-600); }
.nav-cta { flex-shrink: 0; }
.nav-cta .btn { font-size: 14px; padding: 9px 18px; }
.nav-mobile-toggle { display: none; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--white);
  padding: 24px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-nav .nav-links {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px;
}
.mobile-nav .nav-links a {
  font-size: 20px; padding: 12px 16px; width: 100%;
}
.mobile-nav .btn { margin-top: 24px; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, #1a4a7a 100%);
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-400); margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--orange-400);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700; line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--orange-400); }
.hero-subtitle {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 700;
  color: var(--white); display: block;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.6); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-shield { position: relative; width: 320px; height: 320px; }
.shield-bg { width: 100%; height: 100%; opacity: .08; }
.hero-cards {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  gap: 12px; align-items: flex-start;
  justify-content: center; padding: 24px;
}
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  animation: float 3s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: .5s; margin-left: 20px; }
.hero-card:nth-child(3) { animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hero-card-text { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--white); }
.hero-card-sub { font-size: 11px; color: rgba(255,255,255,.6); }

/* ---------- TOPICS ---------- */
.topics { padding: 80px 0; background: var(--slate-50); }
.topics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.topic-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px; text-align: center;
  transition: all .2s ease; cursor: pointer;
  display: block;
}
.topic-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.topic-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
}
.topic-name { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--slate-900); line-height: 1.3; margin-bottom: 4px; }
.topic-count { font-size: 12px; color: var(--slate-500); }

/* ---------- ARTICLES ---------- */
.articles { padding: 80px 0; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .2s ease; display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.article-card-img { height: 200px; overflow: hidden; background: var(--slate-100); position: relative; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.reading-time { font-size: 12px; color: var(--slate-500); display: flex; align-items: center; gap: 4px; }
.article-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--slate-900); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.article-card-title a:hover { color: var(--blue-600); }
.article-card-excerpt { font-size: 14px; color: var(--slate-500); line-height: 1.65; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--slate-100); margin-top: auto; }
.article-author { display: flex; align-items: center; gap: 8px; }
.author-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--blue-800); font-weight: 600; font-family: var(--font-heading); flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 12px; font-weight: 500; color: var(--slate-600); }

/* Featured article */
.article-card.featured { grid-column: span 3; flex-direction: row; min-height: 280px; }
.article-card.featured .article-card-img { width: 420px; flex-shrink: 0; height: auto; }
.article-card.featured .article-card-body { padding: 36px; }
.article-card.featured .article-card-title { font-size: 24px; margin-bottom: 14px; }
.article-card.featured .article-card-excerpt { font-size: 15px; -webkit-line-clamp: 4; }
.featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--orange-100); color: var(--orange-500);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}

/* ---------- AGE GROUPS ---------- */
.age-groups { padding: 80px 0; background: var(--slate-50); }
.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.age-card {
  border-radius: var(--radius-xl); padding: 48px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 320px;
}
.age-card.primary-school { background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%); }
.age-card.high-school { background: linear-gradient(135deg, #1e3a5f 0%, #2e5c8a 100%); }
.age-card-emoji { font-size: 52px; margin-bottom: 20px; display: block; }
.age-card-label { font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.age-card-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 14px; line-height: 1.2; }
.age-card-desc { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.65; margin-bottom: 28px; flex: 1; }
.age-card-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.age-topic-pill { font-family: var(--font-heading); font-size: 12px; font-weight: 500; color: var(--white); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 100px; }
.age-card .btn-outline { align-self: flex-start; }
.age-card::after { content: ''; position: absolute; bottom: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }

/* ---------- QUICK TIPS ---------- */
.quick-tips { padding: 80px 0; background: var(--blue-900); position: relative; overflow: hidden; }
.quick-tips::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%); }
.quick-tips .section-title { color: var(--white); }
.quick-tips .section-label { color: var(--orange-400); }
.quick-tips .section-subtitle { color: rgba(255,255,255,.6); }
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tip-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px 24px; transition: all .2s; }
.tip-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.tip-number { font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--orange-400); opacity: .5; line-height: 1; margin-bottom: 16px; }
.tip-title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.tip-text { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ---------- NEWSLETTER ---------- */
.newsletter { padding: 80px 0; }
.newsletter-box {
  background: linear-gradient(135deg, var(--blue-50) 0%, #e0f0ff 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl); padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.newsletter-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--blue-600); font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.newsletter .section-title { margin-bottom: 12px; }
.newsletter-desc { font-size: 15px; color: var(--slate-500); line-height: 1.65; }
.newsletter-perks { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--slate-700); font-weight: 500; }
.perk-icon { width: 20px; height: 20px; background: var(--green-100); color: var(--green-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.newsletter-form-wrap { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: var(--slate-700); }
.form-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--slate-300); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 15px; color: var(--slate-900); background: var(--white); transition: border-color .15s; outline: none; }
.form-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45,134,193,.12); }
.form-input::placeholder { color: var(--slate-400); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-note { font-size: 12px; color: var(--slate-400); text-align: center; }
.newsletter-form-wrap .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 24px; }

/* ---------- RESOURCES BANNER ---------- */
.resources-banner { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); padding: 32px 0; }
.resources-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.resources-label { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.resources-logos { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.resource-logo { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--slate-400); transition: color .15s; }
.resource-logo:hover { color: var(--blue-600); }

/* ---------- ARCHIVE PAGE ---------- */
.archive-header {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  padding: 64px 0;
}
.archive-header .section-label { color: var(--orange-400); }
.archive-header .section-title { color: var(--white); }
.archive-header .section-subtitle { color: rgba(255,255,255,.65); }
.archive-content { padding: 64px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 14px; font-weight: 600;
  border: 1px solid var(--slate-200); color: var(--slate-700);
  transition: all .15s;
}
.pagination a:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-600); }
.pagination .current { background: var(--blue-800); color: var(--white); border-color: var(--blue-800); }

/* ---------- ARTICLE PAGE ---------- */
.article-header {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  padding: 56px 0 48px; border-bottom: 1px solid var(--slate-200);
}
.article-header-inner { max-width: 800px; margin: 0 auto; }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate-400); margin-bottom: 20px; }
.article-breadcrumb a { transition: color .15s; }
.article-breadcrumb a:hover { color: var(--blue-600); }
.article-breadcrumb-sep { color: var(--slate-300); }
.article-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.article-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--slate-900); line-height: 1.2; margin-bottom: 20px; }
.article-standfirst { font-size: 19px; line-height: 1.65; color: var(--slate-500); margin-bottom: 28px; }
.article-byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--slate-200); flex-wrap: wrap; }
.article-author-block { display: flex; align-items: center; gap: 12px; }
.author-avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--blue-800); overflow: hidden; flex-shrink: 0; }
.author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-info-name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--slate-900); }
.author-info-role { font-size: 12px; color: var(--slate-500); }
.article-share { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 13px; color: var(--slate-500); font-weight: 500; }
.share-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--slate-100); color: var(--slate-600); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .15s; }
.share-btn:hover { background: var(--blue-100); color: var(--blue-600); }

/* Article layout */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 56px 0 80px; align-items: start; }
.article-img-placeholder { width: 100%; height: 440px; border-radius: var(--radius-lg); margin-bottom: 40px; background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-50) 100%); display: flex; align-items: center; justify-content: center; font-size: 80px; }
.article-feature-img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 40px; }

/* Article body typography */
.article-body { max-width: 700px; }
.article-body h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--slate-900); margin: 40px 0 16px; line-height: 1.3; }
.article-body h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--slate-900); margin: 28px 0 12px; }
.article-body p { font-size: 17px; line-height: 1.78; color: var(--slate-700); margin-bottom: 22px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 22px; }
.article-body li { font-size: 17px; line-height: 1.78; color: var(--slate-700); margin-bottom: 8px; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--blue-800); }
.article-body strong { font-weight: 600; color: var(--slate-900); }
.article-body img { border-radius: var(--radius-md); margin: 8px 0 24px; }

/* Callout boxes */
.callout { border-radius: var(--radius-md); padding: 24px 28px; margin: 32px 0; border-left: 4px solid; display: flex; gap: 16px; }
.callout-tip { background: var(--blue-50); border-color: var(--blue-500); }
.callout-warning { background: #fffbeb; border-color: #f59e0b; }
.callout-action { background: var(--green-100); border-color: var(--green-600); }
.callout-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.callout-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--slate-900); }
.callout p { font-size: 15px !important; margin-bottom: 0 !important; line-height: 1.6 !important; }
.wp-block-pullquote { border-top: 4px solid var(--orange-500); border-bottom: 4px solid var(--orange-500); padding: 24px 0; margin: 32px 0; }
.wp-block-pullquote blockquote p { font-family: var(--font-heading); font-size: 22px !important; font-weight: 600; color: var(--slate-900) !important; font-style: italic; line-height: 1.5 !important; }

/* Action steps */
.action-steps { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; margin: 32px 0; }
.action-steps-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--slate-900); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.action-step { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.action-step:last-child { margin-bottom: 0; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-800); color: var(--white); font-family: var(--font-heading); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-text { font-size: 15px; color: var(--slate-700); line-height: 1.65; }

/* Article tags */
.article-tags { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--slate-200); }
.article-tags-label { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.article-tags-list { display: flex; gap: 8px; flex-wrap: wrap; }

/* Sidebar */
.article-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-widget-header { background: var(--slate-50); padding: 16px 20px; border-bottom: 1px solid var(--slate-200); font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--slate-700); text-transform: uppercase; letter-spacing: .06em; }
.sidebar-widget-body { padding: 20px; }
.sidebar-toc { display: flex; flex-direction: column; gap: 4px; }
.toc-item { font-size: 13px; color: var(--slate-600); padding: 6px 10px; border-radius: var(--radius-sm); transition: all .15s; display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.toc-item::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--slate-400); flex-shrink: 0; }
.toc-item:hover { background: var(--blue-50); color: var(--blue-700); }
.toc-item.active { background: var(--blue-50); color: var(--blue-700); font-weight: 500; }
.sidebar-mini-articles { display: flex; flex-direction: column; }
.mini-article { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--slate-100); align-items: flex-start; }
.mini-article:last-child { border-bottom: none; padding-bottom: 0; }
.mini-article-img { width: 60px; height: 60px; border-radius: var(--radius-sm); background: var(--slate-100); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.mini-article-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-article-title { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--slate-900); line-height: 1.4; margin-bottom: 4px; transition: color .15s; display: block; }
.mini-article-title:hover { color: var(--blue-600); }
.mini-article-meta { font-size: 11px; color: var(--slate-400); }
.sidebar-esafety { background: linear-gradient(135deg, var(--blue-50) 0%, #e0f0ff 100%) !important; border-color: var(--blue-100) !important; }
.esafety-logo { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--blue-800); margin-bottom: 8px; }
.esafety-desc { font-size: 13px; color: var(--slate-600); line-height: 1.55; margin-bottom: 14px; }
.esafety-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--blue-600); transition: gap .15s; }
.esafety-btn:hover { gap: 10px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--blue-900); padding: 64px 0 0; color: rgba(255,255,255,.65); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-text { color: var(--white); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .15s; }
.social-btn:hover { background: rgba(255,255,255,.15); color: var(--white); }
.footer-col-title { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom-text { font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; transition: color .15s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ---------- STATIC PAGES ---------- */
.page-content { padding: 64px 0 80px; }
.page-content .entry-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--slate-900); margin-bottom: 32px; }
.page-content .entry-content { max-width: 720px; }
.page-content .entry-content p { font-size: 17px; line-height: 1.78; color: var(--slate-700); margin-bottom: 22px; }
.page-content .entry-content h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--slate-900); margin: 40px 0 16px; }
.page-content .entry-content ul { padding-left: 24px; margin-bottom: 22px; }
.page-content .entry-content li { font-size: 17px; line-height: 1.78; list-style: disc; margin-bottom: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card.featured { grid-column: span 2; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .newsletter-box { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { flex-direction: column; grid-column: span 1; }
  .article-card.featured .article-card-img { width: 100%; height: 200px; }
  .age-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .age-card { padding: 32px; }
  .newsletter-box { padding: 36px 28px; }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .article-byline { flex-direction: column; }
}
