:root {
  --green: #006b3c;
  --green-dark: #004d2c;
  --green-deep: #02351f;
  --orange: #f28c1b;
  --orange-dark: #d66f0d;
  --text: #1e2a24;
  --muted: #66736c;
  --white: #ffffff;
  --light: #f5f8f2;
  --shadow: 0 24px 70px rgba(0, 75, 45, 0.14);
  --shadow-strong: 0 34px 90px rgba(0, 75, 45, 0.22);
}

.blog-main {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 12% 8%, rgba(242,140,27,.12), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(0,107,60,.11), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6faf4 100%);
}

.blog-top {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
}

.blog-top span {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.blog-top h1 {
  color: var(--green-deep);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin: 10px 0 14px;
}

.blog-top p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin: auto;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.filter {
  border: 1px solid rgba(0,107,60,.14);
  background: white;
  color: var(--green-dark);
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,75,45,.06);
  transition: .25s;
}

.filter.active,
.filter:hover {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  transform: translateY(-2px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.post-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,107,60,.08);
  transition: .3s;
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.post-media {
  position: relative;
  width: 100%;
  height: 360px;
  background: #eef6ec;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,107,60,.06);
}

.post-media iframe,
.post-media img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-media iframe {
  object-fit: cover;
}

.image-media img {
  object-fit: cover;
  transition: .45s;
}

.post-card:hover .image-media img {
  transform: scale(1.05);
}

.image-media button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: rgba(0,107,60,.94);
  color: white;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transition: .25s;
}

.image-media button:hover {
  transform: scale(1.08);
}

.post-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag {
  display: inline-flex;
  width: fit-content;
  color: var(--orange);
  background: rgba(242,140,27,.13);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 14px;
}

.post-body h3 {
  color: var(--green-dark);
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.post-body p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  font-size: 15.5px;
}

.post-body a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  margin-top: auto;
}

.newsletter {
  padding: 80px 0;
  background: #f6faf4;
}

.newsletter-box {
  background: white;
  border-radius: 34px;
  padding: 38px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.newsletter span {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.newsletter h2 {
  color: var(--green-deep);
  font-size: clamp(30px, 4vw, 46px);
  margin: 8px 0;
}

.newsletter p {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 980px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    max-width: 580px;
    margin: auto;
    width: 100%;
    min-height: auto;
  }

  .post-media {
    height: 520px;
  }

  .newsletter-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .blog-main {
    padding: 62px 0 76px;
  }

  .blog-top h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .post-media {
    height: 470px;
  }
}