/* ================================================================
   VOXILYTICS LTD — BLOG-ARTICLE.CSS
   Styles for individual blog article pages.
   Depends on: global.css (variables, base utilities, components)
   ================================================================ */


/* ── READING PROGRESS BAR ──────────────────────────────────────── */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 201, 167, 0.12);
  z-index: 9999;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00C9A7 0%, #1565C8 100%);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ── ARTICLE HERO ───────────────────────────────────────────────── */

.article-hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}

/* Decorative floating nodes */
.article-hero__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.article-hero__node {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 201, 167, 0.15);
  animation: articleNodePulse 5s ease-in-out infinite;
}
.article-hero__node--1 {
  width: 200px;
  height: 200px;
  top: -70px;
  right: 8%;
  animation-delay: 0s;
}
.article-hero__node--2 {
  width: 110px;
  height: 110px;
  top: 35%;
  left: 3%;
  animation-delay: 1.8s;
}
.article-hero__node--3 {
  width: 150px;
  height: 150px;
  bottom: 100px;
  right: 4%;
  animation-delay: 3.5s;
}

@keyframes articleNodePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.07); }
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

.article-hero__content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.article-hero__heading {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 700;
  color: var(--color-white, #ffffff);
  line-height: 1.2;
  margin: 18px 0 28px;
  letter-spacing: -0.025em;
}

/* Author + meta row */
.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.article-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero__author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, #1565C8);
  color: white;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(0, 201, 167, 0.35);
}

.article-hero__author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.article-hero__author-name {
  color: var(--color-white, #fff);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
}

.article-hero__author-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.article-hero__meta-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.83rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-hero__meta-sep { color: rgba(255, 255, 255, 0.25); }

/* Hero SVG illustration panel */
.article-hero__illustration {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 201, 167, 0.14);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px 24px;
}

.article-hero__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Wave divider */
.article-hero__wave {
  display: block;
  line-height: 0;
}
.article-hero__wave svg {
  width: 100%;
  height: 64px;
  display: block;
}


/* ── ARTICLE SECTION (BODY + SIDEBAR) ──────────────────────────── */

/* Override section-padding for article to give more top room */
.article-section.section-padding {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Two-column grid: prose (auto) + sticky sidebar (300px) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}


/* ── ARTICLE BODY — PROSE ───────────────────────────────────────── */

.article-body { min-width: 0; }

/* Lead paragraphs (intro) */
.article-lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-body, #374151);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  margin-bottom: 1.4rem;
  font-weight: 400;
}

/* Standard body paragraphs */
.article-body p {
  font-size: 0.975rem;
  line-height: 1.82;
  color: var(--color-body, #374151);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  margin-bottom: 1.2rem;
}

/* H2 section headings with number badges */
.article-h2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--color-navy, #0A1628);
  margin: 2.75rem 0 1.2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border, #E5E7EB);
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.article-h2__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(21, 101, 200, 0.07));
  border: 1.5px solid rgba(0, 201, 167, 0.28);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-teal, #00C9A7);
  letter-spacing: 0.04em;
  margin-top: 3px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  flex-shrink: 0;
}

/* H3 sub-headings */
.article-h3 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy, #0A1628);
  margin: 1.8rem 0 0.7rem;
  scroll-margin-top: 110px;
}

/* Bullet list */
.article-ul {
  margin: 0 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--color-body, #374151);
  font-family: var(--font-body, 'DM Sans', sans-serif);
}
.article-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal, #00C9A7);
}


/* ── PULL QUOTE ─────────────────────────────────────────────────── */

.pull-quote {
  margin: 2rem 0;
  padding: 26px 30px 26px 36px;
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.05), rgba(21, 101, 200, 0.03));
  border-left: 4px solid var(--color-teal, #00C9A7);
  border-radius: 0 12px 12px 0;
  position: relative;
  overflow: hidden;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--color-teal, #00C9A7);
  opacity: 0.12;
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
  user-select: none;
}

.pull-quote p {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  font-style: italic;
  color: var(--color-navy, #0A1628) !important;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  margin-bottom: 12px !important;
  font-weight: 500;
}

.pull-quote cite {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted, #6B7280);
  font-style: normal;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}


/* ── STAT BOXES ─────────────────────────────────────────────────── */

.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 2rem 0;
}

.article-stat-box {
  background: var(--color-white, #fff);
  border: 1.5px solid var(--color-border, #E5E7EB);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s;
}
.article-stat-box:hover { border-color: rgba(0, 201, 167, 0.3); }

.article-stat-box--teal {
  border-color: rgba(0, 201, 167, 0.3);
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.04), rgba(0, 201, 167, 0.08));
}

.article-stat-box__value {
  display: block;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-teal, #00C9A7);
  margin-bottom: 7px;
  line-height: 1;
}

.article-stat-box--teal .article-stat-box__value {
  background: linear-gradient(135deg, #00C9A7, #1565C8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-stat-box__label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-body, #374151);
  line-height: 1.45;
  margin-bottom: 6px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.article-stat-box__source {
  display: block;
  font-size: 0.68rem;
  color: var(--color-muted, #9CA3AF);
  font-family: var(--font-body, 'DM Sans', sans-serif);
}


/* ── NUMBERED CONTENT CARDS ─────────────────────────────────────── */

.article-numbered-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 1.75rem 0;
}

.article-numbered-item {
  display: flex;
  gap: 16px;
  background: var(--color-white, #fff);
  border: 1.5px solid var(--color-border, #E5E7EB);
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.article-numbered-item:hover {
  border-color: rgba(0, 201, 167, 0.32);
  box-shadow: 0 6px 20px rgba(0, 201, 167, 0.08);
  transform: translateY(-2px);
}

.article-numbered-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #00C9A7, #1565C8);
  border-radius: 9px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-numbered-item__content h3 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-navy, #0A1628);
  margin: 0 0 6px;
}

.article-numbered-item__content p {
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  color: var(--color-muted, #6B7280);
  margin: 0 !important;
}


/* ── CALLOUT BOXES ──────────────────────────────────────────────── */

.callout {
  display: flex;
  gap: 16px;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 1.75rem 0;
  border: 1.5px solid;
}

.callout--tip {
  background: rgba(0, 201, 167, 0.05);
  border-color: rgba(0, 201, 167, 0.25);
}
.callout--warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.28);
}
.callout--stat {
  background: rgba(21, 101, 200, 0.04);
  border-color: rgba(21, 101, 200, 0.2);
}

.callout__icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.callout--tip .callout__icon     { color: var(--color-teal, #00C9A7); }
.callout--warning .callout__icon { color: #D97706; }
.callout--stat .callout__icon    { color: #1565C8; }

.callout__body { flex: 1; }
.callout__body p { margin: 0 !important; }

.callout__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px !important;
}
.callout--tip .callout__title     { color: var(--color-teal, #00C9A7); }
.callout--warning .callout__title { color: #D97706; }
.callout--stat .callout__title    { color: #1565C8; }

.callout__body p:not(.callout__title) {
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  color: var(--color-body, #374151);
}


/* ── TABLE ──────────────────────────────────────────────────────── */

.article-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 12px;
  border: 1.5px solid var(--color-border, #E5E7EB);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  min-width: 480px;
}

.article-table thead {
  background: linear-gradient(135deg, #0A1628, #132040);
}

.article-table thead th {
  padding: 13px 20px;
  text-align: left;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.article-table thead th:first-child { border-radius: 10px 0 0 0; }
.article-table thead th:last-child  { border-radius: 0 10px 0 0; }

.article-table tbody tr {
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  transition: background 0.15s;
}
.article-table tbody tr:last-child { border-bottom: none; }
.article-table tbody tr:nth-child(even) { background: rgba(0, 201, 167, 0.02); }
.article-table tbody tr:hover { background: rgba(0, 201, 167, 0.04); }

.article-table tbody td {
  padding: 13px 20px;
  vertical-align: top;
  color: var(--color-body, #374151);
  line-height: 1.6;
}
.article-table tbody td:first-child {
  white-space: nowrap;
  color: var(--color-navy, #0A1628);
}


/* ── ARTICLE TAGS ───────────────────────────────────────────────── */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 2.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #E5E7EB);
}

.article-tags__label {
  font-size: 0.82rem;
  color: var(--color-muted, #6B7280);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-tag-pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 201, 167, 0.28);
  background: rgba(0, 201, 167, 0.06);
  color: var(--color-teal, #00C9A7);
  font-size: 0.75rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.article-tag-pill:hover {
  background: rgba(0, 201, 167, 0.13);
  border-color: var(--color-teal, #00C9A7);
}


/* ── SHARE ROW ──────────────────────────────────────────────────── */

.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25rem 0 2rem;
}

.article-share__label {
  font-size: 0.85rem;
  color: var(--color-muted, #6B7280);
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.article-share__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 500;
  border: 1.5px solid;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.article-share__btn--linkedin {
  border-color: rgba(10, 102, 194, 0.3);
  color: #0A66C2;
}
.article-share__btn--linkedin:hover {
  background: rgba(10, 102, 194, 0.07);
  border-color: #0A66C2;
}
.article-share__btn--twitter {
  border-color: rgba(0, 0, 0, 0.15);
  color: #111;
}
.article-share__btn--twitter:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}
.article-share__btn--copy {
  border-color: rgba(0, 201, 167, 0.3);
  color: var(--color-teal, #00C9A7);
}
.article-share__btn--copy:hover {
  background: rgba(0, 201, 167, 0.07);
  border-color: var(--color-teal, #00C9A7);
}

.article-share__copied {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-teal, #00C9A7);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  animation: fadeInUp 0.25s ease;
}


/* ── ARTICLE SIDEBAR ────────────────────────────────────────────── */

.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Base widget card */
.article-sidebar-widget {
  background: var(--color-white, #fff);
  border: 1.5px solid var(--color-border, #E5E7EB);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.article-sidebar-widget__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-navy, #0A1628);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-sidebar-widget__title i {
  color: var(--color-teal, #00C9A7);
  font-size: 0.85rem;
}

/* TOC widget */
.article-sidebar-widget--toc {
  background: linear-gradient(160deg, rgba(0, 201, 167, 0.03) 0%, rgba(21, 101, 200, 0.02) 100%);
  border-color: rgba(0, 201, 167, 0.2);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--color-muted, #6B7280);
  font-size: 0.8rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: all 0.2s;
  border: 1px solid transparent;
  line-height: 1.35;
}

.toc-list__link:hover {
  color: var(--color-navy, #0A1628);
  background: rgba(0, 201, 167, 0.06);
  border-color: rgba(0, 201, 167, 0.12);
}

.toc-list__link--active {
  color: var(--color-teal, #00C9A7) !important;
  font-weight: 600;
  background: rgba(0, 201, 167, 0.08) !important;
  border-color: rgba(0, 201, 167, 0.18) !important;
}

.toc-list__num {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-teal, #00C9A7);
  opacity: 0.55;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.toc-list__link--active .toc-list__num { opacity: 1; }

/* In-TOC reading mini progress */
.toc-progress {
  height: 3px;
  background: rgba(0, 201, 167, 0.14);
  border-radius: 3px;
  overflow: hidden;
}
.toc-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00C9A7, #1565C8);
  transition: width 0.12s ease;
  border-radius: 3px;
}

/* Sidebar author card */
.sidebar-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.sidebar-author__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, #1565C8);
  color: white;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-author__name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-navy, #0A1628);
  margin: 0;
  display: block;
}
.sidebar-author__role {
  font-size: 0.72rem;
  color: var(--color-muted, #6B7280);
  margin: 2px 0 0;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  display: block;
}
.sidebar-author__bio {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-muted, #6B7280);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  margin: 0;
}

/* Sidebar CTA */
.article-sidebar-widget--cta {
  background: linear-gradient(160deg, #0A1628 0%, #132040 100%);
  border-color: rgba(0, 201, 167, 0.2);
  text-align: center;
}
.sidebar-cta__icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(0, 201, 167, 0.14);
  border: 1px solid rgba(0, 201, 167, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-teal, #00C9A7);
  margin: 0 auto 13px;
}
.sidebar-cta__heading {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  margin-bottom: 7px;
}
.sidebar-cta__desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 15px;
  line-height: 1.5;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}
.sidebar-cta__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
}

/* Sidebar newsletter */
.article-sidebar-widget--newsletter {
  background: rgba(0, 201, 167, 0.03);
  border-color: rgba(0, 201, 167, 0.18);
}
.sidebar-newsletter__desc {
  font-size: 0.8rem;
  color: var(--color-muted, #6B7280);
  margin-bottom: 13px;
  line-height: 1.55;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}
.sidebar-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-newsletter__input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--color-border, #E5E7EB);
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  outline: none;
  transition: border-color 0.2s;
  background: var(--color-white, #fff);
  color: var(--color-navy, #0A1628);
}
.sidebar-newsletter__input:focus { border-color: var(--color-teal, #00C9A7); }
.sidebar-newsletter__btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 10px 14px;
}


/* ── AUTHOR BIO SECTION ─────────────────────────────────────────── */

.author-bio-section { padding: 36px 0; }

.author-bio {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--color-white, #fff);
  border: 1.5px solid var(--color-border, #E5E7EB);
  border-radius: 16px;
  padding: 30px 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.author-bio__avatar {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C9A7, #1565C8);
  color: white;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(0, 201, 167, 0.22);
}

.author-bio__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted, #9CA3AF);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  margin-bottom: 4px;
  display: block;
}
.author-bio__name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy, #0A1628);
  margin: 0 0 3px;
}
.author-bio__role {
  font-size: 0.82rem;
  color: var(--color-teal, #00C9A7);
  margin-bottom: 12px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  display: block;
}
.author-bio__desc {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--color-body, #374151);
  margin-bottom: 16px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}
.author-bio__social {
  display: flex;
  gap: 10px;
}
.author-bio__social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 201, 167, 0.06);
  border: 1.5px solid rgba(0, 201, 167, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal, #00C9A7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.author-bio__social-link:hover {
  background: rgba(0, 201, 167, 0.12);
  border-color: var(--color-teal, #00C9A7);
  transform: translateY(-2px);
}


/* ── RELATED ARTICLES ───────────────────────────────────────────── */

.related-section { border-top: 1px solid var(--color-border, #E5E7EB); }

.related-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.related-section__header .section-heading { margin-bottom: 0; }

.related-section__all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--color-teal, #00C9A7);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
  white-space: nowrap;
}
.related-section__all:hover { gap: 11px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-card {
  background: var(--color-white, #fff);
  border: 1.5px solid var(--color-border, #E5E7EB);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 201, 167, 0.25);
}

.related-card__image {
  height: 130px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card__image svg { width: 100%; height: 100%; }

.related-card__image--analytics  { background: linear-gradient(135deg, rgba(0,201,167,0.06), rgba(0,201,167,0.13)); }
.related-card__image--careers     { background: linear-gradient(135deg, rgba(21,101,200,0.06), rgba(21,101,200,0.13)); }
.related-card__image--engineering { background: linear-gradient(135deg, rgba(5,150,105,0.06), rgba(5,150,105,0.13)); }

.related-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card__topic {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  width: fit-content;
  background: rgba(0, 201, 167, 0.08);
  color: var(--color-teal, #00C9A7);
  border: 1px solid rgba(0, 201, 167, 0.2);
}
.related-card__topic--careers {
  background: rgba(21,101,200,0.08);
  color: #1565C8;
  border-color: rgba(21,101,200,0.2);
}
.related-card__topic--engineering {
  background: rgba(5,150,105,0.08);
  color: #059669;
  border-color: rgba(5,150,105,0.2);
}

.related-card__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy, #0A1628);
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
}

.related-card__meta {
  font-size: 0.75rem;
  color: var(--color-muted, #9CA3AF);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 13px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}
.related-card__sep { color: var(--color-border, #D1D5DB); }

.related-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  color: var(--color-teal, #00C9A7);
  text-decoration: none;
  transition: gap 0.2s;
}
.related-card__link:hover { gap: 10px; }


/* ── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr 272px; gap: 36px; }
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Hide TOC on mobile (no scrollspy context) */
  .article-sidebar-widget--toc { display: none; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-bio__social { justify-content: center; }
}

@media (max-width: 640px) {
  .article-hero__heading { font-size: 1.45rem; }

  .article-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-hero__illustration { padding: 12px; }

  .article-stats { grid-template-columns: 1fr; }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-grid { grid-template-columns: 1fr; }

  .related-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-h2 { font-size: 1.15rem; gap: 10px; }

  .pull-quote { padding: 18px 20px; }
  .pull-quote p { font-size: 0.975rem !important; }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .author-bio { padding: 22px 18px; gap: 18px; }
}