/* ═══════════════════════════════════════════════════════════
   blog.css  v1  — BK SOFTWARE CO.
   Blog listing page + Blog post page
   ═══════════════════════════════════════════════════════════ */

:root {
  --bl-bg:      #080a10;
  --bl-bg2:     #0d1117;
  --bl-card-bg: rgba(255,255,255,0.033);
  --bl-border:  rgba(255,255,255,0.07);
  --bl-cyan:    #00d9ff;
  --bl-purple:  #8b5cf6;
  --bl-text:    #e8eaf0;
  --bl-muted:   rgba(232,234,240,0.5);
  --bl-radius:  20px;
  --bl-max:     1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bl-bg);
  color: var(--bl-text);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.bl-container {
  width: 100%;
  max-width: var(--bl-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Tag pill ── */
.bl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.22);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bl-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}


/* ═══════════════════════════════════════
   HERO — LISTING
   ═══════════════════════════════════════ */
.bl-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0,217,255,0.07) 0%, transparent 68%),
              var(--bl-bg);
}

.bl-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.bl-hero__orb--1 {
  width: 500px; height: 500px;
  top: -160px; left: -100px;
  background: radial-gradient(circle, rgba(0,217,255,0.13) 0%, transparent 70%);
}
.bl-hero__orb--2 {
  width: 380px; height: 380px;
  bottom: -100px; right: -60px;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
}

.bl-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bl-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 1.2rem;
}
.bl-hero__title span {
  background: linear-gradient(135deg, var(--bl-cyan) 0%, var(--bl-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bl-hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--bl-muted);
  max-width: 560px;
  line-height: 1.65;
  margin: 0 0 2.4rem;
}

.bl-hero__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--bl-muted);
  margin-top: 1.8rem;
}
.bl-hero__stats strong { color: var(--bl-cyan); font-weight: 700; }
.bl-hero__stats-div { width: 1px; height: 16px; background: rgba(255,255,255,0.15); }


/* ═══════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════ */
.bl-search {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
}
.bl-search__icon {
  position: absolute;
  left: 18px;
  width: 18px; height: 18px;
  color: var(--bl-muted);
  pointer-events: none;
}
.bl-search__input {
  width: 100%;
  padding: 14px 48px 14px 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--bl-text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.bl-search__input::placeholder { color: var(--bl-muted); }
.bl-search__input:focus {
  border-color: rgba(0,217,255,0.45);
  background: rgba(0,217,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,217,255,0.08);
}
.bl-search__clear {
  position: absolute;
  right: 14px;
  width: 30px; height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.bl-search__clear:hover { background: rgba(255,255,255,0.15); }
.bl-search__clear svg { width: 14px; height: 14px; color: var(--bl-muted); display: block; }


/* ═══════════════════════════════════════
   FILTER TABS
   ═══════════════════════════════════════ */
.bl-filters {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(8,10,16,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bl-border);
}
.bl-filters__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}
.bl-filters__inner::-webkit-scrollbar { display: none; }
.bl-filter {
  flex-shrink: 0;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--bl-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.bl-filter:hover { color: var(--bl-text); background: rgba(255,255,255,0.05); }
.bl-filter.active {
  color: var(--bl-cyan);
  background: rgba(0,217,255,0.08);
  border-color: rgba(0,217,255,0.28);
}


/* ═══════════════════════════════════════
   BLOG GRID
   ═══════════════════════════════════════ */
.bl-main { padding: 60px 0 90px; }

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}


/* ═══════════════════════════════════════
   BLOG CARD
   ═══════════════════════════════════════ */
.bl-card {
  display: flex;
  flex-direction: column;
  background: var(--bl-card-bg);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
  overflow: hidden;
  transition:
    transform .3s cubic-bezier(.25,.46,.45,.94),
    border-color .3s,
    box-shadow .3s,
    opacity .46s ease calc(var(--delay,0s)),
    translate .46s ease calc(var(--delay,0s));
  opacity: 0;
  translate: 0 28px;
  will-change: opacity, translate;
}
.bl-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,217,255,0.18);
  box-shadow: 0 14px 44px rgba(0,0,0,0.38), 0 0 0 1px rgba(0,217,255,0.06);
}
.bl-card.bl-visible { opacity: 1; translate: 0 0; }

/* Image / Placeholder */
.bl-card__img-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
.bl-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.bl-card:hover .bl-card__img { transform: scale(1.05); }

.bl-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
    rgba(var(--ph-r,0),var(--ph-g,217),var(--ph-b,255),0.12) 0%,
    rgba(8,10,16,0.9) 100%);
  background: color-mix(in srgb, var(--ph,#00d9ff) 14%, var(--bl-bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ph, #00d9ff);
  letter-spacing: -0.02em;
  user-select: none;
}
.bl-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,10,16,0.55) 100%);
}

/* Body */
.bl-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bl-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bl-card__cat {
  display: inline-flex;
  padding: 3px 11px;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ct, #00d9ff);
}

.bl-card__time {
  font-size: 0.75rem;
  color: var(--bl-muted);
  font-weight: 500;
  white-space: nowrap;
}

.bl-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.bl-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.bl-card__title a:hover { color: var(--bl-cyan); }

.bl-card__excerpt {
  font-size: 0.85rem;
  color: var(--bl-muted);
  line-height: 1.62;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bl-cyan);
  text-decoration: none;
  margin-top: 4px;
  transition: gap .2s;
}
.bl-card__cta svg { width: 14px; height: 14px; transition: transform .25s; }
.bl-card__cta:hover { gap: 10px; }
.bl-card__cta:hover svg { transform: translateX(3px); }


/* ── Empty state ── */
.bl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 100px 20px;
  text-align: center;
  color: var(--bl-muted);
}
.bl-empty__icon {
  width: 72px; height: 72px;
  background: rgba(0,217,255,0.06);
  border: 1px solid rgba(0,217,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bl-empty__icon svg { width: 36px; height: 36px; color: rgba(0,217,255,0.5); }
.bl-empty__title { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; }
.bl-empty__sub { font-size: 0.95rem; margin: 0; max-width: 360px; }

/* ── No results ── */
.bl-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  text-align: center;
  color: var(--bl-muted);
}
.bl-no-results svg { width: 52px; height: 52px; color: rgba(0,217,255,0.28); }
.bl-no-results p { font-size: 1rem; margin: 0; }
.bl-no-results button {
  padding: 9px 22px;
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.28);
  border-radius: 100px;
  color: var(--bl-cyan);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.bl-no-results button:hover { background: rgba(0,217,255,0.14); }


/* ═══════════════════════════════════════
   CTA STRIP
   ═══════════════════════════════════════ */
.bl-cta { padding: 0 0 100px; }
.bl-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 40px;
}
.bl-cta__title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.bl-cta__sub { font-size: 0.9rem; color: var(--bl-muted); margin: 0; max-width: 440px; }
.bl-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--bl-cyan), var(--bl-purple));
  border-radius: 100px;
  color: #080a10;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 22px rgba(0,217,255,0.25);
}
.bl-cta__btn:hover { opacity: .88; transform: translateY(-2px); }


/* ═══════════════════════════════════════
   SCROLL-TO-TOP
   ═══════════════════════════════════════ */
#goTopBtn {
  position: fixed;
  bottom: 32px; right: 28px;
  width: 46px; height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,217,255,0.12);
  border: 1px solid rgba(0,217,255,0.3);
  border-radius: 50%;
  color: var(--bl-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#goTopBtn:hover { background: rgba(0,217,255,0.22); transform: translateY(-2px); }


/* ═══════════════════════════════════════
   ─────────── BLOG POST PAGE ───────────
   ═══════════════════════════════════════ */

/* Reading progress bar */
#readProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--bl-cyan), var(--bl-purple));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Post hero ── */
.bp-hero {
  position: relative;
  min-height: 60vh;
  max-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.bp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,10,16,0.25) 0%,
    rgba(8,10,16,0.65) 55%,
    rgba(8,10,16,0.95) 100%);
}
.bp-hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 70% at 50% 30%,
    color-mix(in srgb, var(--cat-color,#00d9ff) 20%, transparent) 0%,
    rgba(8,10,16,0.98) 100%);
}
.bp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 54px;
}
.bp-hero__inner .bl-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Breadcrumb */
.bp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bl-muted);
  flex-wrap: wrap;
}
.bp-breadcrumb a { color: var(--bl-muted); text-decoration: none; transition: color .2s; }
.bp-breadcrumb a:hover { color: var(--bl-cyan); }
.bp-breadcrumb span { opacity: 0.5; }
.bp-breadcrumb__cur { color: rgba(232,234,240,0.7); }

/* Category + time */
.bp-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bp-cat {
  display: inline-flex;
  padding: 4px 13px;
  background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ct, #00d9ff);
}
.bp-meta-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; }
.bp-readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--bl-muted);
  font-weight: 500;
}
.bp-readtime svg { width: 14px; height: 14px; }

.bp-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0;
  max-width: 800px;
  word-break: break-word;
}


/* ── Layout: article + sidebar ── */
.bp-layout { padding: 60px 0 100px; }
.bp-layout__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}


/* ── Article ── */
.bp-article { min-width: 0; }

.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bl-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 36px;
  transition: color .2s, gap .2s;
}
.bp-back:hover { color: var(--bl-cyan); gap: 12px; }
.bp-back svg { width: 16px; height: 16px; }

/* Article body prose */
.bp-article__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(232,234,240,0.82);
}
.bp-article__body p { margin: 0 0 1.4rem; }
.bp-article__body p:last-child { margin-bottom: 0; }
.bp-article__body h1,
.bp-article__body h2,
.bp-article__body h3,
.bp-article__body h4 {
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.2rem 0 0.9rem;
}
.bp-article__body h2 { font-size: 1.55rem; letter-spacing: -0.015em; }
.bp-article__body h3 { font-size: 1.25rem; }
.bp-article__body h4 { font-size: 1.05rem; }
.bp-article__body a { color: var(--bl-cyan); text-decoration: underline; text-decoration-thickness: 1px; }
.bp-article__body a:hover { color: #fff; }
.bp-article__body ul,
.bp-article__body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.5rem;
  color: rgba(232,234,240,0.8);
}
.bp-article__body li { margin-bottom: 0.5rem; line-height: 1.7; }
.bp-article__body blockquote {
  border-left: 3px solid var(--bl-cyan);
  margin: 2rem 0;
  padding: 14px 20px;
  background: rgba(0,217,255,0.04);
  border-radius: 0 12px 12px 0;
  color: var(--bl-text);
  font-style: italic;
}
.bp-article__body code {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: var(--bl-cyan);
}
.bp-article__body pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 1.6rem 0;
}
.bp-article__body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #4ade80;
  font-size: 0.9rem;
}
.bp-article__body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.6rem 0;
  display: block;
}
.bp-article__body strong { color: var(--bl-text); }
.bp-article__body hr {
  border: none;
  border-top: 1px solid var(--bl-border);
  margin: 2.5rem 0;
}

/* Tags */
.bp-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--bl-border);
}
.bp-article__tag {
  padding: 5px 14px;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ct, #00d9ff);
}

/* Prev / Next */
.bp-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--bl-border);
}
.bp-prevnext__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--bl-card-bg);
  border: 1px solid var(--bl-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.bp-prevnext__item:hover {
  border-color: rgba(0,217,255,0.2);
  background: rgba(0,217,255,0.04);
}
.bp-prevnext__item--next { text-align: right; }
.bp-prevnext__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bl-cyan);
}
.bp-prevnext__item--next .bp-prevnext__label { justify-content: flex-end; }
.bp-prevnext__label svg { width: 14px; height: 14px; }
.bp-prevnext__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bl-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


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

.bp-sidebar__card {
  background: var(--bl-card-bg);
  border: 1px solid var(--bl-border);
  border-radius: 18px;
  padding: 22px;
}

.bp-sidebar__avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--bl-border);
}
.bp-sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp-sidebar__name { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.bp-sidebar__bio  { font-size: 0.83rem; color: var(--bl-muted); line-height: 1.6; margin: 0 0 14px; }
.bp-sidebar__btn  {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.22);
  border-radius: 100px;
  color: var(--bl-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.bp-sidebar__btn:hover { background: rgba(0,217,255,0.12); border-color: rgba(0,217,255,0.4); }

.bp-sidebar__section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bl-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

/* Related posts */
.bp-related { display: flex; flex-direction: column; gap: 14px; }
.bp-related__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: opacity .2s;
}
.bp-related__item:hover { opacity: 0.82; }
.bp-related__thumb {
  width: 60px; height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--bl-border);
}
.bp-related__thumb-ph {
  width: 60px; height: 50px;
  border-radius: 8px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--ph,#00d9ff) 14%, var(--bl-bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ph, #00d9ff);
}
.bp-related__info { min-width: 0; }
.bp-related__cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bp-related__title {
  font-size: 0.83rem;
  color: var(--bl-text);
  line-height: 1.4;
  margin: 3px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar CTA card */
.bp-sidebar__card--cta {
  background: linear-gradient(135deg,
    rgba(0,217,255,0.07) 0%,
    rgba(139,92,246,0.07) 100%);
  border-color: rgba(0,217,255,0.15);
}
.bp-sidebar__cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.bp-sidebar__cta-sub  {
  font-size: 0.82rem;
  color: var(--bl-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}
.bp-sidebar__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--bl-cyan), var(--bl-purple));
  border-radius: 100px;
  color: #080a10;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 18px rgba(0,217,255,0.2);
}
.bp-sidebar__cta-btn:hover { opacity: .88; transform: translateY(-2px); }


/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  /* Listing grid */
  .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .bl-hero { min-height: 64vh; padding: 110px 0 64px; }
  .bl-hero__title { font-size: clamp(2rem, 6vw, 3rem); }

  /* Post layout */
  .bp-layout__inner { grid-template-columns: 1fr; gap: 40px; }
  .bp-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .bp-sidebar__card { flex: 1 1 260px; }

  .bp-hero { min-height: 48vh; }
  .bp-hero__title { font-size: clamp(1.7rem, 5.5vw, 2.6rem); }

  .bl-cta__inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}


/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .bl-container { padding: 0 16px; }

  .bl-hero { min-height: unset; padding: 90px 0 50px; }
  .bl-hero__title { font-size: clamp(1.7rem, 8vw, 2.4rem); word-break: break-word; }
  .bl-hero__sub { font-size: 0.93rem; }

  .bl-filters { top: 56px; }
  .bl-filter { font-size: 0.82rem; padding: 7px 15px; }

  .bl-main { padding: 36px 0 60px; }
  .bl-grid { grid-template-columns: 1fr; gap: 14px; }
  .bl-card__body { padding: 16px 18px 20px; }

  .bl-cta { padding: 0 0 60px; }

  /* Post page */
  .bp-hero { min-height: 42vh; }
  .bp-hero__inner { padding: 0 0 32px; }
  .bp-hero__title { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  .bp-layout { padding: 36px 0 64px; }
  .bp-article__body { font-size: 0.97rem; }
  .bp-sidebar { flex-direction: column; }

  .bp-prevnext { grid-template-columns: 1fr; }

  #goTopBtn { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}


/* ═══════════════════════════════════════
   RESPONSIVE — TINY (≤ 380px)
   ═══════════════════════════════════════ */
@media (max-width: 380px) {
  .bl-hero__title { font-size: 1.55rem; }
  .bl-hero__stats { flex-direction: column; gap: 6px; }
  .bl-hero__stats-div { display: none; }
}
