:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #4299e1;
  --dark: #1a202c;
  --light: #f7fafc;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8fafc;
}

.news-card {
  transition: all 0.3s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.news-card:hover {
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
  transition: all 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.gradient-title {
  position: relative;
  display: inline-block;
}

.gradient-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.pagination {
  display: flex;
  gap: 5px;
}

.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.page-item:hover {
  background-color: var(--primary);
  color: white;
}

.page-item.active {
  background-color: var(--primary);
  color: white;
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

.date-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}

.read-more {
  position: relative;
  display: inline-block;
}

.read-more::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

.filter-btn {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-float-in {
  animation: floatIn 0.6s ease-out forwards;
}
.gradient-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}
