/* Card lateral (se houver) */
.card.mb-5 {
    position: sticky;
    top: 100px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
}

/* Cada item de notícia (card) */
.news-item {
    display: flex;
    height: 200px;
    /* Altura fixa do card */
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
}

/* Efeito ao passar o mouse */
.news-item:hover {
    background-color: #f1f1f1;
}

/* Coluna da imagem */
.news-item .col-md-4 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    /* Fundo neutro nas bordas da imagem */
}

/* Imagem da capa do post */
.news-thumb {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Não corta nada da imagem */
    object-position: center;
    background-color: #f9f9f9;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Área de texto */
.news-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Data da postagem */
.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

/* Título da postagem */
.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Autor */
.news-desc {
    color: #555;
    font-size: 1rem;
}

/* Link "Leia mais" */
.news-link {
    display: inline-block;
    margin-top: 15px;
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

/* Responsividade: Mobile */
@media (max-width: 767.98px) {
    .news-item {
        flex-direction: column;
        height: auto;
    }

    .news-item .col-md-4 {
        width: 100%;
        height: 220px;
    }

    .news-thumb {
        border-radius: 12px 12px 0 0 !important;
    }
}

/* === ENQUETE === */
.enquete-opcao span.badge {
    font-size: 0.75rem;
}
.enquete-result .progress {
    height: 6px;
}
