/* ==========================================================================
   DASH INTERNATIONAL — INSIGHT ARTICLE DETAIL STYLES (LIGHT THEME)
   Clean, Editorial & Technical Design Architecture
   ========================================================================== */

.insight-detail-root {
  min-height: 100vh;
  /* Dark band behind the transparent fixed header (matches the hero), light page below */
  background: linear-gradient(to bottom, var(--dash-navy-950, #070e1a) 0, var(--dash-navy-950, #070e1a) 5.5rem, #f8fafc 5.5rem);
  color: var(--dash-navy-900, #0f172a);
  padding-top: 5.5rem;
}

/* --------------------------------------------------------------------------
   01. Article Hero Header (Atmospheric Navy Top Section)
   -------------------------------------------------------------------------- */
.insight-hero-section {
  position: relative;
  padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0 3.5rem;
  background: radial-gradient(circle at 50% 15%, rgba(16, 38, 68, 0.96), rgba(7, 14, 26, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #ffffff;
}

.insight-hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 168, 107, 0.2) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.insight-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--dash-slate-400, #94a3b8);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.insight-breadcrumbs a {
  color: var(--dash-slate-400, #94a3b8);
  text-decoration: none;
  transition: color var(--duration-fast, 0.2s);
}

.insight-breadcrumbs a:hover {
  color: #00a86b;
}

.insight-breadcrumbs .breadcrumb-sep {
  color: var(--dash-slate-600, #475569);
}

.insight-breadcrumbs .breadcrumb-current {
  color: #00a86b;
  font-weight: 700;
}

.insight-header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.insight-badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 168, 107, 0.15);
  color: #34d399;
  border: 1px solid rgba(0, 168, 107, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insight-badge-standard {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.8125rem;
  font-weight: 600;
}

.insight-hero-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 1.6rem + 2vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.insight-hero-lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--dash-slate-300, #cbd5e1);
  line-height: 1.7;
  max-width: 960px;
  margin-bottom: 2rem;
}

.insight-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 0.75rem);
  flex-wrap: wrap;
  gap: 1rem;
}

.insight-meta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.insight-author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.insight-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a86b, #10223b);
  border: 2px solid rgba(0, 168, 107, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.9rem;
}

.insight-author-info {
  display: flex;
  flex-direction: column;
}

.insight-author-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9375rem;
}

.insight-author-role {
  font-size: 0.75rem;
  color: var(--dash-slate-400, #94a3b8);
}

.insight-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--dash-slate-300, #cbd5e1);
}

.insight-meta-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.insight-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.insight-action-btn:hover {
  background: rgba(0, 168, 107, 0.25);
  border-color: #00a86b;
  color: #34d399;
}

/* --------------------------------------------------------------------------
   02. Metrics Highlight Ribbon
   -------------------------------------------------------------------------- */
.insight-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.insight-metric-card {
  background: rgba(11, 25, 44, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.35rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.insight-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 107, 0.4);
}

.insight-metric-value {
  font-family: var(--font-display, inherit);
  font-size: 1.85rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.insight-metric-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.insight-metric-sub {
  font-size: 0.75rem;
  color: var(--dash-slate-400, #94a3b8);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   03. Article Main Content & Layout (LIGHT THEME)
   -------------------------------------------------------------------------- */
.insight-content-section {
  padding: 4rem 0 5.5rem;
  background-color: #ffffff;
  color: #0f172a;
}

.insight-content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Sticky Sidebar Table of Contents (LIGHT THEME) */
.insight-sidebar {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.insight-toc-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.insight-toc-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.insight-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.insight-toc-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: all 0.2s ease;
  display: block;
  padding-left: 0.5rem;
  border-left: 2px solid transparent;
}

html[dir="rtl"] .insight-toc-link {
  padding-left: 0;
  padding-right: 0.5rem;
  border-left: none;
  border-right: 2px solid transparent;
}

.insight-toc-link:hover {
  color: #00a86b;
  border-left-color: #00a86b;
  padding-left: 0.75rem;
}

html[dir="rtl"] .insight-toc-link:hover {
  padding-left: 0;
  padding-right: 0.75rem;
  border-right-color: #00a86b;
}

/* Sidebar Product Offer CTA */
.insight-sidebar-cta {
  background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 168, 107, 0.06);
}

.insight-sidebar-cta h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.insight-sidebar-cta p {
  font-size: 0.8125rem;
  color: #475569;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Article Body Typography & Sections */
.insight-article-body {
  max-width: 860px;
}

/* Executive Summary Box (LIGHT THEME) */
.insight-summary-box {
  background: #f0fdf4;
  border-left: 4px solid #00a86b;
  border-radius: 0 var(--radius-lg, 0.75rem) var(--radius-lg, 0.75rem) 0;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  border-top: 1px solid #dcfce7;
  border-right: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
  box-shadow: 0 4px 16px rgba(0, 168, 107, 0.05);
}

html[dir="rtl"] .insight-summary-box {
  border-left: 1px solid #dcfce7;
  border-right: 4px solid #00a86b;
  border-radius: var(--radius-lg, 0.75rem) 0 0 var(--radius-lg, 0.75rem);
}

.insight-summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #008755;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insight-summary-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
  font-weight: 500;
  margin: 0;
}

/* Article Image Banner */
.insight-featured-media {
  margin-bottom: 3.5rem;
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.insight-featured-media img {
  width: 100%;
  height: clamp(300px, 260px + 15vw, 480px);
  object-fit: cover;
  display: block;
}

.insight-media-caption {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  font-size: 0.8125rem;
  color: #64748b;
  font-style: italic;
  border-top: 1px solid #e2e8f0;
}

/* Section Blocks */
.insight-section-block {
  margin-bottom: 3.5rem;
}

.insight-section-heading {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.95rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e2e8f0;
}

.insight-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1.25rem;
}

/* Data Tables (LIGHT THEME) */
.insight-table-wrap {
  margin: 2rem 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.insight-table-header-box {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.insight-table-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #008755;
  margin: 0;
}

.insight-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.insight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

html[dir="rtl"] .insight-table {
  text-align: right;
}

.insight-table th {
  padding: 0.85rem 1.25rem;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}

.insight-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.insight-table tbody tr:hover {
  background: #f0fdf4;
}

.insight-table td:first-child {
  font-weight: 700;
  color: #0f172a;
}

/* Callouts (LIGHT THEME) */
.insight-callout-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg, 0.75rem);
  display: flex;
  gap: 1rem;
}

.insight-callout-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.insight-callout-warning .insight-callout-icon {
  color: #d97706;
}

.insight-callout-warning .insight-callout-title {
  color: #78350f;
}

.insight-callout-warning .insight-callout-text {
  color: #92400e;
}

.insight-callout-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.insight-callout-info .insight-callout-icon {
  color: #0284c7;
}

.insight-callout-info .insight-callout-title {
  color: #075985;
}

.insight-callout-info .insight-callout-text {
  color: #0369a1;
}

.insight-callout-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.insight-callout-text {
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
}

/* Tags Cloud (LIGHT THEME) */
.insight-tags-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 3rem 0;
}

.insight-tag-item {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm, 0.375rem);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* FAQ Accordion (LIGHT THEME) */
.insight-faq-section {
  margin: 3.5rem 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl, 1rem);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.insight-faq-header {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.insight-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 0.5rem);
  overflow: hidden;
  background: #ffffff;
}

.insight-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.985rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

html[dir="rtl"] .insight-faq-question {
  text-align: right;
}

.insight-faq-question:hover {
  background: #f0fdf4;
}

.insight-faq-answer {
  padding: 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Conversion Bottom Banner */
.insight-conversion-banner {
  background: linear-gradient(135deg, #0b192c, #070e1a);
  border: 1px solid rgba(0, 168, 107, 0.35);
  border-radius: var(--radius-xl, 1rem);
  padding: 2.5rem;
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(11, 25, 44, 0.2);
}

.insight-conversion-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 168, 107, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.insight-conversion-content {
  max-width: 580px;
}

.insight-conversion-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.insight-conversion-content p {
  font-size: 0.95rem;
  color: var(--dash-slate-300, #cbd5e1);
  line-height: 1.6;
  margin: 0;
}

.insight-conversion-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Related Articles Grid (LIGHT THEME) */
.insight-related-section {
  padding: 4.5rem 0 6rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.insight-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.insight-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .insight-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-content-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .insight-sidebar {
    position: static;
    display: none;
  }

  .insight-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .insight-metrics-ribbon {
    grid-template-columns: 1fr;
  }

  .insight-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .insight-meta-actions {
    width: 100%;
    justify-content: space-between;
  }

  .insight-related-grid {
    grid-template-columns: 1fr;
  }

  .insight-conversion-banner {
    padding: 1.75rem;
  }
}

/* Keep line breaks inside paragraphs (numbered/bulleted lists written with \n) */
.insight-paragraph {
  white-space: pre-line;
}

/* FAQ answers use the hidden attribute in the WordPress theme */
.insight-faq-answer[hidden] { display: none; }
