*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: Arial, sans-serif;
  color: #222;
  background: #f8fbf6;
  overflow-x: hidden;
}

img{
  max-width: 100%;
  display: block;
}

a{
  text-decoration: none;
}

html{
  scroll-behavior: smooth;
}

/* =========================
   BLOG HERO
========================= */
.agro-blog-hero{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url("{% static 'images/blog-hero.jpg' %}") center/cover no-repeat;
  overflow: hidden;
  margin-top: 50px;
}

.agro-blog-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.68), rgba(0,0,0,0.28));
}

.agro-blog-hero-content{
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
  padding: 80px 0;
}

.agro-blog-hero-subtitle{
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255,255,255,0.15);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agro-blog-hero-content h1{
  font-size: 56px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 18px;
}

.agro-blog-hero-content p{
  font-size: 18px;
  line-height: 1.8;
  max-width: 650px;
  color: rgba(255,255,255,0.92);
}

/* =========================
   BLOG PAGE
========================= */
.agro-blog-page-section{
  padding: 80px 0;
}

.agro-blog-card{
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.35s ease;
  border: 1px solid #edf3ea;
}

.agro-blog-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

.agro-blog-img-wrap{
  position: relative;
  overflow: hidden;
}

.agro-blog-img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.agro-blog-card:hover .agro-blog-img{
  transform: scale(1.08);
}

.agro-blog-date{
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #97C80B;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
}

.agro-blog-content{
  padding: 26px 24px 24px;
}

.agro-blog-category{
  display: inline-block;
  margin-bottom: 12px;
  color: #2F7D2E;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.agro-blog-content h3{
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 800;
}

.agro-blog-content h3 a{
  color: #1f1f1f;
  transition: color 0.3s ease;
}

.agro-blog-card:hover .agro-blog-content h3 a{
  color: #2F7D2E;
}

.agro-blog-content p{
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 18px;
}

.agro-blog-readmore{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #064905;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.agro-blog-readmore::after{
  content: "→";
  transition: transform 0.3s ease;
}

.agro-blog-readmore:hover{
  color: #97C80B;
}

.agro-blog-readmore:hover::after{
  transform: translateX(4px);
}

.agro-blog-pagination{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 45px;
  flex-wrap: wrap;
}

.agro-blog-pagination a{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dfe8db;
  color: #2F7D2E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: 0.3s ease;
}

.agro-blog-pagination a.active,
.agro-blog-pagination a:hover{
  background: #2F7D2E;
  color: #fff;
  border-color: #2F7D2E;
}

/* =========================
   BLOG DETAIL HERO
========================= */
.agro-blog-detail-hero{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url("images/blog-detail-hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.agro-blog-detail-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.30));
}

.agro-blog-detail-hero-content{
  position: relative;
  z-index: 2;
  max-width: 820px;
  color: #fff;
  padding: 90px 0;
}

.agro-blog-detail-category{
  display: inline-block;
  margin-bottom: 14px;
  background: #97C80B;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 30px;
  text-transform: uppercase;
}

.agro-blog-detail-hero-content h1{
  font-size: 54px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 18px;
}

.agro-blog-meta{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.agro-blog-meta span{
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 600;
}

/* =========================
   BLOG DETAIL CONTENT
========================= */
.agro-blog-detail-section{
  padding: 80px 0;
}

.agro-blog-detail-main{
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.agro-blog-detail-image img{
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.agro-blog-detail-content{
  padding: 34px 34px 30px;
}

.agro-blog-detail-content p{
  font-size: 17px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
}

.agro-blog-detail-content h3{
  font-size: 30px;
  color: #2F7D2E;
  font-weight: 800;
  margin: 24px 0 14px;
}

.agro-blog-detail-content ul{
  padding-left: 20px;
  margin-bottom: 24px;
}

.agro-blog-detail-content ul li{
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}

.agro-blog-detail-content blockquote{
  background: #f4faef;
  border-left: 5px solid #97C80B;
  padding: 22px 24px;
  border-radius: 14px;
  font-size: 18px;
  line-height: 1.8;
  color: #2F7D2E;
  font-weight: 600;
  margin: 28px 0;
}

/* =========================
   SIDEBAR
========================= */
.agro-blog-sidebar{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agro-sidebar-widget{
  background: #fff;
  padding: 26px 24px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.agro-sidebar-widget h4{
  font-size: 24px;
  color: #2F7D2E;
  font-weight: 800;
  margin-bottom: 20px;
}

.agro-recent-post{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.agro-recent-post:last-child{
  margin-bottom: 0;
}

.agro-recent-post img{
  width: 82px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.agro-recent-post a{
  display: block;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  transition: 0.3s ease;
}

.agro-recent-post a:hover{
  color: #2F7D2E;
}

.agro-recent-post span{
  font-size: 13px;
  color: #777;
}

.agro-category-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.agro-category-list li{
  margin-bottom: 12px;
}

.agro-category-list li:last-child{
  margin-bottom: 0;
}

.agro-category-list li a{
  display: block;
  padding: 12px 16px;
  background: #f8fbf6;
  border-radius: 12px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

.agro-category-list li a:hover{
  background: #2F7D2E;
  color: #fff;
}

/* =========================
   TABLET
========================= */
@media (max-width: 991px){
  .agro-blog-hero,
  .agro-blog-detail-hero{
    min-height: 340px;
  }

  .agro-blog-hero-content h1,
  .agro-blog-detail-hero-content h1{
    font-size: 40px;
  }

  .agro-blog-hero-content p{
    font-size: 16px;
  }

  .agro-blog-page-section,
  .agro-blog-detail-section{
    padding: 65px 0;
  }

  .agro-blog-img{
    height: 230px;
  }

  .agro-blog-content h3{
    font-size: 21px;
  }

  .agro-blog-content p{
    font-size: 15px;
  }

  .agro-blog-detail-image img{
    height: 340px;
  }

  .agro-blog-detail-content{
    padding: 28px 24px 24px;
  }

  .agro-blog-detail-content h3{
    font-size: 26px;
  }

  .agro-sidebar-widget{
    padding: 22px 18px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 575px){
  .agro-blog-hero,
  .agro-blog-detail-hero{
    min-height: 280px;
  }

  .agro-blog-hero-content,
  .agro-blog-detail-hero-content{
    padding: 65px 0;
  }

  .agro-blog-hero-content h1,
  .agro-blog-detail-hero-content h1{
    font-size: 28px;
    line-height: 1.35;
  }

  .agro-blog-hero-content p{
    font-size: 15px;
    line-height: 1.7;
  }

  .agro-blog-page-section,
  .agro-blog-detail-section{
    padding: 50px 0;
  }

  .agro-blog-img{
    height: 220px;
  }

  .agro-blog-date{
    left: 14px;
    bottom: 14px;
    font-size: 12px;
    padding: 7px 12px;
  }

  .agro-blog-content{
    padding: 22px 18px 20px;
  }

  .agro-blog-category{
    font-size: 12px;
  }

  .agro-blog-content h3{
    font-size: 19px;
    margin-bottom: 12px;
  }

  .agro-blog-content p{
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  .agro-blog-readmore{
    font-size: 14px;
  }

  .agro-blog-pagination a{
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .agro-blog-meta{
    gap: 10px;
  }

  .agro-blog-meta span{
    font-size: 13px;
  }

  .agro-blog-detail-image img{
    height: 240px;
  }

  .agro-blog-detail-content{
    padding: 22px 18px 18px;
  }

  .agro-blog-detail-content p{
    font-size: 15px;
    line-height: 1.8;
  }

  .agro-blog-detail-content h3{
    font-size: 22px;
  }

  .agro-blog-detail-content ul li{
    font-size: 14px;
  }

  .agro-blog-detail-content blockquote{
    font-size: 15px;
    padding: 18px;
  }

  .agro-sidebar-widget h4{
    font-size: 20px;
  }

  .agro-recent-post{
    gap: 12px;
  }

  .agro-recent-post img{
    width: 68px;
    height: 68px;
  }

  .agro-recent-post a{
    font-size: 14px;
  }

  .agro-category-list li a{
    font-size: 14px;
    padding: 10px 14px;
  }
}