/* =======================================
   Página News
======================================= */

#news-page {
  background-color: #161616;
  padding: 4rem 0;
}

#news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  color: #fff;
}

#news-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: left;
}

/* Lista de noticias */
#news-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Cada noticia */
.row-news {
  display: flex;
  align-items: center;
  gap: 8rem;
}

/* Texto */
.col-news-7 {
  flex: 1 1 55%;
}
.news-item-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}
.news-item-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 400;
}
.news-item-meta {
  font-size: 0.875rem;
  color: #999;
}

/* Imagen */
.col-news-5 {
  flex: 1 1 40%;
  text-align: right;
}
.news-thumb-img img {
  max-height: 384px;
  width: 100%;
  object-fit: contain;
  /*border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);*/
}

/* =======================================
   Página News — Layout “texto izquierda / imagen derecha”
======================================= */

@media (max-width: 768px) {
  /* Asegúrate de tener el contenedor global */
  #news-page {
    padding: 2rem 1rem;
  }
  #news-container {
    padding: 0;
  }

  /* Cada fila sigue en fila (row), no en columna */
  .row-news {
    display: flex;
    flex-direction: row; /* <-- forzamos fila */
    align-items: flex-start;
    gap: 1rem;
  }

  /* Texto ocupa ~60% */
  .col-news-7 {
    flex: 0 0 60%;
  }

  /* Imagen ocupa ~40% y centrarla verticalmente */
  .col-news-5 {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Ajuste tipográfico */
  .news-item-title {
    font-size: 1rem;
  }
  .news-item-excerpt {
    font-size: 1rem;
    line-height: 1.4;
  }
  .news-item-meta {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  /* Miniatura: altura fija adaptada al móvil */
  .news-thumb-img img {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 576px) {
    /* Contenedor externo */
    #news-container {
      padding: 0;
    }
  
    /* Título de la página */
    #news-title {
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
    }
  
    /* Cada noticia en línea: forzamos row y sin salto */
    #news-list .row-news {
      display: flex !important;
      flex-direction: row !important;    /* ← aquí */
      flex-wrap: nowrap !important;
      justify-content: space-between;
    }
  
    /* Texto: ~55% ancho */
    .col-news-7 {
      flex: 0 0 50%;
      min-width: 0;
    }
  
    .news-item-title {
      font-size: 1rem;
      line-height: 1.3;
      margin-bottom: 0.25rem;
    }
  
    /* Ocultamos extracto para no romper la línea */
    .news-item-excerpt {
      display: none;
    }
  
    .news-item-meta {
      font-size: 0.75rem;
      color: #999;
    }

    .col-news-5 {
      flex: 0 0 50%;
      text-align: right;
      overflow: hidden;
    }
  
    .news-thumb-img img {
        max-height: 169px !important;
        object-fit: contain !important;
        border-radius: 0px !important;
        padding-right: 0.9rem;
        margin-top:-15%;

    }
  }
  