/* ===========================================
   📰 CATEGORY PAGE STYLES
   Clean 4x4 layout (no card boxes)
   =========================================== */

/* Main container */
.category-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

/* Category title */
.category-title {
  text-align: left;
  font-size: 2rem;
  font-weight: bold;
  color: black;
  border-bottom: 3px solid #0a58ca;
  border-radius: 5px;
  padding-bottom: 10px;
  margin-bottom: 25px;
  text-transform: capitalize;
}

/* Grid layout — 4 per row on desktop */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* Individual post block */
.category-post {
  background: transparent;
  transition: transform 0.2s ease-in-out;
}

.category-post:hover {
  transform: translateY(-4px);
}

/* Images */
.category-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 10px;
}

/* Post titles */
.category-post h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin: 5px 0;
  line-height: 1.4;
}

.category-post a {
  text-decoration: none;
  color: inherit;
}

.category-post a:hover h3 {
  color: #0a58ca;
}

/* Meta info line */
.category-meta {
  font-size: 0.6rem;
  color: #777;
  margin-top: 6px;
  border-top: 1px dashed #777;
  border-bottom: 1px dashed #777;
  padding: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1px; /* adds natural spacing between items */
  align-items: center;
}

.category-meta .symbol {
  color: #777;
  margin: 0 1px;
  padding: 0; /* remove that wrong padding-top */
}

/* Optional: add space between icon and text */
.category-meta span[class*="fa-"] {
  margin-right: 4px;
}


/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #0a58ca;
  border-radius: 4px;
  text-decoration: none;
  color: #0a58ca;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.pagination a:hover {
  background: #0a58ca;
  color: #fff;
}

.pagination .current {
  background: #0a58ca;
  color: #fff;
  cursor: default;
}

/* Empty message */
.no-posts {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin: 40px 0;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .category-post img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .category-title {
    text-align: center;
    font-size: 1.8rem;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  .category-post h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .category-container {
    margin: 20px auto;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .category-post img {
    height: 140px;
  }
  .category-meta {
    font-size: 0.75rem;
  }
}














