/* ============================= */
/* CONTENEDOR GENERAL */
/* ============================= */

.cm-post-archive {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ============================= */
/* FILTROS */
/* ============================= */

.cm-post-filters {
    display: flex;
    gap: 20px;
    /* flex-wrap: wrap; */
    align-items: center;
}
.cm-post-filters input
{
    width: 100%;
}
.cm-post-filters input,
.cm-post-filters select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    background: #fff;
}

/* ============================= */
/* GRID */
/* ============================= */

.cm-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================= */
/* CARD */
/* ============================= */

.cm-post-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* transition: all 0.25s ease; */
}

/* Hover elegante
.cm-post-card:hover {
    transform: translateY(-4px);
} */

/* ============================= */
/* IMAGEN */
/* ============================= */

.cm-post-thumb {
    overflow: hidden;
}

.cm-post-thumb img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    /* transition: transform 0.4s ease; */
}

/* .cm-post-card:hover .cm-post-thumb img {
    transform: scale(1.05);
    border-radius: 10px;
} */

/* ============================= */
/* CONTENIDO */
/* ============================= */

.cm-date {
    font-size: 13px;
    color: #1e3a8a;
    font-weight: 500;
}

.cm-post-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    color: #1e3a8a;
}

.cm-post-card h3 a {
    text-decoration: none;
    color: inherit;
}

.cm-post-card h3 a:hover {
    text-decoration: underline;
}

/* Extracto limitado a 3 líneas */
.cm-post-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Leer más */
.cm-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
}

.cm-read-more:hover {
    text-decoration: underline;
}

/* ============================= */
/* PAGINACIÓN */
/* ============================= */

.cm-pagination {
    margin-top: 30px;
}

.cm-pagination a,
.cm-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.cm-pagination .current {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width:1024px) {
    .cm-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .cm-post-grid {
        grid-template-columns: 1fr;
    }

    .cm-post-thumb img {
        height: 180px;
    }
}