* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ebfffd;
    font-family: 'Figtree', sans-serif;
}

.titulo-principal {
    text-align: center;
    color: #006444;
    font-weight: bold;
    margin-top: 50px;
}

.logo {
    display: block;
    margin: 0 auto; 
    width: 150px; 
    height: auto; 
    margin-bottom: 20px;
}

.noticias-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 40px; 
    text-align: center;
    gap: 50px; 
    justify-content: center; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.noticia {
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    width: 400px;
    height: 400px; 
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 15px;
    background-color: rgb(204, 250, 227);
    color: #006444;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.noticia-carrera{
    font-size: 0.8em; 
    color: black;
}
.noticia-categoria{
    font-size: 0.5em; 
    color: black;
}
.noticia-titulo {
    font-size: 1.5em; 
    margin-bottom: 10px; 
}

.noticia-resumen {
    margin-bottom: 20px;
    text-align: justify;
    padding: 20px; 
    line-height: 1.5;
    max-height: 100px; 
    overflow: hidden; /* Oculta el desbordamiento */
    text-overflow: ellipsis; /* Agrega puntos suspensivos si hay desbordamiento */ 
}

.boton-leer-mas {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00875c; 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    transition: background-color 0.3s ease; 
}

.boton-leer-mas:hover {
    background-color: #004d33;
}

.paginacion {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center; 
    margin: 20px 0; 
    gap: 20px;
}

.paginacion a {
    display: inline-block;
    padding: 10px 15px; 
    background-color: #00875c; 
    color: white; 
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.paginacion a:hover {
    background-color: #004932a6;
}


/* Para dispositivos móviles (pantallas de hasta 600px) */
@media (max-width: 600px) {
    .titulo-principal {
        font-size: 1.5em;
    }

    .logo {
        width: 120px;
    }

    .noticias-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .noticia {
        width: auto;
        height: auto; 
        gap: 0;
        margin: 0;
    }

    .noticia-titulo {
        font-size: 1.2em; 
    }

    .boton-leer-mas {
        width: 80%; 
        padding: 15px;
        text-align: center;
    }
}

/* Para tabletas (pantallas de hasta 900px) */
@media (max-width: 1350px) {
    .titulo-principal {
        font-size: 1.8em;
    }

    .logo {
        width: 130px;
    }

    .noticias-container {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas */
        padding: 30px; 
        gap: 30px; 
    }

    .noticia {
        width: 100%;
        gap: 0;
        margin: 0;
    }

    .noticia-titulo {
        font-size: 1.4em; 
    }
}

/* Para pantallas grandes (pantallas de más de 900px) */
@media (min-width: 1350px) {
    .noticias-container {
        grid-template-columns: repeat(3, 1fr); /* Tres columnas */
        padding: 40px; 
        gap: 50px; 
        justify-items: center; 
        align-items: center; 
    }

    .noticia {
        width: 400px; 
        height: 400px; 
        gap: 0;
        margin: 0;
    }

    .noticia-titulo {
        font-size: 1.5em; 
    }
}
