/* ===== Category Blog Page Styles ===== */

#blog-category {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

#blog-category h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1a1a2e;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

#results-info {
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  color: #555;
}

/* Blog grid layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Blog card styling */
.blog-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.blog-card h2 {
  font-size: 1.3rem;
  margin: 10px 0;
  font-weight: 600;
}

.blog-card h2 a {
  text-decoration: none;
  color: #1a1a2e;
  transition: color 0.2s ease;
}

.blog-card h2 a:hover {
  color: #0077cc;
}

.blog-card .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 12px;
}

.blog-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: #0077cc;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-card .read-more:hover {
  background: #005fa3;
}

/* ===== Pagination ===== */

.pagination {
  margin-top: 35px;
  text-align: center;
}

.pagination button {
  display: inline-block;       /* inline-block for horizontal alignment */
  margin: 0 6px;
  padding: 8px 14px;
  border: none;
  background: #1a1a2e;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  background: #0077cc;
  transform: translateY(-2px);
}

.pagination button:disabled {
  background: #999;
  cursor: not-allowed;
}

