/* Category Page Styles */
.category-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.category-hero {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e6e9ed 100%);
  border-radius: 8px;
}

.category-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #4a89dc;
}

.category-hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #4a89dc;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #333;
}

.post-excerpt {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  gap: 15px;
  color: #888;
  font-size: 0.85rem;
}

.post-meta i {
  margin-right: 5px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0 30px;
  gap: 15px;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-numbers a,
.page-nav {
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.page-numbers a.active,
.page-numbers a:hover,
.page-nav:hover {
  background: #4a89dc;
  color: white;
}

.page-nav.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Ad Units */
.ad-unit {
  background: #f0f0f0;
  border-radius: 4px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  color: #999;
}

.ad-leaderboard {
  width: 100%;
  height: 90px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .category-hero h1 {
    font-size: 2rem;
  }

  .category-hero p {
    font-size: 1rem;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .page-numbers {
    display: none;
  }
}
