/* ══════════════════════════════════════════════
   BLOGS — matches main site design system
   Primary  : #3d6b4f   (--primary)
   Light    : #5a8c6a   (--primary-light)
   Accent   : #b5e153   (--accent / lime-green)
   Dark     : #1a1a2e
   BG       : #f5f7f5   (--light)
   Font     : Inter
══════════════════════════════════════════════ */

/* ── Page wrapper ── */
.blog-page {
  background: #f5f7f5;
  min-height: 100vh;
}

/* ── Page Hero ── */
.blog-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d4a38 60%, #3d6b4f 100%);
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 40%, rgba(181, 225, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(181, 225, 83, 0.15);
  color: #b5e153;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(181, 225, 83, 0.25);
  margin-bottom: 20px;
}

.blog-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.blog-hero-title span {
  color: #b5e153;
}

.blog-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Container ── */
.blog-container {
  max-width: 1180px;
  margin: 0 auto;
  padding:24px;
}

/* ── Section spacing ── */
.blog-section {
  padding: 72px 0 88px;
}

/* ── Section header ── */
.blog-section-header {
  margin-bottom: 48px;
}

.blog-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #3d6b4f;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: #b5e153;
  border-radius: 2px;
}

.blog-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 10px;
}

.blog-section-title span {
  color: #3d6b4f;
}

.blog-section-sub {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 560px;
}

/* ══════════════════════════════
   FEATURED POST
══════════════════════════════ */
.blog-featured-wrap {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d4a38 100%);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 380px;
  margin-bottom: 64px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.13);
}

.blog-featured-img-wrap {
  position: relative;
  overflow: hidden;
}

.blog-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured-img-wrap:hover img {
  transform: scale(1.04);
}

.blog-featured-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d4a38 0%, #3d6b4f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(181, 225, 83, 0.2);
}

.blog-featured-body {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(181, 225, 83, 0.15);
  color: #b5e153;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(181, 225, 83, 0.25);
  width: fit-content;
}

.blog-featured-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.blog-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-featured-title a:hover {
  color: #b5e153;
}

.blog-featured-excerpt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-featured-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.blog-author-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d6b4f, #5a8c6a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(181, 225, 83, 0.3);
}

.blog-featured-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}

.blog-featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #b5e153;
  color: #1a1a2e;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  width: fit-content;
  transition: all 0.25s ease;
}

.blog-featured-read-more:hover {
  background: #c8f06a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 225, 83, 0.35);
}

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

/* ── Card ── */
.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e4e8e4;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(61, 107, 79, 0.13);
  border-color: rgba(61, 107, 79, 0.25);
}

/* ── Thumbnail ── */
.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9f0ea;
  position: relative;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4e8d8 0%, #a8d0b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #3d6b4f;
  opacity: 0.5;
}

/* ── Category badge overlay ── */
.blog-cat-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
}

.blog-cat {
  background: #3d6b4f;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 11px;
  border-radius: 999px;width: 20%;
}

/* ── Card body ── */
.blog-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.42;
  color: #1a1a2e;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: #3d6b4f;
}

.blog-excerpt {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.65;
  flex: 1;
}

/* ── Read more ── */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3d6b4f;
  text-decoration: none;
  transition: gap 0.22s, color 0.22s;
  align-self: flex-start;
  padding: 6px 0;
}

.blog-read-more:hover {
  color: #5a8c6a;
  gap: 10px;
}

.blog-read-more i {
  font-size: 0.75rem;
  transition: transform 0.22s;
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

/* ── Card meta ── */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e4e8e4;
  padding-top: 14px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #999;
  gap: 8px;
}

.blog-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #555;
}

.author-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d6b4f, #5a8c6a);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-meta-date {
  color: #bbb;
  font-size: 0.77rem;
}

/* ══════════════════════════════
   EMPTY STATE
══════════════════════════════ */
.empty-state {
  text-align: center;
  color: #999;
  font-size: 0.92rem;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px dashed #d4ddd4;
  margin-top: 24px;
}

.empty-state i {
  font-size: 2.4rem;
  color: #c8d8c8;
  display: block;
  margin-bottom: 14px;
}

/* ══════════════════════════════
   PAGINATION
══════════════════════════════ */
.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #d4ddd4;
  color: #555;
  background: #ffffff;
  transition: all 0.22s ease;
}

.pagination .page-numbers:hover {
  background: #f0f7f2;
  border-color: #3d6b4f;
  color: #3d6b4f;
}

.pagination .page-numbers.current {
  background: #3d6b4f;
  color: #ffffff;
  border-color: #3d6b4f;
  box-shadow: 0 4px 14px rgba(61, 107, 79, 0.3);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-featured-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .blog-featured-img-wrap {
    height: 240px;
  }

  .blog-featured-body {
    padding: 32px;
  }
}

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

  .blog-section {
    padding: 52px 0 64px;
  }

  .blog-hero {
    padding: 52px 0 56px;
  }

  .blog-featured-body {
    padding: 24px;
  }
}
