/* ================================================================
   BLOG — blog.css
   Shared by blog/blog.html (listing) and blog/blog-post.html
   base href="/" is set on both pages — all paths root-relative
   ================================================================ */

:root {
  --bl-radius: 8px;
  --bl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================
   BLOG LISTING PAGE
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.bl-hero {
  background: var(--landingBackground);
  color: var(--mastercolor);
  overflow: hidden;
}

.bl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
  margin-bottom: 28px;
}

.bl-hero-eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--secondaryMastercolor);
  flex-shrink: 0;
}

.bl-hero-title {
  font-size: clamp(44px, 7.5vw, 100px);
  font-weight: var(--fw_medium);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 960px;
}

.bl-hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--primaryTextColor);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 0;
}

.bl-hero-stats-row {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--layoutBorderColor);
  padding-top: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.bl-hero-stat-val {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 4px;
}

.bl-hero-stat-lbl {
  font-size: 12px;
  color: var(--primaryTextColor);
  font-weight: 400;
}

/* Featured article card — bottom of hero */
.bl-hero-featured {
  position: relative;
  display: block;
  text-decoration: none;
  margin-top: 56px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  cursor: pointer;
}

.bl-hero-featured-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--bl-ease);
}

.bl-hero-featured:hover .bl-hero-featured-img {
  transform: scale(1.03);
}

.bl-hero-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    transparent 100%
  );
}

.bl-hero-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
}

.bl-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
  background: rgba(246, 99, 32, 0.15);
  border: 1px solid rgba(246, 99, 32, 0.35);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.bl-featured-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondaryMastercolor);
  flex-shrink: 0;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.bl-hero-featured-title {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 800px;
}

.bl-hero-featured:hover .bl-hero-featured-title {
  color: #fff;
  text-decoration: none;
}

.bl-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.bl-post-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* ── Tag pill ─────────────────────────────────────────────────── */
.bl-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(246, 99, 32, 0.1);
  color: var(--secondaryMastercolor);
  transition: background 0.2s ease;
}

.bl-tag:hover {
  background: rgba(246, 99, 32, 0.18);
}

.bl-tag--white {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.bl-tag--white:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bl-tag-sm {
  font-size: 10px;
  padding: 3px 8px;
}

/* ── Filter bar ───────────────────────────────────────────────── */
.bl-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.bl-filter-btn {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-primary);
  color: var(--primaryTextColor);
  background: transparent;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  line-height: 1;
}

.bl-filter-btn:hover,
.bl-filter-btn.is-active {
  background: var(--mastercolor);
  color: #fff;
  border-color: var(--mastercolor);
}

/* ── Blog grid ────────────────────────────────────────────────── */
.bl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--layoutBorderColor);
  border-radius: var(--bl-radius);
  overflow: hidden;
  transition:
    box-shadow 0.35s var(--bl-ease),
    transform 0.35s var(--bl-ease);
  text-decoration: none;
  color: inherit;
}

.bl-card:hover {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  text-decoration: none;
  color: inherit;
}

.bl-card-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.bl-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--bl-ease);
}

.bl-card:hover .bl-card-img {
  transform: scale(1.06);
}

.bl-card--large .bl-card-img {
  height: 340px;
}

.bl-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bl-card-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bl-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--mastercolor);
  margin-bottom: 12px;
  transition: color 0.22s ease;
}

.bl-card:hover .bl-card-title {
  color: var(--secondaryMastercolor);
}

.bl-card--large .bl-card-title {
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.bl-card-excerpt {
  font-size: 14px;
  font-weight: 400;
  color: var(--primaryTextColor);
  line-height: 1.72;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--layoutBorderColor);
  margin-top: auto;
  gap: 12px;
}

.bl-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bl-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bl-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--mastercolor);
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-card-date {
  font-size: 11px;
  color: var(--primaryTextColor);
  display: block;
  white-space: nowrap;
}

.bl-read-time {
  font-size: 12px;
  color: var(--primaryTextColor);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bl-read-time svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ── Horizontal card (sidebar small cards) ────────────────────── */
.bl-card-h {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--layoutBorderColor);
  text-decoration: none;
  color: inherit;
}

.bl-card-h:first-child {
  padding-top: 0;
}

.bl-card-h:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bl-card-h-img-wrap {
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.bl-card-h-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--bl-ease);
}

.bl-card-h:hover .bl-card-h-img {
  transform: scale(1.06);
}

.bl-card-h-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bl-card-h-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mastercolor);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.22s ease;
}

.bl-card-h:hover .bl-card-h-title {
  color: var(--secondaryMastercolor);
}

.bl-card-h-meta {
  font-size: 12px;
  color: var(--primaryTextColor);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Section header ──────────────────────────────────────────── */
.bl-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.bl-section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--mastercolor);
  margin: 0;
}

.bl-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primaryTextColor);
}

/* ── Read more link ──────────────────────────────────────────── */
.bl-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mastercolor);
  text-decoration: none;
  transition:
    color 0.22s ease,
    gap 0.22s ease;
}

.bl-read-link:hover {
  color: var(--secondaryMastercolor);
  gap: 14px;
  text-decoration: none;
}

.bl-read-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  transition: transform 0.22s ease;
}

.bl-read-link:hover svg {
  transform: translate(3px, -3px);
}

/* ── Newsletter ──────────────────────────────────────────────── */
.bl-newsletter {
  background: var(--mastercolor);
  color: #fff;
  padding: 80px 0;
}

.bl-newsletter-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
  display: block;
  margin-bottom: 16px;
}

.bl-newsletter-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.bl-newsletter-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.bl-newsletter-form {
  display: flex;
  max-width: 500px;
}

.bl-newsletter-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: #fff;
  outline: none;
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
  min-width: 0;
}

.bl-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bl-newsletter-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.bl-newsletter-btn {
  padding: 14px 28px;
  background: var(--secondaryMastercolor);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.bl-newsletter-btn:hover {
  background: #e0561a;
}

.bl-newsletter-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 12px;
}

/* ── Trending cards ───────────────────────────────────────────── */
.bl-trending-sub {
  color: rgba(255, 255, 255, 0.5);
}

.bl-trend-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: background 0.25s ease;
}

.bl-trend-title {
  color: #fff;
  line-height: 1.35;
}

.bl-trend-meta {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Load more ───────────────────────────────────────────────── */
.bl-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 16px;
}

/* ================================================================
   BLOG POST — INNER PAGE
   ================================================================ */

/* Reading progress bar */
.bp-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--secondaryMastercolor);
  z-index: 10000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Post header (dark) */
.bp-header {
  background: #0a0a0a;
  color: #fff;
  padding-top: 72px;
  padding-bottom: 0;
}

.bp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.bp-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bp-breadcrumb a:hover {
  color: var(--secondaryMastercolor);
}

.bp-breadcrumb-sep {
  opacity: 0.35;
}

.bp-post-title {
  font-size: clamp(32px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 36px;
  max-width: 950px;
}

/* Meta bar */
.bp-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
}

.bp-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-meta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.bp-meta-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  display: block;
  line-height: 1.2;
}

.bp-meta-role {
  font-size: 11px;
  color: var(--primaryTextColor);
  display: block;
}

.bp-meta-divider {
  width: 1px;
  height: 34px;
  background: var(--layoutBorderColor);
  flex-shrink: 0;
}

.bp-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--primaryTextColor);
}

.bp-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  opacity: 0.6;
}

/* Share buttons */
.bp-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bp-share-lbl {
  font-size: 12px;
  color: var(--primaryTextColor);
  font-weight: 500;
  white-space: nowrap;
}

.bp-share-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid var(--layoutBorderColor);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  color: inherit;
}

.bp-share-btn:hover {
  background: var(--secondaryMastercolor);
  border-color: var(--secondaryMastercolor);
}

.bp-share-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--primaryTextColor);
  fill: none;
}

.bp-share-btn:hover svg {
  stroke: #fff;
}

/* Hero image */
.bp-hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-top: 1px solid var(--layoutBorderColor);
}

/* ── Article layout ──────────────────────────────────────────── */
.bp-article {
  padding: 64px 0 80px;
}

.bp-intro {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.78;
  color: #2a2a2a;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--layoutBorderColor);
}

.bp-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mastercolor);
  margin-bottom: 20px;
}

.bp-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mastercolor);
  margin-bottom: 14px;
}

.bp-body p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.84;
  color: #3a3a3a;
  margin-bottom: 24px;
  margin-top: 0;
}

.bp-body ul,
.bp-body ol {
  padding-left: 24px;
  margin-bottom: 28px;
}

.bp-body li {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 10px;
}

.bp-body strong {
  font-weight: 700;
  color: var(--mastercolor);
}

.bp-body a {
  color: var(--secondaryMastercolor);
  font-weight: 500;
}

/* Pull quote */
.bp-pullquote {
  border-left: 4px solid var(--secondaryMastercolor);
  padding: 6px 0 6px 28px;
  margin: 48px 0;
}

.bp-pullquote p {
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--mastercolor);
  font-style: italic;
  margin: 0;
}

/* Stat block */
.bp-stat-block {
  background: var(--landingBackground);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 10px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 28px;
  margin: 44px 0;
}

.bp-stat-item {
  text-align: center;
}

.bp-stat-val {
  display: block;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mastercolor);
  line-height: 1;
  margin-bottom: 8px;
}

.bp-stat-lbl {
  font-size: 13px;
  color: var(--primaryTextColor);
  line-height: 1.4;
}

/* Inline image */
.bp-inline-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin: 40px 0;
}

/* ── TOC sidebar ─────────────────────────────────────────────── */
.bp-sidebar {
  position: sticky;
  top: 90px;
}

.bp-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primaryTextColor);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--layoutBorderColor);
}

.bp-toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
}

.bp-toc-item {
  margin-bottom: 2px;
}

.bp-toc-link {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primaryTextColor);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

.bp-toc-link:hover,
.bp-toc-link.is-active {
  color: var(--secondaryMastercolor);
  border-left-color: var(--secondaryMastercolor);
  background: rgba(246, 99, 32, 0.06);
}

/* Sidebar newsletter mini */
.bp-sidebar-nl {
  background: #0a0a0a;
  border-radius: 10px;
  padding: 24px;
  color: #fff;
}

.bp-sidebar-nl-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.bp-sidebar-nl-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  line-height: 1.55;
}

.bp-sidebar-nl-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  margin-bottom: 8px;
  display: block;
  transition: background 0.2s ease;
}

.bp-sidebar-nl-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bp-sidebar-nl-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.bp-sidebar-nl-btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--secondaryMastercolor);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.22s ease;
}

.bp-sidebar-nl-btn:hover {
  background: #e0561a;
}

/* ── Author bio ──────────────────────────────────────────────── */
.bp-author-card {
  border: 1px solid var(--layoutBorderColor);
  border-radius: 10px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 56px 0 0;
  background: var(--landingBackground);
}

.bp-author-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bp-author-name-lg {
  font-size: 18px;
  font-weight: 700;
  color: var(--mastercolor);
  margin-bottom: 2px;
}

.bp-author-role-lg {
  font-size: 13px;
  color: var(--secondaryMastercolor);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}

.bp-author-bio {
  font-size: 14px;
  color: var(--primaryTextColor);
  line-height: 1.72;
  margin: 0;
}

/* ── Related posts ───────────────────────────────────────────── */
.bp-related {
  background: var(--landingBackground);
  padding: 64px 0;
  border-top: 1px solid var(--layoutBorderColor);
}

.bp-related-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mastercolor);
  margin-bottom: 32px;
}

/* ── Article tags ────────────────────────────────────────────── */
.bp-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--layoutBorderColor);
  margin-top: 16px;
}

.bp-tags-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--primaryTextColor);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

/* ── Aliases for HTML class names ───────────────────────────────
   blog.html + blog-post.html use these names; map to existing rules
   ─────────────────────────────────────────────────────────────── */

/* blog-post.html uses .bp-post-header (same as .bp-header) */
.bp-post-header {
  background: var(--mastercolor);
  color: #fff;
  padding-top: 56px;
  padding-bottom: 0;
}

/* blog.html + blog-post.html sidebar wrapper */
.bp-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Related section background */
.bp-related-section {
  background: var(--landingBackground);
}

/* Ghost tag variant (sidebar tag cloud) */
.bl-tag--ghost {
  background: rgba(246, 99, 32, 0.08);
  color: var(--secondaryMastercolor);
  border: 1px solid rgba(246, 99, 32, 0.2);
  padding: 5px 13px;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
  text-decoration: none;
}

.bl-tag--ghost:hover {
  background: var(--secondaryMastercolor);
  color: #fff;
  border-color: var(--secondaryMastercolor);
}

/* Tag cloud flex wrapper */
.bp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* blog-post.html post tag row (between breadcrumb and title) */
.bp-post-tag-row {
  margin-bottom: 20px;
}

/* blog-post.html article section */
.bp-article-section {
  padding: 64px 0 0;
}

/* blog-post.html intro paragraph */
.bp-intro {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.76;
  color: #2a2a2a;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--layoutBorderColor);
}

/* blog-post.html figure + caption */
.bp-inline-figure {
  margin: 40px 0;
}
.bp-fig-caption {
  font-size: 13px;
  color: var(--primaryTextColor);
  margin-top: 12px;
  line-height: 1.6;
  font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .bl-hero-featured-content {
    padding: 28px 24px;
  }
  .bp-share {
    display: none;
  }
  .bp-share-group {
    display: none;
  }
  .bp-sidebar {
    position: static;
  }
  .bp-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .bl-hero {
    padding-top: 56px;
  }
  .bl-hero-featured-img {
    height: 300px;
  }
  .bl-newsletter-form {
    flex-direction: column;
  }
  .bl-newsletter-input {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
  }
  .bp-hero-img {
    height: 260px;
  }
  .bp-author-card {
    flex-direction: column;
  }
  .bp-meta-divider {
    display: none;
  }
  .bp-pullquote {
    padding-left: 20px;
  }
  .bp-stat-block {
    padding: 24px 20px;
  }
}
