/* Contenedor principal */
.archive-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #fefefe;
}

/* Post destacado grande */
.featured-post {
    flex: 2 1 60%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.featured-post:hover {
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.1);
}

.featured-post .entry-title {
    font-size: 1.9rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.featured-post .entry-title a {
    color: #0073aa;
    text-decoration: none;
}

.featured-post .entry-title a:hover {
    text-decoration: underline;
}

.featured-post img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
    object-fit: cover;
}

/* Lista de posts pequeños */
.small-posts-list {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Posts pequeños individuales */
.small-post {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.04);
    padding: 16px;
    transition: box-shadow 0.3s ease;
}

.small-post:hover {
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}

.small-post .entry-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.small-post .entry-title a {
    color: #0073aa;
    text-decoration: none;
}

.small-post .entry-title a:hover {
    text-decoration: underline;
}

.small-post img {
    float: left;
    width: 80px;
    height: 80px;
    margin-right: 14px;
    border-radius: 6px;
    object-fit: cover;
}

/* Ajustes para el excerpt en posts pequeños para evitar que el texto quede debajo de la imagen */
.small-post p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* número de líneas a mostrar */
    -webkit-box-orient: vertical;
}

/* Paginación */
.pagination {
    text-align: center;
    margin: 40px 0;
    font-size: 1rem;
    display: flex !important;
    justify-content: center !important;
}

.pagination a,
.pagination span {
    margin: 0 1px;
    /* mucho más juntos */
    padding: 10px 16px;
    border: 1px solid #ddd;
    color: #0073aa;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.25s ease, color 0.25s ease;
    user-select: none;
}

.pagination a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: 700;
    cursor: default;
}

/* Responsive: en móviles apilar */
@media (max-width: 900px) {
    .archive-layout {
        flex-direction: column;
    }

    .featured-post,
    .small-posts-list {
        flex: 1 1 100%;
    }

    .small-posts-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .small-post {
        flex: 1 1 calc(50% - 15px);
    }

    .small-post img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
}

/* Responsive: en móviles muy pequeños (menos de 480px), posts pequeños a 100% ancho */
@media (max-width: 480px) {
    .small-post {
        flex: 1 1 100%;
    }
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}