/* ═══════════════════════════════════════════════════════════════
   TopWebPositions SEO Insights Blog — Shared Stylesheet
   Used by: index.html, category/*.html, tag/*.html,
            archive/*.html, posts/*.html
   Upload to: /seo_insights/blog.css
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg-site:       #0a0c12;
  --bg-card:       #0e1119;
  --bg-card2:      #0b0e16;
  --border-subtle: rgba(255,255,255,0.07);
  --border-card:   rgba(255,255,255,0.06);
  --text-primary:  #eef1f7;
  --text-secondary:#aab2c6;
  --text-muted:    #727b91;
  --accent:        #6c8cff;
  --accent-soft:   rgba(108,140,255,0.16);
  --accent-line:   rgba(108,140,255,0.40);
  --accent-2:      #8e7bff;
  --ok:            #3ddc97;
  --grad-main:     linear-gradient(135deg,#6c8cff,#8e7bff,#6fd6ff);
  --grad-text:     linear-gradient(135deg,#8aa2ff 0%,#b79bff 45%,#6fd6ff 100%);
  --font-display:  'Sora','Segoe UI',system-ui,sans-serif;
  --font-body:     'Inter','Segoe UI',system-ui,sans-serif;
  --transition:    all 0.2s ease;
  --radius-card:   14px;
  --radius-pill:   999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-site); color: var(--text-secondary);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  padding-top: 72px;
  background-image:
    radial-gradient(1100px 680px at 16% 8%, rgba(108,140,255,.08), transparent 58%),
    radial-gradient(900px 620px at 88% 92%, rgba(70,200,255,.05), transparent 60%);
  background-attachment: fixed;
}

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── NAVBAR ── */
.blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,12,18,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px; display: flex; align-items: center;
  overflow: visible;
}
.blog-nav .container { width: 100%; }
/* nav-inner: logo left, everything else right — matches main site structure */
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 25px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; flex-shrink: 0; }
.nav-logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg,#5b78ff,#8e6bff);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(108,140,255,.6);
}
.nav-logo .mark i { color: #fff; font-size: 15px; }
.nav-logo-text { font-weight: 700; letter-spacing: -0.02em; }
.nav-logo-text .w1 { color: #ffffff; }
.nav-logo-text .w2 { color: #c6cbd6; }
.nav-logo-text .w3 { color: #9aa1b2; }
/* nav-links takes the right side, exactly like .navlinks on main site */
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); flex-wrap: nowrap; white-space: nowrap; }
.nav-link-item { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-link-item:hover { color: var(--text-primary); }
.nav-link-item.active { color: var(--accent); }
.nav-tools-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-primary); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 9px 18px; border-radius: 9px;
  font-weight: 500; font-size: 14.5px;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-tools-btn:hover { background: rgba(108,140,255,.26); transform: translateY(-1px); }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ── NAV SEARCH ── */
.nav-search-wrap { position: relative; }
.nav-search-wrap .fa-magnifying-glass { color: var(--text-muted); font-size: 13px; flex: 0 0 auto; }
.nav-search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(176,186,209,.3);
  border-radius: 9px; padding: 8px 13px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-search-box:focus-within { border-color: var(--accent-line); background: rgba(108,140,255,0.10); }
.nav-search { background: none; border: 0; outline: 0; color: var(--text-primary); font-family: var(--font-body); font-size: 13.5px; width: 150px; }
.nav-search::placeholder { color: var(--text-muted); }
.nav-search-clear { color: var(--text-muted); font-size: 14px; cursor: pointer; display: none; line-height: 1; padding: 2px 4px; transition: var(--transition); flex: 0 0 auto; }
.nav-search-clear:hover { color: var(--text-primary); }
.nav-search-results { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 360px; background: #0d1020; border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.6); z-index: 1050; max-height: 420px; overflow-y: auto; }
.nav-search-results.open { display: block; }
.nsr-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; transition: var(--transition); }
.nsr-item:last-child { border-bottom: none; }
.nsr-item:hover, .nsr-item.nsr-active { background: var(--accent-soft); }
.nsr-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); flex-shrink: 0; }
.nsr-item:hover .nsr-icon { background: rgba(108,140,255,.28); }
.nsr-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 1px; }
.nsr-cat { font-size: 11px; color: var(--text-muted); }
.nsr-name mark { background: rgba(108,140,255,0.3); color: #a8bfff; border-radius: 2px; padding: 0 2px; font-style: normal; }
.nsr-empty { padding: 16px 14px; font-size: 13px; color: var(--text-muted); text-align: center; }
@media (max-width: 768px) { .nav-search-wrap { display: none; } }

/* ── HERO ── */
.blog-hero {
  background: var(--bg-card2); border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.75rem; position: relative; overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,214,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill); padding: 0.3rem 1rem;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.blog-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.03em;
  color: var(--text-primary); margin-bottom: 1rem; line-height: 1.15;
}
.blog-hero h1 span {
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.blog-hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* breadcrumb */
.blog-breadcrumb { font-family: var(--font-display); font-size: 12px; color: var(--text-muted); margin-bottom: 1rem; }
.blog-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.blog-breadcrumb a:hover { color: var(--accent); }
.blog-breadcrumb span { margin: 0 6px; }

/* ── PAGE BODY ── */
.topband { background: var(--bg-site); }
.blog-page-wrap { padding: 2.5rem 0 3rem; }

/* ── LIGHT BODY (content area below the dark hero) ── */
.blog-light-body {
  background: #f4f6fa; color: #1a2233; padding-bottom: 10px;
}
.blog-light-body .blog-page-wrap { background: #f4f6fa; }

/* Light body text overrides */
.blog-light-body .section-label { color: #727b91; }
.blog-light-body .section-label::after { background: #d8dce6; }

/* Light body cards */
.blog-light-body .post-card { background: #fff; border: 1px solid #e4e8f0; box-shadow: 0 1px 2px rgba(16,24,40,.04),0 8px 24px -16px rgba(16,24,40,.18); backdrop-filter: none; }
.blog-light-body .post-card:hover { border-color: #c7d0e6; box-shadow: 0 4px 10px rgba(16,24,40,.07),0 18px 38px -18px rgba(16,24,40,.28); }
.blog-light-body .card-body h3 { color: #0e1422; }
.blog-light-body .card-body p { color: #5a6478; }
.blog-light-body .card-cat { color: #4a5bd0; background: #eef2ff; border-color: #d4ddf8; }
.blog-light-body .card-foot { color: #8a93a7; }
.blog-light-body .card-foot a { color: #3a4bd0; }
.blog-light-body .card-thumb.g1 { background: linear-gradient(145deg,#eef2ff,#e3e9ff); }
.blog-light-body .card-thumb.g2 { background: linear-gradient(145deg,#f0eeff,#e8e3ff); }
.blog-light-body .card-thumb.g3 { background: linear-gradient(145deg,#e8f6ff,#ddf0ff); }

/* Light body listing articles */
.blog-light-body .listing-article { background: #fff; border: 1px solid #e4e8f0; }
.blog-light-body .listing-article:hover { border-color: #c7d0e6; box-shadow: 0 4px 20px rgba(16,24,40,.12); }
.blog-light-body .listing-body h2 { color: #0e1422; }
.blog-light-body .listing-body > p { color: #5a6478; }
.blog-light-body .listing-read-link { color: #3a4bd0; }
.blog-light-body .listing-thumb.g1 { background: linear-gradient(145deg,#eef2ff,#e3e9ff); }
.blog-light-body .listing-thumb.g2 { background: linear-gradient(145deg,#f0eeff,#e8e3ff); }
.blog-light-body .listing-thumb.g3 { background: linear-gradient(145deg,#e8f6ff,#ddf0ff); }
.blog-light-body .listing-thumb.g4 { background: linear-gradient(145deg,#eef2ff,#f0eeff); }
.blog-light-body .listing-thumb.g5 { background: linear-gradient(145deg,#e8f6ff,#eef2ff); }
.blog-light-body .post-cat { color: #4a5bd0; background: #eef2ff; border-color: #d4ddf8; }
.blog-light-body .post-date, .blog-light-body .post-read { color: #8a93a7; }

/* Light body listing header */
.blog-light-body .listing-header { border-bottom-color: #4a5bd0; }
.blog-light-body .listing-type-label { color: #4a5bd0; }
.blog-light-body .listing-title { color: #0e1422; }
.blog-light-body .listing-desc { color: #5a6478; }
.blog-light-body .listing-count { color: #33407a; background: #eef2ff; border-color: #c7d0f3; }
.blog-light-body .back-link { color: #3a4bd0; }
.blog-light-body .back-link:hover { color: #0e1422; }

/* Light body more-articles list */
.blog-light-body .post-list-item { border-bottom-color: #e4e8f0; }
.blog-light-body .list-num { color: #8a93a7; background: #f4f6fa; border-color: #e4e8f0; }
.blog-light-body .post-list-item:hover .list-num { background: #eef2ff; color: #4a5bd0; border-color: #c7d0f3; }
.blog-light-body .list-body h3 { color: #0e1422; }
.blog-light-body .list-body h3 a:hover { color: #3a4bd0; }
.blog-light-body .list-body p { color: #5a6478; }
.blog-light-body .list-meta { color: #8a93a7; }

/* Light body pagination */
.blog-light-body .page-btn { background: #fff; border-color: #dde2ee; color: #33407a; }
.blog-light-body .page-btn:hover { border-color: #9fb0e8; color: #3a4bd0; }
.blog-light-body .page-btn.active { background: #eef2ff; color: #4a5bd0; border-color: #c7d0f3; }
.blog-light-body .page-btn.page-prev, .blog-light-body .page-btn.page-next { color: #3a4bd0; }

/* Light body CTA strip */
.blog-light-body .cta-strip { background: #fff; }
.blog-light-body .cta-strip h3 { color: #0e1422; }
.blog-light-body .cta-text p { color: #5a6478; }

/* Light body sidebar */
.blog-light-body .sidebar-label { color: #8a93a7; border-bottom-color: #e4e8f0; }
.blog-light-body .sidebar-link { color: #5a6478; }
.blog-light-body .sidebar-link:hover { background: #eef2ff; color: #0e1422; }
.blog-light-body .sidebar-link.active { background: #eef2ff; color: #4a5bd0; border-color: #c7d0f3; }
.blog-light-body .archive-count { color: #8a93a7; }
.blog-light-body .sidebar-tag { background: #fff; color: #5a6478; border-color: #dde2ee; }
.blog-light-body .sidebar-tag:hover { background: #eef2ff; color: #4a5bd0; border-color: #c7d0f3; }
.blog-light-body .search-field-wrap input { background: #fff; border-color: #dde2ee; color: #1a2233; }
.blog-light-body .search-field-wrap input:focus { border-color: #9fb0e8; background: #f8f9ff; }
.blog-light-body .search-results-box { background: #fff; border-color: #e4e8f0; }
.blog-light-body .sr-item:hover, .blog-light-body .sr-item.sr-active { background: #eef2ff; }
.blog-light-body .sr-title { color: #0e1422; }
.blog-light-body .sr-meta { color: #4a5bd0; }
.blog-light-body .sr-snippet { color: #5a6478; }
.blog-light-body .sidebar-quick-link { color: #5a6478; }
.blog-light-body .sidebar-quick-link:hover { background: #eef2ff; color: #3a4bd0; }
.blog-light-body .sidebar-quick-link i { color: #4a5bd0; }
.blog-light-body .sidebar-cta-box { background: #fff; border-color: #c7d0f3; }
.blog-light-body .sidebar-cta-box p { color: #5a6478; }

/* Light body article */
.blog-light-body .article-header { border-bottom-color: #e4e8f0; }
.blog-light-body .article-header h1 { color: #0e1422; }
.blog-light-body .article-body { color: #3a4455; }
.blog-light-body .article-body strong { color: #0e1422; }
.blog-light-body .article-body h2 { color: #0e1422; border-bottom-color: #e4e8f0; }
.blog-light-body .article-body h3 { color: #0e1422; }
.blog-light-body .article-body a { color: #3a4bd0; border-bottom-color: #c7d0f3; }
.blog-light-body .article-body a:hover { color: #0e1422; border-color: #3a4bd0; }
.blog-light-body .article-callout { background: #eef2ff; border-color: #c7d0f3; border-left-color: #4a5bd0; color: #33407a; }
.blog-light-body .article-callout strong { color: #4a5bd0; }
.blog-light-body .article-footer { border-top-color: #e4e8f0; }
.blog-light-body .article-tags { color: #8a93a7; }
.blog-light-body .article-cta { background: #fff; border-color: #c7d0f3; }
.blog-light-body .article-cta p { color: #5a6478; }
.blog-light-body .related-grid .post-card { background: #fff; border-color: #e4e8f0; }

/* ── TWO-COLUMN LAYOUT ── */
.blog-layout { display: flex; flex-direction: row; gap: 2.5rem; align-items: flex-start; }
.blog-main { flex: 1; min-width: 0; }
.blog-sidebar { width: 252px; flex-shrink: 0; }
@media (max-width: 992px) { .blog-layout { flex-direction: column; } .blog-sidebar { width: 100%; } }

/* ── FEATURED ARTICLE ── */
.featured-post {
  display: flex; background: var(--bg-card);
  border: 1px solid rgba(176,186,209,.22); border-radius: var(--radius-card);
  overflow: hidden; margin-bottom: 2.5rem; transition: var(--transition);
  position: relative;
}
.featured-post::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-card);
  padding: 1px; background: var(--grad-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: var(--transition); pointer-events: none;
}
.featured-post::before { pointer-events: none; }
.featured-post:hover::before { opacity: 1; }
.featured-post:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.featured-thumb {
  width: 260px; flex-shrink: 0; min-height: 220px;
  background: linear-gradient(145deg, rgba(108,140,255,0.22), rgba(142,123,255,0.12), rgba(111,214,255,0.08));
  display: flex; align-items: center; justify-content: center;
}
.featured-body { flex: 1; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.featured-label::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--grad-main); border-radius: 1px; }
.featured-body h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.5vw, 1.5rem); letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body h2 a:hover { color: var(--accent); }
.featured-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.featured-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.featured-cat { background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 3px 10px; border-radius: 10px; border: 1px solid var(--accent-line); }
.featured-date, .featured-read { font-size: 12px; color: var(--text-muted); }
.btn-read-featured { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 9px 20px; border-radius: var(--radius-pill); text-decoration: none; transition: var(--transition); align-self: flex-start; }
.btn-read-featured:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
@media (max-width: 768px) { .featured-post { flex-direction: column; } .featured-thumb { width: 100%; min-height: 140px; } }

/* ── SECTION LABEL ── */
.section-label { font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

/* ── RECENT GRID ── */
.recent-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .recent-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px) { .recent-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--bg-card); border: 1px solid rgba(176,186,209,.2); border-radius: var(--radius-card); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.card-thumb { height: 120px; display: flex; align-items: center; justify-content: center; }
.card-thumb.g1 { background: linear-gradient(145deg,rgba(108,140,255,0.2),rgba(108,140,255,0.06)); }
.card-thumb.g2 { background: linear-gradient(145deg,rgba(142,123,255,0.18),rgba(142,123,255,0.05)); }
.card-thumb.g3 { background: linear-gradient(145deg,rgba(111,214,255,0.15),rgba(111,214,255,0.04)); }
.card-body { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.card-cat { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 2px 8px; border-radius: 8px; display: inline-block; margin-bottom: 8px; align-self: flex-start; }
.card-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.01em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { font-size: 12px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); margin-top: auto; }
.card-foot a { color: var(--accent); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 12px; transition: var(--transition); }
.card-foot a:hover { color: #fff; }

/* ── MORE ARTICLES LIST ── */
.post-list-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); transition: var(--transition); }
.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover .list-num { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.list-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--text-muted); min-width: 36px; height: 36px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.list-body { flex: 1; min-width: 0; }
.list-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; letter-spacing: -0.01em; }
.list-body h3 a { color: inherit; text-decoration: none; }
.list-body h3 a:hover { color: var(--accent); }
.list-body p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 4px; }
.list-meta { font-size: 11px; color: var(--text-muted); }

/* ── LISTING ROWS (category/tag/archive pages) ── */
.listing-article { display: flex; background: var(--bg-card); border: 1px solid rgba(176,186,209,.18); border-radius: 10px; overflow: hidden; margin-bottom: 10px; transition: var(--transition); }
.listing-article:hover { border-color: var(--accent-line); box-shadow: 0 4px 20px rgba(0,0,0,0.3); transform: translateY(-1px); }
.listing-thumb { width: 110px; min-height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.listing-thumb.g1 { background: linear-gradient(145deg,rgba(108,140,255,0.22),rgba(108,140,255,0.07)); }
.listing-thumb.g2 { background: linear-gradient(145deg,rgba(142,123,255,0.18),rgba(142,123,255,0.05)); }
.listing-thumb.g3 { background: linear-gradient(145deg,rgba(111,214,255,0.16),rgba(111,214,255,0.04)); }
.listing-thumb.g4 { background: linear-gradient(145deg,rgba(108,140,255,0.14),rgba(142,123,255,0.07)); }
.listing-thumb.g5 { background: linear-gradient(145deg,rgba(111,214,255,0.14),rgba(108,140,255,0.06)); }
.listing-body { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
.listing-body h2 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin: 5px 0 6px; }
.listing-body h2 a { color: inherit; text-decoration: none; }
.listing-body h2 a:hover { color: var(--accent); }
.listing-body > p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px; }
.listing-read-link { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; align-self: flex-start; font-family: var(--font-display); transition: var(--transition); }
.listing-read-link:hover { color: #fff; }

/* ── LISTING HEADER ── */
.listing-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--accent); }
.listing-type-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 4px; font-family: var(--font-display); }
.listing-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text-primary); margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
.listing-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; margin-bottom: 0; }
.listing-count { font-size: 12px; color: var(--text-secondary); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 14px; border-radius: var(--radius-pill); white-space: nowrap; align-self: center; font-family: var(--font-display); font-weight: 700; }

/* back link */
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); text-decoration: none; margin-bottom: 1.25rem; font-family: var(--font-display); font-weight: 600; transition: var(--transition); }
.back-link:hover { color: #fff; }
.back-link i { font-size: 11px; }

/* ── POST META ── */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 4px; }
.post-cat { background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 2px 9px; border-radius: 10px; font-family: var(--font-display); border: 1px solid var(--accent-line); }
.post-date, .post-read { font-size: 11px; color: var(--text-muted); }

/* ── PAGINATION ── */
.blog-pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 1.5rem 0; }
.page-btn { font-size: 13px; padding: 6px 13px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--text-secondary); background: var(--bg-card); text-decoration: none; transition: var(--transition); font-family: var(--font-display); font-weight: 600; }
.page-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.page-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); font-weight: 700; }
.page-btn.page-prev, .page-btn.page-next { color: var(--accent); }
.page-ellipsis { color: var(--text-muted); font-size: 13px; padding: 0 4px; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--bg-card2); border: 1px solid var(--accent-line); border-radius: 12px;
  padding: 1.4rem 1.75rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; margin-top: 1.5rem;
  position: relative; overflow: hidden;
}
.cta-strip::before { content: ''; position: absolute; inset: 0; border-radius: 12px; padding: 1px; background: var(--grad-main); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cta-strip h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.cta-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.btn-cta { flex-shrink: 0; display: inline-block; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; transition: var(--transition); font-family: var(--font-display); }
.btn-cta:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
@media (max-width: 768px) { .cta-strip { flex-direction: column; text-align: center; } }

/* ── SIDEBAR ── */
.sidebar-section { margin-bottom: 1.75rem; }
.sidebar-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); padding-bottom: 6px; margin-bottom: 10px; }
.sidebar-link { display: block; font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 5px 8px; border-radius: 7px; line-height: 1.45; transition: var(--transition); font-family: var(--font-display); font-weight: 500; }
.sidebar-link:hover { background: var(--accent-soft); color: var(--text-primary); }
.sidebar-link.active { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.archive-count { color: var(--text-muted); font-size: 11px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sidebar-tag { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border-subtle); text-decoration: none; transition: var(--transition); font-family: var(--font-display); font-weight: 600; }
.sidebar-tag:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.search-section { margin-bottom: 1.75rem; }
.search-field-wrap { position: relative; }
.search-field-wrap input { width: 100%; padding: 9px 30px 9px 12px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 13px; color: var(--text-primary); outline: none; box-sizing: border-box; transition: var(--transition); font-family: var(--font-body); }
.search-field-wrap input:focus { border-color: var(--accent-line); background: rgba(108,140,255,0.05); }
.search-field-wrap input::placeholder { color: var(--text-muted); }
.search-clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-muted); cursor: pointer; display: none; padding: 2px 4px; line-height: 1; }
.search-clear-btn:hover { color: var(--text-primary); }
.search-results-box { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 500; max-height: 360px; overflow-y: auto; }
.sr-item { display: block; padding: 10px 13px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; transition: var(--transition); }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.sr-active { background: var(--accent-soft); }
.sr-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; line-height: 1.35; font-family: var(--font-display); }
.sr-meta { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; font-family: var(--font-display); }
.sr-snippet { font-size: 11px; color: var(--text-muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-empty { padding: 14px 13px; font-size: 12px; color: var(--text-muted); text-align: center; }
.sr-item mark { background: rgba(108,140,255,0.25); color: var(--accent); border-radius: 2px; padding: 0 2px; font-style: normal; }
.sidebar-quick-link { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); text-decoration: none; padding: 6px 8px; border-radius: 7px; transition: var(--transition); font-family: var(--font-display); font-weight: 600; }
.sidebar-quick-link:hover { background: var(--accent-soft); color: var(--accent); }
.sidebar-quick-link i { font-size: 13px; color: var(--accent); }

/* ── FOOTER ── */
.blog-footer { background: #080a10; border-top: 1px solid var(--border-subtle); margin-top: 3rem; padding: 54px 0 40px; }
.blog-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; padding-bottom: 2rem; }
.blog-footer-inner p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin: 0; max-width: 300px; }
.blog-footer-inner p a { color: var(--accent); text-decoration: none; }
.blog-footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; text-decoration: none; }
.blog-footer-logo .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,#5b78ff,#8e6bff); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(108,140,255,.4); }
.blog-footer-logo .mark i { color: #fff; font-size: 15px; }
.blog-footer-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text-primary); }
.footer-links { display: flex; flex-direction: column; }
.blog-footer .fcol-head { font-size: 13px; font-family: 'Segoe UI',system-ui,sans-serif !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; display: block; white-space: nowrap; }
.blog-footer .footer-links a { font-size: 14px; font-family: 'Segoe UI',system-ui,sans-serif !important; color: var(--text-secondary); margin-bottom: 11px; text-decoration: none; transition: var(--transition); display: block; }
.footer-links a:hover { color: var(--text-primary); }
.blog-footer-bottom { display: none; }
.blog-footer-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--border-subtle); padding: 26px 0 0; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px) { .blog-footer-inner { grid-template-columns: 1fr 1fr; } .blog-footer-inner > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 576px) { .blog-footer-inner { grid-template-columns: 1fr; } .blog-footer-inner > div:first-child { grid-column: auto; } }

/* ═══════════════════════════════════════════════════════════════
   POST / ARTICLE PAGE STYLES
═══════════════════════════════════════════════════════════════ */

/* ── ARTICLE WRAPPER ── */
.article-wrap { max-width: 100%; }

/* ── ARTICLE HEADER ── */
.article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.article-header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.03em;
  color: var(--text-primary); line-height: 1.2; margin-top: 0.75rem; margin-bottom: 0;
}
.post-author { font-size: 12px; color: var(--text-muted); }

/* ── ARTICLE BODY ── */
.article-body { font-size: 15.5px; line-height: 1.85; color: var(--text-secondary); }
.article-body p { margin-bottom: 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); transition: var(--transition); }
.article-body a:hover { color: #fff; border-color: var(--accent); }

.article-body h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: -0.02em;
  color: var(--text-primary); margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle);
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text-primary);
  margin: 1.75rem 0 0.65rem; line-height: 1.3;
}

.article-list { margin: 0.5rem 0 1.25rem 1.5rem; padding: 0; }
.article-list li { margin-bottom: 0.6rem; font-size: 15.5px; line-height: 1.75; }
.article-list li strong { color: var(--text-primary); }

/* ── CALLOUT BOX ── */
.article-callout {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 20px;
  margin: 1.75rem 0; font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.article-callout strong { color: var(--accent); }

/* ── ARTICLE FOOTER ── */
.article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }

/* tags */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 1.5rem; font-size: 13px; color: var(--text-muted); }
.article-tags span { font-family: var(--font-display); font-weight: 600; }

/* CTA block */
.article-cta { background: var(--bg-card); border: 1px solid var(--accent-line); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.article-cta p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── RELATED ARTICLES ── */
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 2rem; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* ── SIDEBAR CTA (post-specific) ── */
.sidebar-cta-box { background: var(--bg-card); border: 1px solid var(--accent-line); border-radius: 10px; padding: 16px; margin-bottom: 1.75rem; }
.sidebar-cta-box p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.sidebar-cta-box .btn-cta { display: block; text-align: center; font-size: 12px; padding: 8px 14px; }
.blog-footer-logo-text .w1 { color: #ffffff; }
.blog-footer-logo-text .w2 { color: #c6cbd6; }
.blog-footer-logo-text .w3 { color: #9aa1b2; }
