/* ================================================================
   blog-final.css — Clean Minimal Override for blog page (loads last)
   ================================================================ */

/* ── Quieter body ── */
body {
  background:
    radial-gradient(ellipse 70% 40% at -4% -6%, rgba(88,28,235,.15), transparent),
    radial-gradient(ellipse 50% 36% at 106% 102%, rgba(22,193,255,.08), transparent),
    #020817 !important;
}
body::before { opacity: .38 !important; }
body::after  { display: none !important; }

/* ── Hero ── */
.blog-hero {
  padding: 10rem 0 5rem !important;
}
.blog-hero::before {
  background: linear-gradient(135deg, rgba(255,255,255,.03), transparent 46%),
              rgba(255,255,255,.014) !important;
  border-color: rgba(255,255,255,.055) !important;
}

/* ── Featured card ── */
.blog-featured {
  background: #08111f !important;
  border-color: rgba(255,255,255,.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.blog-featured:hover {
  background: #08111f !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.38) !important;
}

/* ── Article cards ── */
.blog-card {
  background: #08111f !important;
  border-color: rgba(255,255,255,.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.blog-card:hover {
  background: #08111f !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 20px 52px rgba(0,0,0,.4) !important;
}
.blog-card[hidden] { display: none !important; }
.blog-featured[hidden] { display: none !important; }

/* ── Sidebar widgets (if any remain) ── */
.sb-widget {
  background: #08111f !important;
  border-color: rgba(255,255,255,.08) !important;
  backdrop-filter: none !important;
}

/* ── Newsletter ── */
.nl-form input {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.1) !important;
}

/* ── Filter tabs ── */
.blog-filter-row {
  backdrop-filter: none !important;
}

/* ── Footer ── */
.footer-grid {
  background: rgba(8,11,22,.92) !important;
  backdrop-filter: none !important;
}

/* ══════════════════════════════════════════
   BLOG MOBILE RESPONSIVE
   ══════════════════════════════════════════ */

/* ── Tablet / large mobile (≤1024px) ── */
@media (max-width: 1024px) {
  .blog-hero {
    padding: 9rem 0 4rem !important;
  }
  .blog-featured {
    grid-template-columns: 1fr !important;
  }
  .bf-visual {
    min-height: 260px !important;
  }
  .bf-body {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
  }
  .blog-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

/* ── Small tablet / large phone (≤760px) ── */
@media (max-width: 760px) {
  /* hero */
  .blog-hero {
    padding: 5rem 0 3rem !important;
  }
  .blog-hero::before {
    display: none !important;
  }
  .blog-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem) !important;
    line-height: 1 !important;
  }
  .blog-hero p {
    font-size: .93rem !important;
    max-width: 100% !important;
  }
  .bh-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: .75rem !important;
    padding-top: 1.5rem !important;
  }
  .bh-stat strong { font-size: 1.35rem !important; }

  /* filter tabs — horizontal scroll, no wrap */
  .blog-filter-row {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    border-radius: 10px !important;
    padding: 4px !important;
  }
  .blog-filter-row::-webkit-scrollbar { display: none !important; }
  .bftab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: .4rem .85rem !important;
    font-size: .64rem !important;
  }

  /* featured */
  .bf-visual {
    min-height: 210px !important;
  }
  .bf-visual-text {
    font-size: 7rem !important;
    right: -10px !important;
    bottom: -10px !important;
  }
  .bf-body {
    padding: 1.75rem 1.5rem !important;
  }
  .bf-title {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem) !important;
    line-height: 1.18 !important;
  }
  .bf-excerpt {
    font-size: .86rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* grid */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .bc-thumb {
    height: 158px !important;
  }
  .bc-thumb-label {
    font-size: 4.5rem !important;
  }
  .bc-body {
    padding: 1.1rem 1.25rem 1.3rem !important;
  }
  .bc-title {
    font-size: .95rem !important;
    line-height: 1.35 !important;
  }
  .bc-excerpt {
    font-size: .79rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* newsletter */
  .blog-nl {
    padding: 3.5rem 0 !important;
  }
  .nl-inner h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
  }
  .nl-inner p {
    font-size: .88rem !important;
  }
  .nl-form {
    flex-direction: column !important;
    max-width: 340px !important;
  }
  .nl-form input,
  .nl-form button {
    width: 100% !important;
    border-radius: 10px !important;
  }

  /* section spacing */
  .blog-grid-section {
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .blog-grid-head {
    margin-bottom: 1.5rem !important;
  }
  .blog-grid-head h2 {
    font-size: 1.25rem !important;
  }

  /* featured margin */
  .blog-featured {
    margin-bottom: 2.25rem !important;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .blog-hero {
    padding: 5rem 0 2.5rem !important;
  }
  .blog-hero h1 {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
  }
  .bh-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: .6rem !important;
  }
  .bh-stat strong { font-size: 1.25rem !important; }
  .bh-stat span   { font-size: .65rem !important; }

  .bf-body {
    padding: 1.35rem 1.1rem !important;
  }
  .bf-tag { font-size: .58rem !important; }
  .bf-meta { gap: .75rem !important; font-size: .6rem !important; }

  .bc-thumb { height: 140px !important; }
  .bc-thumb-label { font-size: 3.8rem !important; }
  .bc-body { padding: 1rem 1.1rem 1.15rem !important; }
  .bc-title { font-size: .9rem !important; }
  .bc-cat  { font-size: .57rem !important; }
  .bc-footer { font-size: .58rem !important; }

  .nl-inner { padding: 0 .5rem; }
  .nl-form { max-width: 100% !important; }

  .blog-filter-row { gap: .15rem !important; }
  .bftab { padding: .38rem .75rem !important; font-size: .6rem !important; }
}
