/* =========================
   Blog Article
========================= */

.blog-article .page-content{
  max-width: 1100px;
  margin: 0 auto;
}

/* Blog Hero */
.blog-hero{
  margin: 32px 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.blog-tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8102e;
  background: rgba(200,16,46,0.07);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.blog-title{
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-subtitle{
  font-size: 18px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 18px 0;
}

.blog-meta{
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-meta-dot{
  color: #d1d5db;
}

/* Duo Hero */
.blog-duo-hero{
  display: flex;
  justify-content: center;
  gap: 64px;
  margin: 12px 0 40px;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 30% 50%, rgba(200,16,46,0.06) 0%, transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(59,130,246,0.05) 0%, transparent 60%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
}

.blog-duo-figure{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

.blog-duo-photo{
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #c8102e;
  box-shadow:
    0 6px 20px rgba(15,23,42,0.18),
    0 0 24px rgba(200,16,46,0.10);
  margin-bottom: 16px;
}

.blog-duo-photo img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.blog-duo-figure figcaption{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.blog-duo-figure figcaption strong{
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
}

.blog-duo-figure figcaption span{
  font-size: 13px;
  color: #6b7280;
}

/* Blog Body */
.blog-body{
  font-size: 17px;
  line-height: 1.75;
  color: #374151;
}

.blog-body p{
  margin: 0 0 20px 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.75;
}

.blog-body .blog-lede{
  font-size: 19px;
  color: #111827;
  line-height: 1.65;
}

.blog-body h2{
  font-size: 24px;
  font-weight: 500;
  color: #0f172a;
  margin: 40px 0 16px 0;
  letter-spacing: -0.01em;
  clear: both;
}

.blog-body strong{
  color: #0f172a;
  font-weight: 600;
}

.blog-body em{
  color: #c8102e;
  font-style: italic;
}

.blog-body a{
  color: #c8102e;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.blog-body a:hover{
  color: #a00d24;
}

/* Inline Figures — centered, medium width for diagrams */
.blog-figure{
  margin: 36px auto;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

/* Hero variant: wider, used at the top of an article */
.blog-figure--hero{
  margin: 8px auto 36px;
  max-width: 100%;
  width: 100%;
}

.blog-figure--hero img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 4px 16px rgba(15,23,42,0.12),
    0 12px 32px rgba(15,23,42,0.08);
  display: block;
}

.blog-figure--hero figcaption{
  font-size: 14px;
  color: #6b7280;
  margin-top: 14px;
  line-height: 1.55;
  font-style: italic;
  text-align: center;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

/* Floated variant for photos */
.blog-figure--float{
  float: right;
  margin: 8px 0 20px 32px;
  max-width: 500px;
  width: 55%;
  shape-outside: margin-box;
}

.blog-figure img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 4px 16px rgba(15,23,42,0.12),
    0 12px 32px rgba(15,23,42,0.08);
  display: block;
}

.blog-figure figcaption{
  font-size: 13px;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
}

/* Alternate: float left */
.blog-figure--left{
  float: left;
  margin: 8px 32px 20px 0;
}

/* Clear floats after related block */
.blog-related{
  clear: both;
}

/* Related */
.blog-related{
  margin-top: 48px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-left: 3px solid #c8102e;
  border-radius: 0 14px 14px 0;
}

.blog-related h3{
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px 0;
}

.blog-related ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-related li{
  margin: 6px 0;
}

.blog-related a{
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.blog-related a:hover{
  color: #c8102e;
}

/* Responsive */
@media (max-width: 720px){
  .blog-duo-hero{
    gap: 28px;
    padding: 28px 16px;
  }

  .blog-duo-photo{
    width: 140px;
    height: 140px;
  }

  .blog-body{
    font-size: 16px;
  }

  .blog-body p{
    font-size: 16px;
  }

  .blog-body .blog-lede{
    font-size: 17px;
  }
}

@media (max-width: 480px){
  .blog-duo-hero{
    flex-direction: column;
    align-items: center;
  }
}