/* news.css */
/* ========== HERO ========== */
.news-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.news-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.news-hero .container {
  position: relative;
  z-index: 2;
}

/* ========== LISTADO DE NOTICIAS ========== */
.news-list .card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.news-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.news-list .card img {
  height: 200px;
  object-fit: cover;
}
.news-list .card-body {
  padding: 1rem;
}
.news-list .card-title {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}
.news-list .card-text {
  font-size: .9rem;
  color: #555;
  height: 3rem;
  overflow: hidden;
}
.news-list .card-footer {
  background: #f8f9fa;
  font-size: .85rem;
  color: #666;
  padding: .75rem 1rem;
}

/* Centrar la paginación */
.news-list .pagination {
  justify-content: center;
  margin-top: 2rem;
}

/* ========== DETALLE DE NOTICIA ========== */
.news-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.news-detail .article-date {
  display: block;
  color: #6c757d;
  margin-bottom: 2rem;
  font-style: italic;
}
.news-detail .content {
  line-height: 1.8;
  margin-bottom: 3rem;
}
.news-detail a.btn-outline-primary {
  transition: background .2s, color .2s;
}
.news-detail a.btn-outline-primary:hover {
  background: #0d6efd;
  color: #fff;
}

/* ========== RESPONSIVE ======== */
@media (max-width: 767px) {
  .news-list .card {
    margin-bottom: 1.5rem;
  }
}
