/* ============================================
   Category Page Styles
   ============================================ */

/* Category Template Styles - Enhanced Design */
.category-template-page {
  background: #f8f8f8;
  margin-top: 130px;
}

/* Category Hero Title - White and Bold */
.category-hero-title {
  font-weight: 900 !important;
  color: #ffffff !important;
  padding: 0 40px;
}

/* Category Latest Post Section */
.category-latest-post {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-latest-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(139, 10, 143, 0.2);
}

.category-latest-post .latest-post-image {
  position: relative;
  overflow: hidden;
}

.category-latest-post .latest-post-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-latest-post:hover .latest-post-image img {
  transform: scale(1.05);
}

/* Category Posts Grid */
.category-grid-card {
  background: #ffffff;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(139, 10, 143, 0.1);
}

.category-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(139, 10, 143, 0.2);
  border-color: rgba(139, 10, 143, 0.3);
}

/* Category Page Styles - Enhanced Design */
.category-page {
  background: #f8f8f8;
}

/* Category Hero Section */
.category-hero-section {
  margin-bottom: 50px;
  margin-top: 30px;
}

.category-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center; 
  background: linear-gradient(135deg, #8b0a8f 0%, #06003c 100%);
}

.category-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.category-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 10, 143, 0.85) 0%, rgba(6, 0, 60, 0.85) 100%);
  z-index: 2;
}

.category-hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-hero-content>* {
  color: #fff;
}

.category-hero-content>h2 {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.category-hero-content>h3,
.category-hero-content>p {
  font-size: 1.3rem;
  line-height: 1.8rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-badge i {
  font-size: 1.2rem;
}

.category-hero-content .category-title,
.category-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.category-meta .post-count {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 24px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.category-meta .post-count i {
  color: rgba(255, 255, 255, 0.9);
}

/* Category Page Content */
.category-page-content {
  padding: 40px 0;
}

/* Category Pagination */
.category-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.category-pagination-wrapper .pagination-list {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 8px 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(139, 10, 143, 0.1);
}

.category-pagination-wrapper .pagination-item {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-pagination-wrapper .pagination-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  color: #8b0a8f;
  background: rgba(139, 10, 143, 0.05);
}

.category-pagination-wrapper .pagination-item a:hover {
  background: linear-gradient(135deg, #8b0a8f 0%, #a014b5 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 10, 143, 0.3);
}

.category-pagination-wrapper .pagination-item .current {
  background: linear-gradient(135deg, #8b0a8f 0%, #a014b5 100%);
  color: #ffffff;
}


