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

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Page shell ───────────────────────────── */
.page--blog {
  background:
    radial-gradient(circle at 4%  60%, rgba(44,179,46,0.08), transparent 28%),
    radial-gradient(circle at 96% 40%, rgba(44,179,46,0.06), transparent 28%),
    #06100c;
  color: #a9b0ab;
  min-height: 100vh;
}

/* Glow blobs */
.bl-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bl-glow--left {
  width: 600px;
  height: 600px;
  left: -220px;
  top: 30%;
  background: radial-gradient(circle, rgba(44,179,46,0.07) 0%, transparent 70%);
}

.bl-glow--right {
  width: 500px;
  height: 500px;
  right: -180px;
  top: 15%;
  background: radial-gradient(circle, rgba(44,179,46,0.05) 0%, transparent 70%);
}

/* ── Container ────────────────────────────── */
.bl-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 40px;
}

/* ── Entry animations ─────────────────────── */
.bl-anim-up {
  opacity: 0;
  transform: translateY(18px);
  animation: bl-fade-up 0.6s ease forwards;
}

.bl-anim-up--delay {
  animation-delay: 0.18s;
}

@keyframes bl-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.bl-card-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.bl-card-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .bl-anim-up,
  .bl-anim-up--delay,
  .bl-card-anim {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.bl-hero {
  padding-top: calc(var(--nav-height) + 54px);
  padding-bottom: 48px;
}

.bl-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 60px;
  align-items: end;
}

.bl-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2cb32e;
  margin-bottom: 20px;
}

.bl-hero__heading {
  font-size: clamp(62px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #f4f4f1;
  margin-bottom: 22px;
}

.bl-hero__desc {
  font-size: 18px;
  line-height: 1.55;
  color: #b5bbb7;
  max-width: 620px;
}

.bl-hero__aside {
  max-width: 330px;
  font-size: 16px;
  line-height: 1.6;
  color: #8e9791;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   FILTER TOOLBAR
   ═══════════════════════════════════════════ */

.bl-toolbar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px 0;
  margin-bottom: 48px;
  background: rgba(6,16,12,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bl-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Filter pills */
.bl-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.bl-filters::-webkit-scrollbar { display: none; }

.bl-filter {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.13);
  background: transparent;
  color: #929a95;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bl-filter:hover {
  border-color: rgba(44,179,46,0.55);
  color: #f4f4f1;
}

.bl-filter.active {
  background: #2cb32e;
  border-color: #2cb32e;
  color: #fff;
}

.bl-filter:focus-visible {
  outline: 2px solid #2cb32e;
  outline-offset: 2px;
}

/* Search */
.bl-search-wrap {
  position: relative;
  flex-shrink: 0;
}

.bl-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #747d77;
  pointer-events: none;
}

.bl-search {
  width: 280px;
  height: 40px;
  padding: 0 16px 0 40px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #f4f4f1;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.bl-search::placeholder { color: #6e7671; }

.bl-search:focus {
  border-color: rgba(44,179,46,0.6);
  box-shadow: 0 0 0 3px rgba(44,179,46,0.06);
}

/* ═══════════════════════════════════════════
   ARTICLES WRAPPER
   ═══════════════════════════════════════════ */

.bl-articles-wrap {
  padding-bottom: 80px;
}

/* Empty state */
.bl-empty {
  text-align: center;
  padding: 80px 20px;
}

.bl-empty__title {
  font-size: 22px;
  font-weight: 700;
  color: #f4f4f1;
  margin-bottom: 8px;
}

.bl-empty__sub {
  font-size: 15px;
  color: #747d77;
}

/* ── Shared badge ─────────────────────────── */
.bl-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2cb32e;
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

/* ── Shared meta ──────────────────────────── */
.bl-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #7e8881;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bl-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bl-meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Read more link ───────────────────────── */
.bl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #31c438;
  margin-top: auto;
  transition: gap 0.25s;
}

.bl-read-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s;
}

/* ═══════════════════════════════════════════
   FEATURED ARTICLE
   ═══════════════════════════════════════════ */

.bl-featured {
  margin-bottom: 26px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(44,179,46,0.25);
  background: #09130f;
}

.bl-featured__link {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  text-decoration: none;
  color: inherit;
  min-height: 380px;
}

.bl-featured__link:hover .bl-featured__img {
  transform: scale(1.025);
}

.bl-featured__link:hover .bl-read-more {
  gap: 12px;
}

.bl-featured__link:hover .bl-read-more svg {
  transform: translateX(3px);
}

.bl-featured__img-wrap {
  position: relative;
  overflow: hidden;
}

.bl-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.bl-featured__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(9,19,15,0.6));
  pointer-events: none;
}

.bl-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
}

.bl-featured__title {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #f4f4f1;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.bl-featured__link:hover .bl-featured__title {
  color: #2cb32e;
}

.bl-featured__excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: #929b95;
  margin-bottom: 28px;
  flex: 1;
}

/* ═══════════════════════════════════════════
   SECONDARY GRID
   ═══════════════════════════════════════════ */

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

/* ── Blog card ────────────────────────────── */
.bl-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px;
  background: rgba(255,255,255,0.012);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.bl-card:hover {
  transform: translateY(-5px);
  border-color: rgba(44,179,46,0.45);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.28),
    0 0 28px rgba(44,179,46,0.04);
}

.bl-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bl-card:hover .bl-card__img {
  transform: scale(1.025);
}

.bl-card:hover .bl-read-more {
  gap: 12px;
}

.bl-card:hover .bl-read-more svg {
  transform: translateX(3px);
}

.bl-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7.2;
}

.bl-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.bl-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bl-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f4f4f1;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.bl-card:hover .bl-card__title {
  color: #2cb32e;
}

.bl-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #89928c;
  margin-bottom: 20px;
  flex: 1;
}

/* ═══════════════════════════════════════════
   LOAD MORE
   ═══════════════════════════════════════════ */

.bl-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.bl-load-more {
  height: 50px;
  padding: 0 36px;
  border: 1px solid #2cb32e;
  border-radius: 6px;
  background: transparent;
  color: #2cb32e;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.bl-load-more:hover {
  background: #2cb32e;
  color: #fff;
  box-shadow: 0 8px 24px rgba(44,179,46,0.15);
}

.bl-load-more:focus-visible {
  outline: 2px solid #2cb32e;
  outline-offset: 3px;
}

/* ── Blog post single page (keep existing) ── */
.post-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: var(--space-md);
}

.post-header__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  background-color: rgba(46,139,61,0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.post-header h1 { margin-bottom: 1.25rem; }

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(241,239,233,0.55);
}

.post-header__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-hero-image {
  max-width: 960px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: #111a16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: rgba(241,239,233,0.85);
  line-height: 1.8;
}

.post-body h2 { font-size: 1.75rem; margin-top: var(--space-md); margin-bottom: 1rem; }
.post-body h3 { font-size: 1.3rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }

.post-body ul, .post-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: rgba(241,239,233,0.85);
}

.post-body blockquote {
  margin: var(--space-md) 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 4px solid var(--color-green);
  background-color: rgba(46,139,61,0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-body blockquote p {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(241,239,233,0.85);
  margin-bottom: 0;
}

.post-footer {
  max-width: 720px;
  margin: var(--space-md) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.post-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  background-color: rgba(46,139,61,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.post-nav { display: flex; gap: 0.75rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bl-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bl-hero__aside {
    max-width: 100%;
  }

  .bl-featured__link {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bl-featured__img-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .bl-featured__img-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(9,19,15,0.6));
  }

  .bl-featured__body {
    padding: 28px 28px 32px;
  }
}

@media (max-width: 700px) {
  .bl-container {
    padding-inline: 20px;
  }

  .bl-hero {
    padding-top: calc(var(--nav-height) + 36px);
    padding-bottom: 32px;
  }

  .bl-hero__heading {
    font-size: clamp(48px, 14vw, 70px);
  }

  .bl-toolbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bl-search {
    width: 100%;
  }

  .bl-search-wrap {
    width: 100%;
  }

  .bl-grid {
    grid-template-columns: 1fr;
  }
}
