/**
 * Mais News — Estilos V1.1
 *
 * Grid 3 colunas seguindo padrão visual do single.php V12 (.mv-mid-card)
 * Mobile: 1 coluna. Tablet/Desktop: 3 colunas.
 *
 * V1.1: sem .mv-mn-title (sem cabeçalho), sem .mv-mn-end (sem mensagem fim)
 */

#mv-mais-news {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 50px;
    padding: 0 20px;
    box-sizing: border-box;
    clear: both;
}

#mv-mais-news .mv-mn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 50px;  /* Evita CLS quando vazio */
}

@media (max-width: 600px) {
    #mv-mais-news .mv-mn-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== CARD (visual idêntico ao .mv-mid-card do single.php V12) ============== */
#mv-mais-news .mv-mn-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all .25s ease;
    border: 1px solid #f0f0f0;
}

#mv-mais-news .mv-mn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 116, 0.12);
    border-color: #d4dafc;
}

#mv-mais-news .mv-mn-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

/* ============== THUMB ============== */
#mv-mais-news .mv-mn-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

#mv-mais-news .mv-mn-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform .4s ease;
}

#mv-mais-news .mv-mn-card:hover .mv-mn-thumb img {
    transform: scale(1.05);
}

/* ============== BODY ============== */
#mv-mais-news .mv-mn-body {
    padding: 14px 16px 16px 16px;
    flex-grow: 1;
}

#mv-mais-news .mv-mn-cat {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #000074;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

#mv-mais-news .mv-mn-headline {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;

    /* Limita a 3 linhas com ellipsis (igual .mv-mid-card h4) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============== SENTINEL (invisível) ============== */
#mv-mais-news .mv-mn-sentinel {
    width: 100%;
    height: 1px;
    visibility: hidden;
}

/* ============== LOADING (skeleton sutil, sem mensagem) ============== */
#mv-mais-news .mv-mn-grid[aria-busy="true"]::after {
    content: '';
    grid-column: 1 / -1;
    display: block;
    padding: 20px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 116, 0.06), transparent);
    background-size: 200% 100%;
    animation: mvMnPulse 1.4s ease infinite;
    border-radius: 6px;
    min-height: 20px;
}

@keyframes mvMnPulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
