/* ==========================================================================
   ESTILO PADRÃO UNIFICADO - PÁGINAS INTERNAS DE NOTÍCIAS
   Prefeitura Municipal de Ribeirão das Neves
   ========================================================================== */

/* Seção Principal do Artigo */
.news-article-section {
    /* Espaçamento superior para compensar o header fixo e inferior para o footer */
    padding: 140px 0 80px;
    /* Fundo suave padronizado */
    background: #f8faff;
    min-height: 80vh;
}

/* Botão de Voltar para a Listagem de Notícias */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #004b8d);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
    color: var(--primary-dark, #002b52);
    transform: translateX(-4px);
}

/* Cabeçalho do Artigo (Título e Data) */
.news-article-header {
    margin-bottom: 35px;
}

/* Data de Publicação */
.news-article-date {
    color: var(--primary-color, #004b8d);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 12px;
}

/* Título Principal da Notícia */
.news-article-title {
    font-family: "Outfit", sans-serif;
    font-size: 2.5rem;
    color: var(--primary-dark, #002b52);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Imagem / Banner Principal da Notícia (Exibição Completa) */
.news-article-featured-img {
    /* Ocupa a largura total do container */
    width: 100%;
    /* Altura proporcional para não cortar texto nem elementos */
    height: auto;
    max-height: none;
    display: block;
    /* Acabamento visual moderno */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* Bloco de Conteúdo / Texto da Notícia */
.news-article-content {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark, #334155);
    line-height: 1.85;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto;
}

/* Parágrafos do Texto */
.news-article-content p {
    margin-bottom: 20px;
}

/* Subtítulos de Nível 2 */
.news-article-content h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.7rem;
    color: var(--primary-dark, #002b52);
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Subtítulos de Nível 3 */
.news-article-content h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    color: var(--primary-color, #004b8d);
    margin-top: 30px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

/* Listas Padrão dentro da Notícia */
.news-article-content ul,
.news-article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.news-article-content li {
    margin-bottom: 10px;
}

/* Imagens Secundárias / Fotos Internas no Corpo do Texto */
.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   COMPONENTES EXTRAS COMUNS EM NOTÍCIAS (Cards, Caixas e Listas)
   ========================================================================== */

/* Lista Estilizada de Locais / Pontos (Ex: Vacinação, Atendimentos) */
.points-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.points-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #004b8d);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 0.98rem;
}

.points-list a {
    color: var(--primary-color, #004b8d);
    text-decoration: none;
    font-weight: 500;
}

.points-list a:hover {
    text-decoration: underline;
}

/* Caixa de Destaque / Serviço (Ex: Informações Importantes, Horários) */
.service-box {
    background: linear-gradient(135deg, #004b8d, #002b52);
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 10px 25px rgba(0, 75, 141, 0.2);
}

.service-box h3 {
    font-family: "Outfit", sans-serif;
    color: #ff9d00;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: none;
}

.service-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-box li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Seção de Download de Documentos / Editais */
.download-section {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.download-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-dark, #002b52);
    font-size: 1.25rem;
    font-weight: 600;
}

.download-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light, #64748b);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color, #004b8d);
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--primary-dark, #002b52);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 75, 141, 0.25);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .news-article-section {
        padding-top: 110px;
    }

    .news-article-title {
        font-size: 1.8rem;
    }

    .news-article-content {
        font-size: 1rem;
    }

    .news-article-content h2 {
        font-size: 1.4rem;
    }

    .news-article-content h3 {
        font-size: 1.15rem;
    }
}