/* ===========================================
   📰 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; /* better spacing between each item */
  align-items: center;
}

.category-meta .symbol {
  color: #777;
  margin: 0 1px; /* balanced spacing around | */
  padding: 0;
}

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

/* Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 35px 0 45px;
    width: 100%;
}

.custom-pagination .page-btn,
.custom-pagination .dots {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.custom-pagination .page-btn {
    background: #0057d9;
    color: #fff;
    border: 1px solid #0057d9;
}

.custom-pagination .page-btn:hover {
    background: #003ea6;
    border-color: #003ea6;
}

.custom-pagination .page-btn.active {
    background: #fff;
    color: #0057d9;
    border: 1px solid #0057d9;
}

.custom-pagination .dots {
    min-width: auto;
    padding: 0 4px;
    background: transparent;
    color: #666;
    border: none;
}

.custom-pagination .nav-btn {
    padding: 0 20px;
}

@media (max-width: 768px) {
    .custom-pagination {
        gap: 4px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .custom-pagination .page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 11px;
        border-radius: 6px;
    }

    .custom-pagination .nav-btn {
        min-width: 52px;
        padding: 0 8px;
        font-size: 11px;
    }

    .custom-pagination .dots {
        display: none;
    }
}

/* 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;
  }
}

/* =========================
   BLOG ADS
========================= */

.blog-ads-wrap{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:25px 0;
    overflow:hidden;
}

.blog-ads{
    display:flex;
    justify-content:center;
    align-items:center;
}

.desktop-blog-ad{
    width:728px;
    height:90px;
}

.mobile-blog-ad{
    width:300px;
    height:250px;
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .blog-ads-wrap{
        margin:20px 0;
    }

    .desktop-blog-ad{
        display:none;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width:769px){

    .mobile-blog-ad{
        display:none;
    }
}














