/* =========================
   TÍTULO PRINCIPAL
   ========================= */
.news-article__title {
  line-height: 1.3;
}


/* =========================
   SUMMARY
   ========================= */
.news-article__summary {
  font-size: 1.375rem; /* 22px */
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

/* =========================
   FECHA
   ========================= */
.news-article__metadata-item--date {
  font-size: 1rem;
  font-weight: 600;
  color: #595959;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* =========================
   SEPARADOR CON LÍNEA
   ========================= */
.news-article__separator {
  position: relative;
  margin: 2rem 0; /* separa del summary y la fecha */
}

/* Línea negra usando ::after */
.news-article__separator::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background-color: #000;
  margin: 0 ; 
}

/* =========================
   IMAGEN PRINCIPAL
   ========================= */
.news-article__image img {
  width: 100%;        /* ocupa todo el contenedor */
  height: auto;
  display: block;
  border-radius: 8px; /* esquinas redondeadas */
}


/* =========================
   PIE DE FOTO
   ========================= */
.news-article__image-caption {
  font-size: 0.875rem;       /* un poco más pequeño que el cuerpo del texto */
  font-weight: 400;
  color: #595959;             /* color gris oscuro, consistente con la fecha */
  margin-top: 0.5rem;         /* espacio con la imagen */
  margin-bottom: 1.5rem;      /* espacio antes del contenido principal */
  font-style: italic;         /* opcional: indica que es un pie de foto */
  line-height: 1.4;
}


/* =========================
   CATEGORÍAS
   ========================= */
.news-article__categories {
  margin-top: 2rem;
}

.news-article__categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Item */
.news-article__category {
  margin: 0;
}

/* Enlace */
.news-article__category a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #113555;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600 !important;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    border-radius 0.3s ease;
}

/* Hover */
.news-article__category a:hover,
.news-article__category a:focus {
  background-color: #1f5f86;
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
}

/* Accesibilidad */
.news-article__category a:focus-visible {
  outline: 2px solid #1f5f86;
  outline-offset: 2px;
}

/* =========================================================
   TÍTULO PRINCIPAL
   ========================================================= */
.news-article__title {
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* =========================================================
   SUMMARY
   ========================================================= */
.news-article__summary {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

/* =========================================================
   SEPARADOR CON LÍNEA A LA IZQUIERDA
   ========================================================= */
.news-article__separator {
  position: relative;
  margin: 2rem 0;
}

.news-article__separator::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background-color: #000;
}

/* =========================================================
   FECHA
   ========================================================= */
.news-article__metadata-item--date {
  font-size: 1rem;
  font-weight: 600;
  color: #595959;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* =========================================================
   IMAGEN PRINCIPAL
   ========================================================= */
.news-article__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* =========================================================
   PIE DE FOTO
   ========================================================= */
.news-article__image-caption {
  font-size: 0.875rem;
  font-weight: 400;
  color: #595959;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

/* =========================================================
   CATEGORÍAS – BOTONES
   ========================================================= */
.news-article__categories {
  margin-top: 2rem;
}

.news-article__categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-article__category a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #113555;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.news-article__category a:hover,
.news-article__category a:focus {
  background-color: #1f5f86;
  border-radius: 50px;
}

.news-article__category a:focus-visible {
  outline: 2px solid #1f5f86;
  outline-offset: 2px;
}

/* =========================
   CABECERA NOTICIAS RELACIONADAS
   ========================= */

.news-article_related {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f2f2f2;
  border-radius: 8px 8px 0 0;
  padding: 0.8rem 1.5rem 0rem 1.5rem;
  margin-top: 2rem;
}

.news-article_related h2 {
  margin-block-end: 0;
  font-size: 1.4rem;
  font-weight: bold;
}

.news-article_related i {
  font-size: 1.25rem;
  color: #113555;
}

.news-article_related-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}


/* =========================================================
   NOTICIAS RELACIONADAS – CONTENEDOR
   ========================================================= */
.field--name-localgov-news-related {
  background-color: #f2f2f2;
  padding: 0.5rem 1.5rem 1.5rem;
  border-radius: 0 0 8px 8px;
}

/* Grid hasta 3 columnas */
.field--name-localgov-news-related.field__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Responsive */
@media (max-width: 768px) {
  .field--name-localgov-news-related.field__items {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TARJETA NOTICIA RELACIONADA
   ========================================================= */
.field--name-localgov-news-related .node {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
}


.field--name-localgov-news-related .node:hover {
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Imagen */
.field--name-localgov-news-related 
.field--name-field-media-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* Contenido */
.field--name-localgov-news-related .node__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

/* =========================================================
   TÍTULO NOTICIA RELACIONADA
   ========================================================= */
.field--name-localgov-news-related h2 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0.75rem 0rem 0rem;
}
/* Borde amarillo solo al hacer focus con Tab (teclado) */
.field--name-localgov-news-related h2 a:focus-visible {
  outline: 3px solid #FFD600; /* Amarillo brillante */
  outline-offset: 4px; /* Separación del borde original */
}

.field--name-localgov-news-related h2 a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
  text-decoration: none;
}


/* =========================================================
   FECHA NOTICIA RELACIONADA (FA5)
   ========================================================= */
.field--name-localgov-news-related 
.field--name-localgov-news-date {
  font-size: 0.875rem;
  color: #595959;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0rem 0rem;
}

.field--name-localgov-news-related 
.field--name-localgov-news-date::before {
  content: "\f017";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  font-size: 0.875rem;
}

.news-related-card__link {
  text-decoration: none; /* Quita subrayado por defecto */
  color: inherit;        /* Mantiene el color de texto normal */
}

