/* ====================================================================
   Página: Desenvolvimento Social - Padrão Dark Glow Moderno (Mobile First)
   ==================================================================== */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #38bdf8;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.75);
    --border-color: rgba(56, 189, 248, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glow: rgba(56, 189, 248, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.bg-educacao, body {
    background-color: var(--bg-color) !important;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 0;
}

/* Efeitos de Luz de Fundo (Glow Background) */
.bg-glow-1 {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(2, 132, 199, 0.22);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    top: 30%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    filter: blur(150px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

header, main, footer {
    position: relative;
    z-index: 10;
}

/* --- CABEÇALHO / HEADER E BOTÃO VOLTAR --- */
.app-header {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.badge-portal {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-voltar-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-voltar-header:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateX(-4px);
    box-shadow: 0 6px 20px var(--glow);
}

/* --- CONTEÚDO PRINCIPAL & HERO --- */
.container-modulo-premium {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px 16px;
}

.modulo-header-premium {
    margin-bottom: 28px;
    text-align: left;
}

.header-tag {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.modulo-header-premium h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.modulo-header-premium p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.section-block {
    margin-bottom: 32px;
}

.section-title-wrapper h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.section-title-wrapper p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin: 0 0 16px 0;
}

/* --- GRADE DE SERVIÇOS (MOBILE FIRST: 1 COLUNA) --- */
.grid-servicos-sociais {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card-servico-social {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.service-text-content h3 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 700;
    word-break: break-word;
}

.service-text-content p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

.card-servico-social:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.2);
}

/* --- TOPO DE SEÇÃO E FILTRO DE NOTÍCIAS --- */
.topo-secao-filtro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.filtro-busca-interno input {
    width: 100%;
    padding: 10px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
}

.filtro-busca-interno input::placeholder {
    color: var(--text-muted);
}

.filtro-busca-interno input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

/* --- GRID DE NOTÍCIAS MODERNAS (MOBILE FIRST: 1 COLUNA) --- */
.grid-noticias-social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.card-noticia-moderno {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.thumb-noticia-mod {
    position: relative;
    height: 180px;
    overflow: hidden;
    width: 100%;
}

.thumb-noticia-mod img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-noticia-moderno:hover .thumb-noticia-mod img {
    transform: scale(1.04);
}

.badge-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--accent);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.conteudo-noticia-mod {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.data-pub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.conteudo-noticia-mod h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.conteudo-noticia-mod p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
    flex-grow: 1;
    word-break: break-word;
}

.link-leia-mais {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
    width: fit-content;
}

.link-leia-mais:hover {
    gap: 10px;
}

.card-noticia-moderno:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

/* --- BLOCO DE CONTATO / ONDE NOS ENCONTRAR --- */
.info-contato-secretaria {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bloco-info-texto h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.bloco-info-texto h3 i {
    color: var(--accent);
}

.bloco-info-texto p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
    word-break: break-word;
}

.bloco-info-texto strong {
    color: var(--text-main);
}

.btn-ouvidoria-sec {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-ouvidoria-sec:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

/* --- RODAPÉ --- */
.app-footer {
    width: 100%;
    background-color: #0b1329;
    color: var(--text-main);
    margin-top: 40px;
    padding: 32px 16px 20px 16px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
}

.footer-logo i {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

.footer-copyright {
    border-top: 1px solid #1e293b;
    padding-top: 16px;
    text-align: center;
}

.footer-copyright p {
    color: #64748b;
    font-size: 0.78rem;
    margin: 0;
}


/* ==========================================================================
   BREAKPOINTS: EXPANSÃO PARA TABLETS E DESKTOPS (min-width)
   ========================================================================== */

@media screen and (min-width: 768px) {
    .header-container {
        padding: 14px 20px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .container-modulo-premium {
        padding: 36px 20px 60px 20px;
    }

    .modulo-header-premium h1 {
        font-size: 2.1rem;
    }

    .grid-servicos-sociais {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .topo-secao-filtro {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filtro-busca-interno input {
        width: 280px;
    }

    .grid-noticias-social {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .info-contato-secretaria {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 28px;
    }

    .btn-ouvidoria-sec {
        display: inline-block;
        width: auto;
    }

    .app-footer {
        padding: 48px 20px 24px 20px;
    }
}

@media screen and (min-width: 1024px) {
    .grid-noticias-social {
        grid-template-columns: repeat(4, 1fr);
    }
}