/* ============================================================
   ·  blog.css
   
   ============================================================ */

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

/* ── BASE ──────────────────────────────────────────────── */
html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}
h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-extrabold);
}
h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}
h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
}
h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-semibold);
}
p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1rem;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
  overflow: hidden;
}

/* Canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Grain */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    transparent 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* Glows */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 900px;
  height: 700px;
  top: -280px;
  left: -220px;
  background: radial-gradient(
    ellipse,
    rgba(255, 107, 0, 0.14) 0%,
    transparent 65%
  );
  filter: blur(60px);
  animation: glow-a 14s ease-in-out infinite alternate;
}
.glow-2 {
  width: 600px;
  height: 600px;
  top: -80px;
  right: -120px;
  background: radial-gradient(
    ellipse,
    rgba(255, 107, 0, 0.08) 0%,
    transparent 65%
  );
  filter: blur(80px);
  animation: glow-b 18s ease-in-out infinite alternate;
}
.glow-3 {
  width: 500px;
  height: 400px;
  bottom: 100px;
  left: 38%;
  background: radial-gradient(
    ellipse,
    rgba(255, 107, 0, 0.05) 0%,
    transparent 70%
  );
  filter: blur(90px);
  animation: glow-c 12s ease-in-out infinite alternate;
}
@keyframes glow-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(60px, 40px) scale(1.1);
  }
}
@keyframes glow-b {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-40px, 50px) scale(1.08);
  }
}
@keyframes glow-c {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, -30px);
  }
}

/* ── TICKER ─────────────────────────────────────────────── */
.hero-ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--w08);
  border-bottom: 1px solid var(--w08);
  background: var(--o06);
  overflow: hidden;
  padding: 0.65rem 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: ticker 28s linear infinite;
  padding-right: 2rem;
}
/* All ticker spans share base style */
.ticker-track span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w50);
}
/* Even children = dot separators (✦) */
.ticker-track span:nth-child(even) {
  color: var(--primary);
  font-size: 0.5rem;
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── HERO BODY ──────────────────────────────────────────── */
.hero-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
  flex: 1;
  padding: 0rem 3rem 3rem;
}

/* ── HERO LEFT ──────────────────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: flex-start;
  margin-bottom: 100px;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.65s cubic-bezier(0.22, 0.68, 0, 1.2);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero tag pill  — div */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);

  border-radius: 100px;
  width: fit-content;
  margin-left: 0;
}
/* Pulse dot — the lone span inside .hero-tag */
.hero-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--o60);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

@media (max-width: 560px) {
  .hero-left {
    align-items: center;
    text-align: center;
    /* padding: 1.2rem 1.2rem 1.5rem; */
  }

  .hero-tag {
    align-self: center;
  }

  .hero-left h1 {
    text-transform: uppercase;
    align-self: center;
  }

  .hero-left > p {
    align-self: center;
    text-align: center;
  }

  .hero-actions {
    align-self: center;
    justify-content: center;
  }

  /* Blog section header centering */
  .blog-section-header {
    text-align: center;
  }

  .bsh-left {
    margin-left: 0;
    align-items: center;
    text-align: center;
  }

  .bsh-eyebrow {
    align-self: center;
    justify-self: center;
  }

  .bsh-left h2 {
    text-align: center;
  }

  .bsh-left > p {
    text-align: center;
    margin: 0 auto;
  }

  .bsh-right {
    justify-content: center;
  }
}

/* ── H1 inside hero-left ─────────────────────────────────
  
   ──────────────────────────────────────────────────────── */
.hero-left h1 {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  /* align-self: flex-start; */
}
/* First span = "Knowledge" */
.hero-left h1 span:first-child {
  display: block;
  text-transform: uppercase;
}
/* Second span = "Hub + arrow" */
.hero-left h1 span:last-child {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .hero-left h1 span:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--w70);
  }
}
.hero-left h1 span:last-child em {
  font-style: normal;
  /* color: var(--primary); */
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.hero-left h1 span:last-child em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}
/* SVG arrow inside second span */
.hero-left h1 span:last-child svg {
  width: 70px;
  height: 35px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── P inside hero-left  (was .hero-sub) ────────────────── */
.hero-left > p {
  max-width: 440px;
  color: var(--w50);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
  margin: 0;
  align-self: flex-start;
}
.hero-left > p strong {
  color: var(--w70);
  font-weight: 600;
}

/* ── HERO ACTIONS  (div container) ──────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
  align-self: flex-start;
}
/* First a = primary CTA  (was .btn-primary) */
.hero-actions a:first-child {
  display: inline-flex; /* ← was inline-block */
  align-items: center; /* ← vertically centers text + arrow */
  gap: 0.9rem; /* ← space between text and arrow */
  padding: 0.95rem 2.4rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.hero-actions a:first-child:hover {
  background: transparent;
  color: var(--color-primary) !important;
}
.hero-actions a:first-child svg {
  transition: transform 0.2s;
}
.hero-actions a:first-child:hover svg {
  transform: translateX(3px);
}
/* Second a = outline ghost  (was .btn-outline) */
.hero-actions a:last-child {
  padding: 0.95rem 2.4rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-white-25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s;
}
.hero-actions a:last-child:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── HERO RIGHT ─────────────────────────────────────────── */
.hero-right {
  position: relative;
  height: 600px;
}

/* Bracket corners */
.bracket {
  position: absolute;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-color: var(--o35);
  border-style: solid;
}
.bracket-tl {
  top: -8px;
  left: -8px;
  border-width: 2px 0 0 2px;
}
.bracket-br {
  bottom: -8px;
  right: -8px;
  border-width: 0 2px 2px 0;
}

/* Photos */
.photo-wrap {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--w08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-wrap:hover .photo-inner img {
  transform: scale(1.05);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 55%);
}
/* Chip label in photo */
.photo-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* background: rgba(0, 0, 0, 0.82); */
  backdrop-filter: blur(10px);
  border: 1px solid var(--w12);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}
/* Pulse dot span inside .photo-chip (was .chip-dot) */
.photo-chip span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

.photo-a {
  width: 380px;
  height: 310px;
  top: 30px;
  left: 30px;
  z-index: 2;
  transform: rotate(-2deg);
  animation: float-a 7s ease-in-out infinite;
}
.photo-b {
  width: 250px;
  height: 210px;
  bottom: 70px;
  right: 0;
  z-index: 3;
  transform: rotate(2.5deg);
  animation: float-b 7s ease-in-out infinite 1s;
}
@keyframes float-a {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-14px);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: rotate(2.5deg) translateY(0);
  }
  50% {
    transform: rotate(2.5deg) translateY(-18px);
  }
}

/* Stat cards */
.hero-stat-card {
  position: absolute;
  z-index: 5;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--w08);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow:
    0 16px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--o12);
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.hero-stat-card:hover {
  border-color: var(--o35);
  transform: translateY(-4px) !important;
}
.card-1 {
  top: 0;
  right: 20px;
  animation: float-c1 5s ease-in-out infinite;
}
.card-2 {
  bottom: 50px;
  left: 10px;
  animation: float-c2 6s ease-in-out infinite 1.5s;
}
@keyframes float-c1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes float-c2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-13px);
  }
}

.stat-card-icon {
  font-size: 1.2rem;
}
.stat-card-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-card-label {
  font-size: 0.7rem;
  color: var(--w38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-card-bar {
  height: 3px;
  background: var(--w08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.stat-card-fill {
  height: 100%;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--primary), rgba(255, 107, 0, 0.4));
  border-radius: 3px;
  animation: bar-fill 1.8s 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes bar-fill {
  from {
    width: 0%;
  }
  to {
    width: var(--fill);
  }
}

/* Live badge */
.hero-badge {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid var(--o35);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  box-shadow: 0 0 20px var(--o20);
  animation: float-badge 4s ease-in-out infinite;
}
@keyframes float-badge {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-6px);
  }
}
/* Pulse dot span inside .hero-badge (was .badge-pulse) */
.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   BLOG SECTION HEADER
══════════════════════════════════════════════════════════ */
.blog-section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3.5rem 4rem;
  background: var(--s);
  border-top: 1px solid var(--w08);
  border-bottom: 1px solid var(--w08);
  overflow: hidden;
}
.blog-section-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.blog-section-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(
    ellipse at right center,
    rgba(255, 107, 0, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.bsh-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: -1rem;
}

/* Eyebrow — now a classless div (was span.bsh-eyebrow) */
.bsh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
/* Pulse dot — lone span inside .bsh-eyebrow (was .bsh-eyebrow-dot) */
.bsh-eyebrow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* H2 inside bsh-left  (was .bsh-title) */
.bsh-left h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
}
.bsh-left h2 span {
  background: linear-gradient(115deg, #ff6b00 0%, rgba(255, 155, 60, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.bsh-left h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* P inside bsh-left  (was .bsh-desc) */
.bsh-left > p {
  max-width: 420px;
  font-size: 0.9rem;
  color: var(--w38);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}

/* Right stat pills */
.bsh-right {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--w03);
  border: 1px solid var(--w08);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.bsh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.1rem 1.6rem;
  transition: background 0.2s;
  cursor: default;
}
.bsh-stat:hover {
  background: var(--o06);
}

/* First span = number  (was .bsh-stat-num) */
.bsh-stat span:first-child {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
/* Second span = label  (was .bsh-stat-label) */
.bsh-stat span:last-child {
  font-size: 0.65rem;
  color: var(--w38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bsh-stat-sep {
  width: 1px;
  height: 44px;
  background: var(--w08);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   BLOG BODY
══════════════════════════════════════════════════════════ */
.page-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 60vh;
  background: var(--s);
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  border-right: 1px solid var(--w08);
  padding: 2.5rem 3rem 4rem;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  background: var(--s);
}
.sidebar::-webkit-scrollbar {
  width: 3px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--w08);
  border-radius: 3px;
}

.sidebar-search-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.sidebar-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--w38);
}
/* Input inside search-wrap  (was .sidebar-search) */
.sidebar-search-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--w12);
  border-radius: 8px;
  padding: 0.72rem 0.9rem 0.72rem 2.5rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.sidebar-search-wrap input::placeholder {
  color: var(--w38);
}
.sidebar-search-wrap input:focus {
  border-color: var(--o35);
  background: var(--o06);
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--mono);
}
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  color: var(--w70);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  border: 1px solid transparent;
}
.cat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-color: var(--w08);
}
.cat-item.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 20px var(--o35);
  border-color: transparent;
}

/* Count badge — last span in .cat-item  (was .cat-count) */
.cat-item span:last-child {
  font-family: var(--mono);
  font-size: 0.66rem;
  background: var(--w08);
  color: var(--w50);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  min-width: 26px;
  text-align: center;
}
.cat-item.active span:last-child {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ── CONTENT AREA ───────────────────────────────────────── */
.content-area {
  padding: 2.5rem 3rem 5rem;
  min-width: 0;
}

.content-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--w08);
}
.content-cat-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--w38);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.content-count {
  font-size: 0.88rem;
  color: var(--w50);
}
.content-count strong {
  color: var(--white);
  font-size: 1.05rem;
}

/* Select inside content-topbar  (was .sort-select) */
/* .content-topbar select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--w12);
  color: var(--w70);
  font-family: var(--font);
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.content-topbar select:focus {
  border-color: var(--o35);
} */

.custom-select {
  position: relative;
  display: inline-block;
  user-select: none;
}

.cs-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--w12);
  color: var(--w70);
  font-family: var(--font);
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.cs-trigger:focus,
.custom-select.open .cs-trigger {
  border-color: var(--o35);
  outline: none;
}

.cs-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.custom-select.open .cs-chevron {
  transform: rotate(180deg);
}

.cs-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  background: var(--s);
  border: 1px solid var(--w12);
  border-radius: 8px;
  padding: 0.3rem;
  margin: 0;
  list-style: none;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* hidden state */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.custom-select.open .cs-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cs-option {
  padding: 0.55rem 0.9rem;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--w70);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.cs-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cs-option.active {
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.08);
}

/* ── BLOG GRID ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.blog-card.hidden {
  display: none;
}

/* ── CARD BASE ── */
.blog-card {
  background: var(--s);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s;
  display: flex;
  flex-direction: column;
  animation: card-in 0.4s ease both;
  position: relative;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 107, 0, 0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.blog-card:hover::before {
  transform: scaleX(1);
}
.blog-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 107, 0, 0.12);
  background: var(--s);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card thumbnail */
.card-thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.card-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  transition: transform 0.5s ease;
}
.blog-card:hover .card-thumb-inner {
  transform: scale(1.08);
}
.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.95) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
}

/* Card body */
.card-body {
  padding: 1.3rem 1.3rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* First span in .card-meta = category pill  (was .card-cat) */
.card-meta span:first-child {
  font-size: 0.6rem;
  font-family: var(--mono);
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.blog-card:hover .card-meta span:first-child {
  background: rgba(255, 107, 0, 0.2);
}

/* Last span in .card-meta = date  (was .card-date) */
.card-meta span:last-child {
  font-size: 0.7rem;
  color: var(--w38);
  margin-left: auto;
  font-family: var(--mono);
}

/* H3 inside .card-body  (was .card-title) */
.card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-white);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.blog-card:hover .card-body h3 {
  color: var(--primary);
}

/* P inside .card-body  (was .card-excerpt) */
.card-body p {
  font-size: 0.82rem;
  /* color: rgba(255, 255, 255, 0.45); */
  color: var(--color-white);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
  margin-bottom: 0;
}

/* Card footer */
.card-footer {
  padding: 0.85rem 1.3rem;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Span inside .card-author = author name  (was .card-author-name) */
.card-author span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
/* Direct span child of .card-footer = read time  (was .card-read) */
.card-footer > span {
  font-size: 0.68rem;
  color: var(--color-white);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── NO RESULTS ── */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--w38);
  display: none;
}
.no-results.show {
  display: block;
}
.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════
   FEATURED CARD

   ══════════════════════════════════════════════════════════ */

/* ── FEATURED CARD BASE ────────────────────────────────── */
.blog-card.featured-card {
  grid-column: span 1; /* full-width in the auto-fill grid */
  flex-direction: column;
  background: linear-gradient(135deg, #141414 0%, #0f0f0f 100%);
  border-color: rgba(255, 107, 0, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.1),
    0 32px 80px rgba(0, 0, 0, 0.55);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind the whole card */
.blog-card.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 30% 50%,
    rgba(255, 107, 0, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Slightly brighter top-bar on hover */
.blog-card.featured-card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.18),
    0 40px 100px rgba(0, 0, 0, 0.7);
  transform: translateY(-8px);
}

/* ── THUMBNAIL ─────────────────────────────────────────── */
.blog-card.featured-card .card-thumb {
  width: 380px; /* wider thumb for desktop */
  min-width: 280px;
  height: auto; /* stretch to card height */
  flex-shrink: 0;
  border-radius: 0;
  position: relative;
}

/* Diagonal fade so thumb bleeds into the body */
.blog-card.featured-card .card-thumb-overlay {
  background:
    linear-gradient(to right, transparent 55%, #141414 100%),
    linear-gradient(
      to top,
      rgba(17, 17, 17, 0.85) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      transparent 100%
    );
}

/* Emoji / icon centered & larger */
.blog-card.featured-card .card-thumb-inner {
  font-size: 5rem;
}

/* ── CARD BODY ─────────────────────────────────────────── */
.blog-card.featured-card .card-body {
  position: relative; /* sits above ::after glow layer */
  z-index: 1;
  padding: 2rem 2rem 1.5rem;
  justify-content: center;
  gap: 0.75rem;
}

/* Larger, bolder title */
.blog-card.featured-card .card-body h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  -webkit-line-clamp: 3;
  line-clamp: 3;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* Slightly more excerpt lines */
.blog-card.featured-card .card-body p {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
}

/* ── FEATURED BADGE ────────────────────────────────────── */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.28);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.1rem;
  width: fit-content;
}

/* Pulse dot inside badge */
.featured-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── CARD FOOTER inside featured ───────────────────────── */
.blog-card.featured-card .card-footer {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ══════════════════════════════════════════════════════════
  FOR FEATURED CARD
══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a:first-child,
  .hero-actions a:last-child {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
/* — 1280px: tighten thumb a little — */
@media (max-width: 1280px) {
  .blog-card.featured-card .card-thumb {
    width: 320px;
    min-width: 240px;
  }
}

/* — 1024px: switch to column, full-bleed thumb — */
@media (max-width: 1024px) {
  .blog-card.featured-card {
    flex-direction: column;
    grid-column: span 1; /* fits single-column grid */
    min-height: unset;
  }

  .blog-card.featured-card .card-thumb {
    width: 100%;
    min-width: unset;
    height: 220px;
    flex-shrink: 1;
  }

  /* Restore normal bottom-up gradient when stacked */
  .blog-card.featured-card .card-thumb-overlay {
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.95) 0%,
      rgba(0, 0, 0, 0.2) 60%,
      transparent 100%
    );
  }

  .blog-card.featured-card .card-body {
    padding: 1.5rem 1.5rem 1rem;
    justify-content: flex-start;
  }

  .blog-card.featured-card .card-body h3 {
    font-size: 1.2rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .blog-card.featured-card .card-body p {
    max-width: 100%;
  }
}

/* — 768px: tighten thumb height on small screens — */
@media (max-width: 768px) {
  .blog-card.featured-card .card-thumb {
    height: 180px;
  }

  .blog-card.featured-card .card-body {
    padding: 1.25rem 1.25rem 0.75rem;
    gap: 0.6rem;
  }

  .blog-card.featured-card .card-body h3 {
    font-size: 1.05rem;
  }
}

/* — 480px: compact for very small phones — */
@media (max-width: 480px) {
  .blog-card.featured-card .card-thumb {
    height: 150px;
  }

  .blog-card.featured-card .card-thumb-inner {
    font-size: 3.5rem;
  }

  .blog-card.featured-card .card-body p {
    display: none; /* hide excerpt on tiny screens to save space */
  }
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--s);
  backdrop-filter: blur(0.3px);
  -webkit-backdrop-filter: blur(0.3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--s);
  border: 1px solid var(--w12);
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 0.72, 0.4, 1.2);
  position: relative;
  z-index: 10000;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal::-webkit-scrollbar {
  width: 3px;
}
.modal::-webkit-scrollbar-thumb {
  background: var(--w12);
  border-radius: 3px;
}

/* Close button — direct button child of .modal  (was .modal-close) */
.modal > button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.2s;
}

.modal > button:hover {
  background: rgba(232, 198, 175, 0.2);
  border-color: var(--primary);
  transform: scale(1.1);
}
.modal > button:hover {
  background: rgba(255, 107, 0, 0.2);
}

.modal-hero-img {
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-hero-gradient {
  position: absolute;
  inset: 0;
}

/* modalThumb container for image or emoji */
#modalThumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image inside modalThumb */
#modalThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Emoji span inside modalThumb */
#modalThumb span {
  font-size: 5rem;
}

.modal-body {
  padding: 2.5rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
/* First span = category  (was .modal-cat) */
.modal-meta span:first-child {
  font-size: 0.6rem;
  font-family: var(--mono);
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--o12);
  border: 1px solid var(--o20);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}
/* Middle span = date  (was .modal-date) */
.modal-meta span:nth-child(2),
/* Last span = read time  (was .modal-read) */
.modal-meta span:last-child {
  font-size: 0.78rem;
  color: var(--w38);
}

/* H2 inside .modal-body  (was .modal-title) */
.modal-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.modal-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--w08);
}
.modal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.modal-author-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.modal-author-role {
  font-size: 0.75rem;
  color: var(--w38);
}

.modal-content {
  color: var(--w70);
  line-height: 1.9;
  font-size: 0.95rem;
}
.modal-content p {
  margin-bottom: 1.1rem;
}
.modal-content h4 {
  color: var(--white);
  margin: 1.8rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-content h4::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.modal-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--w08);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Primary CTA button  (was .btn-modal-primary) */
.modal-footer button:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.4rem;
  background: #ff6b00;
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #ff6b00;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
}
.modal-footer button:first-child:hover {
  background: var(--bg);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.modal-footer button span {
  display: inline-block;
  transition: transform 0.2s;
}

/* Ghost button  (was .btn-modal-ghost) */
.modal-footer button:last-child {
  background: transparent;
  color: var(--w50);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--w12);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.modal-footer button:last-child:hover {
  border-color: 1px solid var(--primary);
  color: var(--primary);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-body {
    gap: 3rem;
  }
  .photo-a {
    width: 300px;
    height: 250px;
  }
  .photo-b {
    width: 200px;
    height: 170px;
  }
  .hero-right {
    height: 500px;
  }
}
@media (max-width: 1024px) {
  .hero-body {
    grid-template-columns: 1fr;
  }
  .hero-right {
    height: 420px;
    order: -1;
  }
}
@media (max-width: 900px) {
  .blog-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .bsh-left {
    margin-left: 0;
  }
  .bsh-right {
    width: 100%;
  }
  .bsh-stat {
    flex: 1;
  }
  .page-body {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--w08);
    padding: 2rem;
  }
  .cat-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .cat-item {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }
  .content-area {
    padding: 1.5rem;
  }
}
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-base: 0.875rem;
  }
  .hero-body {
    padding: 2rem 1.5rem;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .hero-badge {
    display: none;
  }
}

@media (max-width: 500px) {
  .bsh-stat-sep {
    display: none;
  }
}

/* Comprehensive fix for one card per row */
@media (max-width: 768px) {
  /* Reset the page body */
  .page-body {
    display: block !important;
    width: 100%;
  }

  /* Reset content area */
  .content-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
  }

  /* Force blog-grid to be block/flex column */
  .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 1rem !important;
    grid-template-columns: none !important; /* Remove grid */
  }

  /* Force each card to full width */
  .blog-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
  }

  /* Hide any cards that shouldn't be visible */
  .blog-card.hidden {
    display: none !important;
  }

  /* Fix featured card */
  .blog-card.featured-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ensure thumbnails are full width */
  .card-thumb {
    width: 100%;
  }

  /* Debug - add border to see the card boundaries */
  /* .blog-card { border: 2px solid red; } */ /* Uncomment to debug */
}

/* Extra small devices */
@media (max-width: 480px) {
  .content-area {
    padding: 1rem 1.5rem !important;
  }

  .blog-grid {
    gap: 0.8rem !important;
  }
}

/* Make title appear first, then image on mobile */
@media (max-width: 1024px) {
  .hero-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  /* Title section comes first */
  .hero-left {
    order: 1;
    width: 100%;
  }

  /* Image section comes second */
  .hero-right {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 400px;
    margin-top: 1rem;
  }

  /* Adjust photo positions for mobile */
  .photo-a {
    width: 280px;
    height: 230px;
    top: 20px;
    left: 20px;
  }

  .photo-b {
    width: 180px;
    height: 150px;
    bottom: 40px;
    right: 10px;
  }

  /* Adjust stat cards for mobile */
  .card-1 {
    top: -10px;
    right: 10px;
  }

  .card-2 {
    bottom: 30px;
    left: 5px;
  }
}

/* Smaller screens */
@media (max-width: 768px) {
  .hero-body {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero-right {
    min-height: 350px;
  }

  .photo-a {
    width: 240px;
    height: 200px;
  }

  .photo-b {
    width: 150px;
    height: 130px;
    bottom: 30px;
  }

  .stat-card-value {
    font-size: 1.5rem;
  }

  .stat-card-label {
    font-size: 0.65rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .hero-right {
    min-height: 300px;
  }

  .photo-a {
    width: 200px;
    height: 170px;
  }

  .photo-b {
    width: 130px;
    height: 110px;
    bottom: 20px;
  }

  /* Hide one stat card on very small screens if needed */
  .card-2 {
    display: none;
  }
}

/* ── Hero & section header centering on tablet ── */
@media (max-width: 900px) {
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-tag {
    align-self: center;
    margin-top: 2rem;
  }
  .hero-left h1 {
    text-align: center;
    align-self: center;
  }
  .hero-left > p {
    text-align: center;
    align-self: center;
  }
  .hero-actions {
    align-self: center;
    justify-content: center;
  }

  /* Blog section header */
  .blog-section-header {
    align-items: center;
    text-align: center;
  }
  .bsh-left {
    align-items: center;
    text-align: center;
  }
  .bsh-eyebrow {
    align-self: center;
    justify-content: center;
  }
  .bsh-left h2 {
    text-align: center;
  }
  .bsh-left > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .bsh-right {
    justify-content: center;
  }
}
