
/* ===== NEWS ALL SECTION ===== */
#news-all {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

/* News Navigation Tabs */
.news-nav-wrapper {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 15px;
}

.news-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.news-tabs-container {
  display: inline-block;
}

.news-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0;
  flex-wrap: nowrap;
}

.news-tabs .nav-item {
  margin: 0;
}

.news-tabs .nav-link {
  padding: 8px 20px 6px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #6c757d;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
}

.news-tabs .nav-link .tab-label {
  font-size: 1.20rem;
  font-weight: 600;
  line-height: 1.2;
}

.news-tabs .nav-link .tab-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
}

.news-tabs .nav-link:hover {
  color: #89287f;
  background: rgba(137, 40, 127, 0.05);
}

.news-tabs .nav-link:hover .tab-count {
  opacity: 0.9;
}

.news-tabs .nav-link.active {
  color: white;
  background: linear-gradient(135deg, #89287f 0%, #5271ff 100%);
  box-shadow: 0 4px 15px rgba(137, 40, 127, 0.3);
}

.news-tabs .nav-link.active .tab-count {
  opacity: 0.95;
}

/* Pagination Info */
.pagination-info {
  text-align: center;
  padding: 20px 0;
}

.pagination-info p {
  font-size: 1rem;
  margin: 0;
  color: #6c757d;
}

.pagination-info strong {
  color: #89287f;
  font-weight: 700;
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(137, 40, 127, 0.15);
}

.news-image-link {
  text-decoration: none;
  display: block;
}

.news-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image {
  transform: scale(1.1);
}

.news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

.news-card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a:hover {
  color: #89287f;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.news-date-text {
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-date-text i {
  color: #89287f;
}

/* SDG Badges */
.sdg-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.sdg-badge-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.sdg-badge-link:hover {
  transform: translateY(-3px);
}

.sdg-badge-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* No News Message */
.no-news-container {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.no-news-content {
  text-align: center;
  max-width: 500px;
  animation: fadeInUp 0.6s ease-out;
}

.no-news-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, rgba(137, 40, 127, 0.1) 0%, rgba(82, 113, 255, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.no-news-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(137, 40, 127, 0.2) 0%, rgba(82, 113, 255, 0.2) 100%);
  animation: pulse 2s ease-in-out infinite;
}

.no-news-icon i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #89287f 0%, #5271ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.no-news-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #89287f 0%, #5271ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-news-description {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
}

.pagination {
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  padding: 10px 16px;
  border: 2px solid transparent;
  background: white;
  color: #6c757d;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.pagination .page-link:hover {
  background: rgba(137, 40, 127, 0.05);
  color: #89287f;
  border-color: rgba(137, 40, 127, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(137, 40, 127, 0.15);
}

.pagination .page-link:active {
  transform: translateY(0);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #89287f 0%, #5271ff 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(137, 40, 127, 0.3);
  pointer-events: none;
}

.pagination .page-item.active .page-link:hover {
  transform: none;
}

.pagination .page-item.disabled .page-link {
  background: #f8f9fa;
  color: #dee2e6;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.pagination .page-item.disabled .page-link:hover {
  background: #f8f9fa;
  color: #dee2e6;
  border-color: transparent;
  transform: none;
}

.pagination .page-link i {
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .page-title h1 {
    font-size: 2rem;
  }
  
  .page-title p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    padding: 40px 0 30px;
  }
  
  .page-title h1 {
    font-size: 1.75rem;
  }
  
  .page-title p {
    font-size: 0.95rem;
  }
  
  #news-all {
    padding: 60px 0;
  }
  
  .news-image-wrapper {
    height: 220px;
  }
  
  .news-card-content {
    padding: 20px;
  }
  
  .news-card-title {
    font-size: 1.1rem;
  }
  
  .news-tabs {
    gap: 6px;
    padding: 5px;
  }

  .news-tabs .nav-link {
    padding: 6px 16px 5px;
    font-size: 0.8rem;
    min-width: 70px;
  }
  
  .news-tabs .nav-link .tab-label {
    font-size: 0.8rem;
  }
  
  .news-tabs .nav-link .tab-count {
    font-size: 0.65rem;
  }

  .sdg-badge-icon {
    width: 38px;
    height: 38px;
  }
  
  .pagination .page-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .pagination-info p {
    font-size: 0.9rem;
  }
  
  .no-news-container {
    min-height: 300px;
    padding: 40px 20px;
  }

  .no-news-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
  }

  .no-news-icon i {
    font-size: 2.75rem;
  }

  .no-news-title {
    font-size: 1.5rem;
  }

  .no-news-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .page-title h1 {
    font-size: 1.5rem;
  }
  
  .page-title p {
    font-size: 0.875rem;
  }
  
  .breadcrumbs ol {
    font-size: 0.85rem;
  }
  
  .news-tabs .nav-link {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .pagination .page-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .pagination .page-link span {
    display: none;
  }
  
  .pagination-wrapper {
    margin-top: 30px;
  }
  
  .pagination-info p {
    font-size: 0.85rem;
  }
  
  .no-news-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .no-news-icon i {
    font-size: 2.25rem;
  }

  .no-news-title {
    font-size: 1.25rem;
  }

  .no-news-description {
    font-size: 0.95rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* AOS Animation Support */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade"] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-aos="fade"].aos-animate {
  opacity: 1;
}