/*
Theme Name:  The AI-Powered BA
Theme URI:   https://theaipoweredba.com
Author:      Manoj Soni
Author URI:  https://linkedin.com/in/manoj-k-bde/
Description: Custom WordPress theme for The AI-Powered BA — Business Analysis, AI & Interview Prep blog.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: aipoweredba
*/

/* ============================================================
   HOME PAGE DESIGN TOKENS
   ============================================================ */
:root {
  --ink:           #15161E;
  --ink-soft:      #4A4B57;
  --paper:         #FAFAFC;
  --paper-raised:  #FFFFFF;
  --line:          #E4E4ED;
  --line-soft:     #EEEEF4;

  --blue:          #3D5AFE;
  --blue-deep:     #2A3FD6;
  --blue-tint:     #EEF0FF;
  --violet:        #7C5CFC;
  --violet-tint:   #F3EFFF;
  --teal:          #00B89C;
  --teal-tint:     #E6FAF6;
  --amber:         #FF8A3D;

  --display: 'Space Grotesk', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --r-sm:      8px;
  --r-md:      14px;
  --r-lg:      22px;
  --shadow-sm: 0 1px 2px rgba(21,22,30,.04), 0 1px 1px rgba(21,22,30,.03);
  --shadow-md: 0 8px 24px rgba(21,22,30,.06), 0 2px 6px rgba(21,22,30,.04);
  --shadow-lg: 0 24px 48px rgba(21,22,30,.10), 0 8px 16px rgba(21,22,30,.05);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }

/* Category pages use the warm palette */
body.category { background: #F6F2EA; color: #211D18; }
body.category :focus-visible { outline-color: #2E5640; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary  { background: var(--ink); color: #fff; }
.btn-primary:hover  { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); background: var(--paper-raised); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   HEADER — BASE STYLES (all pages)
   ============================================================ */
.site-header {
  background: rgba(250,250,252,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { height: 72px; }
.site-logo { font-size: 17px; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: .02em;
  display: block;
  margin-top: 1px;
}
nav.main-nav { gap: 32px; }
nav.main-nav ul { gap: 32px; }
nav.main-nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
nav.main-nav a:hover,
nav.main-nav .current-menu-item > a { color: var(--ink); }
.icon-btn { width: 36px; height: 36px; }
.header-cta { background: var(--ink); color: #fff; }
.header-cta:hover { background: var(--blue-deep); }

/* ── Homepage overrides ── */
body.home .header-inner { height: 76px; }
body.home .site-logo { font-size: 19px; }
body.home nav.main-nav { gap: 36px; }
body.home nav.main-nav ul { gap: 36px; }
body.home nav.main-nav a { font-size: 14.5px; }
body.home .icon-btn { width: 38px; height: 38px; }

/* ── Category page overrides (warm palette) ── */
body.category .site-header {
  background: rgba(246,242,234,.92);
  border-bottom-color: #DDD4C4;
}
body.category .header-inner { height: 64px; }
body.category .logo-mark { background: #211D18; color: #F6F2EA; font-size: 12px; }
body.category .logo-sub { color: #6B6256; font-size: 9.5px; }
body.category nav.main-nav ul { gap: 30px; }
body.category nav.main-nav a { font-size: 13.5px; color: #6B6256; }
body.category nav.main-nav a:hover,
body.category nav.main-nav .current-menu-item > a { color: #2E5640; }
body.category .header-cta { background: #211D18; color: #F6F2EA; font-size: 12.5px; }
body.category .header-cta:hover { background: #2E5640; }

/* ============================================================
   SHARED HEADER STRUCTURE
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 200; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.site-logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; text-decoration: none; color: inherit; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}
nav.main-nav { display: flex; align-items: center; }

/* WordPress wp_nav_menu() wraps links in <ul><li> — strip that styling */
nav.main-nav ul,
nav.main-nav ul li { list-style: none; margin: 0; padding: 0; }
nav.main-nav ul   { display: flex; align-items: center; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--line-soft); color: var(--ink); }
.header-cta {
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.mobile-toggle { display: none; }

@media (max-width: 920px) {
  nav.main-nav { display: none; }
  .mobile-toggle { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-tint) 0%, transparent 70%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: clamp(34px,4.2vw,54px); margin: 18px 0 22px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta { display: flex; gap: 28px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Story card */
.story-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
  position: relative;
  transform: rotate(1.2deg);
}
.story-card::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  z-index: -1;
  background: var(--violet-tint);
  transform: rotate(-2.4deg);
}
.story-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.story-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--line-soft);
  padding: 4px 9px;
  border-radius: 6px;
}
.story-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.story-card p.story-text { font-family: var(--display); font-size: 19px; line-height: 1.5; color: var(--ink); margin-bottom: 20px; }
.story-text .hl { color: var(--blue); font-weight: 600; }
.story-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.story-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.story-check .box {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.story-check .box svg { width: 10px; height: 10px; }
.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.story-avatars { display: flex; }
.story-avatars span {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--paper-raised);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.story-avatars span:first-child { margin-left: 0; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-card { transform: none; }
  .story-card::after { display: none; }
}

/* ============================================================
   HOME PAGE — SECTION SHELL
   ============================================================ */
section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 24px; }
.section-head h2 { font-size: clamp(26px,3vw,34px); margin-top: 12px; }
.section-head .desc { color: var(--ink-soft); font-size: 15px; margin-top: 8px; max-width: 460px; }
.see-all { font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.alt-bg { background: var(--paper-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ============================================================
   HOME PAGE — CATEGORY CARDS
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cat-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.cat-icon svg { width: 24px; height: 24px; }
.cat-card.ba       .cat-icon { background: var(--blue-tint);   color: var(--blue); }
.cat-card.ai       .cat-icon { background: var(--violet-tint); color: var(--violet); }
.cat-card.interview .cat-icon { background: var(--teal-tint);  color: var(--teal); }
.cat-card h3 { font-size: 19px; margin-bottom: 8px; }
.cat-card p  { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.cat-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.cat-count { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.cat-link  { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px; }

/* ============================================================
   HOME PAGE — LATEST ARTICLES + SIDEBAR
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.article-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.article-card   { border-radius: var(--r-md); overflow: hidden; background: var(--paper-raised); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; display: block; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-thumb  { height: 168px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.article-thumb.t1 { background: linear-gradient(135deg,#3D5AFE,#6F7CFE); }
.article-thumb.t2 { background: linear-gradient(135deg,#7C5CFC,#A78BFA); }
.article-thumb.t3 { background: linear-gradient(135deg,#00B89C,#34D8BC); }
.article-thumb.t4 { background: linear-gradient(135deg,#FF8A3D,#FFB178); }
.article-thumb.t5 { background: linear-gradient(135deg,#2A3FD6,#3D5AFE); }
.article-thumb.t6 { background: linear-gradient(135deg,#15161E,#4A4B57); }
.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 6px;
}
.article-body   { padding: 20px 22px 22px; }
.article-meta   { display: flex; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-bottom: 12px; }
.article-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 9px; line-height: 1.35; }
.article-card p.excerpt { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; }
.read-more { font-size: 13.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.side-box { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.side-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-family: var(--mono); font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }
.side-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; color: var(--ink-soft); font-size: 13.5px; }
.side-search svg { flex-shrink: 0; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-list a { font-size: 13.5px; color: var(--ink-soft); display: flex; justify-content: space-between; transition: color .15s; }
.side-list a:hover { color: var(--blue); }
.side-list a span.count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); opacity: .6; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill  { font-family: var(--mono); font-size: 11.5px; padding: 6px 12px; border-radius: 999px; background: var(--line-soft); color: var(--ink-soft); }
.side-box.cta-box { background: linear-gradient(150deg, var(--blue), var(--violet)); color: #fff; text-align: center; }
.side-box.cta-box h4 { color: rgba(255,255,255,.7); }
.side-box.cta-box p  { font-size: 13.5px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.side-box.cta-box .btn { width: 100%; background: #fff; color: var(--ink); border-color: transparent; }

@media (max-width: 1080px) { .content-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }
@media (max-width: 920px)  { .article-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOME PAGE — POPULAR ARTICLES
   ============================================================ */
.popular-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.popular-main {
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.popular-main::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,.35), transparent 70%);
}
.popular-main .badge { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 18px; width: fit-content; }
.popular-main h3 { font-size: 27px; color: #fff; margin-bottom: 12px; max-width: 420px; position: relative; z-index: 1; }
.popular-main p  { color: rgba(255,255,255,.65); font-size: 14.5px; max-width: 420px; margin-bottom: 22px; position: relative; z-index: 1; }
.popular-main .article-meta { color: rgba(255,255,255,.5); }
.popular-side { display: flex; flex-direction: column; gap: 18px; }
.popular-item {
  display: flex; gap: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  flex: 1;
  align-items: center;
  text-decoration: none;
  transition: box-shadow .2s;
}
.popular-item:hover { box-shadow: var(--shadow-md); }
.popular-item .num { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--line); flex-shrink: 0; width: 32px; }
.popular-item h4   { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.popular-item .article-meta { margin-bottom: 0; }

@media (max-width: 920px) { .popular-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOME PAGE — RESOURCE BANNER
   ============================================================ */
.resource-banner {
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--blue-tint), var(--violet-tint));
  border: 1px solid var(--line);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.resource-banner .eyebrow       { color: var(--violet); }
.resource-banner .eyebrow::before { background: var(--violet); }
.resource-banner h2 { font-size: 30px; margin: 14px 0; }
.resource-list  { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 22px 0 28px; }
.resource-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.resource-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.resource-mock {
  background: var(--paper-raised);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  transform: rotate(-1.5deg);
}
.resource-mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-soft);
}
.resource-mock-row:last-child { border-bottom: none; }
.resource-mock-row .file-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .resource-banner { grid-template-columns: 1fr; padding: 36px; }
  .resource-mock   { transform: none; }
}

/* ============================================================
   HOME PAGE — NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1176px;
  margin-inline: auto;
}
.newsletter-section::before,
.newsletter-section::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  z-index: 0;
}
.newsletter-section::before { top: -160px; left: -100px; background: radial-gradient(circle, rgba(61,90,254,.35), transparent 70%); }
.newsletter-section::after  { bottom: -160px; right: -100px; background: radial-gradient(circle, rgba(124,92,252,.3), transparent 70%); }
.newsletter-section .eyebrow        { color: #9FB0FF; justify-content: center; position: relative; z-index: 1; }
.newsletter-section .eyebrow::before { background: #9FB0FF; }
.newsletter-section h2 { color: #fff; font-size: clamp(26px,3.4vw,36px); margin: 16px 0 14px; position: relative; z-index: 1; }
.newsletter-section > p { color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 32px; font-size: 15.5px; position: relative; z-index: 1; }
.newsletter-form {
  display: flex; gap: 10px;
  max-width: 520px;
  margin: 0 auto 16px;
  position: relative; z-index: 1;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1; min-width: 160px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14.5px;
  font-family: var(--body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { outline: none; border-color: var(--blue); background: rgba(255,255,255,.12); }
.newsletter-form .btn-primary { background: linear-gradient(100deg, var(--blue), var(--violet)); white-space: nowrap; }
.newsletter-form .btn-primary:hover { box-shadow: 0 8px 24px rgba(61,90,254,.4); }
.trust-text { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.4); position: relative; z-index: 1; }

@media (max-width: 920px) { .newsletter-section { padding: 44px 28px; margin: 0 16px; } }

/* ============================================================
   HOME PAGE — ABOUT
   ============================================================ */
.about-grid   { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.about-avatar {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--blue), var(--violet));
  display: flex; align-items: center; justify-content: center;
}
.about-avatar span { font-family: var(--display); font-size: 64px; font-weight: 700; color: #fff; }
.about-stats  { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 28px 0 30px; }
.about-stat   { border-left: 2px solid var(--blue); padding-left: 14px; }
.about-stat strong { display: block; font-family: var(--display); font-size: 24px; }
.about-stat span   { font-size: 12.5px; color: var(--ink-soft); }
.about-bio    { font-size: 16px; color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar { max-width: 220px; margin: 0 auto; }
}

/* (Testimonials CSS consolidated below in section 19) */

/* ============================================================
   FOOTER — BASE STYLES (all pages)
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 72px 0 32px; margin-top: 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.footer-grid  {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo  { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.footer-logo .logo-mark { width: 28px; height: 28px; font-size: 12px; background: linear-gradient(135deg,var(--blue),var(--violet)); color: #fff; }
.footer-brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; }
footer p.tagline { font-size: 13.5px; max-width: 260px; margin-bottom: 20px; color: rgba(255,255,255,.6); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; color: rgba(255,255,255,.6); }
.footer-socials a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.footer-col h5 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.4); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a  { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12.5px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.6); }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #fff; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) { section { padding: 64px 0; } }

/* ============================================================
   BLOG / CATEGORY PAGE — TOKENS (warm palette)
   ============================================================ */
body.category {
  --paper-cat:     #F6F2EA;
  --paper-card:    #FFFEFB;
  --ink-cat:       #211D18;
  --ink-soft-cat:  #6B6256;
  --line-cat:      #DDD4C4;
  --line-soft-cat: #E9E2D4;

  --draft:          #C2603F;
  --draft-tint:     #F3E0D6;
  --draft-deep:     #9E4A2F;
  --published:      #3E6B52;
  --published-tint: #DEEAE2;
  --published-deep: #2E5640;
  --trending:       #B8862E;
  --trending-tint:  #F2E5C8;
  --trending-deep:  #946A1F;

  --r-card: 7px;
  --shadow-card: 0 2px 6px rgba(33,29,24,.08), 0 1px 2px rgba(33,29,24,.06);
  --shadow-lift: 0 14px 28px rgba(33,29,24,.14);
}

/* ============================================================
   BLOG / CATEGORY PAGE — SHELL
   ============================================================ */
.page-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
}

/* ── Left pane: Notebook ── */
.notebook {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  background: #FFFEFB;
  border-right: 1px solid #DDD4C4;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nb-profile { margin-bottom: 24px; }
.nb-avatar  {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(150deg,#C2603F,#B8862E);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.nb-avatar span { font-family: var(--display); font-size: 20px; font-weight: 700; color: #FFFEFB; }
.nb-profile h2  { font-family: var(--display); font-size: 18px; margin-bottom: 5px; color: #211D18; }
.nb-profile .role { font-size: 12px; color: #6B6256; font-family: var(--mono); }

.mobile-notebook-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: #6B6256;
  font-weight: 600;
  cursor: pointer;
}

.nb-section { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #E9E2D4; }
.nb-section:last-of-type { border-bottom: none; }
.nb-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6B6256;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.nb-label::before { content: ''; width: 5px; height: 5px; background: #6B6256; border-radius: 50%; }

.nb-about p          { font-size: 13px; color: #6B6256; margin-bottom: 12px; }
.nb-about-stats      { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.nb-stat             { background: #F6F2EA; border: 1px solid #E9E2D4; border-radius: 7px; padding: 9px 6px; text-align: center; }
.nb-stat strong      { display: block; font-family: var(--display); font-size: 15px; color: #211D18; }
.nb-stat span        { font-size: 9.5px; color: #6B6256; font-family: var(--mono); }
.nb-tools            { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nb-tool-pill        { font-family: var(--mono); font-size: 10.5px; background: #F6F2EA; border: 1px solid #E9E2D4; color: #6B6256; padding: 4px 9px; border-radius: 999px; }
.nb-about-link       { font-size: 12.5px; font-weight: 600; color: #2E5640; display: inline-flex; align-items: center; gap: 5px; }

.log-entry  { display: flex; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: #211D18; }
.log-date   { font-family: var(--mono); color: #6B6256; flex-shrink: 0; width: 42px; }

.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #211D18; cursor: pointer; }
.filter-item input { accent-color: #3E6B52; }
.fc-count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: #6B6256; background: #F6F2EA; padding: 2px 7px; border-radius: 999px; }

.nb-toolkit { background: #F6F2EA; border: 1px solid #DDD4C4; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.tk-icon    { margin-bottom: 10px; color: #6B6256; }
.nb-toolkit h4 { font-size: 13.5px; color: #211D18; margin-bottom: 6px; }
.nb-toolkit p  { font-size: 12px; color: #6B6256; margin-bottom: 10px; }
.nb-toolkit ul { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.nb-toolkit ul li { font-size: 12px; color: #6B6256; padding-left: 12px; position: relative; }
.nb-toolkit ul li::before { content: '·'; position: absolute; left: 0; }
.tk-btn { display: block; text-align: center; background: #211D18; color: #F6F2EA; font-size: 12.5px; font-weight: 600; padding: 10px; border-radius: 7px; transition: background .15s; }
.tk-btn:hover { background: #3E6B52; }

.nb-cta   { margin-top: auto; background: #211D18; color: #F6F2EA; border-radius: 12px; padding: 18px; }
.nb-cta h4 { font-size: 13.5px; margin-bottom: 6px; }
.nb-cta p  { font-size: 11.5px; color: rgba(246,242,234,.65); margin-bottom: 12px; }
.nb-cta-form { display: flex; flex-direction: column; gap: 8px; }
.nb-cta-form input { padding: 10px 12px; border-radius: 7px; border: 1px solid rgba(246,242,234,.2); background: rgba(246,242,234,.08); color: #F6F2EA; font-size: 12.5px; font-family: var(--body); }
.nb-cta-form input::placeholder { color: rgba(246,242,234,.45); }
.nb-cta-form input:focus { outline: none; border-color: #B8862E; }
.nb-cta-btn { background: #B8862E; color: #211D18; padding: 10px; border-radius: 7px; font-weight: 600; font-size: 12.5px; text-align: center; transition: background .15s; cursor: pointer; font-family: var(--body); border: none; width: 100%; }
.nb-cta-btn:hover { background: #F6F2EA; }

/* ── Right pane: Board ── */
.board-wrap { padding: 28px 36px 56px; overflow-x: hidden; }
.board-top  { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.board-top h2 { font-size: 25px; color: #211D18; }
.board-top p  { font-size: 13.5px; color: #6B6256; margin-top: 6px; }
.board-meta   { font-family: var(--mono); font-size: 11.5px; color: #6B6256; display: flex; gap: 16px; }
.board-meta strong { color: #211D18; }

/* Mobile column tabs */
.col-tabs { display: none; }
.col-tab-btn {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid #DDD4C4; background: #FFFEFB; color: #6B6256; cursor: pointer;
}
.col-tab-btn.active.draft     { background: #C2603F; color: #FFFEFB; border-color: #C2603F; }
.col-tab-btn.active.published { background: #3E6B52; color: #FFFEFB; border-color: #3E6B52; }
.col-tab-btn.active.trending  { background: #B8862E; color: #FFFEFB; border-color: #B8862E; }

.board-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: start; }
.column     { display: flex; flex-direction: column; }

/* Column headers */
.col-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 7px; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; }
.col-head .col-count { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .7; }
.column.draft     .col-head { background: #F3E0D6; color: #9E4A2F; }
.column.published .col-head { background: #DEEAE2; color: #2E5640; }
.column.trending  .col-head { background: #F2E5C8; color: #946A1F; }

.col-stack { display: flex; flex-direction: column; gap: 16px; }

/* Index cards */
.idx-card {
  background: #FFFEFB;
  border: 1px solid #DDD4C4;
  border-radius: 7px;
  padding: 18px 18px 16px;
  position: relative;
  box-shadow: 0 2px 6px rgba(33,29,24,.08), 0 1px 2px rgba(33,29,24,.06);
  transition: transform .16s, box-shadow .16s;
}
.idx-card:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 14px 28px rgba(33,29,24,.14); }
.idx-card .pin { position: absolute; top: -7px; left: 18px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.column.draft     .pin { background: #C2603F; }
.column.published .pin { background: #3E6B52; }
.column.trending  .pin { background: #B8862E; }

.idx-meta { font-family: var(--mono); font-size: 10.5px; color: #6B6256; display: flex; justify-content: space-between; margin-bottom: 10px; }
.idx-card h4 { font-size: 15px; line-height: 1.35; margin-bottom: 8px; color: #211D18; }
.idx-card p  { font-size: 12.5px; color: #6B6256; margin-bottom: 12px; }

.idx-tag { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-block; }
.column.draft     .idx-tag { background: #F3E0D6; color: #9E4A2F; }
.column.published .idx-tag { background: #DEEAE2; color: #2E5640; }
.column.trending  .idx-tag { background: #F2E5C8; color: #946A1F; }

.idx-card.rank { display: flex; gap: 12px; align-items: flex-start; }
.rank-num { font-family: var(--display); font-size: 26px; font-weight: 700; color: #F2E5C8; -webkit-text-stroke: 1.5px #B8862E; flex-shrink: 0; line-height: 1; }

/* Newsletter card inside Published column */
.idx-card.newsletter-card { background: #211D18; color: #F6F2EA; text-align: center; border-color: #211D18; }
.idx-card.newsletter-card .pin  { display: none; }
.idx-card.newsletter-card h4    { color: #F6F2EA; font-size: 16px; margin-bottom: 8px; }
.idx-card.newsletter-card p     { color: rgba(246,242,234,.6); font-size: 12.5px; margin-bottom: 14px; }
.nl-inline-form { display: flex; gap: 8px; }
.nl-inline-form input { flex: 1; padding: 10px 12px; border-radius: 7px; border: 1px solid rgba(246,242,234,.2); background: rgba(246,242,234,.08); color: #F6F2EA; font-size: 12.5px; font-family: var(--body); outline: none; }
.nl-inline-form input::placeholder { color: rgba(246,242,234,.45); }
.nl-inline-form button { background: #B8862E; color: #211D18; font-weight: 600; font-size: 12.5px; padding: 10px 16px; border-radius: 7px; white-space: nowrap; cursor: pointer; font-family: var(--body); border: none; }
.nl-inline-form button:hover { background: #F6F2EA; }

/* Blog-page testimonials */
.blog-testi-section { padding: 56px 36px; max-width: 1080px; margin: 0 auto; }
.blog-testi-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blog-testi-card    { background: #FFFEFB; border: 1px dashed #DDD4C4; border-radius: 12px; padding: 22px; }
.blog-testi-tag     { font-family: var(--mono); font-size: 10px; color: #6B6256; background: #E9E2D4; padding: 3px 8px; border-radius: 5px; display: inline-block; margin-bottom: 12px; }
.blog-testi-card p  { font-size: 13px; color: #6B6256; margin-bottom: 14px; min-height: 50px; }
.blog-testi-person  { display: flex; align-items: center; gap: 10px; }
.blog-testi-avatar  { width: 32px; height: 32px; border-radius: 50%; background: #E9E2D4; flex-shrink: 0; }
.blog-testi-name    { font-size: 12.5px; font-weight: 600; color: #211D18; }
.blog-testi-role    { font-size: 11px; color: #6B6256; }

/* Blog-page footer */
body.category .site-footer { background: #211D18; color: rgba(246,242,234,.6); padding: 56px 36px 28px; }
body.category .footer-inner { max-width: 1080px; margin: 0 auto; }
body.category .footer-grid  { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(246,242,234,.12); }
body.category .footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
body.category .footer-brand .logo-mark { width: 26px; height: 26px; border-radius: 7px; background: #F6F2EA; color: #211D18; font-size: 11px; font-weight: 700; }
body.category .footer-brand-name { font-family: var(--display); font-weight: 700; font-size: 15.5px; color: #F6F2EA; }
body.category footer p.tagline   { font-size: 12.5px; max-width: 250px; margin-bottom: 16px; }
body.category .footer-socials    { display: flex; gap: 9px; }
body.category .footer-socials a  { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(246,242,234,.15); display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
body.category .footer-socials a:hover { background: rgba(246,242,234,.1); border-color: rgba(246,242,234,.3); }
body.category .footer-col h5  { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: rgba(246,242,234,.4); margin-bottom: 16px; font-weight: 500; }
body.category .footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
body.category .footer-col a   { font-size: 12.5px; color: rgba(246,242,234,.6); transition: color .15s; }
body.category .footer-col a:hover { color: #F6F2EA; }
body.category .footer-bottom  { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 11.5px; flex-wrap: wrap; gap: 12px; }
body.category .footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
body.category .footer-bottom-links a:hover { color: #F6F2EA; }

/* Blog responsive */
@media (max-width: 1080px) {
  .board-grid { grid-template-columns: 1fr; }
  .column     { display: none; }
  .column.col-active { display: flex; }
  .col-tabs   { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
}
@media (max-width: 880px) {
  .page-shell { grid-template-columns: 1fr; }
  .notebook   { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid #DDD4C4; padding: 20px; }
  .nb-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 0; }
  .nb-avatar  { margin-bottom: 0; flex-shrink: 0; width: 50px; height: 50px; }
  .nb-avatar span { font-size: 17px; }
  .nb-profile h2  { font-size: 16px; margin-bottom: 3px; }
  .nb-collapsible { display: none; }
  .nb-collapsible.open { display: block; margin-top: 18px; }
  .mobile-notebook-toggle { display: flex; }
  .board-wrap { padding: 22px 20px 44px; }
}
@media (max-width: 820px) { .blog-testi-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { body.category .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { body.category .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .board-top h2 { font-size: 21px; }
  .nl-inline-form { flex-direction: column; }
  .blog-testi-section { padding: 40px 20px; }
  body.category .site-footer { padding: 44px 20px 24px; }
  body.category .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   10. HOME PAGE — HERO  (from index__2_.html)
   ============================================================ */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-tint) 0%, transparent 70%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: clamp(34px,4.2vw,54px); margin: 18px 0 22px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* ── User-story card ── */
.story-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
  position: relative;
  transform: rotate(1.2deg);
}
.story-card::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  z-index: -1;
  background: var(--violet-tint);
  transform: rotate(-2.4deg);
}
.story-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.story-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--line-soft);
  padding: 4px 9px;
  border-radius: 6px;
}
.story-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.story-text {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}
.story-text .hl { color: var(--blue); font-weight: 600; }
.story-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.story-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.story-check .box {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.story-check .box svg { width: 10px; height: 10px; }
.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.story-avatars { display: flex; }
.story-avatars span {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--paper-raised);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.story-avatars span:first-child { margin-left: 0; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-card { transform: none; }
  .story-card::after { display: none; }
}

/* ============================================================
   11. HOME PAGE — SECTION SHELL
   ============================================================ */
section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 24px; }
.section-head h2  { font-size: clamp(26px,3vw,34px); margin-top: 12px; }
.section-head .desc { color: var(--ink-soft); font-size: 15px; margin-top: 8px; max-width: 460px; }
.see-all { font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.alt-bg { background: var(--paper-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ============================================================
   12. HOME PAGE — CATEGORY CARDS
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cat-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: block;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card .cat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.cat-card .cat-icon svg { width: 24px; height: 24px; }
.cat-card.ba       .cat-icon { background: var(--blue-tint);   color: var(--blue); }
.cat-card.ai       .cat-icon { background: var(--violet-tint); color: var(--violet); }
.cat-card.interview .cat-icon { background: var(--teal-tint);  color: var(--teal); }
.cat-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.cat-card p  { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.cat-count { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.cat-link  { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px; }

/* ============================================================
   13. HOME PAGE — ARTICLE CARDS
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.article-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-thumb {
  height: 168px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.article-thumb.t1 { background: linear-gradient(135deg,#3D5AFE,#6F7CFE); }
.article-thumb.t2 { background: linear-gradient(135deg,#7C5CFC,#A78BFA); }
.article-thumb.t3 { background: linear-gradient(135deg,#00B89C,#34D8BC); }
.article-thumb.t4 { background: linear-gradient(135deg,#FF8A3D,#FFB178); }
.article-thumb.t5 { background: linear-gradient(135deg,#2A3FD6,#3D5AFE); }
.article-thumb.t6 { background: linear-gradient(135deg,#15161E,#4A4B57); }
.article-thumb .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 6px;
}
.article-body { padding: 20px 22px 22px; }
.article-meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.article-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 9px; line-height: 1.35; color: var(--ink); }
.article-card p.excerpt { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; }
.read-more { font-size: 13.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   14. HOME PAGE — CONTENT + SIDEBAR LAYOUT
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.side-box {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}
.side-box h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.side-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.side-search svg { flex-shrink: 0; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-list a {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  transition: color .15s;
}
.side-list a:hover { color: var(--blue); }
.side-list a span.count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); opacity: .6; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
a.tag-pill:hover { background: var(--blue-tint); color: var(--blue); }
.side-box.cta-box {
  background: linear-gradient(150deg, var(--blue), var(--violet));
  color: #fff;
  text-align: center;
}
.side-box.cta-box h4 { color: rgba(255,255,255,.7); }
.side-box.cta-box p  { font-size: 13.5px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.side-box.cta-box .btn { width: 100%; background: #fff; color: var(--ink); }

@media (max-width: 1080px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ============================================================
   15. HOME PAGE — POPULAR ARTICLES
   ============================================================ */
.popular-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.popular-main {
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.popular-main::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(124,92,252,.35),transparent 70%);
}
.popular-main .badge { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 18px; width: fit-content; }
.popular-main h3 { font-size: 27px; color: #fff; margin-bottom: 12px; max-width: 420px; position: relative; z-index: 1; }
.popular-main > p { color: rgba(255,255,255,.65); font-size: 14.5px; max-width: 420px; margin-bottom: 22px; position: relative; z-index: 1; }
.popular-main .article-meta { color: rgba(255,255,255,.5); }
.popular-side { display: flex; flex-direction: column; gap: 18px; }
.popular-item {
  display: flex;
  gap: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  flex: 1;
  align-items: center;
  transition: box-shadow .15s;
}
.popular-item:hover { box-shadow: var(--shadow-md); }
.popular-item .num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--line);
  flex-shrink: 0;
  width: 32px;
}
.popular-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.popular-item .article-meta { margin-bottom: 0; }

@media (max-width: 920px) { .popular-grid { grid-template-columns: 1fr; } }

/* ============================================================
   16. HOME PAGE — RESOURCE BANNER
   ============================================================ */
.resource-banner {
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--blue-tint), var(--violet-tint));
  border: 1px solid var(--line);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.resource-banner h2 { font-size: 30px; margin: 14px 0 14px; }
.resource-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 22px 0 28px; }
.resource-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.resource-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.resource-mock {
  background: var(--paper-raised);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  transform: rotate(-1.5deg);
}
.resource-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-soft);
}
.resource-mock-row:last-child { border-bottom: none; }
.resource-mock-row .file-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .resource-banner { grid-template-columns: 1fr; padding: 36px; }
  .resource-mock   { transform: none; }
}

/* ============================================================
   17. HOME PAGE — NEWSLETTER  (dark section)
   ============================================================ */
.newsletter-section {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 32px;
  max-width: 1176px;
  margin-inline: auto;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -160px; left: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(61,90,254,.35),transparent 70%);
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -160px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(124,92,252,.3),transparent 70%);
}
.newsletter-section .eyebrow { color: #9FB0FF; justify-content: center; position: relative; z-index: 1; }
.newsletter-section .eyebrow::before { background: #9FB0FF; }
.newsletter-section h2 { color: #fff; font-size: clamp(26px,3.4vw,36px); margin: 16px 0 14px; position: relative; z-index: 1; }
.newsletter-section > p { color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 32px; font-size: 15.5px; position: relative; z-index: 1; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14.5px;
  font-family: var(--body);
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: var(--blue); background: rgba(255,255,255,.12); }
.newsletter-form .btn-primary {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  white-space: nowrap;
  border: none;
}
.newsletter-form .btn-primary:hover { box-shadow: 0 8px 24px rgba(61,90,254,.4); }
.trust-text { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.4); position: relative; z-index: 1; }

@media (max-width: 920px) {
  .newsletter-section { padding: 44px 28px; margin: 0 16px; }
}

/* ============================================================
   18. HOME PAGE — ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: center; }
.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--blue), var(--violet));
  display: flex; align-items: center; justify-content: center;
}
.about-avatar span { font-family: var(--display); font-size: 64px; font-weight: 700; color: #fff; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 28px 0 30px; }
.about-stat { border-left: 2px solid var(--blue); padding-left: 14px; }
.about-stat strong { display: block; font-family: var(--display); font-size: 24px; color: var(--ink); }
.about-stat span   { font-size: 12.5px; color: var(--ink-soft); }
.about-bio { font-size: 16px; color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; }

@media (max-width: 920px) {
  .about-grid   { grid-template-columns: 1fr; }
  .about-avatar { max-width: 220px; margin: 0 auto; }
}

/* Photo variant — when a real image is uploaded */
.about-avatar--photo {
  background: var(--line-soft);
  overflow: hidden;
}
.about-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   19. HOME PAGE — TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Dashed border only for the "coming soon" placeholder state */
.testi-card:has(.testi-placeholder-tag) { border-style: dashed; }

.testi-stars { color: #F2B705; font-size: 14px; letter-spacing: 2px; }
.testi-quote { color: var(--ink-soft); font-size: 14px; min-height: 60px; line-height: 1.6; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue), var(--violet));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.testi-avatar--photo { background: var(--line-soft); }
.testi-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testi-name   { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.testi-role   { font-size: 12px; color: var(--ink-soft); }
.testi-placeholder-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  background: var(--line-soft);
  padding: 3px 8px;
  border-radius: 5px;
  width: fit-content;
}

/* ── BA+AI category card (same style as others, just different icon colour) ── */
.cat-card.baai .cat-icon {
  background: linear-gradient(135deg, var(--blue-tint), var(--violet-tint));
  color: var(--violet);
}
.cat-card.baai:hover { border-color: var(--violet); }

/* ── Custom logo (uploaded via WP Customizer) ── */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.custom-logo {
  height: 40px;
  width: auto;
  display: block;
}
body.home .custom-logo   { height: 44px; }
body.category .custom-logo { height: 36px; }

/* ============================================================
   20. HOME PAGE — RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 920px) {
  .cat-grid     { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .testi-grid   { grid-template-columns: 1fr; }
  section       { padding: 64px 0; }
  .resource-banner { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .wrap         { padding: 0 20px; }
  .header-inner { height: 68px; }
  .hero         { padding: 56px 0 64px; }
  .footer-grid  { grid-template-columns: 1fr; }
  body.home .custom-logo   { height: 36px; }
}

/* ============================================================
   HEADER SEARCH DROPDOWN
   ============================================================ */

/* Toggle button active state */
.search-toggle.is-active {
  background: var(--line-soft);
  color: var(--ink);
}
body.category .search-toggle.is-active { background: #E9E2D4; color: #211D18; }

/* The dropdown panel — sits flush below the header */
.search-dropdown {
  position: absolute;
  top: 100%;        /* sticks to the bottom edge of .site-header */
  left: 0;
  width: 100%;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(21,22,30,.10);
  z-index: 199;

  /* Hidden state */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
/* Visible state (JS adds .is-open) */
.search-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Warm-palette override on category pages */
body.category .search-dropdown {
  background: #FFFEFB;
  border-bottom-color: #DDD4C4;
}

.search-dropdown-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 32px 22px;
}

/* The search row: icon + input + button */
.search-field-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 6px 0 16px;
  transition: border-color .15s;
}
.search-field-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
body.category .search-field-wrap { background: #F6F2EA; border-color: #DDD4C4; }
body.category .search-field-wrap:focus-within { border-color: #3E6B52; box-shadow: 0 0 0 3px #DEEAE2; }

.search-field-wrap > svg { color: var(--ink-soft); flex-shrink: 0; }

.search-field {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  padding: 14px 0;
  outline: none;
  min-width: 0;
}
.search-field::placeholder { color: var(--ink-soft); opacity: .65; }
body.category .search-field { color: #211D18; }

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.search-submit-btn:hover { background: var(--blue-deep); }
body.category .search-submit-btn:hover { background: #2E5640; }

/* Hint text below the field */
.search-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}
.search-hint kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

@media (max-width: 600px) {
  .search-dropdown-inner { padding: 16px 20px 18px; }
  .search-field { font-size: 15px; }
  .search-submit-btn { padding: 10px 14px; font-size: 12.5px; }
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

/* ── Page header bar ── */
.search-page-header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}
.search-page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.search-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.search-heading {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ink);
  margin-bottom: 10px;
}
.search-result-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-family: var(--mono);
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--mono);
}

/* Inline refine search form */
.search-refine-form { flex-shrink: 0; }
.search-refine-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 6px 0 14px;
  min-width: 320px;
  transition: border-color .15s, box-shadow .15s;
}
.search-refine-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.search-refine-wrap svg { color: var(--ink-soft); flex-shrink: 0; }
.search-refine-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  padding: 11px 0;
  outline: none;
  min-width: 0;
}
.search-refine-wrap input::placeholder { color: var(--ink-soft); opacity: .65; }
.search-refine-wrap button {
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  border: none;
}
.search-refine-wrap button:hover { background: var(--blue-deep); }

/* ── Two-column layout ── */
.search-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 72px;
}

/* ── Result cards ── */
.search-results-list { display: flex; flex-direction: column; gap: 0; }

.search-result-card {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.search-result-card:first-child { padding-top: 0; }
.search-result-card:last-child { border-bottom: none; }

.result-body { flex: 1; min-width: 0; }

/* Category badge + meta */
.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.result-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 999px;
}
/* Colour per category slug */
.result-cat--business-analyst,
.result-cat--business-analyst-ba { background: var(--blue-tint);   color: var(--blue);   }
.result-cat--ai,
.result-cat--artificial-intelligence { background: var(--violet-tint); color: var(--violet); }
.result-cat--ba-ai                { background: linear-gradient(90deg,var(--blue-tint),var(--violet-tint)); color: var(--violet); }
.result-cat--interview-prep,
.result-cat--interview-preparation { background: var(--teal-tint);  color: var(--teal);   }

.result-read-time,
.result-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.result-read-time::before { content: '·'; margin-right: 10px; color: var(--line); }

/* Title */
.result-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.result-title a { color: var(--ink); transition: color .15s; }
.result-title a:hover { color: var(--blue); }

/* Excerpt with highlighted keywords */
.result-excerpt {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}
.result-excerpt mark {
  background: #FFF3B0;
  color: var(--ink);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

/* Footer: tags + read CTA */
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.result-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  transition: gap .15s;
}
.result-read-btn:hover { gap: 10px; color: var(--blue-deep); }

/* ── Pagination ── */
.search-pagination { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-family: var(--mono);
  color: var(--ink-soft);
  margin: 0 3px;
  transition: background .15s, color .15s, border-color .15s;
}
.search-pagination .page-numbers:hover { background: var(--line-soft); color: var(--ink); }
.search-pagination .page-numbers.current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.search-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.search-pagination ul li { display: inline; }

/* ── No results ── */
.no-results {
  text-align: center;
  padding: 64px 32px;
}
.no-results-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--ink-soft);
}
.no-results h2 { font-size: 22px; margin-bottom: 10px; }
.no-results > p { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.no-results-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.no-results-cat-link {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: border-color .15s, color .15s;
}
.no-results-cat-link:hover { border-color: var(--blue); color: var(--blue); }
.no-results-cat-link span { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 4px; }

/* ── Sidebar ── */
.search-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.search-side-box {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}
.side-box-title {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 18px;
}

/* Popular posts */
.side-popular-list { display: flex; flex-direction: column; gap: 14px; }
.side-popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: opacity .15s;
}
.side-popular-item:hover { opacity: .75; }
.side-pop-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--line);
  flex-shrink: 0;
  line-height: 1.4;
}
.side-pop-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
}
.side-pop-meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* Categories */
.side-cat-list { display: flex; flex-direction: column; gap: 10px; }
.side-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .15s;
}
.side-cat-item:last-child { border-bottom: none; }
.side-cat-item:hover { color: var(--blue); }
.side-cat-name { font-weight: 500; }
.side-cat-count {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--line-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Tag cloud */
.side-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }

/* Newsletter CTA box */
.search-side-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.side-cta-icon { font-size: 28px; margin-bottom: 10px; }
.search-side-cta h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.search-side-cta p  { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.side-cta-btn {
  display: block;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.side-cta-btn:hover { background: var(--blue-deep); }

/* Resource box */
.search-side-resource {
  background: linear-gradient(135deg, var(--blue-tint), var(--violet-tint));
}
.side-resource-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}
.search-side-resource h3 { font-size: 16px; margin-bottom: 8px; }
.search-side-resource p  { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.side-resource-btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.side-resource-btn:hover { background: var(--blue-deep); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-sidebar { position: static; }
}
@media (max-width: 640px) {
  .search-page-header-inner { flex-direction: column; align-items: flex-start; }
  .search-refine-wrap { min-width: 0; width: 100%; }
  .result-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FOOTER WIDGET AREAS
   Widgets placed in footer columns inherit the same dark-theme
   styling as the static fallback content.
   ============================================================ */

/* Widget wrapper — no extra spacing vs the static columns */
.footer-col-wrap .footer-widget { margin: 0; padding: 0; }

/* Widget title → matches <h5> styling of static columns */
.footer-col-wrap .footer-widget h5,
.footer-col-wrap .footer-widget .widget-title {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
  font-weight: 500;
}

/* Standard WP widget lists (Recent Posts, Pages, Categories, Archives) */
.footer-col-wrap .footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-wrap .footer-widget ul li { margin: 0; padding: 0; }
.footer-col-wrap .footer-widget ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col-wrap .footer-widget ul li a:hover { color: #fff; }

/* Post counts shown by WP's Categories / Archives widgets */
.footer-col-wrap .footer-widget ul li .post-count {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-left: 5px;
}

/* Text / HTML widget body text */
.footer-col-wrap .footer-widget p {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin: 0 0 12px;
}
.footer-col-wrap .footer-widget p:last-child { margin-bottom: 0; }

/* Links inside text/HTML widgets */
.footer-col-wrap .footer-widget a {
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col-wrap .footer-widget a:hover { color: #fff; }

/* Search widget input */
.footer-col-wrap .footer-widget .search-form {
  display: flex;
  gap: 6px;
}
.footer-col-wrap .footer-widget .search-field {
  flex: 1;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  font-family: var(--body);
  outline: none;
}
.footer-col-wrap .footer-widget .search-field::placeholder { color: rgba(255,255,255,.35); }
.footer-col-wrap .footer-widget .search-field:focus { border-color: rgba(255,255,255,.35); }
.footer-col-wrap .footer-widget .search-submit {
  padding: 8px 13px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--body);
}
.footer-col-wrap .footer-widget .search-submit:hover { background: rgba(255,255,255,.2); }

/* Tag cloud widget */
.footer-col-wrap .footer-widget .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.footer-col-wrap .footer-widget .tagcloud a {
  font-family: var(--mono);
  font-size: 11px !important; /* override WP inline font-size */
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  transition: border-color .15s, color .15s;
}
.footer-col-wrap .footer-widget .tagcloud a:hover {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* Recent Comments widget */
.footer-col-wrap .footer-widget .recentcomments { font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */
@media (max-width: 900px) {

  /* Hide nav by default on mobile */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 199;
    background: var(--paper-raised);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 8px 24px rgba(21,22,30,.10);
    padding: 8px 0 16px;
  }

  /* Show when JS adds .is-open */
  .main-nav.is-open { display: block; }

  /* Stack links vertically */
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    transition: background .15s;
  }

  .main-nav ul li:last-child > a { border-bottom: none; }
  .main-nav ul li a:hover        { background: var(--line-soft); color: var(--blue); }

  /* Warm palette override on category pages */
  body.category .main-nav {
    background: #FFFEFB;
    border-bottom-color: #DDD4C4;
  }
  body.category .main-nav ul li a         { color: #211D18; border-bottom-color: #E9E2D4; }
  body.category .main-nav ul li a:hover   { background: #F6F2EA; color: #2E5640; }
}

/* ============================================================
   MOBILE HEADER — OVERFLOW FIX
   ============================================================ */

/* Prevent the page from scrolling wider than the viewport */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 900px) {
  /* header-inner already gets .wrap padding (0 32px) —
     tighten it on mobile so items don't push outside */
  .header-inner {
    padding: 0 16px;
    gap: 8px;
  }

  /* Logo: allow it to shrink so it doesn't crowd other items */
  .site-logo {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Keep header-actions (search + CTA + hamburger) together,
     never wrap or shrink below their natural size */
  .header-actions {
    flex-shrink: 0;
    gap: 8px;
    white-space: nowrap;
  }

  /* Custom logo image — cap its height on mobile */
  .custom-logo { height: 32px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 12px; gap: 6px; }
  /* Shorten CTA label on very small screens to save space */
  .header-cta { padding: 8px 12px; font-size: 12px; }
}

/* ============================================================
   MOBILE HORIZONTAL SCROLL — ROOT FIX
   Absolutely-positioned decorative elements (hero glow,
   newsletter glows, popular card glow) overflow their
   containers on narrow viewports. Clip them at source.
   ============================================================ */

/* Hero glow orb */
.hero { overflow: hidden; }

/* Popular main card glow */
.popular-main { overflow: hidden; }

/* Newsletter section glows */
.newsletter-section { overflow: hidden; }

/* Search page header refine form — remove fixed min-width on mobile */
@media (max-width: 640px) {
  .search-refine-wrap { min-width: 0; width: 100%; }
  .search-page-header-inner { flex-direction: column; align-items: flex-start; }
}

/* Safety net on the wrap itself */
.wrap { box-sizing: border-box; }
