/* =========================================================
   Single blog post page
   ========================================================= */

.page-blog-post {
  background: #fff;
}

/* Hero — header flush on dark background */
.blog-post-hero-section {
  position: relative;
  padding: var(--header-clearance) 24px 4px;
  background: radial-gradient(ellipse at 18% 22%, rgba(38, 196, 255, 0.1) 0%, transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(18, 96, 225, 0.16) 0%, transparent 38%),
    linear-gradient(180deg, #061726 0%, #08223c 100%);
  color: #fff;
  overflow: hidden;
}

.blog-post-hero-banner {
  max-width: 1180px;
  margin: 32px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  padding: 40px 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(8, 28, 52, 0.95) 0%, rgba(12, 40, 72, 0.88) 100%);
  border: 1px solid rgba(63, 182, 247, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.blog-post-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(63, 182, 247, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.blog-post-hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

.blog-post-hero-art {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.15);
}

.blog-post-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Breadcrumb on white */
.blog-post-breadcrumb-bar {
  padding: 20px 24px 8px;
  background: #fff;
}

.blog-post-breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.blog-post-breadcrumb a {
  color: var(--blue-500);
  transition: color 0.2s;
}

.blog-post-breadcrumb a:hover {
  color: var(--blue-400);
}

.blog-post-breadcrumb .sep {
  color: rgba(15, 32, 66, 0.28);
}

.blog-post-breadcrumb .current {
  color: var(--text-body);
}

/* Main layout */
.blog-post-main {
  padding: 16px 24px 56px;
  background: #fff;
}

.blog-post-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* Article */
.blog-article h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0 0 28px;
}

.blog-article p {
  font-size: 15px;
  line-height: 1.82;
  color: var(--text-body);
  margin: 0 0 18px;
}

.blog-article h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin: 36px 0 16px;
  letter-spacing: -0.02em;
}

.blog-article h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.78;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-article li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.blog-article a {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article a:hover {
  color: var(--blue-400);
}

.blog-article .article-lead {
  font-size: 15px;
  margin-bottom: 20px;
}

/* Sidebar */
.blog-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.blog-side-card {
  background: #fff;
  border: 1px solid rgba(15, 32, 66, 0.1);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(15, 32, 66, 0.06);
}

.blog-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 32, 66, 0.08);
}

.blog-meta-row:first-child {
  padding-top: 0;
}

.blog-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-meta-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: lowercase;
}

.blog-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.blog-share-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.blog-share-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-share-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
}

.blog-share-list a:hover {
  color: var(--blue-500);
}

.blog-share-list .lucide {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
}

/* Post CTA */
.blog-post-cta {
  padding: 0 24px 56px;
  background: #fff;
}

.blog-post-cta-box {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f2454 0%, #0b1b40 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 32, 66, 0.12);
}

.blog-post-cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.blog-post-cta-box p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 28px;
}

.blog-post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.blog-post-cta-actions .btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.blog-post-cta-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Related insights */
.blog-related {
  padding: 0 24px 80px;
  background: #fff;
}

.blog-related .section-title {
  max-width: 1180px;
  margin: 0 auto 28px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.blog-related-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.blog-list-link i {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

@media (max-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }

  .blog-post-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-side-card {
    flex: 1;
    min-width: 240px;
  }

  .blog-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-post-hero-banner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    margin-bottom: 28px;
  }

  .blog-post-hero-art {
    min-height: 180px;
  }

  .blog-post-sidebar {
    flex-direction: column;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-cta-box {
    padding: 36px 24px;
  }

  .blog-post-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-post-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
