/* Importar fuentes */
@font-face {
    font-family: 'Avenir Next';
    src: url('https://beltatelier.co/wp-content/uploads/2025/07/avenir-next-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next Bolt';
    src: url('https://beltatelier.co/wp-content/uploads/2025/07/avenir-next-demi-bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Contenedor Principal Encapsulado */
#life-belt-posts-container {
    width: 100%;
    margin: 0 auto;
    font-family: 'Avenir Next', sans-serif;
}

/* --- GRID DE POSTS --- */
#life-belt-posts-container .regular-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px 20px;
}

/* FORZAR QUE EL PRIMER POST ABARQUE 2 COLUMNAS */
#life-belt-posts-container .regular-posts-grid .featured-span-2 {
    grid-column: span 2 !important;
}

/* Tarjeta del Post */
#life-belt-posts-container .post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* CONTROL ESTRICTO DE ALTURA PARA TODAS LAS IMÁGENES */
#life-belt-posts-container .regular-posts-grid .post-image-container {
    height: 280px !important;
    width: 100% !important;
    overflow: hidden;
    margin-bottom: 5px;
    position: relative;
}

/* La imagen abarca todo el contenedor sin deformarse */
#life-belt-posts-container .regular-posts-grid .post-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}

/* Efecto hover en la imagen */
#life-belt-posts-container .post-card:hover .post-image-container img {
    transform: scale(1.03);
}

/* Alineación de textos */
#life-belt-posts-container .post-card .post-text-content {
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Título del Post */
#life-belt-posts-container .post-text-content h4 {
    font-family: 'Avenir Next Bolt', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 5px 0 !important;
    /* Separación exacta solicitada */
    color: #000000;
    line-height: 1.3;
}

/* Fecha (Mantiene el espacio con el título) */
#life-belt-posts-container .belt-list-post-date {
    display: block;
    font-family: 'Avenir Next', sans-serif;
    color: #000000;
    font-size: min(1.146vw, 22px);
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-weight: 400 !important;
}

/* Extracto de 3 líneas */
#life-belt-posts-container .belt-excerpt-clamped {
    font-family: 'Avenir Next', sans-serif;
    color: #7E7E7E;
    font-size: min(1.146vw, 22px);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* --- BOTÓN DE VIEW ALL --- */
#life-belt-posts-container .view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

#life-belt-posts-container .view-all-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Avenir Next Bolt', sans-serif;
    font-size: min(1.146vw, 22px);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#life-belt-posts-container .view-all-btn:hover {
    background-color: #7E7E7E;
    color: #fff;
}

/* --- PAGINACIÓN ESTILO BELT TEAM --- */
#life-belt-posts-container .belt-bottom-nav {
    margin-top: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

#life-belt-posts-container .belt-nav-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

#life-belt-posts-container .belt-page-info {
    font-family: 'Avenir Next', sans-serif;
    font-size: min(1.146vw, 22px);
    color: #7E7E7E;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

#life-belt-posts-container .belt-nav-btn {
    width: 45px;
    height: 45px;
    background: transparent !important;
    border: 1px solid #7E7E7E;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px;
    color: #7E7E7E;
}

/* Efecto Hover: Cambia fondo a gris, color de texto a blanco y fuerza el icono a blanco */
#life-belt-posts-container .belt-nav-btn:hover:not([disabled]) {
    background: #7E7E7E !important;
    border-color: #7E7E7E;
    color: #ffffff !important;
    /* Esto cambia el currentColor a blanco */
    transform: scale(1.05);
}

/* Fuerza a que el trazo (path) dentro del SVG sea blanco al hacer hover */
#life-belt-posts-container .belt-nav-btn:hover:not([disabled]) svg path {
    stroke: #ffffff !important;
}

/* Asegurar que el icono base siempre use el color del texto */
#life-belt-posts-container .belt-nav-btn svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    /* El stroke toma el color del botón */
    fill: none;
}

/* Estado deshabilitado */
#life-belt-posts-container .belt-nav-btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #7E7E7E;
    color: #7E7E7E;
}



/* --- RESPONSIVIDAD (Tablets y Pantallas Medianas) --- */
@media (max-width: 992px) {
    #life-belt-posts-container .regular-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #life-belt-posts-container .regular-posts-grid .featured-span-2 {
        grid-column: span 2 !important;
    }

    #life-belt-posts-container .regular-posts-grid .post-image-container {
        height: 250px !important;
    }
}

/* --- RESPONSIVIDAD (Móviles) --- */
@media (max-width: 768px) {
    #life-belt-posts-container .regular-posts-grid {
        grid-template-columns: 1fr !important;
    }

    #life-belt-posts-container .regular-posts-grid .featured-span-2 {
        grid-column: span 1 !important;
    }

    #life-belt-posts-container .regular-posts-grid .post-image-container {
        height: 220px !important;
    }

    #life-belt-posts-container .post-text-content h4 {
        font-size: 1.15rem;
    }
}