/* Container & Grid */
.blog_section {
  padding: 40px 0;
  margin: 25px 0;
}

.blog-filters {
  margin: 30px 0;
}

.blog-filters .filter-btn {
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 5px;
  transition: background 0.3s ease;
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
  background: #2563eb;
}

.blog_grid {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Card Style */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* Image */
.blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
}

/* Content */
.blog-card-content {
  padding: 16px;
}

/* Category Badge */
.blog-category {
  display: inline-block;
  background: #3b82f6; /* Default blue — you can set per-category in PHP if needed */
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Title */
.blog-title {
  font-size: 18px;
  line-height: 1.4;
  margin-top: 6px;
}

.blog-title a {
  color: #000;
  text-decoration: none;
}

.blog-title a:hover {
  text-decoration: underline;
}

.page-header {
  text-align: center;
  margin: 50px 0;
  padding: 0 15px;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}
.page-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-header {
    margin: 30px 0;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
  .page-header p {
    font-size: 1rem;
  }
}
