/* =========================================================
   DISEÑO DEL BLOG (ARCHIVE & SINGLE) NXP EDGE-TO-EDGE
========================================================= */

/* 1. Blog Archive (home & archive) Masonry/Grid */
body.blog .site-main,
body.archive .site-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

body.blog article.post,
body.archive article.post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 0 !important;
    padding: 0 !important;
}

body.blog article.post:hover,
body.archive article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(216, 34, 93, 0.15);
}

body.blog .post-image,
body.archive .post-image {
    margin: 0 !important;
    width: 100%;
}

body.blog .post-image img,
body.archive .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

body.blog .inside-article,
body.archive .inside-article {
    padding: 30px !important;
    display: flex;
    flex-direction: column;
}

body.blog .entry-header,
body.archive .entry-header {
    margin-bottom: 15px;
}

body.blog .entry-title,
body.archive .entry-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

body.blog .entry-title a,
body.archive .entry-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
    color: #D8225D;
}

body.blog .entry-meta,
body.archive .entry-meta {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.blog .entry-summary,
body.archive .entry-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

body.blog .paging-navigation,
body.archive .paging-navigation,
body.search .paging-navigation,
body.blog .page-navigation,
body.archive .page-navigation,
body.blog .generate-columns-container .paging-navigation {
    grid-column: 1 / -1;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    background: #0b1120;
    margin-top: 40px;
    padding: 60px 20px;
    margin-bottom: 0 !important; 
}

body.blog .nav-links,
body.archive .nav-links,
body.search .nav-links {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.blog .nav-links .page-numbers,
body.archive .nav-links .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #f1f1f1;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.blog .nav-links .page-numbers:hover,
body.archive .nav-links .page-numbers:hover {
    background: #e2e2e2;
}

body.blog .nav-links .page-numbers.current,
body.archive .nav-links .page-numbers.current {
    background: #D8225D;
    color: #fff;
}

/* 2. Single Post (Artículo Individual) */
body.single-post #primary {
    width: 100%;
    float: none;
}

body.single-post .site-main {
    max-width: 800px;
    margin: 0 auto 60px auto !important;
    padding: 0 20px;
    display: block;
    float: none;
}

body.single-post .inside-article {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.single-post .featured-image {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    height: 50vh;
    min-height: 400px;
    margin-bottom: 60px;
    clear: both;
    display: block;
}

body.single-post .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-post .entry-header {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

body.single-post .entry-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
    margin-bottom: 20px;
}

body.single-post .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

body.single-post .entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    color: #000;
}

body.single-post .entry-content p {
    margin-bottom: 25px;
}