.news-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 10px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #000066, #2ecc71);
  border-radius: 2px;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  /* border-radius: 12px; */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  background: white;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  padding: 20px 0;
}

.news-card {
  flex: 0 0 calc(100% / 3 - 40px);
  margin: 0 20px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(60, 52, 219, 0.85);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3em; /* Aproximadamente 2 líneas de texto */

  text-align: left !important;
  font: normal normal 600 18px/29px Titillium Web !important;
  letter-spacing: 0px !important;
  color: #000066 !important;
  opacity: 1 !important;
}

.card-description {
  text-align: left !important;
  font: normal normal normal 14px/19px Open Sans !important;
  letter-spacing: 0px !important;
  color: #07184a !important;
  opacity: 1 !important;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: #95a5a6;
  font-size: 0.85rem;
}

.card-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #000066 0% 0% no-repeat padding-box;
  color: #ffffff;
  text-decoration: none;
  border-radius: 22px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100px;

  font: normal normal 600 12px/17px Open Sans !important;
  letter-spacing: 0px;
  opacity: 1;
}

.card-button:hover {
  background-color: #ffffff;
  color: #000066;
  border-color: #000066;
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 15px;
}

.carousel-control {
  background: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #000066;
}

.carousel-control:hover {
  background: #000066;
  color: white;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #000066;
  transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 992px) {
  .news-card {
    flex: 0 0 calc(100% / 2 - 40px);
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 calc(100% - 40px);
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .news-container {
    padding: 10px;
  }

  .news-card {
    margin: 0 10px;
    flex: 0 0 calc(100% - 20px);
  }

  .card-content {
    padding: 15px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
  }
}
