/* ================================
   CSS VARIABLES
================================ */
:root {
  --green-deep: #173417;
  --green: #2d5a2e;
  --green-mid: #345635;
  --green-light: #567d56;
  --gold: #c8955f;
  --gold-light: #d4a574;
  --cream: #f8f5ee;
  --cream-light: #fffdf9;
  --sage-bg: #eef4ed;
  --text-dark: #223022;
  --text-mid: #60705f;
  --text-light: #778676;
  --white: #ffffff;
  --line: rgba(52, 86, 53, 0.15);
  --shadow-sm: 0 10px 28px rgba(23, 52, 23, 0.08);
  --shadow-md: 0 18px 50px rgba(23, 52, 23, 0.11);
  --radius: 8px;
}

/* ================================
   HERO
================================ */
.blog-hero {
  min-height: 500px;
  padding: 8rem 2rem 3.5rem;
  background:
    linear-gradient(90deg, rgba(23, 52, 23, 0.94) 0%, rgba(23, 52, 23, 0.8) 48%, rgba(23, 52, 23, 0.34) 100%),
    url('/assets/img/blog-hero.webp') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.blog-hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  color: #f2d6b2;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.title-blog {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 0.95rem;
  line-height: 1;
}

.hero-description {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-tags span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.68rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-primary {
  background: #ffffff;
  color: var(--green-deep);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.hero-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-2px);
}

/* ================================
   STATS
================================ */
.blog-stats {
  width: min(1060px, calc(100% - 2rem));
  margin: -2.35rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.blog-stats div {
  padding: 1.1rem 1.35rem;
  border-right: 1px solid var(--line);
}

.blog-stats div:last-child {
  border-right: none;
}

.blog-stats strong {
  display: block;
  color: var(--green-deep);
  font-size: 1.02rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.blog-stats span {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ================================
   SHARED SECTION TITLE
================================ */
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 850;
  color: var(--green-deep);
  margin-bottom: 0.55rem;
  line-height: 1.15;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold-light));
  margin-top: 0.75rem;
  border-radius: 3px;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading .section-kicker {
  color: var(--green-mid);
}

.section-heading .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.85rem;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1000px) {
  .blog-hero {
    min-height: auto;
    padding-top: 8.5rem;
  }

  .blog-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

}

@media (max-width: 768px) {
  .blog-hero {
    padding: 7rem 1.25rem 3.25rem;
  }

  .blog-stats {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .blog-stats div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.25rem;
  }

  .blog-stats div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 520px) {
  .blog-hero {
    padding: 6.25rem 1rem 2.25rem;
    background:
      linear-gradient(180deg, rgba(23, 52, 23, 0.92) 0%, rgba(23, 52, 23, 0.84) 56%, rgba(23, 52, 23, 0.68) 100%),
      url('/assets/img/blog-hero.webp') center center / cover no-repeat;
  }

  .title-blog {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-tags {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero-tags span {
    width: 100%;
    padding: 0.55rem 0.75rem;
  }

  .hero-actions {
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .hero-actions a {
    width: 100%;
    padding: 0.78rem 0.9rem;
  }
}
