/**
 * Blog single post — editorial magazine layout
 * Used on: /singlepage_blog/{slug}
 */

:root {
  --bs-brand: #0B74DE;
  --bs-brand-dark: #0966c4;
  --bs-ink: #0f172a;
  --bs-muted: #64748b;
  --bs-border: #e2e8f0;
  --bs-surface: #ffffff;
  --bs-bg: #f8fafc;
  --bs-accent-soft: #eff6ff;
}

.bm-single-page {
  background: var(--bs-bg);
  color: var(--bs-ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.bm-single-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #0B74DE, #38bdf8);
  z-index: 10001;
  transition: width 0.12s linear;
  box-shadow: 0 0 12px rgba(11, 116, 222, 0.45);
}

.bm-single-shell {
  max-width: 1180px;
}

.bm-single-page .container.bm-single-shell {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .bm-single-page .container.bm-single-shell {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

@media (min-width: 1200px) {
  .bm-single-page .container.bm-single-shell {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* ─── Hero banner — title only, cinematic ─── */
.bm-single-hero {
  position: relative;
  background: #0f172a;
}

.bm-single-hero__banner {
  position: relative;
  min-height: clamp(460px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}

.bm-single-hero__banner > .container.bm-single-shell {
  position: relative;
  z-index: 3;
  width: 100% !important;
}

.bm-single-hero__grid {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  min-height: 300px;
  padding: 52px 0 58px;
}

.bm-single-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0;
  padding: 0 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.bm-single-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.bm-single-hero__meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.75);
  flex-shrink: 0;
}

.bm-single-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 60% at 18% 42%, rgba(15, 23, 42, 0.25), transparent 58%),
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.92) 100%);
  pointer-events: none;
}

.bm-single-hero__banner--fallback {
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.4), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(11, 116, 222, 0.35), transparent 40%),
    linear-gradient(160deg, #0B74DE 0%, #0f172a 55%, #020617 100%);
}

.bm-single-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  z-index: 0;
  animation: bmHeroZoom 26s ease-in-out infinite alternate;
}

.bm-single-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.bm-single-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.bm-single-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 0;
}

.bm-single-category:hover {
  color: #bae6fd;
  background: transparent;
}

.bm-single-title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff !important;
  max-width: 680px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.bm-single-hero__title-line {
  display: block;
  width: 72px;
  height: 3px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #0B74DE, transparent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.bm-single-hero__excerpt {
  margin: 0 0 28px !important;
  max-width: 620px;
  font-size: 0.95rem !important;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82) !important;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bm-single-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 2px;
}

.bm-single-hero__date,
.bm-single-hero__scroll {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 42px;
  min-height: 42px;
  margin: 0 !important;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.bm-single-hero__date {
  gap: 8px;
  padding: 0 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bm-single-hero__scroll {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: 4;
  flex-direction: row;
  gap: 8px;
  padding: 0 18px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bm-single-hero__scroll i {
  font-size: 1rem;
  animation: bmScrollBounce 2.4s ease-in-out infinite;
}

.bm-single-hero__scroll:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero text — always white on banner */
.bm-single-hero h1,
.bm-single-hero .bm-single-title,
.bm-single-hero .bm-single-hero__excerpt,
.bm-single-hero .bm-single-hero__date,
.bm-single-hero .bm-single-hero__date i,
.bm-single-hero .bm-single-hero__scroll,
.bm-single-hero .bm-single-hero__scroll i,
.bm-single-hero .bm-single-hero__scroll:hover,
.bm-single-hero .bm-single-category,
.bm-single-hero .bm-single-category i {
  color: #fff !important;
}

.bm-single-hero .bm-single-category:hover {
  color: #bae6fd !important;
}

.bm-single-hero .bm-single-hero__eyebrow,
.bm-single-hero .bm-single-hero__eyebrow i {
  color: #7dd3fc !important;
}

.bm-single-hero .bm-single-hero__excerpt {
  color: rgba(255, 255, 255, 0.82) !important;
}

@keyframes bmScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ─── Body section (share + article + sidebar) ─── */
.bm-single-body {
  background: var(--bs-bg);
  padding: 28px 0 56px;
  position: relative;
  z-index: 4;
}

.bm-single-post-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

/* Hero — Article Pulse insights panel */
.bm-single-insights {
  position: absolute;
  right: 0;
  bottom: 58px;
  z-index: 4;
  width: min(292px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 16, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bm-single-insights__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(90deg, #0B74DE 0%, #1d8fff 45%, #38bdf8 100%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.bm-single-insights__header i {
  font-size: 0.95rem;
  opacity: 0.95;
}

.bm-single-insights__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: bmInsightsPulse 2s ease-in-out infinite;
}

@keyframes bmInsightsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.bm-single-insights__body {
  padding: 16px;
}

.bm-single-insights__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bm-single-insights__avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0B74DE, #38bdf8);
  box-shadow: 0 8px 20px rgba(11, 116, 222, 0.35);
  line-height: 1;
}

.bm-single-insights__author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bm-single-insights__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.bm-single-insights__name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-single-insights__metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-single-insights__metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bm-single-insights__metric:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.bm-single-insights__metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.bm-single-insights__metric-icon img {
  display: block;
}

.bm-single-insights__metric-icon--views {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.bm-single-insights__metric-icon--comments {
  background: rgba(129, 140, 248, 0.2);
  color: #a5b4fc;
}

.bm-single-insights__metric-icon--likes {
  background: rgba(244, 114, 182, 0.18);
  color: #f9a8d4;
}

.bm-single-insights__metric-data {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.bm-single-insights__metric-data strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.bm-single-insights__metric-data em {
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 992px) {
  .bm-single-hero__content {
    max-width: min(680px, calc(100% - 320px));
  }
}

.bm-single-post-bar__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bm-single-post-bar__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B74DE, #38bdf8);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(11, 116, 222, 0.25);
}

.bm-single-post-bar__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-brand);
  margin-bottom: 2px;
}

.bm-single-post-bar__name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bs-ink);
  line-height: 1.2;
}

.bm-single-post-bar__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bm-single-post-bar__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bs-bg);
  border: 1px solid var(--bs-border);
  text-align: center;
}

.bm-single-post-bar__stats li i,
.bm-single-post-bar__stats li img {
  color: var(--bs-brand);
  font-size: 1rem;
  margin-bottom: 2px;
}

.bm-single-post-bar__stats li span {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bs-ink);
  line-height: 1;
}

.bm-single-post-bar__stats li em {
  font-size: 0.65rem;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-muted);
}

@keyframes bmHeroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.12); }
}

.bm-single-video-embed {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bs-border);
  background: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.bm-single-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border: 0;
}

/* ─── Layout ─── */
.bm-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.bm-single-main {
  min-width: 0;
}

/* Unified article card */
.bm-single-article-stack {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 20px;
}

/* ─── Share bar ─── */
.bm-single-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bm-single-share--top {
  padding: 16px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--bs-border);
}

.bm-single-share--end {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.bm-single-share__lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bs-ink);
}

.bm-single-share__lead i {
  color: var(--bs-brand);
  font-size: 1rem;
}

.bm-single-share__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bm-single-share__label {
  display: none;
}

.bm-single-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--bs-border);
  background: #fff;
  color: var(--bs-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1;
}

.bm-single-share__btn i {
  font-size: 0.95rem;
}

.bm-single-share__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.bm-single-share__btn--wa {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.bm-single-share__btn--fb {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.bm-single-share__btn--tw {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: #fff;
}

.bm-single-share__btn--copy {
  color: var(--bs-brand);
  border-color: rgba(11, 116, 222, 0.25);
  background: var(--bs-accent-soft);
}

/* ─── Article body ─── */
.bm-single-prose {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 32px 36px 36px;
  margin-bottom: 0;
  box-shadow: none;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

.bm-single-prose > p:first-of-type::first-letter {
  float: left;
  font-size: 2.75rem;
  line-height: 0.85;
  font-weight: 800;
  color: var(--bs-brand);
  margin: 0.08em 0.12em 0 0;
  padding-top: 0.04em;
}

.bm-single-prose p,
.bm-single-prose li,
.bm-single-prose td,
.bm-single-prose th {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  word-wrap: break-word;
}

.bm-single-prose p {
  margin-bottom: 1.15em;
  text-align: left;
}

.bm-single-prose h1,
.bm-single-prose h2,
.bm-single-prose h3,
.bm-single-prose h4 {
  color: var(--bs-ink);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 1.4em 0 0.55em;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 14px;
}

.bm-single-prose h2::before,
.bm-single-prose h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0B74DE, #38bdf8);
}

.bm-single-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25em 0;
}

.bm-single-prose a {
  color: var(--bs-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bm-single-prose ul,
.bm-single-prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.15em;
}

.bm-single-prose blockquote {
  margin: 1.25em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--bs-brand);
  background: var(--bs-accent-soft);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 0.9rem;
  color: #475569;
}

/* ─── Comments ─── */
.bm-single-comments {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 20px;
  padding: 24px 28px 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.bm-single-comments__title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bs-ink);
  letter-spacing: -0.02em;
}

.bm-single-comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bs-border);
}

.bm-single-comment-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bm-single-comment-form input[type="text"]:focus {
  border-color: rgba(11, 116, 222, 0.4);
  box-shadow: 0 0 0 3px rgba(11, 116, 222, 0.1);
}

.bm-single-comment-form button {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bs-brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.bm-single-comment-form button:hover {
  background: var(--bs-brand-dark);
}

.bm-single-comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.bm-single-comment-list::-webkit-scrollbar {
  width: 6px;
}

.bm-single-comment-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.bm-single-comment {
  padding: 16px;
  background: var(--bs-bg);
  border: 1px solid var(--bs-border);
  border-radius: 14px;
}

.bm-single-comment__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bm-single-comment__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bm-single-comment__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bs-ink);
}

.bm-single-comment__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.bm-single-replies {
  margin: 12px 0 0 16px;
  padding-left: 14px;
  border-left: 2px solid #dbeafe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-single-reply {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

.bm-single-reply img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bm-single-reply-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bm-single-reply-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  outline: none;
}

.bm-single-reply-form button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--bs-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* ─── Login / join CTA ─── */
.bm-single-login-prompt {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0B74DE 0%, #0f172a 62%, #1e293b 100%);
  box-shadow: 0 16px 40px rgba(11, 116, 222, 0.22);
  margin-top: 8px;
}

.bm-single-login-prompt__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  pointer-events: none;
}

.bm-single-login-prompt__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px 28px;
  padding: 28px 30px;
}

.bm-single-login-prompt__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bm-single-login-prompt__icon i {
  font-size: 1.65rem;
  color: #fff;
}

.bm-single-login-prompt__copy {
  min-width: 0;
  text-align: left;
}

.bm-single-login-prompt h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.bm-single-login-prompt p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 520px;
}

.bm-single-login-prompt__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bm-single-login-prompt__perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.bm-single-login-prompt__perks li i {
  color: #7dd3fc;
  font-size: 0.85rem;
}

.bm-single-login-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 200px;
}

.bm-single-login-prompt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.bm-single-login-prompt__btn--primary {
  background: #fff;
  color: var(--bs-brand) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bm-single-login-prompt__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: var(--bs-brand-dark) !important;
}

.bm-single-login-prompt__btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bm-single-login-prompt__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ─── Sidebar ─── */
.bm-single-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bm-single-sidebar-card {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.bm-single-sidebar-card__title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800 !important;
  color: var(--bs-ink) !important;
  padding-bottom: 0;
  border-bottom: 0;
  display: block;
  position: relative;
}

.bm-single-sidebar-card__title::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0B74DE, #38bdf8);
}

.bm-single-author-card {
  text-align: center;
  position: relative;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bm-single-author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0B74DE, #38bdf8);
}

.bm-single-author-card__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bs-accent-soft);
  color: var(--bs-brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bm-single-author-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B74DE, #38bdf8);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(11, 116, 222, 0.28);
  border: 3px solid #fff;
  outline: 1px solid var(--bs-border);
}

.bm-single-author-card__name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800 !important;
  color: var(--bs-ink) !important;
}

.bm-single-author-card__role {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--bs-muted);
}

.bm-single-author-card__date {
  margin: 0;
  font-size: 0.75rem;
  color: var(--bs-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bs-bg);
}

.bm-single-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bm-single-related-item {
  display: grid;
  grid-template-columns: 28px 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--bs-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.bm-single-related-item:hover {
  border-color: rgba(11, 116, 222, 0.28);
  background: var(--bs-accent-soft);
  box-shadow: 0 8px 20px rgba(11, 116, 222, 0.1);
  transform: translateX(3px);
}

.bm-single-related-item__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bs-brand);
  opacity: 0.7;
  line-height: 1;
}

.bm-single-related-item__thumb {
  width: 64px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.bm-single-related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-single-related-item__title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bs-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-single-related-empty {
  font-size: 0.875rem;
  color: var(--bs-muted);
  margin: 0;
}

.bm-single-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bs-ink);
  border: 0;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.bm-single-back-top:hover {
  background: var(--bs-brand);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Toast for copy */
.bm-single-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bs-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 9999;
}

.bm-single-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .bm-single-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bm-single-sidebar {
    position: static;
  }

  .bm-single-prose {
    padding: 22px 20px;
  }

  .bm-single-hero__banner {
    min-height: clamp(380px, 52vh, 500px);
  }

  .bm-single-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 0 42px;
  }

  .bm-single-hero__content {
    max-width: 100%;
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }

  .bm-single-insights {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 380px;
    align-self: stretch;
  }

  .bm-single-hero__meta {
    padding: 7px 12px;
    gap: 8px 10px;
  }

  .bm-single-post-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-single-post-bar__stats {
    justify-content: center;
  }

  .bm-single-post-bar__stats li {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bm-single-login-prompt__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }

  .bm-single-login-prompt__icon {
    margin: 0 auto;
  }

  .bm-single-login-prompt__copy {
    text-align: center;
  }

  .bm-single-login-prompt p {
    margin-left: auto;
    margin-right: auto;
  }

  .bm-single-login-prompt__perks {
    justify-content: center;
  }

  .bm-single-login-prompt__actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575px) {
  .bm-single-title {
    font-size: 1.35rem;
  }

  .bm-single-hero__banner {
    min-height: 360px;
  }

  .bm-single-hero__grid {
    padding: 28px 0 36px;
  }

  .bm-single-hero__scroll {
    display: none;
  }

  .bm-single-insights__metric {
    padding: 9px 10px;
  }

  .bm-single-post-bar {
    padding: 14px 16px;
  }

  .bm-single-post-bar__stats {
    width: 100%;
  }

  .bm-single-post-bar__stats li {
    flex: 1;
    min-width: calc(33% - 8px);
    padding: 8px 6px;
  }

  .bm-single-share--top,
  .bm-single-share--end {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-single-share__actions {
    width: 100%;
  }

  .bm-single-share__btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .bm-single-prose {
    padding: 22px 18px 26px;
  }

  .bm-single-prose > p:first-of-type::first-letter {
    font-size: 2.2rem;
  }

  .bm-single-share {
    padding: 14px;
  }

  .bm-single-share__label {
    width: 100%;
    margin-bottom: 4px;
  }

  .bm-single-comment-form {
    flex-direction: column;
  }

  .bm-single-comment-form button {
    width: 100%;
  }

  .bm-single-comments {
    padding: 18px 16px 20px;
  }
}

/* Global style overrides — content area only (not hero banner) */
.bm-single-body h1,
.bm-single-body h2,
.bm-single-body h3,
.bm-single-body h4,
.bm-single-body h5,
.bm-single-body h6,
.bm-single-sidebar h1,
.bm-single-sidebar h2,
.bm-single-sidebar h3,
.bm-single-sidebar h4,
.bm-single-sidebar h5,
.bm-single-sidebar h6 {
  color: var(--bs-ink);
}

.bm-single-page .blog_singlepage ul {
  float: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-single-page .blog_singlepage p {
  text-align: left;
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
}
