/* ==========================================================================
   TenderVIA Blog & Article Stylesheet
   ========================================================================== */
@import url('content-typography.css');

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --blog-primary: #1F1C1C;
  --blog-secondary: #1F1C1C;
  --blog-teal: #1F1C1C;
  --blog-emerald: #3EA3DC;
  --blog-emerald-hover: #009B97;
  --blog-emerald-soft: rgba(62, 163, 220, 0.08);
  --blog-emerald-border: rgba(62, 163, 220, 0.25);
  --blog-text-main: #1F1C1C;
  --blog-text-muted: #4a4545;
  --blog-card-border: rgba(31, 28, 28, 0.12);
  --blog-card-bg: #ffffff;
  --blog-radius-lg: 0px;
  --blog-radius-md: 0px;
  --blog-radius-sm: 0px;
}

/* --------------------------------------------------------------------------
   Category Filter Pill Bar (Inspired by page-features.php)
   -------------------------------------------------------------------------- */
.blog-category-nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
  width: 100%;
}

.blog-category-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px !important;
  padding: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.blog-category-nav::-webkit-scrollbar {
  display: none;
}

.blog-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px !important;
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: #64748b;
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.blog-category-pill:hover {
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-0.5px);
}

.blog-category-pill.active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(226, 232, 240, 0.6) !important;
  font-weight: 800;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.08), 0 1px 4px -1px rgba(15, 23, 42, 0.04) !important;
}

.blog-category-pill .count,
.blog-category-pill .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 9999px !important;
  font-size: 10px;
  font-weight: 800;
  background-color: rgba(15, 23, 42, 0.06);
  color: #64748b;
  transition: all 0.25s ease;
}

.blog-category-pill.active .count,
.blog-category-pill.active .filter-count {
  background-color: #3EA3DC !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Featured Article Spotlight Card
   -------------------------------------------------------------------------- */
.featured-article-card {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(31, 28, 28, 0.12);
  border-radius: 0 !important;
  padding: 24px;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -12px rgba(62, 163, 220, 0.15);
  border-color: #3EA3DC;
}

.featured-media-wrap {
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;
  background-color: #1F1C1C;
  aspect-ratio: 16 / 10;
  max-height: 300px;
  width: 100%;
}

.featured-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.featured-article-card:hover .featured-media-wrap img {
  transform: scale(1.04);
}

.featured-badge-highlight {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 0px;
  background-color: rgba(31, 28, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #3EA3DC;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(62, 163, 220, 0.4);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-category-tag {
  display: inline-block;
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #047857;
  background: rgba(62, 163, 220, 0.1);
  padding: 3px 10px;
  border-radius: 0px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-category-tag:hover {
  background: rgba(62, 163, 220, 0.2);
  color: #065f46;
}

.article-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-reading-time .material-symbols-outlined {
  font-size: 15px;
}

.featured-title {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title:hover {
  color: #3EA3DC;
}

.featured-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 24px;
}

.article-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.author-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-img,
.author-info-wrap img,
img.avatar,
.avatar,
.author-bio-card img {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid rgba(62, 163, 220, 0.3);
}

.author-name {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.author-role {
  font-size: 11.5px;
  color: #64748b;
  display: block;
}

/* --------------------------------------------------------------------------
   Standard Blog Post Grid & Cards
   -------------------------------------------------------------------------- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 163, 220, 0.35);
  box-shadow: 0 20px 36px -10px rgba(62, 163, 220, 0.12);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #081315;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 12px;
}

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

.blog-card:hover .blog-card-title a {
  color: #3EA3DC;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #3EA3DC;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.read-more-link .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.blog-card:hover .read-more-link {
  color: #009B97;
  gap: 9px;
}

.blog-card:hover .read-more-link .material-symbols-outlined {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 64px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 0px;
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
  background-color: rgba(62, 163, 220, 0.08);
  border-color: rgba(62, 163, 220, 0.3);
  color: #047857;
  transform: translateY(-1px);
}

.blog-pagination .page-numbers.current {
  background-color: #3EA3DC;
  border-color: #3EA3DC;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(62, 163, 220, 0.25);
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

/* --------------------------------------------------------------------------
   Single Post Editorial Layout & Typography
   -------------------------------------------------------------------------- */
.single-article-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 64px !important;
  position: relative;
  z-index: 10;
  width: 100%;
}

@media (max-width: 768px) {
  .single-article-wrapper {
    padding: 16px 16px 48px !important;
  }
}

/* Polished Minimalist Breadcrumbs */
.article-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-wrap: wrap;
  width: fit-content;
}

.article-breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-breadcrumbs a.breadcrumb-item:hover,
.article-breadcrumbs a:hover {
  color: #0f172a;
}

.article-breadcrumbs .separator {
  color: #cbd5e1;
  font-size: 11px;
}

.article-breadcrumbs .breadcrumb-item.active {
  color: #0f172a;
  font-weight: 600;
}

/* Article Header */
.single-article-header {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: auto !important;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-meta-divider {
  color: #cbd5e1;
  font-size: 10px;
}

.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #047857;
  background: rgba(62, 163, 220, 0.08);
  border: 1px solid rgba(62, 163, 220, 0.25);
  padding: 3px 10px;
  border-radius: 0px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-category-tag .category-dot {
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background-color: #3EA3DC;
  box-shadow: 0 0 6px rgba(62, 163, 220, 0.6);
}

.article-category-tag:hover {
  background: rgba(62, 163, 220, 0.16);
  border-color: rgba(62, 163, 220, 0.4);
  color: #065f46;
}

.article-reading-time,
.article-publish-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
}

.article-reading-time .material-symbols-outlined,
.article-publish-date .material-symbols-outlined {
  font-size: 14px;
  color: #94a3b8;
}

.single-article-title {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-top: 4px;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Author & Share Editorial Strip */
.article-author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 0px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.author-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  object-fit: cover;
  border: 2px solid rgba(62, 163, 220, 0.3);
  box-shadow: 0 2px 8px rgba(62, 163, 220, 0.15);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.author-name {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.author-badge {
  display: inline-flex;
  color: #3EA3DC;
}

.author-badge .material-symbols-outlined {
  font-size: 15px;
}

.author-role {
  font-size: 11.5px;
  color: #64748b;
}

.article-share-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Balanced Cinematic Hero Media */
.single-article-hero-media {
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  aspect-ratio: 16 / 9;
  max-height: 360px;
  width: 100%;
}

.single-article-hero-media img,
.hero-media-img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

/* Editorial Prose */
.article-prose {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 17px;
  line-height: 1.78;
  color: #334155;
}

.article-prose p {
  margin-bottom: 26px;
}

.article-prose .lead {
  font-size: 20px;
  line-height: 1.65;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 32px;
}

.article-prose h2 {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-top: 16px;
  position: relative;
  scroll-margin-top: 100px;
}

.article-prose h3 {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

/* --------------------------------------------------------------------------
   Rich Text Editor (RTE) / Gutenberg Content Lists & Formatting
   -------------------------------------------------------------------------- */
.article-prose ul,
.article-prose ol,
.wp-block-post-content ul,
.wp-block-post-content ol,
.entry-content ul,
.entry-content ol {
  margin-top: 18px !important;
  margin-bottom: 28px !important;
  padding-left: 28px !important;
}

/* Unordered Lists */
.article-prose ul,
.wp-block-post-content ul,
.entry-content ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
}

.article-prose ul ul,
.wp-block-post-content ul ul,
.entry-content ul ul {
  list-style-type: circle !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  padding-left: 24px !important;
}

.article-prose ul ul ul,
.wp-block-post-content ul ul ul,
.entry-content ul ul ul {
  list-style-type: square !important;
}

/* Ordered Lists */
.article-prose ol,
.wp-block-post-content ol,
.entry-content ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
}

.article-prose ol ol,
.wp-block-post-content ol ol,
.entry-content ol ol {
  list-style-type: lower-alpha !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  padding-left: 24px !important;
}

.article-prose ol ol ol,
.wp-block-post-content ol ol ol,
.entry-content ol ol ol {
  list-style-type: lower-roman !important;
}

/* List Items & Markers */
.article-prose li,
.wp-block-post-content li,
.entry-content li {
  display: list-item !important;
  margin-bottom: 10px;
  line-height: 1.75;
  color: #334155;
  padding-left: 6px;
}

.article-prose li::marker,
.wp-block-post-content li::marker,
.entry-content li::marker {
  color: #3EA3DC;
  font-weight: 700;
}

.article-prose ol > li::marker,
.wp-block-post-content ol > li::marker,
.entry-content ol > li::marker {
  color: #3EA3DC;
  font-weight: 700;
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
}

.article-prose li:last-child,
.wp-block-post-content li:last-child,
.entry-content li:last-child {
  margin-bottom: 0;
}

.article-prose li > p,
.wp-block-post-content li > p,
.entry-content li > p {
  margin-bottom: 8px !important;
}

.article-prose li > p:last-child,
.wp-block-post-content li > p:last-child,
.entry-content li > p:last-child {
  margin-bottom: 0 !important;
}

/* Inline Code Elements */
.article-prose code,
.wp-block-post-content code,
.entry-content code {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.88em;
  background: #f1f5f9;
  color: #0d9488;
  padding: 3px 7px;
  border-radius: 0px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  font-weight: 500;
}

.article-prose blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: rgba(62, 163, 220, 0.05);
  border-left: 4px solid #3EA3DC;
  border-radius: 0px;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: #1F1C1C;
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Highlighted Callout Box */
.article-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 36px 0;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0px;
}

.article-callout.tip {
  background: rgba(62, 163, 220, 0.06);
  border-color: rgba(62, 163, 220, 0.25);
}

.article-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-callout.tip .callout-icon {
  background-color: #3EA3DC;
  color: #ffffff;
}

.article-callout.warning .callout-icon {
  background-color: #f59e0b;
  color: #ffffff;
}

.callout-body h4 {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.callout-body p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: #475569;
}

/* --------------------------------------------------------------------------
   Sticky Sidebar & Table of Contents (TOC)
   -------------------------------------------------------------------------- */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-sidebar-widget-wrap {
  display: contents;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0 !important;
  padding: 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.03);
}

.sidebar-widget-newsletter {
  background-color: #020617 !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
}

.sidebar-widget-cta {
  background: linear-gradient(135deg, rgba(62, 163, 220, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%) !important;
  border-color: rgba(62, 163, 220, 0.25) !important;
}

.sidebar-widget-title {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget-title .material-symbols-outlined {
  font-size: 18px;
  color: #3EA3DC;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 13.5px;
  line-height: 1.45;
  color: #64748b;
  text-decoration: none;
  display: block;
  padding: 6px 12px;
  border-radius: 0px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: #3EA3DC;
  background-color: rgba(62, 163, 220, 0.05);
}

.toc-link.active {
  color: #047857;
  font-weight: 600;
  background-color: rgba(62, 163, 220, 0.08);
  border-left-color: #3EA3DC;
}

/* Social Share Bar */
.social-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.share-label {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  color: #475569;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background-color: #3EA3DC;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Author Box at End of Article */
.author-bio-card {
  margin: 48px 0;
  padding: 28px;
  border-radius: var(--blog-radius-md);
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-bio-card img {
  width: 72px;
  height: 72px;
  border-radius: 0px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #3EA3DC;
}

.author-bio-content h3 {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.author-bio-content .author-role-label {
  font-size: 12.5px;
  color: #047857;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.author-bio-content p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 0;
}

/* Tags Cloud */
.article-tags-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 48px;
}

.article-tag-item {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 0px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tag-item:hover {
  background: rgba(62, 163, 220, 0.1);
  color: #047857;
}

/* Post Navigation (Prev / Next) */
.post-navigation-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0;
  padding-top: 36px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-post-card {
  padding: 20px;
  border-radius: var(--blog-radius-sm);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-post-card:hover {
  border-color: rgba(62, 163, 220, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.nav-post-card.next {
  text-align: right;
  align-items: flex-end;
}

.nav-post-dir {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3EA3DC;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-post-title {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Posts Section */
.related-posts-section {
  margin: 64px 0;
  padding-top: 48px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.related-section-header {
  margin-bottom: 32px;
}

.related-section-header h3 {
  font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .featured-media-wrap {
    aspect-ratio: 16 / 9;
    max-height: 260px;
    min-height: auto;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .featured-article-card {
    padding: 16px;
    border-radius: 0 !important;
  }

  .featured-media-wrap {
    aspect-ratio: 16 / 9;
    max-height: 210px;
    min-height: auto;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .single-article-title {
    font-size: 1.85rem;
  }

  .post-navigation-split {
    grid-template-columns: 1fr;
  }

  .nav-post-card.next {
    text-align: left;
    align-items: flex-start;
  }
}
