/* LOAD MORE */
.load-more-button {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.load-more-button:hover {
    background-color: #005177;
}
/* Estilo 1: Tarjetas horizontales */
/* Estilo 1: Masonry Layout */
.news-layout-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Ajusta el tamaño mínimo y máximo */
    grid-template-rows: masonry;
    /* Estilo masonry */
    gap: 20px;
}

.news-layout-1 .post {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-layout-1 .post img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    object-fit: cover;
}

.news-layout-1 .post-content {
    padding: 15px;
}

.news-layout-1 .post-content h4 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

.news-layout-1 .post-content p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.news-layout-1 .post-content a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.news-layout-1 .post-content a:hover {
    color: #005177;
}

.news-layout-1 .post-content .post-date {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* Estilo 2: Lista vertical */
.news-layout-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-layout-2 .post {
    display: flex;
    gap: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

.news-layout-2 .post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.news-layout-2 .post-content {
    flex: 1;
}

.news-layout-2 .post-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Estilo 3: Tarjetas grandes */
.news-layout-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-layout-3 .post {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-layout-3 .post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-layout-3 .post-content {
    padding: 20px;
    text-align: center;
}

/* Estilo 4: Noticia a pantalla completa */
.news-layout-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.news-layout-4 .post {
    width: 100%;
    /* Puedes ajustar este valor según el diseño */
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.news-layout-4 .post img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.news-layout-4 .post-content {
    padding: 20px;
}

.news-layout-4 .post-content h4 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.news-layout-4 .post-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.news-layout-4 .post-content a {
    text-decoration: none;
    color: #0073aa;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s;
}

.news-layout-4 .post-content a:hover {
    color: #005177;
}

.news-layout-4 .post-content .post-date {
    margin-top: 15px;
    font-size: 14px;
    color: #999;
    text-align: center;
}