/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, #1e4a22 0%, #2d6635 40%, #398141 100%);
  color: #fff;
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #c8e6c8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 72px;
  z-index: 10;
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 4px;
  flex-shrink: 0;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: "DM Sans", sans-serif;
}
.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}
.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── BLOG MAIN ─── */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ─── BLOG FEED GRID ─── */
.blog-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── BLOG CARD ─── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card.hidden {
  display: none;
}

.blog-card-img-wrap {
  display: block;
  overflow: hidden;
  height: 210px;
  background: var(--green-mid);
}
.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-top {
  flex: 1;
}
.blog-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card-title a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.18s;
}
.blog-card-title a:hover {
  color: var(--green);
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--green-light);
  border-radius: 50px;
  padding: 3px 10px;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.blog-card-author {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-card-dot {
  color: var(--text-light);
  flex-shrink: 0;
}
.blog-card-date {
  color: var(--text-light);
  font-size: 12.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s;
}
.btn-read-more:hover {
  gap: 8px;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.empty-state h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state p {
  font-size: 14px;
  line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .blog-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .filter-bar { top: 0; }
  .blog-feed { grid-template-columns: 1fr; }
  .blog-main { padding: 40px 16px 60px; }
  .filter-bar-inner { gap: 6px; }
  .filter-btn { padding: 6px 12px; font-size: 12.5px; }
}

/* ─── NEWSLETTER SECTION ─── */
.newsletter-section {
  background: var(--green-light);
  padding: 72px 24px;
}
.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}
.newsletter-inner p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.newsletter-embed-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-embed-wrap iframe {
  width: 100%;
  min-height: 240px;
  border: none;
  display: block;
}
