/* ===== Blog detail ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-4); flex-wrap: wrap; padding: 20px 0 8px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text-2); }
.breadcrumb .sep { color: var(--text-4); }
.breadcrumb .cur { color: var(--text-2); }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 42px; align-items: start; padding-bottom: 40px; }
.bd-main { min-width: 0; }

/* Article header */
.bd-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--purple-2); background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25); padding: 5px 12px; border-radius: 999px; display: inline-block; margin-bottom: 16px; }
.bd-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; }
.bd-lead { color: var(--text-2); font-size: 16px; margin-top: 16px; line-height: 1.7; max-width: 680px; }
.bd-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.bd-author { display: flex; align-items: center; gap: 10px; }
.bd-author .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.bd-author .nm { font-size: 13px; font-weight: 700; }
.bd-author .rl { font-size: 11.5px; color: var(--purple-2); }
.bd-author { text-decoration: none; transition: opacity .16s ease; }
.bd-author:hover .nm { color: var(--purple-2); }
.author-main a.av, .author-main a.nm { transition: opacity .16s ease, color .16s ease; }
.author-main a.nm:hover { color: var(--purple-2); }
.author-main a.av:hover { opacity: .85; }
.bd-meta .mi { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.bd-meta .mi svg { width: 15px; height: 15px; color: var(--text-4); }
.bd-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bd-share .sl { font-size: 12px; color: var(--text-3); }
.bd-share a { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all .18s ease; }
.bd-share a:hover { color: #fff; border-color: var(--border-glow); background: rgba(139,92,246,0.12); }
.bd-share svg { width: 14px; height: 14px; }

/* Cover */
.bd-cover { aspect-ratio: 16/7.4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 26px 0; position: relative; }
.bd-cover svg.net { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Audience box */
.audience-box { border: 1px solid rgba(139,92,246,0.28); background: var(--grad-card); border-radius: var(--radius); padding: 22px 24px; }
.audience-box h4 { font-size: 14px; font-weight: 700; color: var(--purple-2); margin-bottom: 16px; }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.audience-grid .ai { display: flex; gap: 10px; align-items: flex-start; }
.audience-grid .ai .ck { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: rgba(52,211,153,0.16); color: var(--green); display: grid; place-items: center; margin-top: 1px; }
.audience-grid .ai .ck svg { width: 11px; height: 11px; }
.audience-grid .ai p { font-size: 13px; color: var(--text-2); line-height: 1.45; }

/* Body typography */
.bd-body { margin-top: 28px; }
.bd-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.8; margin: 16px 0; }
.bd-h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; margin: 44px 0 14px; scroll-margin-top: 90px; }
.bd-sub { color: var(--text-3); font-size: 13.5px; margin-bottom: 18px; }

/* Callout */
.callout { display: flex; gap: 14px; background: var(--grad-card); border: 1px solid rgba(139,92,246,0.28); border-left: 3px solid var(--purple); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.callout .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: rgba(139,92,246,0.14); color: var(--purple-2); display: grid; place-items: center; }
.callout .ic svg { width: 20px; height: 20px; }
.callout h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.callout p { font-size: 13px; color: var(--text-3); line-height: 1.6; margin: 0; }

/* Factor cards */
.factor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.factor-card { display: flex; gap: 13px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.factor-card:hover { border-color: var(--border-glow); background: var(--card-hover); transform: translateY(-2px); }
.factor-card .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: rgba(139,92,246,0.10); border: 1px solid rgba(139,92,246,0.2); color: var(--purple-2); display: grid; place-items: center; }
.factor-card .ic svg { width: 20px; height: 20px; }
.factor-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.factor-card p { font-size: 12px; color: var(--text-3); line-height: 1.5; margin: 0; }

/* Download box */
.dl-box { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
.dl-box .fic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.24); color: var(--purple-2); display: grid; place-items: center; }
.dl-box .fic svg { width: 22px; height: 22px; }
.dl-box .txt h4 { font-size: 14.5px; font-weight: 700; }
.dl-box .txt p { font-size: 12.5px; color: var(--text-3); margin: 3px 0 0; }
.dl-box .btn { margin-left: auto; white-space: nowrap; }

/* Mistakes */
.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin-top: 8px; }
.mistake { display: flex; gap: 11px; align-items: center; }
.mistake .x { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(244,63,94,0.14); color: var(--red); display: grid; place-items: center; }
.mistake .x svg { width: 12px; height: 12px; }
.mistake p { font-size: 13.5px; color: var(--text-2); margin: 0; }

/* Process flow */
.proc-flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; }
.proc-line { position: absolute; top: 28px; left: 7%; right: 7%; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), rgba(79,123,255,0.5), transparent); }
.proc-step { text-align: center; position: relative; }
.proc-step .nd { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.2), rgba(12,12,20,0.95)); border: 1px solid rgba(139,92,246,0.4); display: grid; place-items: center; color: var(--purple-2); }
.proc-step .nd svg { width: 22px; height: 22px; }
.proc-step h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.proc-step p { font-size: 11px; color: var(--text-3); line-height: 1.45; }

/* Inline CTA */
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--grad-card); border: 1px solid rgba(139,92,246,0.3); border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; }
.inline-cta h4 { font-size: 16px; font-weight: 700; }
.inline-cta p { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.inline-cta .btn { white-space: nowrap; }

/* Author box */
.author-box { display: grid; grid-template-columns: 1fr auto; gap: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 30px 0; }
.author-main { display: flex; gap: 16px; }
.author-main .av { flex-shrink: 0; width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff; }
.author-main .nm { font-size: 15.5px; font-weight: 700; }
.author-main .rl { font-size: 12.5px; color: var(--purple-2); margin-bottom: 8px; }
.author-main .bio { font-size: 12.5px; color: var(--text-3); line-height: 1.6; max-width: 420px; }
.author-social { display: flex; gap: 8px; margin-top: 14px; }
.author-social a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all .18s ease; }
.author-social a:hover { color: #fff; border-color: var(--border-glow); background: rgba(139,92,246,0.12); }
.author-social svg { width: 15px; height: 15px; }
.author-tags h5 { font-size: 12px; color: var(--text-3); margin-bottom: 10px; font-weight: 600; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; max-width: 240px; }
.tag-cloud span { font-size: 11.5px; color: var(--text-2); padding: 5px 11px; border-radius: 999px; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.22); }

/* Prev / next */
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pn-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; transition: border-color .2s ease, background .2s ease; }
.pn-card:hover { border-color: var(--border-glow); background: var(--card-hover); }
.pn-card.next { flex-direction: row-reverse; text-align: right; }
.pn-card .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(139,92,246,0.1); color: var(--purple-2); display: grid; place-items: center; }
.pn-card .ico svg { width: 18px; height: 18px; }
.pn-card .lb { font-size: 11px; color: var(--text-4); }
.pn-card .ti { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; margin-top: 3px; }

/* Continue learning */
.learn-path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.learn-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: border-color .2s ease, transform .2s ease; }
.learn-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }
.learn-card.done { border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.05); }
.learn-card .step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-cta); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.learn-card.done .step-no { background: var(--green); }
.learn-card .rd { font-size: 10px; font-weight: 700; color: var(--green); margin-bottom: 6px; letter-spacing: .5px; }
.learn-card h4 { font-size: 13px; font-weight: 700; line-height: 1.4; }
.learn-card .rt { font-size: 11px; color: var(--text-4); margin-top: 8px; }

/* ===== Sidebar ===== */
.bd-side { position: sticky; top: 90px; display: grid; gap: 18px; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.toc { display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; transition: all .16s ease; }
.toc a .tn { color: var(--text-4); font-weight: 700; }
.toc a:hover { color: var(--text-2); background: rgba(255,255,255,0.03); }
.toc a.active { color: var(--text); background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25); }
.toc a.active .tn { color: var(--purple-2); }

.read-card .rh { display: flex; align-items: center; justify-content: space-between; }
.read-card .rh h4 { margin: 0; }
.read-card .pct { font-size: 15px; font-weight: 800; color: var(--purple-2); }
.read-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; margin: 12px 0 8px; }
.read-bar .fill { height: 100%; width: 0%; border-radius: 999px; background: var(--grad-primary); transition: width .15s linear; }
.read-card .rn { font-size: 11.5px; color: var(--text-4); }

.pdf-card .pdf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdf-card .pdf-top .tt h4 { margin: 0; }
.pdf-card .pdf-top .tt p { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.pdf-card .pdf-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px; background: var(--grad-primary); display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }
.pdf-card .btn { width: 100%; justify-content: center; margin-top: 14px; }

.svc-card .svc { display: flex; gap: 12px; align-items: flex-start; }
.svc-card .svc .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); color: var(--purple-2); display: grid; place-items: center; }
.svc-card .svc .ic svg { width: 20px; height: 20px; }
.svc-card .svc h5 { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.svc-card .svc p { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-top: 5px; }
.svc-card .more { font-size: 12px; color: var(--purple-2); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; margin-top: 12px; }

.cs-side-cover { aspect-ratio: 16/8; border-radius: 12px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); }
.cs-side h5 { font-size: 13.5px; font-weight: 700; }
.cs-side .g { color: var(--purple-2); }
.cs-side .more { font-size: 12px; color: var(--purple-2); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; margin-top: 10px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
.dots i.on { background: var(--purple); width: 16px; border-radius: 3px; }

.consult-card { background: var(--grad-card); border-color: rgba(139,92,246,0.28); }
.consult-card .cc { display: flex; gap: 10px; align-items: flex-start; }
.consult-card .cc svg { width: 20px; height: 20px; color: var(--purple-2); flex-shrink: 0; margin-top: 2px; }
.consult-card .cc p { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.consult-card .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* Gradient helpers */
.gr-cosmic-2 { background: radial-gradient(120% 120% at 30% 10%, #2563eb 0%, #1e1b4b 45%, #07070d 100%); }
.gr-inax { background: linear-gradient(135deg, #d4c4a8, #8a7355); }
.gr-a { background: linear-gradient(140deg, #4c1d95, #1e3a8a); }

/* Responsive */
@media (max-width: 1080px) {
  .blog-layout { grid-template-columns: 1fr; gap: 34px; }
  .bd-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .toc-card { grid-column: 1 / -1; }
  .proc-flow { grid-template-columns: repeat(3, 1fr); gap: 26px 10px; }
  .proc-line { display: none; }
  .learn-path { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .author-box { grid-template-columns: 1fr; }
  .tag-cloud { max-width: none; }
}
@media (max-width: 620px) {
  .bd-side { grid-template-columns: 1fr; }
  .audience-grid, .factor-grid, .mistake-grid { grid-template-columns: 1fr; }
  .proc-flow, .learn-path { grid-template-columns: 1fr 1fr; }
  .pn-nav { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .bd-share { margin-left: 0; width: 100%; }
  .author-main { flex-direction: column; }
}

/* ---------- Content body headings (WP editor) + TOC anchoring ---------- */
.bd-body h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 14px; scroll-margin-top: 92px; }
.bd-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 92px; }
.bd-body ul, .bd-body ol { margin: 14px 0 16px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.bd-body li { margin: 6px 0; }
.bd-body a { color: var(--purple-2); text-decoration: underline; }
.bd-body img { border-radius: 12px; margin: 20px 0; max-width: 100%; height: auto; }
.bd-body blockquote { border-left: 3px solid var(--purple); padding: 6px 18px; margin: 20px 0; color: var(--text-2); font-style: italic; }
