/* Blog page styling matching the agricultural branding */
.blog-page {
  background: #fbfdf9;
}

/* Hero Section */
.blog-hero {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #f7f3e5 url('../images/bg image adhi.png') center center / cover no-repeat;
  isolation: isolate;
}

.blog-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.2));
}

.blog-hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #37752d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0 0 10px;
  max-width: 600px;
  color: #064b32;
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.65);
}

.blog-hero p {
  max-width: 540px;
  margin: 0;
  color: #4b5550;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Main Layout Shell */
.blog-main {
  padding: 44px 20px 60px;
  background: radial-gradient(circle at 15% 0%, rgba(128, 177, 43, 0.06), transparent 25%), #fbfdf9;
}

.blog-shell {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: start;
}

/* Toolbar & Filters */
.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(10, 78, 49, 0.08);
}

.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: 8px 16px;
  border: 1px solid rgba(46, 125, 50, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #315a37;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: #1f672f;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(31, 103, 47, 0.15);
}

.blog-search-box {
  position: relative;
  width: 260px;
}

.blog-search-box input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 38px;
  border: 1px solid #cedbd2;
  border-radius: 999px;
  outline: none;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-box input:focus {
  border-color: #25894a;
  box-shadow: 0 0 0 3px rgba(37, 137, 74, 0.1);
}

.blog-search-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #5c6b60;
  font-size: 0.88rem;
  pointer-events: none;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 78, 49, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(21, 69, 44, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 132, 67, 0.24);
  box-shadow: 0 14px 32px rgba(21, 69, 44, 0.12);
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f0f5ee;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f672f;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  color: #6d7b70;
  font-size: 0.75rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-meta i {
  margin-right: 4px;
}

.blog-card-content h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #174d2d;
  font-family: 'Outfit', sans-serif;
}

.blog-card-content h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card-content h2 a:hover {
  color: #25894a;
}

.blog-card-content p {
  margin: 0 0 18px;
  color: #556258;
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #edf2ee;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef5ed;
}

.blog-author-info strong {
  display: block;
  font-size: 0.78rem;
  color: #2b392f;
}

.blog-author-info small {
  display: block;
  font-size: 0.65rem;
  color: #748277;
}

.blog-read-more {
  color: #1f672f;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.blog-read-more:hover {
  color: #174d24;
  gap: 7px;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.blog-page-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(46, 125, 50, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #315a37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-page-link:hover,
.blog-page-link.active {
  background: #1f672f;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(31, 103, 47, 0.15);
}

.blog-page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Sidebar Widgets */
.blog-sidebar {
  display: grid;
  gap: 28px;
}

.blog-widget {
  background: #fff;
  border: 1px solid rgba(10, 78, 49, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(21, 69, 44, 0.05);
}

.blog-widget h3 {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #174d2d;
  font-family: 'Outfit', sans-serif;
  border-bottom: 2px solid #e2ebd9;
  padding-bottom: 8px;
}

/* Recent Posts Widget */
.blog-recent-list {
  display: grid;
  gap: 16px;
}

.blog-recent-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-recent-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f5ee;
}

.blog-recent-content {
  min-width: 0;
}

.blog-recent-content h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2b392f;
}

.blog-recent-content h4 a {
  color: inherit;
  text-decoration: none;
}

.blog-recent-content h4 a:hover {
  color: #25894a;
}

.blog-recent-content span {
  font-size: 0.72rem;
  color: #748277;
}

/* Newsletter Widget */
.blog-newsletter-widget {
  text-align: center;
  background: linear-gradient(135deg, #1f672f, #094716);
  color: #fff;
  border: none;
}

.blog-newsletter-widget h3 {
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.blog-newsletter-widget p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cce0d2;
  margin: 0 0 20px;
}

.blog-newsletter-form input {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 16px;
  outline: none;
  font-size: 0.88rem;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.blog-newsletter-form input::placeholder {
  color: #a4c3ad;
}

.blog-newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.blog-newsletter-btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: #a2cd15;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(162, 205, 21, 0.3);
  transition: background-color 0.2s, transform 0.2s;
}

.blog-newsletter-btn:hover {
  background: #94bc13;
  transform: translateY(-1px);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .blog-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 240px;
  }
  .blog-hero-content {
    padding: 30px 0;
  }
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-box {
    width: 100%;
  }
  .blog-filters {
    width: 100%;
    justify-content: flex-start;
  }
  .blog-filter-btn {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}
