/* Cards de notícia - Base */
.noticia-card {
    display: flex;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    width: 100%;
    flex-direction: column;
    
}

a .noticia-card {
    text-decoration: none !important;
    color: inherit;
}

a:hover .noticia-card {
    text-decoration: none;
    color: inherit;
}

.noticia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.noticia-conteudo {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-conteudo h6 {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
}

.noticia-conteudo h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 5px 0;
    color: #212529;
    /* Garantir que o título não ocupe espaço excessivo */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
    line-height: 1.3;
}

.noticia-conteudo .data {
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
}

/* Estilo para o resumo - OCUPA APENAS ESPAÇO DISPONÍVEL */
.noticia-conteudo .resumo {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Apenas 2 linhas para não expandir */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0; /* Não permite encolher */
    max-height: 2.8rem; /* Altura máxima de 2 linhas */
}

/* Tablet (768px para cima) */
@media (min-width: 768px) {
    .noticia-card {
        flex-direction: row;
        height: 208px;
    }
    
    .noticia-card img {
        width: 365px;
        height: 100%;
        border-radius: 12px 0 0 12px;
    }
    
    .noticia-conteudo .resumo {
        -webkit-line-clamp: 3; /* 3 linhas no desktop */
        max-height: 4.2rem; /* Altura máxima de 3 linhas */
    }
}

/* Mobile Landscape (telas menores que 768px em orientação horizontal) */
@media (max-width: 767px) and (orientation: landscape) {
    .noticia-card {
        flex-direction: row;
        height: 150px;
    }
    
    .noticia-card img {
        width: 200px;
        height: 100%;
        border-radius: 12px 0 0 12px;
    }
    
    .noticia-conteudo h5 {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        min-height: 2.2rem;
    }
    
    .noticia-conteudo .resumo {
        -webkit-line-clamp: 1; 
        max-height: 1.4rem;
        margin: 3px 0;
    }
}

/* Pequenos dispositivos (menores que 576px) */
@media (max-width: 575px) {
    .noticia-card img {
        height: 180px;
    }
    
    .noticia-conteudo .resumo {
        -webkit-line-clamp: 2;
        max-height: 2.8rem;
    }
}

/* Dispositivos muito pequenos (menores que 400px) */
@media (max-width: 399px) {
    .noticia-card img {
        height: 150px;
    }
    
    .noticia-conteudo {
        padding: 10px;
    }
    
    .noticia-conteudo h5 {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        min-height: 2.2rem;
    }
    
    .noticia-conteudo .resumo {
        -webkit-line-clamp: 2;
        max-height: 2.8rem;
        font-size: 0.75rem;
        margin: 3px 0;
    }
}