/* ================================================================
   DAiP Theme — main.css
   discoveraiproducts.com
   ================================================================ */

/* ── RESET & VARIABLES ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --yellow:      #F5C518;
  --yellow-dark: #D4A800;
  --yellow-dim:  rgba(245,197,24,0.10);
  --yellow-bd:   rgba(245,197,24,0.25);
  --black:       #0a0a0a;
  --white:       #ffffff;
  --off-white:   #f7f7f5;
  --gray-100:    #f2f2f0;
  --gray-200:    #e4e4e0;
  --gray-300:    #ccccca;
  --gray-400:    #adadaa;
  --gray-600:    #666664;
  --gray-800:    #222220;
  --border:      1px solid var(--gray-200);
  --heading:     'Bree Serif', Georgia, serif;
  --body:        'Poppins', sans-serif;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
}

body {
  font-family: var(--body);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* ── PROGRESS BAR ─────────────────────────────────────────────── */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--yellow); width: 0%; z-index: 999; transition: width 0.1s; pointer-events: none; }

/* ── NAV ──────────────────────────────────────────────────────── */
nav { background: var(--black); border-bottom: 1px solid #1e1e1e; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--heading); font-size: 1.375rem; color: var(--white); letter-spacing: 0.01em; }
.logo span { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { background: var(--yellow) !important; color: var(--black) !important; padding: 0.45rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; transition: opacity 0.2s !important; }
.nav-cta:hover { opacity: 0.85; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.6); border-radius: 2px; transition: all 0.2s; }

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb { padding: 1.125rem 0; border-bottom: var(--border); background: var(--white); }
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--gray-400); }
.breadcrumb-inner a:hover { color: var(--black); }
.breadcrumb-inner span { color: var(--gray-200); }

/* ── HERO (Homepage) ──────────────────────────────────────────── */
.hero { background: var(--white); padding: 5rem 0 4.5rem; border-bottom: var(--border); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 700px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--yellow-dim); border: 1px solid var(--yellow-bd); color: var(--yellow-dark); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 1.5rem; }
.badge-dot { width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.4);} }
.hero h1 { font-family: var(--heading); font-size: clamp(2.25rem, 4.5vw, 3.5rem); color: var(--black); line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--yellow-dark); }
.hero-sub { font-size: 1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 2rem; max-width: 520px; }
.hero-search { display: flex; background: var(--off-white); border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--gray-200); transition: border-color 0.2s; margin-bottom: 1.25rem; width: 100%; max-width: 560px; }
.hero-search:focus-within { border-color: var(--yellow); }
.hero-search input { flex: 1; border: none; outline: none; padding: 0.875rem 1.25rem; font-family: var(--body); font-size: 0.9375rem; color: var(--black); background: transparent; }
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search button { background: var(--black); color: var(--white); border: none; padding: 0 1.5rem; font-family: var(--body); font-size: 0.875rem; font-weight: 600; transition: background 0.2s; }
.hero-search button:hover { background: #222; }
.hero-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.h-tag { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); background: var(--gray-100); border: var(--border); border-radius: 999px; padding: 3px 10px; transition: all 0.15s; }
.h-tag:hover { color: var(--yellow-dark); background: var(--yellow-dim); border-color: var(--yellow-bd); }

/* ── STATS STRIP ──────────────────────────────────────────────── */
.stats-strip { background: var(--yellow); padding: 1.125rem 0; }
.stats-inner { display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap; }
.s-item { text-align: center; }
.s-num { font-family: var(--heading); font-size: 1.375rem; color: var(--black); line-height: 1; }
.s-lbl { font-size: 0.6875rem; font-weight: 600; color: rgba(0,0,0,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ── SECTIONS ─────────────────────────────────────────────────── */
.section { padding: 4rem 0; border-bottom: var(--border); }
.sec-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.sec-title { font-family: var(--heading); font-size: 1.5rem; color: var(--black); }
.sec-link { font-size: 0.8125rem; font-weight: 500; color: var(--yellow-dark); border-bottom: 1px solid var(--yellow-bd); padding-bottom: 1px; }
.sec-link:hover { border-color: var(--yellow-dark); }

/* ── CATEGORY GRID ────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat-card { border: var(--border); border-radius: var(--r-lg); padding: 1.25rem; background: var(--white); cursor: pointer; transition: all 0.2s; display: block; }
.cat-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 6px 24px rgba(245,197,24,0.08); }
.cat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.875rem; }
.cat-icon { width: 48px; height: 48px; background: var(--yellow-dim); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.375rem; border: 1px solid var(--yellow-bd); }
.cat-badge { font-size: 0.6875rem; font-weight: 700; background: var(--yellow-dim); color: var(--yellow-dark); border: 1px solid var(--yellow-bd); padding: 3px 9px; border-radius: 999px; }
.cat-name { font-family: var(--heading); font-size: 0.9375rem; color: var(--black); margin-bottom: 3px; }
.cat-desc { font-size: 0.75rem; color: var(--gray-400); }

/* ── TOOL CARDS ───────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tool-card { background: var(--white); border: var(--border); border-radius: var(--r-lg); padding: 1.25rem; transition: all 0.2s; display: block; }
.tool-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 6px 24px rgba(245,197,24,0.07); }
.tool-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tool-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--yellow-dim); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; overflow: hidden; }
.tool-icon img { width: 100%; height: 100%; object-fit: cover; }
.tool-name { font-family: var(--heading); font-size: 0.9375rem; color: var(--black); }
.tool-tagline { font-size: 0.6875rem; color: var(--gray-400); margin-top: 1px; }
.tool-desc { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; }
.t-badge { font-size: 0.6875rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.tb-free     { background: #0d2b1a; color: #4ade80; }
.tb-freemium { background: #1a1f2e; color: #60a5fa; }
.tb-paid     { background: #1f1a0a; color: var(--yellow); }
.tool-rating { font-size: 0.75rem; font-weight: 700; color: var(--yellow-dark); }

/* ── BLOG LISTING (homepage) ──────────────────────────────────── */
.listing-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.375rem 0; border-bottom: var(--border); gap: 2rem; }
.listing-row:last-child { border-bottom: none; }
.listing-row:hover .listing-title { color: var(--yellow-dark); }
.listing-left { flex: 1; }
.listing-cat { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 4px; }
.listing-title { font-family: var(--heading); font-size: 1.125rem; color: var(--black); line-height: 1.35; margin-bottom: 4px; transition: color 0.2s; }
.listing-title a { color: inherit; }
.listing-excerpt { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }
.listing-meta { font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; }
.listing-num { font-family: var(--heading); font-size: 2rem; color: var(--gray-200); min-width: 2.5rem; text-align: right; line-height: 1; padding-top: 4px; }

/* ── ABOUT SECTION ────────────────────────────────────────────── */
.about-section { padding: 5rem 0; border-bottom: var(--border); }
.about-inner { display: grid; grid-template-columns: auto 1fr; gap: 4rem; align-items: start; }
.about-left { text-align: center; }
.about-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--yellow-dim); border: 2px solid var(--yellow-bd); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-size: 2rem; color: var(--yellow-dark); margin: 0 auto 0.875rem; }
.about-name { font-family: var(--heading); font-size: 1rem; color: var(--black); }
.about-role { font-size: 0.8125rem; color: var(--gray-400); margin-top: 2px; }
.about-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 1rem; }
.about-h2 { font-family: var(--heading); font-size: 2rem; color: var(--black); line-height: 1.2; margin-bottom: 1rem; }
.about-body { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.85; }
.about-body p { margin-bottom: 1rem; }
.about-cta-list { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.about-cta-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; color: var(--gray-600); }
.list-arrow { color: var(--yellow-dark); font-weight: 600; flex-shrink: 0; }
.about-cta-list a { color: var(--yellow-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ── POSTS GRID (archive/blog) ────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.post-card { background: var(--white); border: var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all 0.2s; display: block; }
.post-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 6px 24px rgba(245,197,24,0.07); }
.card-img { height: 168px; background: var(--gray-100); border-bottom: var(--border); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-cat { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 0.5rem; }
.card-title { font-family: var(--heading); font-size: 1.0625rem; color: var(--black); line-height: 1.35; margin-bottom: 0.5rem; }
.card-excerpt { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 0.875rem; }
.card-meta { font-size: 0.75rem; color: var(--gray-400); display: flex; gap: 0.5rem; align-items: center; }
.card-meta-dot { width: 2px; height: 2px; border-radius: 50%; background: var(--gray-300); }

/* ── ARTICLE TEMPLATE ─────────────────────────────────────────── */
.article-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 4rem; padding: 3rem 0 5rem; align-items: start; }
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: var(--border); }
.art-cat { display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-dark); background: var(--yellow-dim); border: 1px solid var(--yellow-bd); padding: 3px 10px; border-radius: 999px; margin-bottom: 1rem; }
.art-title { font-family: var(--heading); font-size: clamp(1.875rem, 4vw, 2.875rem); color: var(--black); line-height: 1.15; margin-bottom: 1rem; }
.art-subtitle { font-size: 1.125rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 1.5rem; }
.art-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.author-row { display: flex; align-items: center; gap: 0.625rem; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow-dim); border: 1px solid var(--yellow-bd); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-size: 0.875rem; color: var(--yellow-dark); }
.author-name { font-size: 0.875rem; font-weight: 500; color: var(--black); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); }
.meta-item { font-size: 0.8125rem; color: var(--gray-400); }
.hero-img { width: 100%; height: 340px; background: var(--gray-100); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; border: var(--border); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-800); }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-family: var(--heading); font-size: 1.625rem; color: var(--black); margin: 2.5rem 0 1rem; line-height: 1.25; }
.article-body h3 { font-family: var(--heading); font-size: 1.25rem; color: var(--black); margin: 2rem 0 0.75rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.75; }
.article-body strong { font-weight: 600; color: var(--black); }
.article-body a { color: var(--yellow-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--yellow); padding: 0.75rem 0 0.75rem 1.5rem; margin: 2rem 0; }
.article-body blockquote p { font-family: var(--heading); font-size: 1.25rem; color: var(--black); line-height: 1.45; margin: 0; }
.article-body hr { border: none; border-top: var(--border); margin: 2.5rem 0; }
.article-body img { border-radius: var(--r-md); margin: 1.5rem 0; }
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: var(--border); }
.tag { font-size: 0.8125rem; font-weight: 500; color: var(--gray-600); background: var(--gray-100); border: var(--border); border-radius: 999px; padding: 0.35rem 0.875rem; transition: all 0.15s; }
.tag:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* AUTHOR BIO */
.author-bio { margin-top: 2.5rem; padding: 1.75rem; background: var(--gray-100); border-radius: var(--r-lg); display: flex; gap: 1.25rem; align-items: flex-start; border: var(--border); }
.author-bio-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow-dim); border: 2px solid var(--yellow-bd); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-size: 1.375rem; color: var(--yellow-dark); flex-shrink: 0; }
.author-bio-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 3px; }
.author-bio-name { font-family: var(--heading); font-size: 1.1rem; color: var(--black); margin-bottom: 2px; }
.author-bio-role { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: 8px; }
.author-bio-text { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 0.75rem; }
.author-bio-links { display: flex; gap: 0.75rem; }
.author-bio-link { font-size: 0.8125rem; font-weight: 500; color: var(--yellow-dark); border-bottom: 1px solid var(--yellow-bd); padding-bottom: 1px; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; }
.toc { border: var(--border); border-radius: var(--r-lg); padding: 1.25rem; background: var(--off-white); margin-bottom: 1.25rem; }
.toc-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 1rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.toc-list a { font-size: 0.8125rem; color: var(--gray-600); transition: color 0.2s; display: block; padding: 0.375rem 0; border-bottom: 1px solid var(--gray-100); }
.toc-list a:hover, .toc-list a.active { color: var(--yellow-dark); font-weight: 500; }
.toc-list li:last-child a { border-bottom: none; }
.sidebar-nl { border-radius: var(--r-lg); padding: 1.25rem; background: var(--black); }
.snl-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 0.5rem; }
.snl-title { font-family: var(--heading); font-size: 1rem; color: var(--white); line-height: 1.35; margin-bottom: 1rem; }
.snl-input { width: 100%; border: 1px solid #333; background: #111; color: var(--white); border-radius: var(--r-sm); padding: 0.7rem 0.875rem; font-family: var(--body); font-size: 0.8125rem; outline: none; margin-bottom: 0.625rem; }
.snl-input::placeholder { color: #555; }
.snl-btn { width: 100%; background: var(--yellow); color: var(--black); border: none; border-radius: var(--r-sm); padding: 0.7rem; font-family: var(--heading); font-size: 0.875rem; font-weight: 600; }

/* RELATED */
.related { padding: 4rem 0; border-top: var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.related-card { background: var(--off-white); border: var(--border); border-radius: var(--r-lg); padding: 1.25rem; transition: all 0.2s; display: block; }
.related-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.rc-cat { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 6px; }
.rc-title { font-family: var(--heading); font-size: 1rem; color: var(--black); line-height: 1.35; margin-bottom: 6px; }
.rc-meta { font-size: 0.75rem; color: var(--gray-400); }

/* ── NEWSLETTER ───────────────────────────────────────────────── */
.newsletter { padding: 4.5rem 0; }
.nl-inner { background: var(--yellow); border-radius: var(--r-xl); padding: 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.nl-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,0,0,0.45); margin-bottom: 0.75rem; }
.nl-headline { font-family: var(--heading); font-size: 2.25rem; color: var(--black); line-height: 1.1; margin-bottom: 0.75rem; }
.nl-sub { font-size: 0.9375rem; color: rgba(0,0,0,0.55); line-height: 1.75; }
.nl-form { display: flex; flex-direction: column; gap: 0.75rem; }
.nl-form input { border: none; background: rgba(0,0,0,0.1); color: var(--black); border-radius: var(--r-sm); padding: 0.875rem 1rem; font-family: var(--body); font-size: 0.875rem; outline: none; transition: background 0.2s; }
.nl-form input::placeholder { color: rgba(0,0,0,0.35); }
.nl-form input:focus { background: rgba(0,0,0,0.15); }
.nl-form button { background: var(--black); color: var(--yellow); border: none; border-radius: var(--r-sm); padding: 0.875rem; font-family: var(--heading); font-size: 0.9375rem; transition: opacity 0.2s; }
.nl-form button:hover { opacity: 0.85; }
.nl-note { font-size: 0.75rem; color: rgba(0,0,0,0.4); margin-top: 4px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer { background: var(--black); padding: 3rem 0 2rem; border-top: 1px solid #1a1a1a; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #1a1a1a; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.8125rem; color: #444; line-height: 1.7; margin-top: 0.75rem; }
.f-social { display: flex; gap: 8px; margin-top: 1.25rem; }
.f-soc { width: 32px; height: 32px; border-radius: 50%; background: #1a1a1a; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #555; transition: all 0.2s; }
.f-soc:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.f-col h3 { font-size: 0.75rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.f-col ul a { font-size: 0.8125rem; color: #444; transition: color 0.2s; }
.f-col ul a:hover { color: var(--yellow); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-logo { font-family: var(--heading); font-size: 1.1rem; color: var(--white); }
.footer-logo span { color: var(--yellow); }
.footer-copy { font-size: 0.75rem; color: #333; }
.fb-links { display: flex; gap: 1.5rem; }
.fb-links a { font-size: 0.75rem; color: #333; transition: color 0.2s; }
.fb-links a:hover { color: var(--yellow); }

/* ── BLOG HERO ────────────────────────────────────────────────── */
.blog-hero { background: var(--white); padding: 3.5rem 0 3rem; border-bottom: var(--border); }
.blog-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 0.75rem; }
.blog-hero h1 { font-family: var(--heading); font-size: clamp(2rem, 4vw, 3rem); color: var(--black); line-height: 1.15; margin-bottom: 0.875rem; }
.hero-sub { font-size: 1rem; color: var(--gray-600); line-height: 1.7; max-width: 520px; }
.hero-stat-num { font-family: var(--heading); font-size: 1.875rem; color: var(--black); line-height: 1; }
.hero-stat-label { font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; }

/* ── PAGINATION ───────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 2.5rem 0; }
.pagination .page-numbers { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: var(--border); border-radius: var(--r-sm); font-size: 0.875rem; color: var(--gray-600); background: var(--white); transition: all 0.15s; }
.pagination .page-numbers:hover, .pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination .prev, .pagination .next { width: auto; padding: 0 1rem; }

/* ── 404 ──────────────────────────────────────────────────────── */
.error-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 5rem 2rem; text-align: center; background: var(--black); }
.error-inner { max-width: 560px; }
.error-num { font-family: var(--heading); font-size: clamp(6rem, 18vw, 10rem); color: var(--yellow); line-height: 1; margin-bottom: 0.5rem; }
.error-title { font-family: var(--heading); font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.error-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.45); line-height: 1.75; margin-bottom: 2.5rem; }
.error-search { display: flex; max-width: 440px; margin: 0 auto 2.5rem; background: #1a1a1a; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid #2e2e2e; }
.error-search:focus-within { border-color: var(--yellow); }
.error-search input { flex: 1; border: none; outline: none; padding: 0.875rem 1.25rem; font-family: var(--body); font-size: 0.9375rem; color: var(--white); background: transparent; }
.error-search input::placeholder { color: #555; }
.error-search button { background: var(--yellow); color: var(--black); border: none; padding: 0 1.25rem; font-family: var(--body); font-size: 0.875rem; font-weight: 600; }
.quick-links { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.ql-btn { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 0.5rem 1.25rem; transition: all 0.2s; }
.ql-btn:hover { color: var(--yellow); background: var(--yellow-dim); border-color: var(--yellow-bd); }

/* ── WORDPRESS CONTENT STYLES ─────────────────────────────────── */
.article-body .wp-block-image { margin: 1.5rem 0; }
.article-body .wp-block-image img { border-radius: var(--r-md); }
.article-body .wp-block-quote { border-left: 3px solid var(--yellow); padding: 0.75rem 0 0.75rem 1.5rem; margin: 2rem 0; }
.article-body .wp-block-quote p { font-family: var(--heading); font-size: 1.25rem; color: var(--black); line-height: 1.45; margin: 0; }
.article-body .wp-block-code { background: var(--gray-100); border-radius: var(--r-md); padding: 1.25rem; font-size: 0.875rem; overflow-x: auto; margin: 1.5rem 0; border: var(--border); }
.article-body .wp-block-table table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body .wp-block-table th { background: var(--gray-100); padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.875rem; border-bottom: 2px solid var(--gray-200); }
.article-body .wp-block-table td { padding: 0.75rem 1rem; border-bottom: var(--border); font-size: 0.875rem; }
.article-body .wp-block-table tr:hover td { background: var(--gray-100); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--black); padding: 1rem 2rem 1.5rem; border-bottom: 1px solid #1e1e1e; gap: 0.875rem; }
  .nav-links.open { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .nl-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-hero-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 2rem; }
}

/* ── TWO-COLUMN PAGE LAYOUT (content left, form right) ───────── */
.page-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0 4rem;
}
.page-split-content h1,
.page-split-content h2 {
  font-family: var(--heading);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--black);
  margin: 1.75rem 0 0.625rem;
}
.page-split-content h1:first-child,
.page-split-content h2:first-child { margin-top: 0; }
.page-split-content p  { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 0.875rem; }
.page-split-content ul { padding-left: 0; list-style: none; margin-bottom: 1rem; }
.page-split-content ul li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}
.page-split-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 0.8rem;
  top: 0.45rem;
}
.page-split-form {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-lg, 16px);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.page-split-form-title {
  font-family: var(--heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: var(--border);
}
@media (max-width: 900px) {
  .page-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0 3rem;
  }
  .page-split-form {
    position: static;
    padding: 1.5rem;
  }
}
