    /* --- Card Grid for Blog Categories & Posts --- */
    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem 4rem;
    }

/* Ensure links in .posts-grid are styled cleanly */
.posts-grid a {
  text-decoration: none;
  color: var(--heading-color, #4d3319);
  display: block;
}

/* Remove blue underline from h3 inside anchor */
.posts-grid a h3 {
  margin: 0.5em 0 0;
  text-decoration: none;
  color: inherit;
  transition: text-decoration-color 0.2s ease;
}

/* On hover, add custom underline to h3 */
.posts-grid a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--heading-color, #4d3319);
}

/* Optional: if h3 is inside the link */
.post-grid a h3 {
  margin: 0;
  font-weight: 600;
}

/* Add custom-colored underline on hover */
.post-grid a:hover {
  text-decoration: underline;
  text-decoration-color: var(--heading-color, #4d3319);
}

    .post-card {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,.08);
      background: #fff;
      transition: transform .2s;
    }
    .post-card:hover { transform: translateY(-4px); }
    .post-card img {
      width: 100%;
      height: auto;
      display: block;
    }
    .post-card h3 {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0;
      padding: 1rem;
      color: var(--heading-color, #4d3319);
    }
    .post-card a { text-decoration: none; display: block; color: inherit; }

    /* --- Pagination nav (bottom) --- */
    .pagination {
      text-align: center;
      margin: 2rem 0 4rem;
    }
    .pagination a {
      padding: .5rem 1rem;
      margin: 0 .25rem;
      background: var(--accent-dark, #cc3300);
      color: #fff;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
    }
    .pagination a[aria-current="page"] {
      background: #999;
      cursor: default;
    }
