/* Tipografía global para el grid */
.blog-filter-grid-container,
.blog-filter-grid-container * {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Filtros de categorías */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #181F39;
    padding: 10px 22px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1em;
    transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #F7B317;
    color: #181F39;
}

/* Tarjeta de post */
/* Grid de posts */
.posts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.posts-grid.columns-1 { grid-template-columns: 1fr; }
.posts-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.posts-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjeta de post: igual altura y diseño */
.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Botón de categoría en la tarjeta */
.post-content .post-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #F7B317;
    color: #181F39;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-right: 10px;
}

.post-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #181F39;
    line-height: 1.4;
}

.post-excerpt {
    color: #181F39;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    background: none;
    color: #181F39;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    text-decoration: underline;
    border: none;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1em;
}

/* Paginación */
.pagination-container {
    text-align: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 6px;
}

.page-btn {
    background: transparent;
    border: none;
    color: #181F39;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    height: 40px !important;
}

.page-btn.active {
    background: #F7B317;
    color: #181F39;
}

.page-btn:hover:not(.active) {
    background: #f7b31733;
}

@media (max-width: 768px) {
    .posts-grid.columns-3,
    .posts-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-btn {
        padding: 8px 12px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-filter-grid-container {
        padding: 10px;
    }
}