/* =========================================================================
 * PÁGINA DE NOTÍCIAS — "De Olho na Educação"
 * ========================================================================= */
.publicacao-card__conteudo {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.publicacao-card__titulo {
    display: block;
    font-weight: 700;
}

.publicacao-card__subtitulo {
    display: block;
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.85;
    margin-top: 4px;
}
.noticias-topo {
    background: #EF7F33;
    height: 14px;
    width: 100%;
}

/* ---------- HERO ---------- */
.noticias-hero {
    padding: 48px 0 0;
}

.noticias-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.noticias-hero__texto {
    flex: 1 1 520px;
    max-width: 640px;
}

.noticias-hero__texto h1 {
    font-family: 'Viga', sans-serif;
    color: #EF7F33;
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.noticias-hero__texto p {
    color: #444;
    line-height: 1.6;
}

.noticias-hero__linha {
    width: 220px;
    height: 4px;
    background: #EF7F33;
    margin-top: 20px;
}

.noticias-hero__ilustracao {
    flex: 0 1 480px;
    max-width: 480px;
}

.noticias-hero__ilustracao img {
    width: 100%;
    height: auto;
    display: block;
}

.noticias-hero--arquivo h1 {
    margin-top: 8px;
}

.noticias-breadcrumb {
    color: #888;
    font-size: 0.9rem;
}

.noticias-breadcrumb a {
    color: #888;
    text-decoration: underline;
}

/* ---------- FILTROS ---------- */
.noticias-filtros {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.noticias-filtro-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23EF7F33' d='M7 9 0 0h14z'/%3E%3C/svg%3E") no-repeat right 20px center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 18px 50px 18px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 260px;
    color: #222;
    cursor: pointer;
}

.noticias-filtro-select:focus {
    outline: 2px solid #EF7F33;
}

/* ---------- BLOCOS DE CATEGORIA ---------- */
.noticias-categorias {
    padding: 16px 0 0;
}

.noticias-bloco {
    margin-bottom: 28px;
}

.noticias-bloco--vazio {
    display: none;
}

.noticias-bloco__cabecalho {
    margin-bottom: 20px;
}

.noticias-bloco__cabecalho h2 {
    font-family: 'Viga', sans-serif;
    color: #EF7F33;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.noticias-ver-todas {
    color: #555;
    text-decoration: underline;
    font-size: 0.95rem;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 370px));
    gap: 26px;
    margin-bottom: 24px;
}

.noticias-grid--arquivo {
    grid-template-columns: repeat(auto-fill, minmax(260px, 370px));
}

.noticia-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.noticia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.noticia-card--oculta {
    display: none !important;
}

.noticia-card__imagem {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.noticia-card__imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* gradiente com a cor da própria categoria por cima da foto — mantém a
   identidade visual do bloco e dá contraste pro título */
.noticia-card--com-imagem::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, var(--cor-categoria, rgba(0, 0, 0, 0.6)) 0%, rgba(0, 0, 0, 0) 65%);
    pointer-events: none;
}

.noticia-card__rodape {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 24px;
    margin-top: auto;
}

/* sem imagem: mantém o comportamento antigo — título preenche o card
   e fica centralizado no espaço abaixo da seta */
.noticia-card:not(.noticia-card--com-imagem) .noticia-card__rodape {
    flex: 1;
    justify-content: center;
    margin-top: 0;
}

.noticia-card__seta {
    display: inline-flex;
    margin-bottom: 12px;
}

.noticia-card__titulo {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
}

/* ---------- PAGINAÇÃO ---------- */
.noticias-paginacao {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.noticias-pagina-num {
    width: 38px;
    height: 38px;
    border: 1px solid #EF7F33;
    border-radius: 6px;
    background: #fff;
    color: #EF7F33;
    font-weight: 700;
    cursor: pointer;
}

.noticias-pagina-num.is-active {
    background: #EF7F33;
    color: #fff;
}

.noticias-pagina-seta {
    border: none;
    background: none;
    color: #EF7F33;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 6px;
}

.noticias-pagina-seta:disabled {
    opacity: 0.3;
    cursor: default;
}

.noticias-divisor {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 0 0 28px;
}

.noticias-vazio {
    color: #777;
    padding: 24px 0;
}

/* ---------- PUBLICAÇÕES RECENTES ---------- */
.noticias-publicacoes {
    padding: 20px 0 60px;
}

.noticias-publicacoes h2 {
    font-family: 'Viga', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.noticias-publicacoes p {
    color: #555;
    max-width: 900px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.noticias-publicacoes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.publicacao-card {
    display: flex;
    align-items: flex-end;
    height: 220px;
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.publicacao-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.publicacao-card--verde {
    background: linear-gradient(135deg, #2e7d5b, #6fbf8c);
}

.publicacao-card--azul {
    background: linear-gradient(135deg, #2c4c8c, #6a8fd8);
}

.publicacao-card--rosa {
    background: linear-gradient(135deg, #a3245a, #d16b9a);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
    .noticias-grid,
    .noticias-publicacoes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .noticias-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .noticias-grid,
    .noticias-publicacoes__grid {
        grid-template-columns: 1fr;
    }

    .noticias-filtro-select {
        min-width: 100%;
    }
}


/* Aviso de periodo eleitoral (Notícias) */
.noticias-aviso-eleitoral {
    max-width: 760px;
    margin: 60px auto;
    padding: 32px 40px;
    background: #fbfbfb;
    border-left: 6px solid #EF7F33;
    border-radius: 8px;
    text-align: left;
}
.noticias-aviso-eleitoral h2 {
    margin: 0 0 16px;
    font-size: 24px;
    color: #333;
}
.noticias-aviso-eleitoral p {
    margin: 0 0 12px;
    line-height: 1.6;
    color: #4a4a4a;
}
.noticias-aviso-eleitoral p:last-child {
    margin-bottom: 0;
}
