/* 
 * Correção específica para os cards ESTÁTICOS nas páginas flash-news.html e flash-news-en.html
 * Não afeta os cards dinâmicos do backoffice
 */

@media (max-width: 991px) {
    /* Remover padding/margin que pode causar barras brancas */
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remover padding do container principal */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remover padding da section */
    .content-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Container dos cards - FORÇAR ocupar toda a tela */
    .news-cards-container {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* Cards estáticos - OCUPAR TODA A LARGURA DA TELA */
    .news-cards-container > .news-card {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        margin: 0 0 40px 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        flex: none !important;
    }
    
    /* Imagens dos cards estáticos - OCUPAR TODA A LARGURA DA TELA */
    .news-cards-container > .news-card > img {
        height: 350px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
    }
    
    /* Conteúdo dos cards estáticos - PADDING LATERAL PARA TEXTO */
    .news-cards-container > .news-card > .news-card-content {
        padding: 30px 20px 40px 20px !important;
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: white !important;
        margin: 0 !important;
    }
    
    /* Títulos dos cards estáticos */
    .news-cards-container > .news-card > .news-card-content h3 {
        font-size: 26px !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
        font-weight: 400 !important;
        color: var(--text-dark) !important;
        width: 100% !important;
    }
    
    /* Parágrafos dos cards estáticos */
    .news-cards-container > .news-card > .news-card-content p {
        font-size: 17px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        color: var(--text-dark) !important;
        width: 100% !important;
    }
    
    /* Links dos cards estáticos */
    .news-cards-container > .news-card > .news-card-content a {
        font-size: 15px !important;
        padding: 10px 20px !important;
        display: inline-block !important;
        color: var(--primary-dark) !important;
        text-decoration: none !important;
        border: 1px solid var(--primary-dark) !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        width: auto !important;
    }
    
    .news-cards-container > .news-card > .news-card-content a:hover {
        background-color: var(--primary-dark) !important;
        color: white !important;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas - cards estáticos */
    .news-cards-container > .news-card > img {
        height: 300px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
    }
    
    .news-cards-container > .news-card > .news-card-content {
        padding: 25px 15px 35px 15px !important;
    }
    
    .news-cards-container > .news-card > .news-card-content h3 {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    .news-cards-container > .news-card > .news-card-content p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}
