.news-cards-container {
    margin-bottom: 30px;
}

/* Estilos para el botón de "Cargar más" */

/* #load-more-button {
    background-color: #4AA361;
    border-color: #4AA361;
    min-width: 150px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#load-more-button:hover {
    background-color: #3c8a50;
    border-color: #3c8a50;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#load-more-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 163, 97, 0.25);
} */

/* Estilos para el spinner durante la carga */
#load-more-button .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}

/* Asegurar que las tarjetas tengan altura variable según su contenido */
.news-card-wrapper .card-item {
    height: auto;
}

.news-card-wrapper .card-content {
    display: flex;
    flex-direction: column;
    height: auto;
}

.news-card-wrapper .card-excerpt {
    flex-grow: 1;
    display: '-webkit-box';
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* Mejorar el espaciado entre elementos para mayor consistencia visual */
.news-card-wrapper {
    margin-bottom: 30px;
}

/* Estilos del contenedor principal */
.news-cards-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
}

/* Estilos para las tarjetas en diferentes tamaños de pantalla */
.news-card-wrapper {
    padding: 0 15px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Asegurar que las tarjetas tengan un aspecto consistente */
.news-masonry-grid {
    display: flex;
    flex-wrap: wrap;
}

.news-card-wrapper .card-item {
    width: 100%;
    margin-bottom: 0;
}

/* Tablets (2 columnas) */
@media (min-width: 768px) {
    .news-card-wrapper {
        width: 50%;
    }
}

/* Desktop (3 columnas) */
@media (min-width: 992px) {
    .news-card-wrapper {
        width: 33.333%;
    }
}

/* Estilos específicos para dispositivos móviles */
@media (max-width: 767px) {
    .news-masonry-grid {
        display: block;
    }
}

/* Estilos para los filtros de categorías */
.category-filters {
    margin-bottom: 2rem;
}

.category-filters h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.filter-category {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.filter-category:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.filter-category.active {
    background-color: #4AA361 !important;
    color: white !important;
    font-weight: 500;
}

.filter-category.active:hover {
    background-color: #3c8a50 !important;
}

/* Estilo para hacer que las badges tengan un estilo más elegante */
.badge {
    border-radius: 50px;
    font-weight: normal;
    letter-spacing: 0.03em;
}

/* Estilos para skeleton loaders */
.skeleton-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skeleton-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Proporción 4:3 */
    background-color: #e0e0e0;
    position: relative;
}

.skeleton-date {
    width: 30%;
    height: 16px;
    background-color: #e0e0e0;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-categories {
    width: 50%;
    height: 16px;
    background-color: #e0e0e0;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-title {
    width: 100%;
    height: 24px;
    background-color: #e0e0e0;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    background-color: #e0e0e0;
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Animación de pulso para los skeleton loaders */
.skeleton-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}
