/* ==========================================================================
   INSIGHTS & BLOG SYSTEM STYLESHEET
   Brand: Navy / Medical Blue / Teal / White / Gold
   ========================================================================== */

/* --- Insights Hub Hero --- */
.insights-hero {
  padding: 140px 0 60px 0;
  background: linear-gradient(135deg, #0a192f 0%, #1e3a5f 60%, #0c4a6e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.insights-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.insights-hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.insights-hero .eyebrow {
  color: var(--gold-accent);
}

.insights-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 12px 0 16px 0;
}

.insights-hero-sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Category Filter Bar --- */
.insights-filter-section {
  padding: 30px 0 20px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 76px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.03);
}

.filter-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.filter-pill-btn {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  background-color: #e2e8f0;
  color: var(--navy-primary);
}

.filter-pill-btn.active {
  background-color: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.2);
}

.insights-search-box {
  position: relative;
  min-width: 240px;
}

.insights-search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  outline: none;
  background-color: #f8fafc;
  color: #1e293b;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.insights-search-input:focus {
  border-color: var(--blue-medical);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 114, 178, 0.12);
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* --- Main Insights Hub Grid Area --- */
.insights-main-area {
  padding: 60px 0 90px 0;
  background-color: #f8fafc;
  min-height: 500px;
}

.insights-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insights-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.empty-icon {
  margin-bottom: 16px;
  color: #94a3b8;
}

.empty-heading {
  font-size: 1.25rem;
  color: var(--navy-primary);
  margin-bottom: 8px;
}

.empty-subtext {
  color: #64748b;
  font-size: 0.95rem;
}

/* --- Pagination & Load More --- */
.insights-pagination-wrap {
  margin-top: 50px;
  text-align: center;
}

.btn-load-more {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
}

/* ==========================================================================
   INDIVIDUAL BLOG ARTICLE PAGE
   ========================================================================== */
.article-header-section {
  padding: 130px 0 40px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.article-header-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--blue-medical);
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: var(--navy-primary);
  font-weight: 600;
}

.article-category-badge {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-h1-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy-primary);
  margin-bottom: 18px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #64748b;
}

.author-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-accent);
}

.author-meta-text {
  display: flex;
  flex-direction: column;
}

.author-name-bold {
  color: var(--navy-primary);
  font-weight: 700;
}

.article-publish-date {
  color: #64748b;
  font-size: 0.8125rem;
}

/* Article Hero Image */
.article-featured-image-wrap {
  max-width: 820px;
  margin: 30px auto 40px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10, 25, 47, 0.08);
  background-color: #0a192f;
}

.article-featured-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* Article Body Typography (Strict 760-850px reading width) */
.article-main-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.article-main-content-column {
  max-width: 820px;
  margin: 0 auto;
}

.article-body-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

.article-body-content p {
  margin-bottom: 24px;
}

.article-body-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin: 42px 0 16px 0;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.article-body-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 32px 0 14px 0;
  line-height: 1.4;
}

.article-body-content ul,
.article-body-content ol {
  margin: 0 0 26px 24px;
  padding: 0;
}

.article-body-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background-color: #f8fafc;
  border-left: 4px solid var(--blue-medical);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e293b;
  font-size: 1.08rem;
}

.article-body-content blockquote p {
  margin: 0;
}

.article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.article-body-content th,
.article-body-content td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.article-body-content th {
  background-color: #f1f5f9;
  color: var(--navy-primary);
  font-weight: 700;
}

/* Author Box at Bottom of Article */
.article-author-bio-card {
  margin-top: 50px;
  padding: 28px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.author-bio-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-accent);
  flex-shrink: 0;
}

.author-bio-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.author-bio-title {
  font-size: 0.825rem;
  color: var(--blue-medical);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.author-bio-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Consultation CTA Inside Article */
.article-consultation-cta {
  margin-top: 40px;
  padding: 34px;
  background: linear-gradient(135deg, #0a192f 0%, #1e3a5f 100%);
  border-radius: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-text-wrap h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.cta-text-wrap p {
  color: #cbd5e1;
  font-size: 0.925rem;
  margin: 0;
}

/* Sidebar / Related Articles */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.04);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-article-mini {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: center;
}

.mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-info h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.related-article-mini:hover .mini-info h5 {
  color: var(--blue-medical);
}

.mini-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Responsive Rules for Insights */
@media (max-width: 1023px) {
  .insights-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .insights-hero {
    padding: 120px 0 50px 0;
  }
  .insights-hub-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar-container {
    flex-direction: column;
    align-items: stretch;
  }
  .insights-search-box {
    width: 100%;
  }
  .article-consultation-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
}
