/* ========================================
   POSTS GRID BLOCK - ESTILOS CSS PUROS
   Basado en diseño Figma
   ======================================== */

/* ========================================
   MAIN BLOCK
   ======================================== */

.posts-grid-block {
    margin: 60px 0;
    padding: 0;
}

.posts-grid-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   BLOCK HEADER
   ======================================== */

.posts-grid-header {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid-title {
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.posts-grid-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

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

.posts-grid-wrapper {
    width: 100%;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

/* Card grande - ocupa toda la mitad izquierda */
.post-card:first-child {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

/* Cards pequeñas - mitad derecha */
.post-card:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.post-card:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
}

.post-card:nth-child(4) {
    grid-row: 2;
    grid-column: 2 / 4;
}

/* Ocultar posts adicionales si los hay */
.post-card:nth-child(n+5) {
    display: none;
}

@media (max-width: 1200px) {
    .posts-grid {
        height: 500px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 16px;
    }
    
    .post-card:first-child {
        grid-row: auto;
        grid-column: auto;
    }
    
    .post-card:nth-child(2),
    .post-card:nth-child(3),
    .post-card:nth-child(4) {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        gap: 16px;
    }
}

/* ========================================
   POST CARD - DISEÑO FIGMA EXACTO
   ======================================== */

.post-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #E5E5E5;
}

.post-card:hover {
    /* Solo zoom en la imagen, no efectos en la card */
}

/* ========================================
   POST CARD IMAGE CON MÁSCARA
   ======================================== */

.post-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

/* Card grande - imagen más alta */
.post-card:first-child .post-card-image {
    height: 280px;
}

/* Cards pequeñas - imagen más pequeña */
.post-card:nth-child(2) .post-card-image,
.post-card:nth-child(3) .post-card-image,
.post-card:nth-child(4) .post-card-image {
    height: 120px;
}

.post-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.post-card.post-card-featured .post-thumbnail{
    height: 100%;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.posts-grid-block.posts-grid-featured .post-card.post-card-featured .post-card-title{
    font-size:28px;
}

.post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

/* MÁSCARA ORGÁNICA SOBRE LA IMAGEN - SIEMPRE VISIBLE */
.post-card-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/mask-organic.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* ========================================
   POST CARD CONTENT - DISEÑO FIGMA SIMPLIFICADO
   ======================================== */

.post-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.posts-grid.posts-grid-featured-layout .post-card-content{
    /*margin-top: -25px;*/
    z-index: 3;
    padding: 1rem !important;
}

.post-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card grande - título más grande */
.post-card:first-child .post-card-title {
    font-size: 20px;
    -webkit-line-clamp: 3;
}

/* Cards pequeñas - título más pequeño */
.post-card:nth-child(2) .post-card-title,
.post-card:nth-child(3) .post-card-title,
.post-card:nth-child(4) .post-card-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card-title a:hover {
    color: #1a6b00;
}

/* ========================================
   BLOCK FOOTER
   ======================================== */

.posts-grid-footer {
    text-align: center;
    margin-top: 40px;
}

.posts-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.posts-view-all:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
}

.posts-view-all svg {
    transition: all 0.3s ease;
}

.posts-view-all:hover svg {
    transform: translateX(4px);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .posts-grid-container {
        padding: 0 20px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .posts-grid-title {
        font-size: 28px;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .post-card-title {
        font-size: 16px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.6s ease-out;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s;}

.category .post-card:nth-child(4) { animation-delay: 0.4s; display: none;}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.post-card-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.post-read-more:focus,
.posts-view-all:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   FEATURED POSTS GRID LAYOUT
   ======================================== */

/* Layout especial para el shortcode posts_grid_featured */
.posts-grid-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    height: 400px; /* Altura fija para el grid */
}

/* Primer post ocupa la mitad izquierda y toda la altura */
.post-card-featured {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Segundo post ocupa la mitad derecha superior */
.post-card:not(.post-card-featured):nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Tercer post ocupa la mitad derecha inferior */
.post-card:not(.post-card-featured):nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* Ajustes específicos para el post destacado */
.post-card-featured .post-card-image {
    height: 400px; /* Altura mayor para el post destacado */
}

.post-card-featured .post-card-title {
    font-size: 24px; /* Título más grande para el post destacado */
    font-weight: 700;
    line-height: 1.3;
}

/* Ajustes para los posts normales en el layout destacado */
.posts-grid-featured-layout .post-card:not(.post-card-featured) .post-card-image {
    height: 140px; /* Altura ajustada para los posts secundarios */
}

.posts-grid-featured-layout .post-card:not(.post-card-featured) .post-card-title {
    font-size: 16px; /* Título más pequeño para los posts secundarios */
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive para el layout destacado */
@media (max-width: 768px) {
    .posts-grid-featured-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        height: auto;
    }
    
    .post-card-featured {
        grid-column: 1;
        grid-row: 1;
    }
    
    .post-card:not(.post-card-featured):nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .post-card:not(.post-card-featured):nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .post-card:not(.post-card-featured):nth-child(4) {
        display: block;
        grid-column: 1;
        grid-row: 4;
    }
    
    .post-card-featured .post-card-image {
        height: 250px;
    }
    
    .post-card-featured .post-card-title {
        font-size: 20px;
    }
    
    .posts-grid-featured-layout .post-card:not(.post-card-featured) .post-card-image {
        height: 160px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.posts-grid-block .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ========================================
   POSTS DESTACADOS SHORTCODE - ESTILOS GLOBALES
   ======================================== */

/* Estilos extraídos del shortcode posts_destacados para aplicación global */
.grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin: 2rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ========================================
   POSTS DESTACADOS - FULL WIDTH EN HOME
   ======================================== */

/* Contenedor del shortcode en la home - ocupar todo el ancho */
.home .wp-block-shortcode,
.home .entry-content .wp-block-shortcode,
.home .ast-container .wp-block-shortcode {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Grid del shortcode posts_destacados en home - centrado y con ancho completo */
.home .grid {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Título del shortcode en home */
.home .posts-destacados-title {
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* Sobrescribir el ancho del grid-sizer y grid-item con mayor especificidad */
.grid .grid-sizer, 
.grid .grid-item {
    width: 100% !important;
    max-width: none !important;
}

.grid .grid-sizer {
    display: none !important;
}

.grid .ds-analytics-blog-related-posts {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 250px !important;
    max-width: 350px !important;
}

.grid .grid-item {
    background-color: white !important;
    border-radius: 12px !important;
    border: 1px solid #d9d9d9 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: transform 0.2s ease !important;
    height: 100% !important;
}

.grid .grid-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.grid .grid-item:hover .slider-caption{
    color: #1a6b00 !important;
}

/* Imagen de fondo del artículo */
.grid .grid-item > div {
    position: relative !important;
    width: 100% !important;
    height: 140px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none !important;
    overflow: hidden !important;
}

/* Título del artículo */
.grid .grid-item .slider-caption {
    font-family: 'Nunito', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1e1e1e !important;
    line-height: 1.3 !important;
    letter-spacing: -0.24px !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    text-decoration: none !important;
    text-shadow: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    border-radius: 0 0 12px 12px !important;
    border-top: none !important;
    text-align: left !important;
    position: relative;
    top: -10px;
    z-index: 11 !important;
}

/* Máscara de ola en la parte inferior de la imagen */
/* .grid .grid-item > div::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 40px !important;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 50%, white 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}*/

/* SVG de ola */
.grid .grid-item .wave-mask {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    height: 40px !important;
    pointer-events: none !important;
    display:none;
}

.grid .grid-item .wave-mask svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Responsive para artículos destacados */
@media (max-width: 1200px) {
    .grid .ds-analytics-blog-related-posts {
        flex: 1 1 0 !important;
        min-width: 200px !important;
        max-width: 300px !important;
    }
    
    .grid .grid-item > div {
        height: 220px !important;
    }
    
    .grid .grid-item .slider-caption {
        height: 100px !important;
        font-size: 1rem !important;
        z-index: 11 !important;
    }

    .grid .grid-item .posts-mask {
        top: 130px !important;
    }
    .post-card-image .posts-mask{
        bottom: -44px !important;
    }

}

@media (max-width: 768px) {
    .grid {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .grid .ds-analytics-blog-related-posts {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: 200px !important;
        max-width: 300px !important;
    }
    
    .grid .grid-item > div {
        height: 200px !important;
    }
    
    .grid .grid-item .slider-caption {
        padding: 1rem !important;
        height: auto !important;
        font-size: 1rem !important;
        z-index: 11 !important;
        top: -5px;
    }
}

/* ========================================
   POSTS DESTACADOS SHORTCODE TITLE
   ======================================== */

.posts-destacados-title {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 800;
    color: #333;
    text-align: left;
    font-family: "Nunito", sans-serif;
}

/* ========================================
   POSTS MASK STYLES (similar to wave-mask)
   ======================================== */

.grid .grid-item {
    position: relative;
    overflow: hidden;
}


/* Mantener la máscara original para otros elementos */
.grid .grid-item .posts-mask {
    position: absolute !important;
    top:50px;
    left: 0;
    width: 100%;
    height:140px !important;
    pointer-events: none;
    z-index: 2;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}


@media (max-width: 768px) {
    .posts-destacados-title {
        font-size: 24px;
        margin-bottom: 16px;
        text-align:center;
    }
    
    
    .grid .grid-item .posts-mask{
        top:112px !important;
    }
    
    /* Responsive para home - ajustar padding */
    .home .grid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .home .posts-destacados-title {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 575px) {
    .posts-destacados-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    /* Responsive para home - ajustar padding en móviles pequeños */
    .home .grid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-top:0 !important;
    }
    
    .home .posts-destacados-title {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ========================================
   POSTS GRID FEATURED MASK STYLES
   ======================================== */

.post-card-image {
    position: relative;
    overflow: hidden;
}

.post-card-image .posts-mask {
    position: absolute !important;
    bottom: -34px;
    left: 0;
    width: 100%;
    height: 140px !important;
    pointer-events: none;
    z-index: 2;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}


/* Nueva máscara de onda para el bloque Gutenberg */
.posts-grid.posts-grid-featured-5-layout .post-card-image .posts-mask {
    position: absolute !important;
    bottom:0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 120px !important;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.posts-grid.posts-grid-featured-5-layout .post-card-image .posts-mask svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.posts-grid.posts-grid-featured-5-layout .post-card-content{
    padding-top: 10px;
}

/* ========================================
   POSTS GRID FEATURED CONSISTENCY STYLES
   ======================================== */

/* Asegurar consistencia en todas las páginas */
.posts-grid-block {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top:0px !important;
}

.posts-grid-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.posts-grid-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.posts-grid {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Eliminar subrayados de enlaces */
.post-card-title a {
    text-decoration: none !important;
}

.post-card-title a:hover {
    text-decoration: none !important;
}

.post-card-title a:visited {
    text-decoration: none !important;
}

.post-card-title a:focus {
    text-decoration: none !important;
}

/* Estandarizar tipografía */
.post-card-title {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: #1e1e1e !important;
    text-decoration: none !important;
}

.post-card-title a {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: #1e1e1e !important;
    text-decoration: none !important;
}

.post-card-title a:hover {
    color: #1a6b00 !important;
    text-decoration: none !important;
}

/* ========================================
   POSTS CATEGORY MASK STYLES
   ======================================== */

.post-category-image {
    position: relative;
    overflow: hidden;
}

.post-category-image .posts-mask {
    position: absolute !important;
    bottom: -0;
    left: 0;
    width: 100%;
    height: 140px !important;
    pointer-events: none;
    z-index: 2;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}


/* Mobile */
@media (max-width: 768px) {
    .posts-grid-block {
        margin: 40px 0;
        margin-top:20px !important;
    }
    
    .posts-grid-container {
        padding: 0 16px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .posts-grid-header {
        margin-bottom: 30px;
    }
    
    .posts-grid-title {
        font-size: 24px;
    }
    
    .posts-grid-subtitle {
        font-size: 14px;
    }
    
    .post-card-image {
        height: 180px;
    }
    
    .post-card-content {
        padding: 16px;
        position: relative;
    }
    
    .post-card-title {
        font-size: 15px;
    }
    
    .post-card-excerpt {
        font-size: 13px;
    }
    
    .posts-view-all {
        font-size: 14px;
        padding: 10px 20px;
    }

    .post-card-image .posts-mask{
        bottom: -48px !important;
    }
    .posts-grid-block.posts-grid-featured .post-card.post-card-featured .post-card-title {
        font-size: 16px;
    }
    .post-card:first-child .post-card-image{
        height:200px;
    }
    .posts-grid-featured-5-layout .post-card-featured .post-card-image{
        height:auto;
    }
    
    /* Ajustar máscara de onda en móvil */
    .posts-grid.posts-grid-featured-5-layout .post-card-image .posts-mask {
        bottom: -20px !important;
        height: 100px !important;
    }
    
    .post-category-image .posts-mask {
        bottom: -0 !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .posts-grid-container {
        padding: 0 12px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .posts-grid-title {
        font-size: 20px;
    }
    
    .post-card-image {
        height: 160px;
    }
    
    .post-card-content {
        padding: 0 !important;
    }
}

/* ========================================
   FEATURED POSTS GRID 5 LAYOUT
   ======================================== */

/* Layout especial para el shortcode posts_grid_featured_5 */
.posts-grid-featured-5-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    height: 400px; /* Altura fija para el grid con 2 filas */
}

/* Primer post ocupa la mitad izquierda y toda la altura (2 filas) - 50% del ancho */
.posts-grid-featured-5-layout .post-card-featured {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Segundo post ocupa la mitad derecha superior izquierda */
.posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

/* Tercer post ocupa la mitad derecha superior derecha */
.posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    width: 48%;
    display: inline-block;
    vertical-align: top;
    margin-left:52%;
}

/* Cuarto post ocupa la mitad derecha inferior */
.posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

/* Ocultar posts adicionales si existen */
.posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(n+5) {
    display: none;
}

/* Ajustes específicos para el post destacado en layout 5 */
.posts-grid-featured-5-layout .post-card-featured .post-card-image {
    height: 400px; /* Altura mayor para el post destacado */
}

.posts-grid-featured-5-layout .post-card-featured .post-card-title {
    font-size: 24px; /* Título más grande para el post destacado */
    font-weight: 700;
    line-height: 1.3;
}

/* Ajustes para los posts normales en el layout destacado 5 */
.posts-grid-featured-5-layout .post-card:not(.post-card-featured) .post-card-image {
    height: 120px; /* Altura ajustada para los posts secundarios */
}

.posts-grid-featured-5-layout .post-card:not(.post-card-featured) .post-card-title {
    font-size: 14px; /* Título más pequeño para los posts secundarios */
    font-weight: 600;
    line-height: 1.4;
}

.posts-grid-featured-5-layout .post-card:nth-child(4) .post-card-title{
    font-size: 16px !important;
}

/* Responsive para el layout destacado 5 */
@media (max-width: 768px) {
    .posts-grid-featured-5-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        height: auto;
        gap: 16px;
    }
    
    .posts-grid-featured-5-layout .post-card-featured {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        margin-left: 0;
    }
    
    .posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        margin-left: 0;
        display: block;
    }
    
    .posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(3) {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        margin-left: 0;
        display: block;
    }
    
    .posts-grid-featured-5-layout .post-card:not(.post-card-featured):nth-child(4) {
        grid-column: 1;
        grid-row: 4;
        width: 100%;
        margin-left: 0;
    }
    
    /* Todas las cards con el mismo estilo en móvil */
    .posts-grid-featured-5-layout .post-card {
        height: auto;
        min-height: 200px;
    }
    
    .posts-grid-featured-5-layout .post-card-image {
        height: 200px;
        width: 100%;
    }
    
    /* Post destacado con la misma altura que los otros en móvil */
    .posts-grid-featured-5-layout .post-card-featured .post-card-image {
        height: 120px;
        width: 100%;
    }
    
    .posts-grid-featured-5-layout .post-card-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        margin: 12px 12px;
    }
    
    /* Post destacado con el mismo tamaño de título que los otros en móvil */
    .posts-grid-featured-5-layout .post-card-featured .post-card-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        margin: 12px 12px;
    }
    
    .posts-grid-featured-5-layout .post-card-content {
        padding: 16px;
        height: auto;
    }
}

/* Responsive para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .posts-grid-featured-5-layout {
        gap: 20px;
        height: 350px;
    }
    
    .posts-grid-featured-5-layout .post-card-image {
        height: 150px;
    }
    
    .posts-grid-featured-5-layout .post-card-featured .post-card-image {
        height: 350px;
    }
    
    .posts-grid-featured-5-layout .post-card-title {
        font-size: 16px !important;
    }
    
    .posts-grid-featured-5-layout .post-card-featured .post-card-title {
        font-size: 20px;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .posts-grid-featured-5-layout {
        gap: 12px;
    }
    
    .posts-grid-featured-5-layout .post-card {
        min-height: 180px;
    }
    
    .posts-grid-featured-5-layout .post-card-image {
        height: 160px;
    }
    
    .posts-grid-featured-5-layout .post-card-title {
        font-size: 16px !important;
        margin: 12px 12px;
    }
    
    .posts-grid-featured-5-layout .post-card-content {
        padding: 12px;
    }
}