.news-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: white;
  padding: 150px 0;
}

.news-header-content h2 {
  font-size: 60px;
  color: #ffffff;
  text-align: left;
  margin-left: 100px;
}

.news-header-content h1 {
  font-size: 14px;
  color: #ffffff;
  text-align: left;
  margin-left: 100px;
}


.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.article-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  font-size: 18px;
  color: #0f68c9;

}

.article-content a {
  text-decoration: none;
  color: inherit;
}

.article-title {
  font-size: 16px;
  font-weight: 600;
  color: #004a99;
  margin: 0 0 10px;
  line-height: 1.4;
}

.article-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
  line-height: 1.5em;
  font-size: 16px;
  color: #848484;
  margin-bottom: 12px;
}



.article-date {
  font-size: 15px;
  color: #0f68c9;
}

/*GRID NEWS*/
.news-header-content {
  text-align: center;
  margin-bottom: 40px;
}

.news-swiper {
  width: 100%;
  padding: 0 40px 60px;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
  flex: 1;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  color: #004A99;
  margin-bottom: 12px;
  text-decoration: none;
}

.news-description {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.news-date {
  font-size: 13px;
  color: #888;
}

.swiper-button-next,
.swiper-button-prev {
  color: #004A99;
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 30px;

  flex-wrap: wrap;
}

.news-pagination a {
  text-decoration: none;
  color: #333333;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.news-pagination a:hover {
  background-color: #f0f0f0;
}

.news-pagination .active {
  font-weight: bold;
  color: #0f68c9;
}

/* Teléfonos pequeños (≤ 480px) */
@media (max-width: 480px) {
  .news-header {
    padding: 80px 20px;
  }

  .news-header-content h2,
  .news-header-content h1 {
    margin-left: 20px;
    text-align: center;
  }

  .news-header-content h2 {
    font-size: 32px;
  }

  .news-header-content h1 {
    font-size: 12px;
  }

  .article-title {
    font-size: 14px;
  }

  .article-description {
    font-size: 14px;
  }

  .news-title {
    font-size: 14px;
  }

  .news-description {
    font-size: 13px;
  }

  .news-date {
    font-size: 12px;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .news-header-content h2 {
    font-size: 40px;
    margin-left: 40px;
  }

  .news-header-content h1 {
    font-size: 13px;
    margin-left: 40px;
  }

  .article-title {
    font-size: 15px;
  }

  .article-description {
    font-size: 15px;
  }
}

/* Pantallas medianas (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .news-header-content h2 {
    font-size: 48px;
    margin-left: 60px;
  }

  .news-header-content h1 {
    font-size: 14px;
    margin-left: 60px;
  }
}