/* =====================================================
   Internet Bacon — Professional Blog Stylesheet
   Authority Hacker / Income School / NerdWallet style
   Clean white, dark text, orange accents. Real blog.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --orange: #ff6b35;
  --orange-dark: #e85d28;
  --orange-light: #fff3ee;
  --text: #1a1a2e;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --nav-bg: #1a1a2e;
  --footer-bg: #1a1a2e;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --surface: #f3f4f6;
  --gold: #f59e0b;
  --green: #10b981;
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-article: 'Merriweather', Georgia, serif;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-orange: 0 4px 16px rgba(255,107,53,0.25);
  --max-w: 1200px;
  --max-w-article: 720px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
p { color: var(--text-body); }
ul, ol { padding-left: 1.5rem; }
li { color: var(--text-body); }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-article { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }

/* ---- Navigation (dark) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1;
}
.nav-logo-text span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--orange); }
.btn-nav {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--orange-dark) !important; color: #fff !important; }

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.btn-nav-mobile {
  color: #fff;
  background: var(--orange);
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  margin-top: 12px;
  border: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-orange); }
.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-secondary:hover { background: var(--orange); color: #fff; }
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: #2d2d4e; color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ---- Cards (white, clean) ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img-icon { font-size: 3rem; }
.card-body { padding: 24px; }
.card-category {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.card-title {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.45;
  font-weight: 700;
}
.card-excerpt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
}
.author-badge.jeff { color: var(--orange); }
.author-badge.ian { color: var(--gold); }
.author-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.author-dot.jeff { background: var(--orange); }
.author-dot.ian { background: var(--gold); }

/* ---- Hero (homepage) ---- */
.hero {
  background: var(--nav-bg);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  box-shadow: 0 0 32px rgba(255,107,53,0.3);
  margin: 0 auto 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fff;
  font-weight: 800;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Featured article hero block */
.hero-featured {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.hero-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.hero-featured-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.hero-featured-content .label {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero-featured-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 14px;
  line-height: 1.3;
  font-weight: 800;
}
.hero-featured-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 40px; }
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; font-weight: 800; }
.section-header p { font-size: 1rem; max-width: 560px; color: var(--text-muted); }

/* ---- Newsletter ---- */
.newsletter-box {
  background: var(--nav-bg);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '🥓';
  position: absolute;
  font-size: 120px;
  opacity: 0.04;
  bottom: -20px; right: -20px;
  transform: rotate(-20deg);
}
.newsletter-box h2 { font-size: 1.75rem; margin-bottom: 10px; color: #fff; }
.newsletter-box p { margin-bottom: 28px; font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--orange-dark); }
.newsletter-disclaimer { font-size: 0.76rem; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* ---- Tool Cards ---- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tool-icon {
  width: 48px; height: 48px;
  background: var(--orange-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.tool-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.tool-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; }
.tool-rating { display: flex; gap: 2px; margin-bottom: 14px; }
.tool-rating span { color: var(--gold); font-size: 0.9rem; }
.we-use-badge {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ---- Footer (dark) ---- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  width: 48px; height: 48px;
  border-radius: 50%; border: 2px solid var(--orange);
  margin-bottom: 14px;
}
.footer-brand p { font-size: 0.875rem; max-width: 260px; margin-bottom: 0; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-disclosure {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  max-width: 600px;
  margin: 0;
}
.built-by {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.built-by strong { color: var(--orange); }

/* ---- Article Layout ---- */
.article-hero {
  background: var(--bg-light);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.article-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-hero .breadcrumb a { color: var(--text-muted); }
.article-hero .breadcrumb a:hover { color: var(--orange); }
.article-hero .breadcrumb span { color: var(--border-dark); }
.article-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 18px;
  line-height: 1.2;
  color: var(--text);
  font-weight: 800;
  max-width: 800px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-date { display: flex; align-items: center; gap: 5px; }
.article-read-time { display: flex; align-items: center; gap: 5px; }

/* Full-width hero image */
.article-hero-image-wrap {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  margin: 0 0 0 0;
  background: var(--bg-light);
}
.article-hero-image-wrap img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Article layout: content + sidebar */
.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding: 48px 0;
}

.article-content {
  min-width: 0;
}
.article-content h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  color: var(--text);
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  color: var(--text);
  font-weight: 700;
}
.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.02rem;
  color: var(--text-body);
}
.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-body);
}
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--orange); }
.article-content a:hover { color: var(--orange-dark); text-decoration: underline; }
.article-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  background: var(--orange-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-body);
}
.article-content .callout {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 3px solid #0ea5e9;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.article-content .callout.orange {
  background: var(--orange-light);
  border: 1px solid #fed7c3;
  border-left: 3px solid var(--orange);
}
.article-content .callout p { margin: 0; }
.article-cta-box {
  background: var(--orange-light);
  border: 1px solid #fed7c3;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}
.article-cta-box h3 { color: var(--orange); margin-bottom: 10px; }
.article-cta-box p { margin-bottom: 18px; color: var(--text-body); }

/* In-content AdSense slot */
.ad-incontent {
  background: var(--bg-light);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 16px;
  margin: 32px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-end-article {
  background: var(--bg-light);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 16px;
  margin: 32px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar-widget h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.related-article {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.related-article:last-child { border-bottom: none; padding-bottom: 0; }
.related-article:hover .related-title { color: var(--orange); }
.related-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--border-dark);
  flex-shrink: 0;
  width: 26px;
}
.related-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.45;
  transition: color 0.2s;
}

/* Sidebar sticky ad */
.sidebar-ad {
  background: var(--bg-light);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-newsletter input {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.sidebar-newsletter input:focus { border-color: var(--orange); }
.sidebar-newsletter input::placeholder { color: var(--text-light); }
.sidebar-newsletter button {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-newsletter button:hover { background: var(--orange-dark); }

/* ---- Blog Page ---- */
.blog-header-bg {
  background: var(--nav-bg);
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-header-bg h1 { color: #fff; }
.blog-header-bg p { color: rgba(255,255,255,0.65); }
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.search-bar {
  position: relative;
  margin-bottom: 36px;
  max-width: 380px;
}
.search-bar input {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px 10px 40px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--orange); }
.search-bar input::placeholder { color: var(--text-light); }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---- Tools Page ---- */
.tools-category-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.tools-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- About Page ---- */
.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.author-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.author-card.ian::before { background: var(--gold); }
.author-card.jeff::before { background: var(--orange); }
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.author-name { font-size: 1.4rem; margin-bottom: 4px; }
.author-role { font-size: 0.85rem; margin-bottom: 18px; }
.author-card.ian .author-role { color: var(--gold); }
.author-card.jeff .author-role { color: var(--orange); }
.author-card p { font-size: 0.92rem; line-height: 1.7; color: var(--text-body); }

/* ---- Page Hero (non-homepage) ---- */
.page-hero {
  background: var(--nav-bg);
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 10px; color: #fff; font-weight: 800; }
.page-hero p { font-size: 1rem; max-width: 540px; margin: 0 auto; color: rgba(255,255,255,0.65); }

/* ---- Start Here Page ---- */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.step-card:hover { box-shadow: var(--shadow-hover); }
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--orange);
  opacity: 0.4;
  flex-shrink: 0;
  width: 44px;
  line-height: 1;
}
.step-content h3 { font-size: 1rem; margin-bottom: 7px; color: var(--text); font-weight: 700; }
.step-content p { font-size: 0.875rem; color: var(--text-muted); }

/* ---- Newsletter Page ---- */
.newsletter-feature-list { list-style: none; padding: 0; }
.newsletter-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.92rem;
}
.newsletter-feature-list li:last-child { border-bottom: none; }
.newsletter-feature-list .check {
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-featured-inner { grid-template-columns: 1fr; }
  .hero-featured-img img { height: 240px; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .stats-grid { gap: 28px; }
  .newsletter-box { padding: 36px 20px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 56px 0 48px; }
  .sidebar { grid-template-columns: 1fr; }
  .step-card { flex-direction: column; gap: 10px; }
  .article-layout { padding: 32px 0; }
  .article-hero-image-wrap img { max-height: 240px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .filter-bar { gap: 6px; }
  .author-card { padding: 24px 18px; }
  .article-layout { gap: 32px; }
}

/* ---- Utility ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--green); }
.badge-dark { background: var(--surface); color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Legacy colour aliases (keeps old HTML working) */
.text-gold { color: var(--gold); }
.text-pink { color: var(--orange); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.article-image-hero {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--border) 100%);
  border-radius: var(--radius-lg);
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 4rem;
}
.article-image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
