.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 20px;
}
.blog-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #0052cc;
}
.blog-title {
  font-size: 1.2rem;
  font-weight: bold;
}
.blog-excerpt {
  font-size: 0.95rem;
  color: #555;
}
.blog-meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  color: #333;
  transition: 0.2s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: #0052cc;
  color: white;
  border-color: #0052cc;
}
.pagination {
  text-align: center;
  margin: 40px 0;
}
.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
}
.page-numbers.current,
.page-numbers:hover {
  background: #0052cc;
  color: #fff;
  border-color: #0052cc;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 400px;
}
