/* NCVE blog post template — Oct 2026
   Scoped to #ncve-blog and .ncve-blog-hero so nothing leaks into the theme.
   Tokens match the employer/course page system (.ncve-rsa). */

#ncve-blog,
.ncve-blog-hero {
  --nb-navy: #102346;
  --nb-navy2: #1c3566;
  --nb-orange: #F26E33;
  --nb-orange2: #E8252F;
  --nb-ink: #1f2937;
  --nb-body: #3c4a63;
  --nb-grey: #5b6b85;
  --nb-line: #e2e6ee;
  --nb-bg: #f5f6f8;
  --nb-warm: #fff4ef;
}

/* ---------- Hero ---------- */
.ncve-blog-hero .ncve-blog-eyebrow {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--nb-orange);
  margin-top: 8px;
}
.ncve-blog-hero h1 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.15;
}
.ncve-blog-hero .ncve-blog-meta {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: none;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.ncve-blog-hero .ncve-blog-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nb-orange);
  display: inline-block;
}

/* ---------- Layout ---------- */
#ncve-blog {
  background: #fff;
  font-family: ibm-plex-sans, sans-serif;
  color: var(--nb-body);
}
#ncve-blog .nb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}
#ncve-blog .nb-article {
  max-width: 740px;
  margin: 0 auto;
  min-width: 0;
}
@media (min-width: 1100px) {
  #ncve-blog .nb-wrap.nb-has-toc {
    display: grid;
    grid-template-columns: 250px minmax(0, 740px);
    gap: 64px;
    justify-content: center;
  }
  #ncve-blog .nb-wrap.nb-has-toc .nb-article {
    margin: 0;
  }
}

/* ---------- Contents list ---------- */
#ncve-blog .nb-toc-inner {
  border: 1px solid var(--nb-line);
  border-radius: 12px;
  padding: 20px 20px 14px;
  background: var(--nb-bg);
  margin-bottom: 32px;
}
@media (min-width: 1100px) {
  #ncve-blog .nb-toc-inner {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
  }
}
#ncve-blog .nb-toc-label {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--nb-orange);
  margin-bottom: 10px;
}
#ncve-blog .nb-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nbtoc;
}
#ncve-blog .nb-toc li {
  counter-increment: nbtoc;
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--nb-line);
  font-size: 14px;
  line-height: 1.4;
}
#ncve-blog .nb-toc li:first-child {
  border-top: 0;
}
#ncve-blog .nb-toc li::before {
  content: counter(nbtoc, decimal-leading-zero);
  font-weight: 700;
  color: var(--nb-orange);
  font-size: 12px;
  padding-top: 1px;
}
#ncve-blog .nb-toc a {
  color: var(--nb-navy);
  text-decoration: none;
  text-transform: none;
}
#ncve-blog .nb-toc a:hover {
  color: var(--nb-orange);
}

/* ---------- Quick answer ---------- */
#ncve-blog .nb-answer {
  background: var(--nb-warm);
  border-left: 4px solid var(--nb-orange);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}
#ncve-blog .nb-answer-label {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--nb-orange);
  margin-bottom: 6px;
}
#ncve-blog .nb-answer p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--nb-navy);
  font-weight: 500;
}

/* ---------- Article body ---------- */
#ncve-blog .nb-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--nb-body);
}
#ncve-blog .nb-body > p:first-child {
  font-size: 20px;
  line-height: 1.65;
  color: var(--nb-ink);
}
#ncve-blog .nb-body p {
  font-family: ibm-plex-sans, sans-serif;
  font-size: inherit;
  margin: 0 0 1.25em;
}
#ncve-blog .nb-body h2 {
  font-family: paralucent, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--nb-navy);
  margin: 2.2em 0 .7em;
  padding-top: 18px;
  position: relative;
  scroll-margin-top: 120px;
}
#ncve-blog .nb-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nb-orange) 0%, var(--nb-orange2) 100%);
}
#ncve-blog .nb-body h3 {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 21px;
  line-height: 1.35;
  color: var(--nb-navy);
  margin: 1.8em 0 .5em;
}
#ncve-blog .nb-body h4 {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: none;
  font-weight: 600;
  font-size: 18px;
  color: var(--nb-navy);
  margin: 1.5em 0 .4em;
}
#ncve-blog .nb-body a {
  color: var(--nb-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
#ncve-blog .nb-body a:hover {
  color: var(--nb-orange2);
}
#ncve-blog .nb-body strong,
#ncve-blog .nb-body b {
  color: var(--nb-navy);
  font-weight: 600;
}
#ncve-blog .nb-body ul,
#ncve-blog .nb-body ol {
  margin: 0 0 1.4em;
  padding-left: 0;
}
#ncve-blog .nb-body ul li,
#ncve-blog .nb-body ol li {
  font-size: inherit;
  margin: 0 0 .55em;
}
#ncve-blog .nb-body ul {
  list-style: none;
}
#ncve-blog .nb-body ul li {
  position: relative;
  padding-left: 26px;
}
#ncve-blog .nb-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nb-orange);
}
#ncve-blog .nb-body ol {
  padding-left: 1.4em;
}
#ncve-blog .nb-body ol li::marker {
  color: var(--nb-orange);
  font-weight: 700;
}
#ncve-blog .nb-body blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--nb-navy);
  background: var(--nb-bg);
  border-radius: 0 12px 12px 0;
  color: var(--nb-navy);
  font-size: 19px;
  font-style: normal;
}
#ncve-blog .nb-body blockquote p:last-child {
  margin-bottom: 0;
}
#ncve-blog .nb-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
#ncve-blog .nb-body figure {
  margin: 1.8em 0;
}
#ncve-blog .nb-body figcaption {
  font-size: 14px;
  color: var(--nb-grey);
  margin-top: 8px;
}
#ncve-blog .nb-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
#ncve-blog .nb-body th,
#ncve-blog .nb-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--nb-line);
  text-align: left;
  vertical-align: top;
}
#ncve-blog .nb-body th {
  background: var(--nb-navy);
  color: #fff;
  font-weight: 600;
}
#ncve-blog .nb-body tr:nth-child(even) td {
  background: var(--nb-bg);
}
#ncve-blog .nb-body hr {
  border: 0;
  border-top: 1px solid var(--nb-line);
  margin: 2.4em 0;
}

/* ---------- Course CTA ---------- */
#ncve-blog .nb-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--nb-navy) 0%, var(--nb-navy2) 100%);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  #ncve-blog .nb-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 36px 40px;
  }
}
#ncve-blog .nb-cta-eyebrow {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--nb-orange);
  margin-bottom: 6px;
}
#ncve-blog .nb-cta-title {
  font-family: paralucent, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 10px;
}
#ncve-blog .nb-cta p {
  font-family: ibm-plex-sans, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  margin: 0;
}
#ncve-blog .nb-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
#ncve-blog .nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: ibm-plex-sans, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, var(--nb-orange) 0%, var(--nb-orange2) 100%);
  transition: transform .15s ease, box-shadow .15s ease;
}
#ncve-blog .nb-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 110, 51, .4);
}
#ncve-blog .nb-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .6);
}
#ncve-blog .nb-btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}
#ncve-blog .nb-phone {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}
#ncve-blog .nb-phone:hover {
  color: #fff;
}

/* ---------- Soft close (personal posts) ---------- */
#ncve-blog .nb-soft {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--nb-bg);
  border: 1px solid var(--nb-line);
}
#ncve-blog .nb-soft p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
#ncve-blog .nb-soft a {
  color: var(--nb-orange);
}

/* ---------- Trust strip ---------- */
#ncve-blog .nb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
#ncve-blog .nb-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--nb-bg);
  border: 1px solid var(--nb-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--nb-navy);
}
#ncve-blog .nb-trust span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nb-orange);
}

/* ---------- Related posts ---------- */
#ncve-blog .nb-related {
  background: var(--nb-bg);
  padding: 64px 20px 72px;
}
#ncve-blog .nb-related-inner {
  max-width: 1180px;
  margin: 0 auto;
}
#ncve-blog .nb-related-eyebrow {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--nb-orange);
  text-align: center;
  margin-bottom: 6px;
}
#ncve-blog .nb-related-title {
  font-family: paralucent, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 28px;
  color: var(--nb-navy);
  text-align: center;
  margin: 0 0 32px;
}
#ncve-blog .nb-related-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 820px) {
  #ncve-blog .nb-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
#ncve-blog .nb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--nb-line);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
#ncve-blog .nb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(16, 35, 70, .12);
}
#ncve-blog .nb-card-img {
  aspect-ratio: 16 / 9;
  background: var(--nb-navy);
  overflow: hidden;
}
#ncve-blog .nb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#ncve-blog .nb-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
#ncve-blog .nb-card-date {
  font-size: 13px;
  color: var(--nb-grey);
}
#ncve-blog .nb-card-title {
  font-family: ibm-plex-sans, sans-serif;
  text-transform: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  color: var(--nb-navy);
}
#ncve-blog .nb-card-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--nb-orange);
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  #ncve-blog .nb-wrap {
    padding: 36px 16px 56px;
  }
  #ncve-blog .nb-body {
    font-size: 17px;
  }
  #ncve-blog .nb-body > p:first-child {
    font-size: 18px;
  }
  #ncve-blog .nb-body h2 {
    font-size: 22px;
  }
  #ncve-blog .nb-cta {
    padding: 26px 22px;
  }
  #ncve-blog .nb-cta-actions {
    min-width: 0;
  }
  #ncve-blog .nb-related {
    padding: 48px 16px 56px;
  }
  #ncve-blog .nb-related-title {
    font-size: 23px;
  }
}
