/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1e1e1e;
    background-color: white;
}

/* Área com fundo gradiente */
.hero {
    background: linear-gradient(to bottom, #005491, #007bff);
    color: white;
    padding-bottom: 60px;
}

/* Container central */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    font-size: 36px;
    font-weight: 700;
}

.logo img,
.logo svg {
    display: block;
    height: 50px;
}

.menu a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-size: 16px;
}

.menu .entrar {
    color: #00D7A0;
    font-weight: 600;
}

/* Busca */
.busca {
    text-align: center;
    margin-top: 40px;
}

.busca h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
    font-weight: 900;
}

.busca h1 strong {
    font-weight: 800;
    font-style: italic;
}




/* Barra de busca */
.barra-busca {
    position: relative;
    /* ESSENCIAL para posicionar o dropdown */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    background-color: white;
    border-radius: 12px;
    overflow: visible;
    /* Para que o dropdown não seja cortado */
    padding: 5px;
}

.barra-busca input {
    padding: 15px 20px;
    font-size: 16px;
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.barra-busca button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

.barra-busca button:hover {
    background-color: #0066d6;
}

.resultado-busca {
    display: none;
    /* Escondido por padrão */
    color: #000000;
    text-align: left;
    position: absolute;
    top: 100%;
    /* Fica logo abaixo do input */
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.resultado-busca div {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.resultado-busca div:last-child {
    border-bottom: none;
}

.resultado-busca div:hover {
    background-color: #f5f5f5;
}




/* Tags */
.tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    /* ADICIONADO para indicar que é clicável */
    user-select: none;
    /* opcional, pra evitar seleção de texto ao clicar rápido */
    transition: background-color 0.3s ease;
    /* opcional, pra efeito suave */
}

.tags span:hover {
    background-color: rgba(255, 255, 255, 0.30);
    /* ou outra cor que queira */
}


.acimatags {
    margin-top: -15px;
    margin-bottom: 5px;
}

.acimatags p {
    font-style: italic;
    font-weight: 300;
}


/* Conteudo */


/* Layout geral */
.conteudo-completo {
    display: flex;
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 40px;
}

.subtemas {
    list-style: none;
    padding-left: 15px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.subtemas li {
    font-weight: 400;
    margin-bottom: 6px;
    color: #cde7ff;
}


.layout {
    display: flex;
    max-width: 1280px;
    margin: 0px auto;
    padding: 0 40px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #F0F5F9;
    color: #0C0A33;
    padding: 30px 20px;
    font-size: 15px;
}

.sidebar-topo {
    font-style: italic;
    margin-bottom: 10px;
}

.menu {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.menu>li {
    margin-bottom: 12px;
}

.menu>li>strong {
    font-weight: 700;
    display: block;
    color: #0C0A33;
    cursor: pointer;
}

.menu .ativo {
    color: #007BFF;
}

.submenu {
    list-style: none;
    padding-left: 15px;
    margin-bottom: 10px;
    display: none;
    /* Escondido por padrão */
}

.menu .ativo+.submenu {
    display: block;
    /* Exibe o submenu se o título tiver a classe 'ativo' */
}


.submenu li {
    font-weight: 400;
    margin-bottom: 6px;
    color: #0C0A33;
}

.submenu a {
    font-weight: 400;
    margin-bottom: 6px;
    color: #0C0A33;
    font-size: 15px;
    margin-left: 0px;
}


/* Conteúdo */
.Conteudo {
    flex: 1;
    background-color: white;
    padding: 30px 40px;
}

.conteudo-container {
    max-width: 100%;
}

.conteudo-assunto {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.conteudo-titulo {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e1e1e;
}

.conteudo-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.conteudo-meta a {
    color: #007bff;
}


.conteudo-meta a:hover {
    color: #00448d;
}

.conteudo-paragrafo a {
    color: #007bff;
}


.conteudo-paragrafo a:hover {
    color: #00448d;
}

.conteudo-paragrafo {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
}

.conteudo-lista {
    margin-bottom: 25px;
    padding-left: 20px;
    line-height: 1.6;
}

.conteudo-imagem {
    text-align: center;
    margin: 30px 0;
}

.conteudo-imagem img {
    max-width: 100%;
    border-radius: 8px;
}

.conteudo-feedback {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.conteudo-feedback p {
    margin-bottom: 10px;
    font-weight: 500;
}

.conteudo-feedback button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    margin: 0 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.conteudo-feedback button:hover {
    background-color: #005ec4;
}


.conteudo-titulo a {
    text-decoration: none;
    color: #0C0A33;
}

.conteudo-box {
    display: block;
    background-color: white;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 9px 3px rgb(0 0 0 / 18%);
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.conteudo-box:hover {
    box-shadow: 0 2px 9px 3px #3d3d3d2e;
    transform: translateY(-2px);
}

.conteudo-box .conteudo-titulo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0C0A33;
}

.conteudo-box .conteudo-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.conteudo-box .autor {
    color: #007bff;
    font-weight: 500;
}

.conteudo-box .conteudo-paragrafo {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
}



/* footer */

.footer-redes {
    padding: 40px 0;
    background-color: #F0F5F9;
    text-align: center;
}

.redes-sociais {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.icone-rede {
    width: 30px;
    height: 30px;
    background-color: #0C0A33;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.icone-rede img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* Ícone branco */
}

.icone-rede:hover {
    background-color: #007BFF;
}



/* Responsivo */

@media (max-width: 768px) {

    .conteudo-completo,
    .layout {
        flex-direction: column;
        padding: 0 20px;
    }

    .sidebar,
    .sidebar-temas {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .conteudo-principal,
    .Conteudo {
        border-radius: 0 0 12px 12px;
    }

    .topo {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .menu a {
        margin-left: 0;
        margin-right: 15px;
    }

    .barra-busca {
        flex-direction: column;
        padding: 10px;
    }

    .barra-busca button {
        margin-top: 10px;
        width: 100%;
    }
}


/* ======  DEPARTAMENTO GLOBAIS  ====== */
.cg-titulo {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 12px;
    color: #0C0A33;
}

.cg-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cg-divisor {
    border: 0;
    border-top: 1px solid #d9d9d9;
    margin: 15px 0;
}

.cg-subtitulo {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 22px;
    color: #0C0A33;
}

/* --- Cartões --- */
.cg-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}

.cg-card {
    flex: 1 1 220px;
    /* mínimo de 220 px, cresce conforme espaço */
    text-decoration: none;
    text-align: center;
    padding: 22px 18px;
    background: #f7f9fb;
    border: 1px solid #dfe6eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    transition: box-shadow .3s ease, transform .2s ease;
    color: #1e1e1e;
}

.cg-card strong {
    font-size: 1.1em;
    display: block;
    font-weight: 700;
    font-style: italic;
    color: #007BFF;
    margin-bottom: 6px;
}

.cg-card span {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.cg-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .07);
    transform: translateY(-2px);
}

/* --- Assuntos específicos --- */
.cg-assuntos p {
    font-style: italic;
    margin-bottom: 10px;
}

.cg-assuntos ul {
    list-style: disc;
    padding-left: 20px;
}

.cg-assuntos li {
    color: #007bff;
    /* cor da bolinha */
    margin-bottom: 8px;
    font-size: 16px;
}

.cg-assuntos a {
    color: inherit;
    /* link e bolinha ficam iguais */
    font-weight: 600;
    text-decoration: none;
}

.cg-assuntos a:hover {
    text-decoration: underline;
}

/* --- Texto final --- */
.cg-texto {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.cg-texto a {
    color: #007bff;
    font-weight: 600;
}

.cg-texto a:hover {
    text-decoration: underline;
}

/* ======  RESPONSIVO (opcional, mas recomendado)  */
@media (max-width: 768px) {
    .cg-cards {
        flex-direction: column;
    }
}