/* --- Page Header (Mini Hero) --- */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background:
    radial-gradient(
      circle at top right,
      rgba(79, 70, 229, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 40%
    );
  text-align: center;
}

.page-title {
  font-weight: 800;
  font-size: 3rem;
  color: var(--dark-color);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Blog Cards --- */
.blog-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.card-img-wrapper {
  position: relative;
  padding-top: 60%;
  /* Aspect Ratio 16:9 approx */
  overflow: hidden;
}

.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-badge {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.read-more {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* --- Featured Post (Big Card) --- */
.featured-card {
  display: flex;
  flex-direction: row;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

.featured-img {
  width: 50%;
  object-fit: cover;
  min-height: 350px;
}

.featured-content {
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991px) {
  .featured-card {
    flex-direction: column;
  }

  .featured-img {
    width: 100%;
    height: 250px;
    min-height: auto;
  }

  .featured-content {
    width: 100%;
    padding: 2rem;
  }
}

/* --- Sidebar --- */
.sidebar-widget {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.widget-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  margin-bottom: 0.5rem;
}

.cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.cat-list a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateX(5px);
}

.cat-count {
  background: #f1f5f9;
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* CTA Widget */
.widget-cta {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.widget-cta h4 {
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.widget-cta p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.btn-widget {
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}

.btn-widget:hover {
  transform: scale(1.02);
  color: white;
}

.cta-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* --- Pagination --- */
.pagination .page-link {
  border: none;
  color: var(--text-color);
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  margin: 0 5px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
