:root {
  --bg:         #ffffff;
  --bg-alt:     #f4f6f9;
  --bg-card:    #ffffff;
  --blue:       #1a6ff0;
  --blue-dim:   #155dc9;
  --blue-light: rgba(26,111,240,0.08);
  --ink:        #1a1a2e;
  --ink-mid:    #3d3d5c;
  --muted:      #6b7280;
  --border:     #e2e6ed;
  --font-head:  'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: 1080px; margin: 0 auto; }
.nav-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links > li > a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.2px; transition: color 0.2s; padding: 8px 12px; border-radius: 8px; display: block; }
.nav-links > li > a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-cta { background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.3px; padding: 10px 22px; border-radius: 100px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.nav-cta:hover { background: var(--blue-dim); transform: translateY(-1px); }
.services-li { position: relative; }
.services-trigger { color: var(--muted); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.2px; transition: color 0.2s; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: none; font-family: var(--font-body); outline: none; }
.services-trigger:hover, .services-li:hover .services-trigger { color: var(--ink); background: var(--bg-alt); }
.services-chevron { width: 14px; height: 14px; transition: transform 0.25s ease; opacity: 0.5; flex-shrink: 0; }
.services-li:hover .services-chevron { transform: rotate(180deg); opacity: 1; }
.services-dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06); padding: 8px; min-width: 300px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 200; }
.services-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.services-li:hover .services-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.resources-li { position: relative; }
.resources-trigger { color: var(--muted); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.2px; transition: color 0.2s; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: none; font-family: var(--font-body); outline: none; }
.resources-trigger:hover, .resources-li:hover .resources-trigger { color: var(--ink); background: var(--bg-alt); }
.resources-chevron { width: 14px; height: 14px; transition: transform 0.25s ease; opacity: 0.5; flex-shrink: 0; }
.resources-li:hover .resources-chevron { transform: rotate(180deg); opacity: 1; }
.resources-dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06); padding: 8px; min-width: 300px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 200; }
.resources-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.resources-li:hover .resources-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background 0.15s; }
.dropdown-item:hover { background: var(--blue-light); }
.dropdown-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: background 0.15s; }
.dropdown-item:hover .dropdown-icon { background: rgba(26,111,240,0.16); }
.dropdown-title { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.2px; display: block; }
.dropdown-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 8px; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 8px; transition: background 0.2s; }
.hamburger:hover { background: var(--bg-alt); }
.hamburger:focus { outline: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { position: sticky; top: 69px; z-index: 99; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); overflow: hidden; max-height: 0; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); display: none; }
.mobile-panel.open { max-height: 900px; }
.mobile-panel-inner { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 2px; }
.mobile-panel-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 8px 12px 6px; }
.mobile-service-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background 0.15s; }
.mobile-service-item:hover { background: var(--blue-light); }
.mobile-service-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.mobile-service-title { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.mobile-panel-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.mobile-panel-link { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; color: var(--ink); text-decoration: none; padding: 11px 12px; border-radius: 10px; transition: background 0.15s, color 0.15s; }
.mobile-panel-link:hover { background: var(--bg-alt); color: var(--blue); }
.mobile-panel-cta { display: block; margin-top: 12px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; padding: 13px 20px; border-radius: 100px; text-align: center; text-decoration: none; box-shadow: 0 4px 16px rgba(26,111,240,0.3); transition: background 0.2s; }
.mobile-panel-cta:hover { background: var(--blue-dim); }

/* ── POST HERO ── */
.post-hero {
  padding: 64px 0 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--border); }

.post-tag { display: inline-block; background: var(--blue-light); border: 1px solid rgba(26,111,240,0.2); color: var(--blue); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 20px; }

.post-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1px; color: var(--ink);
  max-width: 760px; margin-bottom: 24px;
}
.post-hero-intro {
  color: var(--muted); font-size: 1.1rem;
  max-width: 680px; margin-bottom: 0; line-height: 1.7;
}
.post-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.post-hero-author { display: flex; align-items: center; gap: 12px; }
.post-hero-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.post-hero-author-name { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--ink); display: block; }
.post-hero-author-role { font-size: 0.78rem; color: var(--muted); display: block; }
.post-meta-divider { width: 1px; height: 28px; background: var(--border); }
.post-hero-meta-item { font-size: 0.82rem; color: var(--muted); }
.post-hero-meta-item strong { color: var(--ink); font-weight: 600; display: block; font-size: 0.78rem; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 3px; }

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 69px; left: 0; right: 0;
  height: 3px; background: var(--border); z-index: 90;
}
.reading-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), #4da3ff);
  width: 0%; transition: width 0.1s linear;
}

/* ── ARTICLE LAYOUT ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  padding: 64px 0 96px;
  align-items: start;
}

/* ── ARTICLE BODY ── */
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.65rem; font-weight: 800;
  letter-spacing: -0.6px; line-height: 1.22;
  color: var(--ink);
  margin: 52px 0 18px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  color: var(--ink); margin: 36px 0 12px;
  scroll-margin-top: 100px;
}
.article-body p {
  color: var(--muted); font-size: 1.02rem;
  margin-bottom: 20px; line-height: 1.78;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { text-decoration: none; }

.article-body ul, .article-body ol {
  margin: 0 0 24px 0; padding-left: 0;
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.article-body ul li, .article-body ol li {
  color: var(--muted); font-size: 1rem;
  padding-left: 26px; position: relative; line-height: 1.68;
}
.article-body ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-size: 0.85rem; }
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before { content: counter(ol-counter); position: absolute; left: 0; color: var(--blue); font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; }
.article-body li strong { color: var(--ink); font-weight: 600; }

/* Callouts */
.callout {
  border-radius: 12px; padding: 24px 28px; margin: 32px 0;
}
.callout-insight { background: var(--blue-light); border-left: 3px solid var(--blue); }
.callout-insight-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.callout-insight p { color: var(--ink-mid) !important; font-size: 0.95rem !important; margin: 0 !important; font-style: italic; }
.callout-lesson { background: #fffbf0; border-left: 3px solid #f59e0b; }
.callout-lesson-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #b45309; margin-bottom: 10px; }
.callout-lesson p { color: #78350f !important; font-size: 0.95rem !important; margin: 0 !important; }
.callout-dark { background: var(--ink); border-radius: 14px; padding: 36px 40px; margin: 40px 0; }
.callout-dark p { color: rgba(255,255,255,0.75) !important; font-size: 1rem !important; }
.callout-dark strong { color: #fff !important; }
.callout-stat { background: var(--blue-light); border: 1px solid rgba(26,111,240,0.15); border-radius: 12px; padding: 28px; margin: 32px 0; text-align: center; }
.callout-stat-num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--blue); letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.callout-stat p { color: var(--muted) !important; font-size: 0.9rem !important; margin: 0 !important; }

/* Article divider */
.article-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* Inline stats */
.stat-inline { display: flex; gap: 16px; margin: 32px 0; flex-wrap: wrap; }
.stat-inline-item { flex: 1; min-width: 140px; background: var(--blue-light); border: 1px solid rgba(26,111,240,0.15); border-radius: 12px; padding: 22px 20px; text-align: center; }
.stat-inline-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue); letter-spacing: -1.2px; line-height: 1; margin-bottom: 8px; }
.stat-inline-label { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* Screenshot placeholder */
.screenshot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 32px 0;
}
.screenshot img { width: 100%; display: block; }
.screenshot figcaption { font-size: 0.8rem; color: var(--muted); padding: 10px 16px; text-align: center; border-top: 1px solid var(--border); }

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin: 32px 0; font-size: 0.92rem;
}
.compare-table th {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: 14px 20px; text-align: left;
}
.compare-table th:first-child { border-radius: 10px 0 0 0; }
.compare-table th:last-child { border-radius: 0 10px 0 0; }
.compare-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg-alt); }
.compare-table td strong { color: var(--ink); font-weight: 600; }
.compare-table .good { color: #16a34a; font-weight: 600; }
.compare-table .bad { color: #dc2626; font-weight: 600; }

/* Post-article CTA */
.post-cta {
  background: var(--ink); border-radius: 16px;
  padding: 48px 44px; text-align: center;
  margin-top: 56px;
  position: relative; overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse at center, rgba(26,111,240,0.3) 0%, transparent 70%);
}
.post-cta-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #4da3ff; margin-bottom: 14px; position: relative; }
.post-cta h3 { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; margin-bottom: 14px; line-height: 1.2; position: relative; }
.post-cta p { color: rgba(255,255,255,0.6); font-size: 0.97rem; max-width: 440px; margin: 0 auto 28px; line-height: 1.65; position: relative; }
.post-cta a { display: inline-block; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; padding: 14px 30px; border-radius: 100px; text-decoration: none; box-shadow: 0 4px 20px rgba(26,111,240,0.4); position: relative; transition: transform 0.15s, box-shadow 0.15s; }
.post-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,111,240,0.5); }

/* Related posts */
.related-posts { margin-top: 64px; }
.related-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); border-color: rgba(26,111,240,0.2); transform: translateY(-2px); }
.related-card-img { height: 120px; background: linear-gradient(135deg, #1a1a2e 0%, #0f1a3a 100%); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.related-card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.related-card-body .post-tag { margin-bottom: 4px; }
.related-card-body h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.related-card-body .post-meta { font-size: 0.77rem; margin-top: auto; padding-top: 10px; display: flex; gap: 10px; }
.post-meta-dot { color: var(--border); }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; }
.sidebar-card-title { font-family: var(--font-head); font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* TOC */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list li a { display: block; font-size: 0.85rem; color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; line-height: 1.4; }
.toc-list li a:hover { background: var(--border); color: var(--ink); }
.toc-list li a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.toc-list li.toc-h3 a { padding-left: 22px; font-size: 0.82rem; }

/* Share */
.share-btns { display: flex; flex-direction: column; gap: 8px; }
.share-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; text-decoration: none; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); color: var(--ink); transition: background 0.15s, border-color 0.15s; cursor: pointer; background: var(--bg); font-family: var(--font-body); width: 100%; }
.share-btn:hover { background: var(--bg-alt); border-color: #c5cdd8; }
.share-btn-icon { font-size: 1rem; }

/* Sidebar CTA */
.sidebar-cta { background: var(--blue); border-radius: 14px; padding: 28px; text-align: center; }
.sidebar-cta-head { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.sidebar-cta p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 18px; line-height: 1.55; }
.sidebar-cta a { display: block; background: #fff; color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; padding: 12px 20px; border-radius: 100px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.sidebar-cta a:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Sidebar newsletter */
.sidebar-newsletter { background: var(--ink); border-radius: 14px; padding: 24px 26px; }
.sidebar-newsletter h3 { font-family: var(--font-head); font-weight: 800; font-size: 0.97rem; color: #fff; margin-bottom: 10px; }
.sidebar-newsletter p { color: rgba(255,255,255,0.6); font-size: 0.83rem; margin-bottom: 16px; }
.sidebar-newsletter input { width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body); font-size: 0.87rem; outline: none; margin-bottom: 10px; }
.sidebar-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.sidebar-newsletter button { width: 100%; padding: 11px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; border: none; border-radius: 100px; cursor: pointer; transition: background 0.2s; }
.sidebar-newsletter button:hover { background: var(--blue-dim); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-panel { display: block; }
  .article-body h2 { font-size: 1.4rem; }
  .post-hero h1 { font-size: 1.7rem; }
  .post-hero-meta { gap: 16px; }
  .post-meta-divider { display: none; }
  .post-cta { padding: 36px 24px; }
  .stat-inline { flex-direction: column; }
}
/* ── BLOG HERO ── */
.blog-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(26,111,240,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid rgba(26,111,240,0.2);
  color: var(--blue); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 22px;
}
.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.14;
  letter-spacing: -1.2px; color: var(--ink);
  max-width: 640px; margin-bottom: 18px;
}
.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), #4da3ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.blog-hero p {
  color: var(--muted); font-size: 1.05rem;
  max-width: 520px; margin-bottom: 36px;
}

/* ── CATEGORY FILTER BAR ── */
.category-bar {
  padding: 0 0 0;
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.cat-pill {
  display: inline-block;
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
  transition: all 0.2s;
  font-family: var(--font-head);
  letter-spacing: 0.1px;
}
.cat-pill:hover { border-color: rgba(26,111,240,0.4); color: var(--blue); background: var(--blue-light); }
.cat-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── FEATURED POST ── */
.featured-section { padding: 56px 0 0; }
.featured-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 24px;
}
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
  text-decoration: none; color: inherit;
  background: var(--bg-card);
}
.featured-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); border-color: rgba(26,111,240,0.25); }
.featured-card-img {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f1a3a 100%);
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.featured-card-img-placeholder {
  font-size: 4rem; opacity: 0.3;
}
.featured-card-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; top: 0;
  background: linear-gradient(135deg, rgba(26,111,240,0.3) 0%, transparent 60%);
}
.featured-card-body {
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.post-tag {
  display: inline-block;
  background: var(--blue-light); border: 1px solid rgba(26,111,240,0.2);
  color: var(--blue); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 18px;
}
.featured-card-body h2 {
  font-family: var(--font-head); font-size: 1.65rem;
  font-weight: 800; line-height: 1.2; letter-spacing: -0.6px;
  color: var(--ink); margin-bottom: 16px;
}
.featured-card-body p {
  color: var(--muted); font-size: 0.97rem;
  line-height: 1.7; margin-bottom: 28px;
}
.post-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.8rem; color: var(--muted);
}
.post-meta-dot { color: var(--border); }
.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-family: var(--font-head);
  font-weight: 700; font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.read-more:hover { gap: 12px; }

/* ── POSTS GRID ── */
.posts-section { padding: 56px 0 96px; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: rgba(26,111,240,0.2);
  transform: translateY(-3px);
}
.post-card-img {
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f1a3a 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: 1;
}
.post-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,111,240,0.2) 0%, transparent 70%);
}
.post-card-body {
  padding: 24px 26px 28px;
  display: flex; flex-direction: column; flex: 1;
}
.post-card-body .post-tag { margin-bottom: 14px; }
.post-card-body h3 {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; line-height: 1.3; letter-spacing: -0.3px;
  color: var(--ink); margin-bottom: 12px;
}
.post-card-body p {
  color: var(--muted); font-size: 0.88rem;
  line-height: 1.65; margin-bottom: 0; flex: 1;
}
.post-card-footer {
  padding: 16px 26px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.post-card-footer .post-meta { font-size: 0.77rem; }
.post-card-arrow {
  color: var(--blue); font-size: 1.1rem;
  transition: transform 0.2s;
}
.post-card:hover .post-card-arrow { transform: translateX(4px); }

/* ── SIDEBAR-STYLE NEWSLETTER ── */
.newsletter-inline {
  background: var(--ink);
  border-radius: 16px; padding: 40px 36px;
  text-align: center; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.newsletter-inline::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse at center, rgba(26,111,240,0.35) 0%, transparent 70%);
}
.newsletter-inline h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: #fff; margin-bottom: 10px; position: relative;
}
.newsletter-inline p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 20px; position: relative; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; position: relative; }
.newsletter-form input {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; background: rgba(255,255,255,0.08);
  color: #fff; font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: rgba(26,111,240,0.6); }
.newsletter-form button {
  width: 100%; padding: 12px 20px;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
  border: none; border-radius: 100px; cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--blue-dim); }

/* ── PAGINATION ── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding-top: 56px;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.page-btn:hover { border-color: rgba(26,111,240,0.4); color: var(--blue); background: var(--blue-light); }
.page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-btn-wide {
  width: auto; padding: 0 16px;
}

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.55s ease forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-img { min-height: 220px; }
}
@media (max-width: 680px) {
  .posts-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-panel { display: block; }
}
/* ── CATEGORY HERO ── */
.cat-hero {
  padding: 64px 0 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--border); }

.cat-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid rgba(26,111,240,0.2);
  color: var(--blue); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
}
.cat-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1px; color: var(--ink);
  max-width: 680px; margin-bottom: 16px;
}
.cat-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), #4da3ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.cat-hero p {
  color: var(--muted); font-size: 1.02rem;
  max-width: 560px; margin-bottom: 0;
}

/* Category filter bar */
.category-bar {
  margin-top: 36px; padding-bottom: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cat-pill { display: inline-block; padding: 7px 18px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--muted); background: var(--bg); transition: all 0.2s; font-family: var(--font-head); letter-spacing: 0.1px; }
.cat-pill:hover { border-color: rgba(26,111,240,0.4); color: var(--blue); background: var(--blue-light); }
.cat-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── CATEGORY STATS BAR ── */
.cat-stats {
  display: flex; gap: 40px; align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.cat-stat-item { display: flex; align-items: center; gap: 10px; }
.cat-stat-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.4rem; color: var(--blue); letter-spacing: -0.5px;
}
.cat-stat-label { font-size: 0.83rem; color: var(--muted); }
.cat-stat-divider { width: 1px; height: 28px; background: var(--border); }

/* ── PAGE LAYOUT ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  padding: 56px 0 96px;
  align-items: start;
}

/* ── POST LIST (category layout) ── */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 24px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background 0.15s;
  border-radius: 0;
  position: relative;
}
.post-list-item:first-child { border-top: 1px solid var(--border); }
.post-list-item:hover { background: var(--bg-alt); margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-radius: 10px; }

.post-list-item-num {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 800;
  color: rgba(26,111,240,0.12); line-height: 1;
  text-align: center; letter-spacing: -1px;
  transition: color 0.2s;
}
.post-list-item:hover .post-list-item-num { color: rgba(26,111,240,0.25); }

.post-list-item-content { display: flex; flex-direction: column; gap: 8px; }
.post-tag { display: inline-block; background: var(--blue-light); border: 1px solid rgba(26,111,240,0.2); color: var(--blue); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; }
.post-list-item h2 {
  font-family: var(--font-head); font-size: 1.08rem;
  font-weight: 700; line-height: 1.3; letter-spacing: -0.3px;
  color: var(--ink);
  transition: color 0.15s;
}
.post-list-item:hover h2 { color: var(--blue); }
.post-list-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--muted); }
.post-meta-dot { color: var(--border); }
.read-arrow { color: var(--blue); font-size: 1rem; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 26px;
}
.sidebar-card-title {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}

/* Categories list in sidebar */
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px;
  text-decoration: none; color: var(--muted);
  font-size: 0.88rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.sidebar-cat-link:hover { background: var(--border); color: var(--ink); }
.sidebar-cat-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.sidebar-cat-count { font-size: 0.75rem; background: var(--border); color: var(--muted); padding: 2px 8px; border-radius: 100px; font-family: var(--font-head); font-weight: 700; }
.sidebar-cat-link.active .sidebar-cat-count { background: rgba(26,111,240,0.15); color: var(--blue); }

/* Top posts sidebar */
.sidebar-post { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post h4 { font-family: var(--font-head); font-size: 0.87rem; font-weight: 700; color: var(--ink); line-height: 1.35; transition: color 0.15s; }
.sidebar-post:hover h4 { color: var(--blue); }
.sidebar-post span { font-size: 0.77rem; color: var(--muted); }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--blue); border-radius: 14px;
  padding: 28px; text-align: center;
}
.sidebar-cta-head { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.sidebar-cta p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 18px; line-height: 1.55; }
.sidebar-cta a { display: block; background: #fff; color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; padding: 12px 20px; border-radius: 100px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.sidebar-cta a:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Newsletter sidebar */
.sidebar-newsletter { background: var(--ink); border-radius: 14px; padding: 24px 26px; }
.sidebar-newsletter h3 { font-family: var(--font-head); font-weight: 800; font-size: 0.97rem; color: #fff; margin-bottom: 10px; }
.sidebar-newsletter p { color: rgba(255,255,255,0.6); font-size: 0.83rem; margin-bottom: 16px; }
.sidebar-newsletter input { width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body); font-size: 0.87rem; outline: none; margin-bottom: 10px; }
.sidebar-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.sidebar-newsletter button { width: 100%; padding: 11px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; border: none; border-radius: 100px; cursor: pointer; transition: background 0.2s; }
.sidebar-newsletter button:hover { background: var(--blue-dim); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: flex-start; align-items: center; gap: 8px; padding-top: 40px; }
.page-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; text-decoration: none; color: var(--muted); border: 1px solid var(--border); transition: all 0.2s; }
.page-btn:hover { border-color: rgba(26,111,240,0.4); color: var(--blue); background: var(--blue-light); }
.page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-btn-wide { width: auto; padding: 0 16px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { position: static; }
}
@media (max-width: 680px) {
  .post-list-item { grid-template-columns: 56px 1fr; gap: 16px; }
  .post-list-item-num { font-size: 1.8rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-panel { display: block; }
  .cat-stats { flex-wrap: wrap; gap: 20px; }
  .cat-stat-divider { display: none; }
}

/* WP: featured images */
.post-card-img img,
.featured-card-img img,
.related-card-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.post-card-img,
.featured-card-img,
.related-card-img { position: relative; }
.post-card-img .emoji-fallback,
.featured-card-img .emoji-fallback,
.related-card-img .emoji-fallback { position: absolute; z-index: 0; font-size: inherit; opacity: 0.4; }
