/* ═══════════════════════════════════════════════════════
   Blog Single Post — v19
   Dark header/hero (identical to site) · White content
   Loaded for is_single() only
   ═══════════════════════════════════════════════════════ */

/* ── 1. Page background (only affects area below hero) ── */
body.single {
  background: #F1F5F9;
}

/* ── Header & Topbar — force fully opaque dark (identical
      to all other pages, overrides semi-transparent rgba) ── */
body.single .topbar {
  background: linear-gradient(90deg,
    rgba(108,77,246,0.18) 0%,
    rgba(168,85,247,0.12) 50%,
    rgba(108,77,246,0.18) 100%) #0F172A !important;
}
body.single .site-header {
  background: #0F172A !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(148,163,184,.12) !important;
}
body.single .site-header.is-scrolled {
  background: rgba(15,23,42,0.98) !important;
  border-bottom-color: rgba(108,77,246,.2) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,.3) !important;
}

/* ── Breadcrumb — dark band below header ─────────────── */
body.single .breadcrumb-nav {
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
body.single .breadcrumb         { color: #64748B; }
body.single .breadcrumb a       { color: #94A3B8; transition: color .2s; }
body.single .breadcrumb a:hover { color: #A78BFA; }
body.single .breadcrumb [aria-current="page"] { color: #CBD5E1; }

/* ── Post hero — dark purple gradient (same as other pages) */
body.single .post-hero {
  background: linear-gradient(160deg, #0F172A 0%, #160d38 45%, #0F172A 100%);
}
body.single .post-hero .page-hero__bg {
  background:
    radial-gradient(ellipse 70% 60% at 60% 0%, rgba(108,77,246,.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(168,85,247,.1) 0%, transparent 60%);
}
body.single .post-hero__title         { color: #F8FAFC; }
body.single .post-hero__excerpt       { color: #94A3B8; }
body.single .post-hero__meta          { color: #64748B; }
body.single .post-hero__cat           { background: rgba(108,77,246,.18); color: #A78BFA; }

/* ── Gap between dark hero and white content area ────── */
body.single .single-post > .container.section {
  padding-top: 40px;
}

/* ── 2. Article content card ────────────────────────────── */
.post-content {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 24px rgba(0,0,0,.07);
  padding: 40px 44px;
  min-width: 0; /* prevent grid blowout */
}

/* ── 3. Post body — light mode text ─────────────────────── */
.post-body {
  color: #1E293B;
  max-width: 100%;
}
/* Offset anchor targets below sticky header */
.post-body h2[id],
.post-body h3[id],
.post-body h4[id] {
  scroll-margin-top: 96px;
}
.post-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  margin: 40px 0 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.post-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1E293B;
  margin: 28px 0 10px;
  line-height: 1.4;
}
.post-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 20px 0 8px;
}
.post-body p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 18px;
}
.post-body ul,
.post-body ol {
  color: #334155;
  padding-left: 22px;
  margin-bottom: 18px;
  list-style: revert;
}
.post-body li {
  color: #334155;
  line-height: 1.75;
  margin-bottom: 6px;
}
.post-body a {
  color: #6C4DF6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover { color: #5A3FD0; }
.post-body strong { color: #0F172A; font-weight: 700; }
.post-body em { color: #475569; }
.post-body blockquote {
  border-left: 4px solid #6C4DF6;
  background: rgba(108,77,246,.05);
  padding: 16px 22px;
  margin: 24px 0;
  border-radius: 0 10px 10px 0;
  color: #475569;
  font-style: italic;
}
.post-body code {
  background: #F1F5F9;
  color: #6C4DF6;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .875em;
}

/* ── 4. Post nav & tags on white ────────────────────────── */
.post-nav__link {
  background: linear-gradient(135deg, #0F172A 0%, #1a0a40 100%);
  border: 1px solid rgba(108,77,246,.25);
  border-radius: 14px;
  padding: 18px 22px;
  color: #CBD5E1;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.post-nav__link:hover {
  border-color: rgba(108,77,246,.55);
  box-shadow: 0 6px 24px rgba(108,77,246,.25);
  transform: translateY(-2px);
  color: #CBD5E1;
  text-decoration: none;
}
.post-nav__title { color: #F1F5F9; font-weight: 700; font-size: .88rem; line-height: 1.45; margin-top: 4px; display: block; }
.post-nav__dir { color: #A78BFA; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: block; }
.post-tag {
  background: rgba(108,77,246,.08);
  border: 1px solid rgba(108,77,246,.2);
  color: #6C4DF6;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .8rem;
}

/* ── 5. Quick Answer ────────────────────────────────────── */
.blog-quick-answer {
  background: rgba(108,77,246,.05);
  border: 1px solid rgba(108,77,246,.18);
  border-left: 4px solid #6C4DF6;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 0 0 32px;
}
.blog-quick-answer__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6C4DF6;
  margin-bottom: 8px;
}
.blog-quick-answer p {
  font-size: .9875rem;
  color: #334155;
  line-height: 1.75;
  margin: 0;
}

/* ── 6. Key Takeaways — green highlight (keep) ──────────── */
.blog-key-takeaways {
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 36px;
}
.blog-key-takeaways__title {
  font-size: .9375rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: .02em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-key-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: #1E293B;
  line-height: 1.6;
}
.blog-key-takeaways li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,.18);
  border: 1px solid rgba(16,185,129,.4);
  color: #059669;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── 7. Table of Contents — collapsible ─────────────────── */
.blog-toc {
  background: #F8FAFC;
  border: 1px solid rgba(108,77,246,.15);
  border-radius: 14px;
  padding: 0;
  margin: 0 0 40px;
  overflow: hidden;
}
.blog-toc__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.blog-toc__title {
  font-size: .9375rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: .01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.blog-toc__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(108,77,246,.1);
  border: 1px solid rgba(108,77,246,.2);
  color: #6C4DF6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: transform .25s, background .2s;
}
.blog-toc.is-open .blog-toc__icon {
  transform: rotate(180deg);
  background: rgba(108,77,246,.18);
}
.blog-toc__body {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(108,77,246,.1);
}
.blog-toc.is-open .blog-toc__body {
  display: block;
}
.blog-toc ol {
  margin: 16px 0 0;
  padding: 0;
  counter-reset: toc-counter;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-toc li {
  counter-increment: toc-counter;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
}
.blog-toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  color: #6C4DF6;
  min-width: 22px;
  margin-top: 3px;
}
.blog-toc a {
  color: #475569;
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s;
}
.blog-toc a:hover {
  color: #6C4DF6;
  text-decoration: underline;
}

/* ── 8. Blog Tables — mobile-friendly ───────────────────── */
.blog-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  margin: 0 0 32px;
  border: 1px solid rgba(0,0,0,.08);
}
.blog-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: .875rem;
}
.blog-table-wrap th {
  background: rgba(108,77,246,.1);
  color: #5A3FD0;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.blog-table-wrap td {
  padding: 11px 16px;
  color: #334155;
  border-bottom: 1px solid rgba(0,0,0,.05);
  vertical-align: top;
  line-height: 1.5;
  background: #ffffff;
}
.blog-table-wrap tr:last-child td { border-bottom: none; }
.blog-table-wrap tr:hover td { background: #F8FAFC; }
.blog-table-wrap td:first-child { font-weight: 600; color: #0F172A; }

/* ── 9. FAQ Accordion — light ───────────────────────────── */
.blog-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
.blog-faq-item {
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.blog-faq-item.is-open {
  border-color: rgba(108,77,246,.28);
  box-shadow: 0 2px 14px rgba(108,77,246,.08);
}
.blog-faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: .9625rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
  font-family: inherit;
  transition: color .2s;
}
.blog-faq-q:hover { color: #6C4DF6; }
.blog-faq-q .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(108,77,246,.1);
  border: 1px solid rgba(108,77,246,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #6C4DF6;
  transition: transform .25s, background .2s;
  margin-top: 1px;
}
.blog-faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(108,77,246,.18);
}
.blog-faq-a {
  padding: 0 22px 18px;
  font-size: .9375rem;
  color: #475569;
  line-height: 1.75;
  display: none;
}
.blog-faq-a.is-visible { display: block; }


/* ── 10. Author Box (WordPress author, bottom of post) ── */
.post-author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, #0F172A 0%, #160d38 100%);
  border: 1px solid rgba(108,77,246,.3);
  border-radius: 18px;
  padding: 28px 32px;
  margin-top: 32px;
  margin-bottom: 48px;
  box-shadow: 0 4px 28px rgba(108,77,246,.15), 0 1px 6px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}
.post-author-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6C4DF6, #A855F7, #22D3EE);
  border-radius: 18px 18px 0 0;
}
.post-author-box__avatar {
  flex-shrink: 0;
}
.post-author-box__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(108,77,246,.5);
  display: block;
  box-shadow: 0 0 0 4px rgba(108,77,246,.12);
}
.post-author-box__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-author-box__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A78BFA;
}
.post-author-box__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #F8FAFC;
  text-decoration: none;
  display: block;
  margin: 3px 0 2px;
  transition: color .2s;
}
.post-author-box__name:hover { color: #C4B5FD; }
.post-author-box__bio {
  font-size: .875rem;
  color: #94A3B8;
  line-height: 1.75;
  margin: 6px 0 0;
}

/* ── 11. Sidebar — highlighted cards on white ───────────── */
body.single .blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* CTA widget — keep purple gradient, tweak shadow */
body.single .sidebar-cta {
  background: linear-gradient(135deg, #6C4DF6 0%, #A855F7 100%);
  border: none;
  box-shadow: 0 6px 28px rgba(108,77,246,.35);
  border-radius: 16px;
}
body.single .sidebar-cta__title { color: #ffffff; }
body.single .sidebar-cta__text { color: rgba(255,255,255,.82); }

/* All other sidebar widgets */
body.single .sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  border-radius: 14px;
  padding: 20px 22px;
}
body.single .sidebar-widget__title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0F172A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(108,77,246,.15);
}

/* Search input on white */
body.single .search-form input {
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.12);
  color: #1E293B;
}
body.single .search-form input::placeholder { color: #94A3B8; }
body.single .search-form input:focus {
  border-color: #6C4DF6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(108,77,246,.1);
}

/* Popular articles */
body.single .sidebar-post__title {
  color: #1E293B;
  font-weight: 600;
}
body.single .sidebar-post__title:hover { color: #6C4DF6; }
body.single .sidebar-post__date { color: #94A3B8; }

/* Categories */
body.single .sidebar-cat__link { color: #475569; }
body.single .sidebar-cat__link:hover {
  color: #6C4DF6;
  background: rgba(108,77,246,.06);
}
body.single .sidebar-cat__count {
  background: rgba(108,77,246,.1);
  color: #6C4DF6;
}

/* Services */
body.single .sidebar-service-link { color: #475569; }
body.single .sidebar-service-link:hover {
  color: #6C4DF6;
  background: rgba(108,77,246,.06);
}
body.single .sidebar-service-link svg { color: #6C4DF6; }

/* ── 10b. Full-width single-column post layout ────────── */
body.single .post-layout-single {
  max-width: 860px;
  margin: 0 auto;
}
body.single .post-layout-single .post-content {
  width: 100%;
}

/* ── 11. Sticky sidebar ─────────────────────────────────── */
@media (min-width: 1024px) {
  .blog-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .blog-sidebar::-webkit-scrollbar { display: none; }
}

/* ── 12. Step list ──────────────────────────────────────── */
.blog-step-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step-counter;
}
.blog-step-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  counter-increment: step-counter;
}
.blog-step-list li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C4DF6, #A855F7);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(108,77,246,.25);
  margin-top: 2px;
}
.blog-step-list__content strong {
  display: block;
  font-size: .9625rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 3px;
}
.blog-step-list__content span {
  font-size: .875rem;
  color: #475569;
  line-height: 1.6;
}

/* ── 13. Section label ──────────────────────────────────── */
.blog-section-label {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(108,77,246,.1);
  border: 1px solid rgba(108,77,246,.22);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  color: #6C4DF6;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── 14. Mobile-first responsive ────────────────────────── */

/* Tablet */
@media (max-width: 1199px) {
  .post-content { padding: 32px 32px; }
}

/* Small tablet & below */
@media (max-width: 1023px) {
  .post-content { padding: 26px 24px; border-radius: 14px; }
  .post-body h2 { font-size: 1.25rem; margin: 32px 0 12px; }
  .post-body h3 { font-size: 1.0625rem; }
}

/* Mobile */
@media (max-width: 767px) {
  /* Fix container overflow */
  body.single {
    overflow-x: hidden;
  }
  .single-post {
    overflow-x: hidden;
  }
  .container {
    padding-inline: 16px !important;
  }
  .post-content {
    padding: 20px 16px;
    border-radius: 12px;
    margin-inline: 0;
  }
  .post-body {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .post-body h2 { font-size: 1.15rem; margin: 26px 0 10px; }
  .post-body h3 { font-size: 1rem; }
  .post-body p, .post-body li { font-size: .9375rem; }

  /* Post hero compact */
  .post-hero { padding-block: 40px 32px; }
  .post-hero__title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .post-hero__excerpt { font-size: 1rem; }

  /* Blog components */
  .blog-quick-answer { padding: 16px 18px; }
  .blog-key-takeaways { padding: 18px 16px; }
  .blog-key-takeaways li { font-size: .875rem; }
  .blog-toc .blog-toc__toggle { padding: 14px 18px; }
  .blog-toc__body { padding: 0 18px 16px; }
  .blog-toc a { font-size: .85rem; }

  /* Tables scroll indicator */
  .blog-table-wrap {
    position: relative;
  }
  .blog-table-wrap::after {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-size: .7rem;
    color: #94A3B8;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(0,0,0,.05);
    background: #F8FAFC;
  }
  .blog-table-wrap table { min-width: 420px; }
  .blog-table-wrap th,
  .blog-table-wrap td { padding: 10px 12px; font-size: .8rem; }

  /* FAQ */
  .blog-faq-q { padding: 15px 18px; font-size: .9375rem; }
  .blog-faq-a { padding: 0 18px 14px; font-size: .9rem; }

  /* Sidebar on mobile — show below article */
  body.single .blog-sidebar { margin-top: 12px; }
  body.single .sidebar-widget { padding: 18px 18px; }

  /* Post nav stack */
  .post-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .container { padding-inline: 14px !important; }
  .post-content { padding: 16px 14px; }
  .post-body h2 { font-size: 1.05rem; }
  .blog-key-takeaways li { font-size: .8375rem; }
  .blog-toc a { font-size: .8rem; }
}

/* ═══════════════════════════════════════════════════════
   Sidebar CTA — Clean Redesign (.scta prefix)
   ═══════════════════════════════════════════════════════ */

/* ── .scta card ───────────────────────────────────────── */
.scta {
  background: #0F172A;
  border: 1px solid rgba(108,77,246,.4);
  border-top: 3px solid #6C4DF6;
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 24px rgba(108,77,246,.15), 0 1px 4px rgba(0,0,0,.2);
}

/* Top row: badge */
.scta__top { display: flex; align-items: center; }
.scta__badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108,77,246,.2);
  border: 1px solid rgba(108,77,246,.4);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A78BFA;
}

/* Title */
.scta__title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #F8FAFC;
  margin: 0;
}

/* Description */
.scta__desc {
  font-size: .83rem;
  color: #94A3B8;
  line-height: 1.65;
  margin: 0;
}

/* Stats */
.scta__stats {
  display: flex;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}
.scta__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  gap: 3px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.scta__stat:last-child { border-right: none; }
.scta__stat strong {
  font-size: .9rem;
  font-weight: 800;
  color: #A78BFA;
  line-height: 1;
}
.scta__stat span {
  font-size: .62rem;
  color: #64748B;
  text-align: center;
  line-height: 1.3;
}

/* Primary CTA button */
.scta__btn-primary {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #6C4DF6, #A855F7);
  border-radius: 10px;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(108,77,246,.35);
  transition: transform .15s, box-shadow .2s;
}
.scta__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(108,77,246,.5);
  color: #fff;
  text-decoration: none;
}

/* Secondary button */
.scta__btn-secondary {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid rgba(108,77,246,.4);
  border-radius: 10px;
  color: #C4B5FD;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.scta__btn-secondary:hover {
  background: rgba(108,77,246,.15);
  border-color: rgba(108,77,246,.6);
  color: #fff;
  text-decoration: none;
}

/* Trust note */
.scta__trust {
  text-align: center;
  font-size: .7rem;
  color: #475569;
  margin: 0;
}

/* Sidebar widgets — light theme override */
body.single .sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
body.single .sidebar-widget__title {
  color: #1E293B;
  border-bottom-color: rgba(0,0,0,.08);
}
body.single .sidebar-post__title { color: #1E293B; }
body.single .sidebar-post__title:hover { color: #6C4DF6; }
body.single .sidebar-post__date { color: #64748B; }
body.single .sidebar-cat__link { color: #334155; }
body.single .sidebar-cat__link:hover { color: #6C4DF6; }
body.single .sidebar-cat__count {
  background: rgba(108,77,246,.1);
  color: #6C4DF6;
}
body.single .sidebar-service-link { color: #334155; }
body.single .sidebar-service-link:hover { color: #6C4DF6; }

/* ═══════════════════════════════════════════════════════
   Footer — force same dark background as homepage
   footer-main uses rgba(255,255,255,.01) (near transparent),
   so it inherits body #F1F5F9 on blog pages → looks wrong.
   Force all footer elements to the site's dark bg colour.
   ═══════════════════════════════════════════════════════ */

body.single .site-footer { background: #0F172A !important; }
body.single .footer-cta  { background: #0F172A !important; }
body.single .footer-main { background: #0F172A !important; }
body.single .footer-bottom {
  background:   #0F172A !important;
  border-top:   1px solid rgba(148,163,184,.12) !important;
}

/* Footer text — keep all light colours identical to homepage */
body.single .footer-col__title         { color: #F8FAFC   !important; }
body.single .footer-brand__desc        { color: #94A3B8   !important; }
body.single .footer-col__link          { color: #94A3B8   !important; }
body.single .footer-col__link:hover    { color: #F8FAFC   !important; }
body.single .footer-contact__link      { color: #94A3B8   !important; }
body.single .footer-contact__link:hover{ color: #F8FAFC   !important; }
body.single .footer-bottom__copy       { color: #64748B   !important; }
body.single .footer-bottom__copy a     { color: #94A3B8   !important; }
body.single .footer-bottom__link       { color: #64748B   !important; }
body.single .footer-bottom__link:hover { color: #F8FAFC   !important; }
body.single .footer-cta__title         { color: #F8FAFC   !important; }
body.single .footer-cta__text          { color: #94A3B8   !important; }
body.single .footer-brand__trust-item strong { color: #F8FAFC !important; }
body.single .footer-brand__trust-item span   { color: #94A3B8 !important; }
body.single .footer-social-link        { color: #64748B   !important; }
body.single .footer-social-link:hover  { color: #F8FAFC   !important; }

/* ═══════════════════════════════════════════════════════
   Single post layout — full-width, no sidebar
   ═══════════════════════════════════════════════════════ */

body.single .single-post-wrap {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* ── CTA card ───────────────────────────────────────────── */
.ns-cta {
  background: #0F172A;
  border-radius: 16px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-cta__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.35;
  margin: 0;
}
.ns-cta__desc {
  font-size: .825rem;
  color: rgba(248,250,252,.65);
  line-height: 1.65;
  margin: 0;
}
.ns-cta__btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #6C4DF6, #A855F7);
  color: #ffffff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 10px;
  margin-top: 6px;
  transition: opacity .2s, transform .15s;
}
.ns-cta__btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  color: #ffffff;
}

/* ── Widget cards (Topics / More Articles) ──────────────── */
.ns-widget {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  padding: 18px 18px 20px;
}
.ns-widget__heading {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94A3B8;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

/* ── Topic pills ────────────────────────────────────────── */
.ns-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ns-topic-pill {
  font-size: .78rem;
  font-weight: 600;
  color: #6C4DF6;
  background: rgba(108,77,246,.08);
  border: 1px solid rgba(108,77,246,.18);
  border-radius: 50px;
  padding: 5px 14px;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.ns-topic-pill:hover {
  background: rgba(108,77,246,.16);
  color: #5438d4;
}

/* ── More Articles list ─────────────────────────────────── */
.ns-articles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ns-article {
  padding: 11px 0;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ns-article:last-child { border-bottom: none; padding-bottom: 0; }
.ns-article__title {
  font-size: .845rem;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  line-height: 1.45;
  transition: color .2s;
}
.ns-article__title:hover { color: #6C4DF6; }
.ns-article__date {
  font-size: .72rem;
  color: #94A3B8;
}

/* ── Responsive — stack on mobile only ─────────────────── */
@media (max-width: 767px) {
  /* Override inline flex to stack vertically on mobile */
  body.single .ns-post-layout {
    flex-direction: column !important;
  }
  body.single .ns-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    top: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════
   Blog listing page sidebar — body.blog, body.archive
   ═══════════════════════════════════════════════════════ */
body.blog .ns-sidebar,
body.archive .ns-sidebar,
body.category .ns-sidebar,
body.tag .ns-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
  width: 100%;
}
body.blog .ns-sidebar::-webkit-scrollbar,
body.archive .ns-sidebar::-webkit-scrollbar { display: none; }

/* blog-layout grid already defined in main-v2.css as 1fr 320px at 1024px+ */
/* Just ensure our sidebar content styles apply globally (no body.single scope) */

/* ═══════════════════════════════════════════════════════
   Inline mid-article CTA — ic-cta
   ═══════════════════════════════════════════════════════ */
.ic-cta {
  background: #0F172A;
  border-radius: 18px;
  padding: 32px 36px;
  margin: 40px 0;
  border: 1px solid rgba(108,77,246,.25);
}
.ic-cta__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.ic-cta__text { flex: 1; }
.ic-cta__badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A78BFA;
  background: rgba(108,77,246,.15);
  border: 1px solid rgba(108,77,246,.3);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.ic-cta__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 8px;
  line-height: 1.3;
}
.ic-cta__desc {
  font-size: .9rem;
  color: rgba(248,250,252,.6);
  margin: 0;
  line-height: 1.65;
}
.ic-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 220px;
}
.ic-cta__btn {
  display: block;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.ic-cta__btn--primary {
  background: linear-gradient(135deg, #6C4DF6, #A855F7);
  color: #fff;
}
.ic-cta__btn--primary:hover { opacity: .9; transform: translateY(-1px); color:#fff; }
.ic-cta__btn--ghost {
  background: transparent;
  color: #F8FAFC;
  border: 1.5px solid rgba(248,250,252,.25);
}
.ic-cta__btn--ghost:hover {
  border-color: rgba(248,250,252,.5);
  color: #fff;
}

@media (max-width: 767px) {
  .ic-cta { padding: 24px 20px; }
  .ic-cta__inner { flex-direction: column; gap: 20px; }
  .ic-cta__actions { min-width: 0; width: 100%; }
  .ic-cta__btn { padding: 13px 18px; }
}
