/* ==============================================
   NEWS LIST PAGE - MODERN REDESIGN
   ============================================== */

/* Page Hero - Shared Styles */
.page-hero-modern {
  position: relative;
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, #001f4d 0%, #002a5c 50%, #001f4d 100%);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.page-hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff8c00, transparent);
  top: -20%;
  right: 10%;
}

.page-hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #4a90e2, transparent);
  bottom: -20%;
  left: 10%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-hero-badge i {
  color: var(--color-secondary);
}

.page-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  /* display: inline-flex; */
}

/* First part of title - with blue background */
.page-hero-title > span:first-child:not(.page-hero-highlight) {
  background-color: rgba(224, 123, 0, 0.5);
  padding: 2px 10px;
}

.page-hero-highlight {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* News Section */
.news-section-modern {
  padding: 4rem 0 5rem;
  background: #fafafa;
}

/* Featured News Card */
.news-featured-card {
  margin-bottom: 3rem;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-featured-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  text-decoration: none;
  color: inherit;
}

.news-featured-image {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #003366);
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-featured-card:hover .news-featured-image img {
  transform: scale(1.05);
}

.news-featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 5rem;
}

.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 31, 77, 0.3), transparent);
}

.news-featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-secondary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
}

.news-featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-meta {
  margin-bottom: 1rem;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667085;
  font-size: 0.9rem;
  font-weight: 600;
}

.news-date i {
  color: var(--color-secondary);
}

.news-featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.news-featured-excerpt {
  color: #667085;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.95rem;
}

.news-read-more i {
  transition: transform 0.3s ease;
}

.news-featured-card:hover .news-read-more i {
  transform: translateX(5px);
}

/* News Grid */
.news-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* News Card */
.news-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.news-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 31, 77, 0.12);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card-image {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #003366);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-modern:hover .news-card-image img {
  transform: scale(1.08);
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 3rem;
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #667085;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-card-date i {
  color: var(--color-secondary);
  font-size: 0.75rem;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.9rem;
}

.news-card-cta i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.news-card-modern:hover .news-card-cta i {
  transform: translateX(3px);
}

/* Empty State */
.news-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: 20px;
}

.news-empty-state .empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0, 31, 77, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 2.5rem;
}

.news-empty-state h3 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.news-empty-state p {
  color: #667085;
}

/* Pagination */
.pagination-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 31, 77, 0.05);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(.is-disabled) {
  background: var(--color-primary);
  color: white;
}

.pagination-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 140, 0, 0.1);
  border-radius: 10px;
  font-weight: 700;
  color: var(--color-primary);
}

.pagination-current {
  color: var(--color-secondary);
  font-size: 1.15rem;
}

/* Responsive */
@media (max-width: 900px) {
  .news-featured-link {
    grid-template-columns: 1fr;
  }

  .news-featured-image {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .news-grid-modern {
    grid-template-columns: 1fr;
  }

  .pagination-modern {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pagination-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-hero-modern {
    padding: 5rem 0 3rem;
  }

  .news-featured-content {
    padding: 1.5rem;
  }

  .news-featured-title {
    font-size: 1.35rem;
  }
}

/* Animation d'entrée */
.news-card-modern {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}

.news-card-modern:nth-child(1) {
  animation-delay: 0.1s;
}
.news-card-modern:nth-child(2) {
  animation-delay: 0.15s;
}
.news-card-modern:nth-child(3) {
  animation-delay: 0.2s;
}
.news-card-modern:nth-child(4) {
  animation-delay: 0.25s;
}
.news-card-modern:nth-child(5) {
  animation-delay: 0.3s;
}
.news-card-modern:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-featured-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}
