:root {
  --bi-green: #7aa047;
  --bi-green-light: #eef4e5;
  --text-dark: #1a1a1a;
  --text-body: #555555;
  --border-color: #e5e9f0;
}

.blog-index-page {
  background-color: var(--bi-green-light);
  min-height: 100vh;
}

.container-1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-padding {
  padding: 60px 0;
}

/* ── Hero Banner ── */
.bi-hero-banner {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bi-hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("/images/blog/blog Hero Image.webp");
  background-size: cover;
  background-position: center;
}

.bi-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bi-hero-title {
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ── Section Heading ── */
.bi-section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.bi-section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.bi-section-heading h2 span {
  color: var(--bi-green);
}

/* ── Blog Grid ── */
.bi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 70px;
}

.bi-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 25px;
}

.bi-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.bi-card-img-wrap {
  display: block;
  height: 170px;
  overflow: hidden;
}

.bi-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 25px;
}

.bi-card:hover .bi-card-img-wrap img {
  transform: scale(1.05);
  border-radius: 25px;
}

.bi-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef4e5, #dcecc9);
}

.bi-card-body {
  padding: 18px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bi-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}

.bi-card-title a {
  color: var(--bi-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bi-card-title a:hover {
  color: #6fae2e;
}

.bi-card-excerpt {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0 0 12px;
  flex-grow: 1;
}

.bi-card-readmore {
  font-size: 15px;
  font-weight: 700;
  color: #89b74c;
  text-decoration: none;
  align-self: flex-start;
}

.bi-card-readmore:hover {
  color: var(--bi-green);
}

/* ── Categories Section ── */
.bi-categories-section {
  margin-top: 0;
}

.bi-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.bi-cat-card {
  display: block;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  padding: 10px;
  border-radius: 25px;
}

.bi-cat-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.bi-cat-card-img-wrap {
  height: 150px;
  overflow: hidden;
}

.bi-cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.bi-cat-card-body {
  padding: 18px 20px 20px;
}

.bi-cat-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bi-green);
  margin: 0 0 8px;
}

.bi-cat-card-body p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 12px;
}

.bi-cat-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #89b74c;
}

.bi-cat-card:hover .bi-cat-link {
  color: var(--bi-green);
}

.bi-empty {
  text-align: center;
  color: var(--text-body);
  grid-column: 1 / -1;
  padding: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .bi-grid,
  .bi-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bi-hero-title {
    font-size: 28px;
  }

  .bi-hero-banner {
    height: 160px;
  }

  .bi-grid,
  .bi-categories-grid {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 40px 0;
  }

  .bi-section-heading h2 {
    font-size: 22px;
  }
}
