/* ========================================
   PÁGINA DE DETALHES DA NOTÍCIA
   ======================================== */

/* Artigo da Notícia */
.noticia-artigo {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
    .noticia-artigo {
        padding: 12px;
    }
}

/* Título do Artigo */
.noticia-artigo-titulo {
    font-size: 2rem;
    font-weight: 700;
    color: #a62d2e; /* Cor principal do site */
    line-height: 1.3;
    margin: 0 0 1.5rem;
}

@media (max-width: 767px) {
    .noticia-artigo-titulo {
        font-size: 1.4rem;
    }
}

/* Data e Compartilhamento no detalhe noticia  */

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebra de linha em telas menores */
    gap: 1rem; /* Espaço entre os blocos de data e compartilhamento */
    margin-bottom: 1.5rem;
}

/* --- Bloco da Data (Alinhamento Vertical) --- */
.news-date {
    display: inline-flex; /* Chave para o alinhamento vertical */
    align-items: center;  /* Centraliza o SVG e o texto */
    gap: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.news-date svg {
    fill: #6b7280; /* Cor do ícone de calendário */
}

/* --- Bloco dos Ícones de Compartilhamento (Modernização) --- */
.news-share-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.18rem 0.8rem;
    border-radius: 8px;
}

/* Estilo base para cada ícone (botão/link) */
.news-share-icons a,
.news-share-icons button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    color: #6b7280; /* Cor padrão cinza */
    background: none;
    border: none;
    border-radius: 50%; /* Deixa o fundo redondo */
    cursor: pointer;
    transition: all 0.3s ease; /* Transição suave para todos os efeitos */
}

/* Remove o sublinhado dos links dos ícones */
.news-share-icons a {
    text-decoration: none;
}

/* Efeito de HOVER para os ícones */
.news-share-icons a:hover,
.news-share-icons button:hover {
    transform: scale(1.04); /* Aumenta o ícone */
    background-color: #e5e7eb; /* Fundo sutil no hover */
}

/* Cores específicas para cada ícone (aplicadas no ícone em si, não no link) */
.news-share-icons .fa-whatsapp { color: #25D366; }
.news-share-icons .fa-facebook { color: #1877F2; }
.news-share-icons .fa-envelope { color: #D44638; }
.news-share-icons .fa-share-alt { color: #444; }

/* No hover, a cor do ícone fica mais viva  */
.news-share-icons a:hover .fa-whatsapp,
.news-share-icons a:hover .fa-facebook,
.news-share-icons a:hover .fa-envelope,
.news-share-icons button:hover .fa-share-alt {
    color: inherit; /* Usa a cor definida acima */
}

/* FIM: Data e compartilhamento       */



/* Conteúdo do Artigo */
.noticia-artigo-conteudo {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid #f3f4f6;
	text-align: justify;
}

.noticia-artigo-conteudo p {
    margin-bottom: 1rem;
}

.noticia-artigo-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

@media (max-width: 767px) {
    .noticia-artigo-conteudo {
        font-size: 15px;
    }
}


/* ========================================
   SEÇÃO DE MAIS NOTÍCIAS
   ======================================== */
.mais-noticias-secao {
    margin-top: 4rem;
}

.mais-noticias-titulo {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #a62d2e;
    margin-bottom: 3rem;
}

/* ========================================
   GRID DE NOTÍCIAS (USADO EM AMBAS AS PÁGINAS)
   ======================================== */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    /* Removido overflow: hidden, pois estava cortando o efeito de elevação (translateY) */
}

@media (max-width: 1023px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Card de Notícia */
.noticia-card {
    
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Adiciona margem superior para compensar o translateY no hover e evitar que a borda superior seja cortada */
    margin-top: 5px;
    position: relative; /* Necessário para o z-index funcionar */
}

.noticia-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #a62d2e;
    margin-top: 0;
    z-index: 10; /* Garante que o card em hover fique sobre os elementos vizinhos */
}

@media (max-width: 767px) {
    .noticia-card {
        padding: 15px;
    }
}

/* Data da Notícia no Card */
.noticia-data {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 1rem;
}

.noticia-data svg {
    flex-shrink: 0;
}

/* Título da Notícia no Card */
.noticia-titulo {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.noticia-titulo a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.noticia-titulo a:hover {
    color: #a62d2e;
}

/* Resumo da Notícia */
.noticia-resumo {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Link "Leia mais" */
.noticia-link {
    display: inline-flex;
    align-items: center;
    color: #a62d2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.noticia-link:hover {
    color: #8b2426;
    transform: translateX(5px);
}


.noticias_margem {
    margin-top: 20px;
    margin-bottom: 20px;
}



/* ========================================
   RODAPÉ DAS NOTÍCIAS (BOTÃO VER MAIS)
   ======================================== */
.noticias-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-ver-mais-noticias {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #a62d2e 0%, #7a2121 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(166, 45, 46, 0.2);
}

.btn-ver-mais-noticias:hover {
    background: linear-gradient(135deg, #7a2121 0%, #5a1919 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(166, 45, 46, 0.3);
}

/* ========================================
   PÁGINA DE BANCO DE NOTÍCIAS - FILTRO
   ======================================== */
.filtro-noticias-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.filtro-noticias-form {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

@media (max-width: 767px) {
    .filtro-noticias-form {
        padding: 1.5rem;
    }
}

/* Opções de Filtro (Radio Buttons) */
.opcoes-filtro {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 479px) {
    .opcoes-filtro {
        flex-direction: column;
        gap: 1rem;
    }
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #a62d2e;
}

.radio-label:hover span {
    color: #a62d2e;
}

/* Container de Busca */
.busca-container {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 479px) {
    .busca-container {
        flex-direction: column;
    }
}

/* Campo de Busca */
.campo-busca {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.campo-busca:focus {
    outline: none;
    border-color: #a62d2e;
    box-shadow: 0 0 0 3px rgba(166, 45, 46, 0.1);
}

.campo-busca::placeholder {
    color: #9ca3af;
}

/* Botão Pesquisar */
.botao-pesquisar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botao-pesquisar:hover {
    background-color: #a62d2e;
    color: #ffffff;
    border-color: #a62d2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(166, 45, 46, 0.2);
}

.botao-pesquisar svg {
    flex-shrink: 0;
}

@media (max-width: 479px) {
    .botao-pesquisar {
        justify-content: center;
        width: 100%;
    }
}

/* ========================================
   MENSAGENS (ERRO E VAZIO)
   ======================================== */

/* Mensagem de Erro */
.mensagem-erro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.mensagem-erro svg {
    flex-shrink: 0;
}

/* Mensagem de Nenhuma Notícia */
.mensagem-vazio {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.mensagem-vazio svg {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.mensagem-vazio h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
}

.mensagem-vazio p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Container do Botão Voltar */
.container-botao-voltar {
    text-align: center;
    margin-top: 2rem;
}

.botao-voltar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #f9fafb;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.botao-voltar:hover {
    background-color: #a62d2e;
    color: #ffffff;
    border-color: #a62d2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(166, 45, 46, 0.2);
}


/* ========================================
   RESPONSIVIDADE ADICIONAL
   ======================================== */

@media (max-width: 479px) {
    .page-header {
        margin: 2rem 0 1.5rem;
    }
    
    .noticia-artigo {
        margin-bottom: 3rem;
    }
    
    .mais-noticias-titulo {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .noticias-footer {
        margin-top: 2rem;
    }
}


