/* ── BLOG PAGE ──────────────────────────────────── */
.blog-page {
  padding-top: 100px;
  padding-bottom: 6rem;
  min-height: 100dvh;
}

.blog-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.blog-hero__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(43, 191, 143, 0.1);
  border: 1px solid rgba(43, 191, 143, 0.3);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.blog-hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.blog-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FEATURED PILLAR CARD ───────────────────────── */
.blog-featured {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0 0;
  text-decoration: none;
  border: 1px solid rgba(43, 191, 143, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.blog-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(43, 191, 143, 0.15);
  border-color: rgba(43, 191, 143, 0.45);
}

.blog-featured__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-featured__badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-featured__badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(43, 191, 143, 0.15);
  border: 1px solid rgba(43, 191, 143, 0.35);
  color: var(--accent-primary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
}

.blog-featured__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 0;
}

.blog-featured__excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.blog-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.blog-featured__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 130px;
  border-left: 1px solid var(--glass-border);
  padding-left: 2rem;
}

.blog-featured__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured__stats {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.blog-featured__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.blog-featured__stat span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.blog-featured__stat span small {
  font-size: 0.7rem;
  font-weight: 600;
}

.blog-featured__stat small {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ── SECTION LABEL & FILTERS ────────────────────── */
.blog-section-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3.5rem 0 0;
}

@media (min-width: 768px) {
  .blog-section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.blog-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin: 0;
}

.blog-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.blog-search {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.85rem;
  min-width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.blog-search:focus {
  border-color: var(--accent-primary);
}

.blog-filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.blog-filter-btn:hover {
  border-color: rgba(43, 191, 143, 0.4);
  color: var(--text-primary);
}

.blog-filter-btn.active {
  background: rgba(43, 191, 143, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .blog-featured {
    flex-direction: column;
    padding: 1.5rem;
  }
  .blog-featured__right {
    flex-direction: row;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
    min-width: unset;
    justify-content: space-around;
  }
  .blog-featured__stats {
    flex-direction: row;
    gap: 1.5rem;
  }
  .blog-featured__icon {
    display: none;
  }
}

/* ── BLOG GRID (Masonry) ─────────────────────────────────── */
.blog-grid {
  column-count: 1;
  column-gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .blog-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    column-count: 3;
  }
}

.blog-grid--small {
  padding: 1rem 0 0;
}

/* ── BLOG CARD ──────────────────────────────────── */
.blog-card {
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(43, 191, 143, 0.12);
}

.blog-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  flex: 1;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card__title a:hover {
  color: var(--accent-primary);
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  margin-top: auto;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card__read {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.blog-card__read:hover {
  opacity: 0.75;
}

/* ── ARTICLE PAGE ───────────────────────────────── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-primary);
  transform-origin: 0%;
  z-index: 9999;
  box-shadow: 0 0 10px var(--accent-glow);
}

.article-page {
  padding-top: 100px;
  padding-bottom: 6rem;
  min-height: 100dvh;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
}

.article-container.has-sidebar {
  max-width: 1000px;
}

.article-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--accent-primary);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0.75rem 0 0.5rem;
}

.article-meta-rich {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 600px) {
  .article-meta-rich {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.article-authors-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-author__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.article-author__info {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.article-author__info strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.article-author__info span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.article-reviewer__badge {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.article-meta-dates {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-meta-dates__item {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.article-meta-dates__item strong {
  color: var(--text-primary);
  font-size: 0.85rem;
}

.article-read-time {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.article-body {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── ARTICLE LAYOUT (with TOC) ────────────────────── */
.article-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .article-layout.has-toc {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .article-toc-sidebar {
    position: sticky;
    top: 100px;
    width: 250px;
    flex-shrink: 0;
  }
  
  .article-body-wrapper {
    flex-grow: 1;
    min-width: 0;
  }
}

.article-toc {
  padding: 1.5rem;
  border-left: 2px solid var(--glass-border);
}

.article-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-toc__list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
  display: block;
}

.article-toc__list a:hover {
  color: var(--accent-primary);
}

.article-para {
  margin-bottom: 1rem;
}

.article-subheading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 100px;
}

.article-heading {
  scroll-margin-top: 100px;
}

.article-li {
  margin-left: 1.5rem;
  margin-bottom: 0.4rem;
  list-style: disc;
}

.article-cta {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 3rem;
  border: 1px solid rgba(43, 191, 143, 0.2);
}

.article-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-cta__badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(43, 191, 143, 0.12);
  border: 1px solid rgba(43, 191, 143, 0.3);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.article-cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── ARTICLE AUTHOR BYLINE ──────────────────────── */
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.article-author__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #1a9e74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.article-author__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.article-author__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.article-author__role {
  font-size: 0.75rem;
  color: var(--text-muted);
}


.article-related__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ── ARTICLE RICH CONTENT ───────────────────────── */
.article-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.3px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.article-callout {
  background: rgba(43, 191, 143, 0.07);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
}

.article-callout p {
  margin-bottom: 0.4rem;
}

.article-callout strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.article-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2.5rem 0;
}

.article-strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-link {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}

.article-link:hover {
  opacity: 0.75;
}

/* ── ARTICLE TABLE ──────────────────────────────── */
.article-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.article-th {
  background: rgba(43, 191, 143, 0.1);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.article-td {
  padding: 0.7rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.article-table tbody tr:last-child .article-td {
  border-bottom: none;
}

.article-table tbody tr:hover {
  background: rgba(43, 191, 143, 0.04);
}


/* ── INSIGHTS SECTION (Homepage) ──────────────── */
.insights-section {
  padding: 5rem 0;
  border-top: 1px solid var(--glass-border);
}

.insights-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.insights-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.insights-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.insights-section__sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.insights-section__more {
  text-align: center;
  margin-top: 2.5rem;
}

.insights-section__more a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(43, 191, 143, 0.35);
  border-radius: 999px;
  transition: background 0.2s;
}

.insights-section__more a:hover {
  background: rgba(43, 191, 143, 0.08);
}

@media (max-width: 640px) {
  .blog-hero__title {
    font-size: 2rem;
  }
  .article-title {
    font-size: 1.6rem;
  }
}

.article-author-bio {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.article-author-bio__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-author-bio__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.article-author-bio__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.article-author-bio__role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-author-bio__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
