/* ---------- RESET ---------- */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* Global links */
a {
  color: #1e88e5;
  text-decoration: none;
}

a:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Keep navbar white */
.navbar a {
  color: #fff;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#f8f9f8;
  color:#333;
  line-height:1.7;
}

/* ---------- HEADER ---------- */
header{
  background:#2e7d32;
  color:#fff;
  padding:1rem 0;
}

.navbar{
  max-width:1100px;
  margin:auto;
  padding:0 1rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.navbar a{
  color:#fff;
  text-decoration:none;
  font-weight:bold;
}

.nav-links{
  display:flex;
  gap:1rem;
}

/* ---------- MAIN LAYOUT ---------- */
.container{
  max-width:1100px;
  margin:auto;
  padding:2rem 1rem;
  display:grid;
  grid-template-columns:3fr 1fr;
  gap:2rem;
}

/* ---------- CATEGORY INTRO ---------- */
.category-intro{
  max-width:1100px;
  margin:2rem auto;
  background:#fff;
  padding:1.8rem;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,0.07);
}

.category-intro h1{
  color:#2e7d32;
  font-size:2rem;
  margin-bottom:0.8rem;
}

.category-intro p{
  margin-bottom:1rem;
  color:#444;
}

.category-intro p:last-child{
  margin-bottom:0;
}

/* ---------- BLOG POSTS ---------- */
.blog-post{
  background:#fff;
  border-radius:8px;
  margin-bottom:2rem;
  box-shadow:0 2px 8px rgba(0,0,0,0.07);
  overflow:hidden;
  transition:transform 0.2s ease;
}

.blog-post:hover{
  transform:translateY(-3px);
}

.blog-post img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.blog-content{
  padding:1.5rem;
}

.blog-content h2{
  color:#2e7d32;
  margin-bottom:0.5rem;
  font-size:1.5rem;
}

.blog-meta{
  font-size:0.85rem;
  color:#777;
  margin-bottom:1rem;
}

.blog-content p{
  margin-bottom:1rem;
}

.read-more{
  display:inline-block;
  margin-top:0.5rem;
  color:#2e7d32;
  font-weight:bold;
  text-decoration:none;
}

.read-more:hover{
  text-decoration:underline;
}

/* ---------- SIDEBAR ---------- */
.sidebar{
  background:#fff;
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,0.07);
  height:fit-content;
}

.sidebar h3{
  margin-bottom:1rem;
  color:#2e7d32;
}

.sidebar ul{
  list-style:none;
}

.sidebar li{
  margin-bottom:0.7rem;
}

.sidebar a{
  text-decoration:none;
  color:#333;
}

.sidebar a:hover{
  text-decoration:underline;
}

.sidebar .recent-title{
 margin-top:1.5rem;
}

/* ---------- FAQ SECTION ---------- */
.faq-section{
  max-width:1100px;
  margin:2rem auto;
  background:#fff;
  padding:1.8rem;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,0.07);
}

#faq-heading{
  color:#2e7d32;
  margin-bottom:1rem;
  font-size:1.7rem;
}

.faq-item{
  margin-bottom:1.2rem;
}

.faq-question{
  font-size:1.1rem;
  color:#2e7d32;
  margin-bottom:0.4rem;
}

.faq-answer{
  color:#444;
  font-size:0.95rem;
  line-height:1.6;
}

/* ---------- FOOTER ---------- */
footer{
  background:#1b5e20;
  color:#fff;
  text-align:center;
  padding:1rem;
  margin-top:3rem;
}

/* ---------- ACCESSIBILITY ---------- */
a:focus{
  outline:2px solid #2e7d32;
  outline-offset:2px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:768px){

  .container{
    grid-template-columns:1fr;
  }

  .category-intro{
    padding:1.4rem;
  }

  .category-intro h1{
    font-size:1.6rem;
  }

  .blog-post img{
    height:200px;
  }

}

/* -------- BREADCRUMB -------- */

.breadcrumb{
font-size:0.9rem;
margin-bottom:1.2rem;
color:#666;
line-height:1.4;
}

.breadcrumb a{
color:#2e7d32;
text-decoration:none;
font-weight:500;
}

.breadcrumb a:hover{
text-decoration:underline;
}

.breadcrumb span{
color:#333;
font-weight:500;
}

/* Mobile */
@media (max-width:768px){

.breadcrumb{
font-size:0.85rem;
margin-bottom:1rem;
}

}

/* ---------- PAGINATION ---------- */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0.5rem;
  margin:2rem 0;
  flex-wrap:wrap;
}

.pagination a{
  padding:0.5rem 0.9rem;
  border:1px solid #ddd;
  background:#fff;
  color:#2e7d32;
  text-decoration:none;
  border-radius:6px;
  font-weight:500;
  transition:all 0.2s ease;
}

.pagination a:hover{
  background:#2e7d32;
  color:#fff;
  border-color:#2e7d32;
}

.pagination a.active{
  background:#2e7d32;
  color:#fff;
  border-color:#2e7d32;
  pointer-events:none;
}

.pagination a.disabled{
  opacity:0.5;
  pointer-events:none;
}

/* Mobile */
@media (max-width:768px){
  .pagination a{
    padding:0.4rem 0.7rem;
    font-size:0.9rem;
  }
}