/* ===== NEWS PAGE DESIGN ENHANCEMENTS ===== */
/* News Hero Section */
.news-hero {
  background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.news-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.news-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Search and Filter Section */
.news-filters {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 168, 204, 0.08);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.news-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 168, 204, 0.12);
}

.news-filters .form-control,
.news-filters .form-select {
  border: 2px solid #e0f7fa;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.news-filters .form-control:focus,
.news-filters .form-select:focus {
  border-color: #00a8cc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1);
}

.news-filters .form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-filter {
  background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-filter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-filter:hover::before {
  width: 300px;
  height: 300px;
}

.btn-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 204, 0.3);
  background: linear-gradient(135deg, #0090b0 0%, #00a8cc 100%);
}

/* News Cards */
.news-card-modern {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #f0f0f0;
}

.news-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a8cc, #00d4ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.news-card-modern:hover::before {
  transform: scaleX(1);
}

.news-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 168, 204, 0.15);
  border-color: #e0f7fa;
}

.news-card-modern .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.news-card-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card-modern:hover img {
  transform: scale(1.1);
}

.news-card-modern .card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card-modern:hover .card-img-overlay {
  opacity: 1;
}

.news-card-modern .card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-modern .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.news-card-modern .badge-category {
  background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.news-card-modern .badge-category:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 168, 204, 0.3);
}

.news-card-modern .card-date {
  color: #8b95a7;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-modern .card-date i {
  color: #00a8cc;
}

.news-card-modern .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-modern:hover .card-title {
  color: #00a8cc;
}

.news-card-modern .card-text {
  color: #6c757d;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-modern .card-footer {
  padding: 20px 25px;
  background: transparent;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.btn-read-more {
  background: transparent;
  color: #00a8cc;
  border: 2px solid #00a8cc;
  border-radius: 25px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #00a8cc;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-read-more:hover::before {
  left: 0;
}

.btn-read-more:hover {
  color: #fff;
  transform: translateX(5px);
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(5px);
}

/* Empty State */
.news-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  margin: 40px 0;
}

.news-empty-state i {
  font-size: 4rem;
  color: #00a8cc;
  margin-bottom: 20px;
  opacity: 0.5;
}

.news-empty-state h3 {
  color: #495057;
  margin-bottom: 10px;
}

.news-empty-state p {
  color: #6c757d;
}

/* Pagination */
.pagination-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.pagination-modern .page-item {
  list-style: none;
}

.pagination-modern .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 2px solid #e0f7fa;
  background: #fff;
  color: #495057;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination-modern .page-link:hover {
  background: #e0f7fa;
  border-color: #00a8cc;
  color: #00a8cc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 168, 204, 0.2);
}

.pagination-modern .page-item.active .page-link {
  background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
  border-color: #00a8cc;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 168, 204, 0.3);
}

.pagination-modern .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-modern .page-item.disabled .page-link:hover {
  background: #fff;
  border-color: #e0f7fa;
  color: #495057;
  transform: none;
  box-shadow: none;
}

/* Loading Animation */
@keyframes newsCardLoad {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card-modern {
  animation: newsCardLoad 0.6s ease forwards;
  opacity: 0;
}

.news-card-modern:nth-child(1) { animation-delay: 0.1s; }
.news-card-modern:nth-child(2) { animation-delay: 0.2s; }
.news-card-modern:nth-child(3) { animation-delay: 0.3s; }
.news-card-modern:nth-child(4) { animation-delay: 0.4s; }
.news-card-modern:nth-child(5) { animation-delay: 0.5s; }
.news-card-modern:nth-child(6) { animation-delay: 0.6s; }
.news-card-modern:nth-child(7) { animation-delay: 0.7s; }
.news-card-modern:nth-child(8) { animation-delay: 0.8s; }
.news-card-modern:nth-child(9) { animation-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 768px) {
  .news-filters {
    padding: 20px;
    margin-top: -30px;
  }
  
  .news-card-modern .card-img-wrapper {
    height: 180px;
  }
  
  .news-hero h1 {
    font-size: 1.8rem;
  }
  
  .pagination-modern .page-link {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Skeleton Loading */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Category Colors */
.badge-category.cat-education { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.badge-category.cat-event { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; }
.badge-category.cat-announcement { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; }
.badge-category.cat-research { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; }

/* Hover Effects for Interactive Elements */
.news-filters input:hover,
.news-filters select:hover {
  border-color: #00a8cc;
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Styles for Accessibility */
.btn-filter:focus,
.btn-read-more:focus {
  outline: 3px solid rgba(0, 168, 204, 0.3);
  outline-offset: 2px;
}

/* Card Shadow Variations */
.news-card-modern.featured {
  box-shadow: 0 15px 40px rgba(0, 168, 204, 0.12);
}

.news-card-modern.featured::before {
  height: 6px;
  background: linear-gradient(90deg, #f39c12, #e74c3c);
}