/* ===========================================
   ESTILOS PARA BLOG DE NOTICIAS (LISTADO)
   =========================================== */

/* Contenedor general */
.news-blog-container {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

/* Título */
.news-blog-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #222;
    letter-spacing: .02em;
    position: relative;
}

.news-blog-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #2f7a3b;
    border-radius: 999px;
    margin-top: 8px;
}

/* GRID */
.news-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 28px;
}

/* Tarjeta */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

/* Imagen */
.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

/* Contenido */
.news-card-content {
    padding: 18px 20px 22px;
    flex-grow: 1;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #1d1d1d;
    text-decoration: none;
    display: block;
}

.news-card-title:hover {
    color: #2f7a3b;
}

/* Resumen */
.news-card-intro {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 12px;
}

/* Fecha */
.news-card-date {
    font-size: 12px;
    color: #777;
}

/* Botones de paginación */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    padding: 8px 14px;
    border-radius: 6px;
    margin: 0 3px;
    color: #2f7a3b;
    border: 1px solid #2f7a3b;
}

.pagination .active .page-link {
    background: #2f7a3b;
    color: white;
}

.pagination .page-link:hover {
    background: #e5ffe8;
    color: #1e5c27;
}
