/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: grid;
    grid-template-columns: 100%;
    grid-auto-flow: column;
}

.slides img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

/* Previous & next buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Position dots */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

/* The dot/bullet/indicator */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

/* Add a background color to the active dot/circle */
.active, .dot:hover {
    background-color: #717171;
}

/* Media Queries for responsive design */
@media screen and (max-width: 768px) {
    .slides {
        grid-auto-flow: row;
    }
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }

    /* Ocultar imágenes de escritorio en la versión responsive */
    .slides .desktop {
        display: none;
    }
}
.news-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.news-card {
    width: 300px; /* Ajustar según sea necesario */
    margin: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
}

.news-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-card h3 {
    color: #008F4F;
    margin: 10px 0;
}

.news-card p {
    margin: 5px 0;
}

.news-card a {
    color: #008F4F;
    text-decoration: none;
}

.news-card a:hover {
    text-decoration: none;
    color: #007340;
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 768px) {
    .news-card {
        width: 90%; /* Cambiar el ancho para adaptarse a dispositivos móviles */
    }
}