/* ==========================================================================
   AKMS GLOBAL — Articles & Insights Design System (White & Royal Blue Executive Theme)
   Optimized for 30+ Knowledge Articles & Hub (Desktop & Mobile)
   ========================================================================== */

.insights-page-wrapper {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* --- 1. HUB HERO & STATS HEADER (insights/index.html) --- */
.insights-hub-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.insights-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: var(--gold-primary);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.insights-hub-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.insights-hub-hero p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 780px;
  margin: 0 auto;
}

.insights-hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--border-subtle);
}

.insights-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  min-width: 150px;
  transition: all var(--transition-fast);
}

.insights-stat-card:hover {
  border-color: #2563EB;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.1);
}

.insights-stat-card b {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-primary);
  line-height: 1.1;
}

.insights-stat-card span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Category Sections & Filter Tabs */
.insights-cat-section {
  max-width: var(--container-max-width);
  margin: 4rem auto 0;
  padding: 0 1.5rem;
}

.insights-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.insights-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.insights-cat-header h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0;
  letter-spacing: -0.015em;
}

.insights-cat-badge {
  background: rgba(29, 78, 216, 0.1);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hub Article Cards Grid */
.insights-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.insight-article-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none;
  color: var(--text-primary);
}

.insight-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6, #F59E0B);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.insight-article-card:hover {
  transform: translateY(-8px) !important;
  border-color: #2563EB !important;
  box-shadow: 0 20px 40px -10px rgba(29, 78, 216, 0.16) !important;
}

.insight-article-card:hover::before {
  opacity: 1;
}

.insight-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0A192F;
}

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

.insight-article-card:hover .insight-card-img-wrap img {
  transform: scale(1.06);
}

.insight-card-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
}

.insight-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

.insight-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
}

.insight-card-meta span.article-num {
  color: var(--gold-primary);
}

.insight-card-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.4;
  margin: 0;
  transition: color var(--transition-fast);
}

.insight-article-card:hover .insight-card-title {
  color: #1D4ED8;
}

.insight-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.insight-card-footer {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
}

.insight-card-footer span {
  color: var(--text-muted);
}

/* Filter Pills & Search */
.insights-filter-pill.active {
  background: #1D4ED8 !important;
  color: #FFFFFF !important;
  border-color: #1D4ED8 !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3) !important;
}

.insights-search-input:focus {
  outline: none;
  border-color: #2563EB !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
}


/* ==========================================================================
   2. INDIVIDUAL ARTICLE PAGE LAYOUT (2-Column Desktop Grid)
   ========================================================================== */

.article-page-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
}

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

/* --- LEFT COLUMN: ARTICLE BODY --- */
article {
  min-width: 0; /* Prevents grid blowout from tables/code */
}

/* Article Hero Header */
.article-hero-header {
  margin-bottom: 2.25rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--gold-primary);
}

.article-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: var(--gold-primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.article-hero-header h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.22;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

.article-lead-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* Author Byline Bar */
.article-byline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

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

.byline-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.byline-author-info strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-heading);
}

.byline-author-info em {
  display: block;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.byline-meta-items {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Article Hero Image Figure (Downsized & Proportional) */
.article-hero-figure {
  margin: 0 0 2.25rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border-medium);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #0A192F;
  max-height: 340px;
}

.article-hero-figure img {
  width: 100%;
  height: 320px;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.article-hero-figure figcaption {
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-weight: 600;
}

/* Direct Executive Answer Box (AEO Featured Snippet Callout) */
.article-answer-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid rgba(29, 78, 216, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.answer-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-primary);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.article-answer-box p {
  margin: 0 0 0.85rem 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1E3A8A;
}

.article-answer-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   3. ARTICLE PROSE & RICH TYPOGRAPHY
   ========================================================================== */

.article-prose {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #334155;
}

.article-prose p {
  margin: 0 0 1.5rem 0;
}

/* Drop-Cap on First Paragraph */
.article-prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.8;
  font-weight: 900;
  color: #1D4ED8;
  padding-right: 0.65rem;
  padding-top: 0.25rem;
  font-family: inherit;
}

/* Section Headings */
.article-prose h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0A192F;
  margin: 3.25rem 0 1.25rem 0;
  line-height: 1.3;
  padding-left: 1rem;
  border-left: 4px solid #1D4ED8;
  position: relative;
  letter-spacing: -0.015em;
}

.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 2.25rem 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-prose h3::before {
  content: '●';
  color: #C5A047;
  font-size: 0.85rem;
}

.article-prose strong {
  color: #0A192F;
  font-weight: 800;
}

.article-prose a {
  color: #1D4ED8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article-prose a:hover {
  color: #2563EB;
}

/* Custom Bullet Lists */
.article-prose ul, .article-prose ol {
  margin: 0 0 1.65rem 0;
  padding-left: 0;
  list-style: none;
}

.article-prose ul > li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.article-prose ul > li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #1D4ED8;
  font-weight: 900;
  font-size: 1rem;
}

.article-prose ol {
  counter-reset: prose-ol-counter;
}

.article-prose ol > li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.95rem;
  counter-increment: prose-ol-counter;
  line-height: 1.7;
}

.article-prose ol > li::before {
  content: counter(prose-ol-counter);
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  background: rgba(29, 78, 216, 0.1);
  color: #1D4ED8;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styled Pull-Quotes & Blockquotes */
.article-prose blockquote,
.article-pullquote {
  position: relative;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border-left: 5px solid #1D4ED8;
  border-radius: 0 16px 16px 0;
  padding: 1.75rem 2rem 1.75rem 2.5rem;
  margin: 2.5rem 0;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.75;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.06);
}

.article-prose blockquote::before,
.article-pullquote::before {
  content: '“';
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
  font-size: 3.5rem;
  color: #93C5FD;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

/* Callout Notes System (.note.warn, .note.tip, .callout-box) */
.note, .callout-box {
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  margin: 2.25rem 0;
  border-left: 4px solid #2563EB;
  background: #EFF6FF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.note.warn, .callout-warning {
  border-left-color: #F59E0B;
  background: #FFFBEB;
  color: #92400E;
}

.note.tip, .callout-tip {
  border-left-color: #10B981;
  background: #ECFDF5;
  color: #065F46;
}

.note-tag {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  color: #1D4ED8;
}

.note.warn .note-tag { color: #D97706; }
.note.tip .note-tag { color: #059669; }

.note p, .callout-box p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Data Tables with Clean Border & Horizontal Scroll Wrapper */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  margin: 2.5rem 0;
  background: #FFFFFF;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.table-wrap caption {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.table-wrap th, .table-wrap td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

.table-wrap th {
  background: #0A192F;
  color: #FFFFFF;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.table-wrap tr:hover td {
  background: #F8FAFC;
}

.table-wrap td.num {
  font-weight: 800;
  color: #1D4ED8;
}

/* Executive Facts Strip (Metrics bar) */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2.25rem 0;
  background: #F8FAFC;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
}

.fact-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.fact-item:hover {
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.1);
}

.fact-item dt {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.fact-item dd, .fact-item strong {
  font-size: 1.35rem;
  color: #1D4ED8;
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
}

/* Inline Article Link Cards */
.inline-card {
  display: block;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid #E2E8F0;
  border-left: 4px solid #1D4ED8;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.inline-card:hover {
  border-color: #2563EB;
  border-left-color: #C5A047;
  transform: translateX(6px);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.12);
}

.inline-card small {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1D4ED8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.inline-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0A192F;
  line-height: 1.4;
}

/* Mobile In-Article Collapsible Table of Contents */
.mobile-in-article-toc {
  display: none;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  margin: 1.5rem 0 2.25rem 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.mobile-in-article-toc summary {
  padding: 0.95rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0A192F;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #EFF6FF;
  border-bottom: 1px solid #DBEAFE;
  user-select: none;
}

.mobile-in-article-toc-list {
  padding: 0.85rem 1.25rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-in-article-toc-list a {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding-left: 0.5rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.mobile-in-article-toc-list a:hover {
  color: #1D4ED8;
  border-left-color: #1D4ED8;
}

/* ==========================================================================
   4. FAQ ACCORDION & AUTHOR BIO CARD
   ========================================================================== */

.faq-section-block {
  margin: 4.5rem 0 3.5rem 0;
  padding-top: 3rem;
  border-top: 2px solid var(--border-subtle);
}

.faq-section-title-wrap {
  margin-bottom: 2rem;
}

.faq-section-title-wrap h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.5rem 0;
}

.faq-section-title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.article-faq-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.article-faq-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.article-faq-card[open] {
  border-color: #1D4ED8;
  border-left: 4px solid #1D4ED8;
  background: #F8FAFC;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
}

.article-faq-card summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0A192F;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.article-faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.faq-badge-mini {
  background: rgba(29, 78, 216, 0.08);
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.faq-toggle-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.article-faq-card[open] .faq-toggle-arrow {
  transform: rotate(180deg);
  background: #1D4ED8;
  color: #FFFFFF;
}

.article-faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
  padding-top: 1.25rem;
}

.article-faq-answer p {
  margin: 0 0 0.85rem 0;
}

.article-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Author Bio Card at Bottom */
.article-author-bio-card {
  margin: 3.5rem 0 2.5rem 0;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: 20px;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.06);
}

.author-bio-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #C5A047;
  box-shadow: 0 6px 18px rgba(197, 160, 71, 0.35);
}

.author-bio-content h4 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0A192F;
  margin: 0 0 0.35rem 0;
}

.author-bio-content em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1D4ED8;
  margin-bottom: 0.75rem;
}

.author-bio-content p {
  margin: 0;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
}


/* ==========================================================================
   5. RELATED ARTICLES 2X2 GRID & PAGER
   ========================================================================== */

.related-articles-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--border-subtle);
}

.related-articles-section h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0A192F;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6, #C5A047);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: #2563EB;
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.12);
}

.related-card:hover::before {
  opacity: 1;
}

.related-thumb {
  width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-thumb {
  transform: scale(1.04);
}

.related-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.related-card-content small {
  display: inline-block;
  width: fit-content;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.related-card-content strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0A192F;
  line-height: 1.4;
}

.related-card-content span {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.55;
  margin-top: auto;
  padding-top: 0.4rem;
}

/* Next / Prev Pager */
.article-pager-nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
}

.pager-btn {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.pager-btn:hover {
  border-color: #1D4ED8;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.1);
  transform: translateY(-2px);
}

.pager-btn small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1D4ED8;
  margin-bottom: 0.35rem;
}

.pager-btn strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0A192F;
  line-height: 1.4;
}

.pager-btn.next-btn {
  text-align: right;
}


/* ==========================================================================
   6. COMPACT RIGHT SIDEBAR RAIL (Desktop)
   ========================================================================== */

.article-sidebar-rail {
  display: flex;
  flex-direction: column;
}

.sidebar-widget {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.sidebar-widget:hover {
  border-color: #2563EB;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.sidebar-widget-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #0A192F;
  margin: 0;
}

.sidebar-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* TOC Navigation List */
.toc-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-nav-link {
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border-left: 2.5px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-nav-link:hover,
.toc-nav-link.active {
  color: #1D4ED8;
  background: #EFF6FF;
  border-left-color: #1D4ED8;
  font-weight: 700;
  padding-left: 0.75rem;
}

/* Compact Article Streams in Sidebar (Max 3 items) */
.sidebar-articles-stream {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-article-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast);
}

.sidebar-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-article-item:hover {
  transform: translateX(4px);
}

/* Cap stream items at 3 per widget */
.sidebar-articles-stream .sidebar-article-item:nth-child(n+4) {
  display: none !important;
}

.sidebar-thumb-wrap {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0A192F;
  border: 1px solid var(--border-subtle);
}

.sidebar-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-article-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.sidebar-article-info small {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1D4ED8;
}

.sidebar-article-info strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0A192F;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-info span {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
}

.sidebar-view-all-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1D4ED8;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.sidebar-view-all-link:hover {
  transform: translateX(4px);
  text-decoration: underline;
}

/* Sidebar Quick VAT Calculator */
.sidebar-calc-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-calc-box label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
}

.side-calc-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  background: #F8FAFC;
  overflow: hidden;
}

.side-calc-input-row .curr-prefix {
  padding: 0.45rem 0.75rem;
  background: #E2E8F0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0A192F;
}

.side-calc-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0A192F;
  outline: none;
}

.side-calc-results {
  background: #EFF6FF;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #334155;
}

.calc-res-item strong {
  font-weight: 800;
  color: #0A192F;
}

.calc-res-item strong.res-highlight {
  color: #1D4ED8;
  font-size: 0.9rem;
}

.side-calc-link {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1D4ED8;
  text-decoration: none;
  text-align: right;
}

.side-calc-link:hover {
  text-decoration: underline;
}

/* Static VIP Consultation Desk Card */
.sidebar-sticky-consultation {
  position: static !important;
  background: linear-gradient(135deg, #0A192F 0%, #172554 100%) !important;
  color: #FFFFFF;
  border: 1.5px solid rgba(197, 160, 71, 0.45) !important;
  border-radius: 18px !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.25) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1.5rem !important;
}

.consult-author-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #C5A047;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 14px rgba(197, 160, 71, 0.3);
}

.sidebar-sticky-consultation h4 {
  font-size: 1.12rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 0.3rem 0;
}

.sidebar-sticky-consultation em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: #93C5FD;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sidebar-sticky-consultation p {
  font-size: 0.84rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0 0 1.15rem 0;
}

.sidebar-sticky-consultation .btn {
  width: 100%;
}


/* ==========================================================================
   7. FLOATING CONTROLS (Progress Bar + Back to Top)
   ========================================================================== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #1D4ED8 0%, #3B82F6 50%, #F59E0B 100%);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.back-to-top-btn {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0A192F;
  color: #FFFFFF;
  border: 1.5px solid #C5A047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #1D4ED8;
  border-color: #FFFFFF;
  transform: translateY(-3px) scale(1.08);
}


/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (1024px, 768px, 640px)
   ========================================================================== */

@media (max-width: 1024px) {
  .article-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
    padding: 1.5rem 1rem !important;
  }

  /* Show mobile in-article TOC */
  .mobile-in-article-toc {
    display: block !important;
  }

  /* Hide repetitive desktop sidebar streams on mobile */
  .article-sidebar-rail .sidebar-widget {
    display: none !important;
  }

  /* Retain only the VIP consultation card */
  .article-sidebar-rail .sidebar-widget.sidebar-sticky-consultation {
    display: flex !important;
    margin: 2.5rem 0 1.5rem 0 !important;
    width: 100% !important;
  }

  .article-sidebar-rail {
    position: static !important;
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .article-hero-figure {
    max-height: 240px;
  }

  .article-hero-figure img {
    height: 220px;
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  .insights-cards-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1.25rem;
  }

  .article-pager-nav {
    flex-direction: column;
    gap: 0.85rem;
  }

  .pager-btn.next-btn {
    text-align: left;
  }

  .article-prose > p:first-of-type::first-letter {
    font-size: 2.8rem;
  }

  .back-to-top-btn {
    bottom: 84px;
    right: 18px;
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .article-hero-figure {
    max-height: 190px;
  }

  .article-hero-figure img {
    height: 180px;
    max-height: 180px;
  }

  .article-answer-box {
    padding: 1.4rem 1.25rem;
  }

  .facts-strip {
    grid-template-columns: 1fr;
  }

  .byline-meta-items {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
