@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap');

/*================== Configurações Globais ================*/
html, body {
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
    min-height: 100%;}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    flex: 1;}

.main-content {
    flex: 1; 
    display: flex;
    flex-direction: column;}

.icone-branco {
    filter: invert();
}
/*=========================================================*/
    


/*===================== Topo da Página ====================*/
.topo {
    top: 0;
    width: 100%;
    z-index: 90000;
    position: fixed;
    background-color: white;
    max-width: 100vw;
    box-sizing: border-box; 
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow .3s ease;
    flex-shrink: 0;}

.topo.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);}

.usuario-area {
    display: flex;
    align-items: center;
    margin-right: 70px;}

.usuario-area > span {
    margin-top: 5px;
    font-family: 'Rubik';
    font-size: 20px;
    color:#616161;}

.topo-notificacoes {
    margin-top: 5px;
    height: 25px;
    width: 25px;
    background: rgb(255, 145, 0);
    padding: 13px;
    margin-right: 10px;
    border-radius: 100px;}

.topo-notificacoes img {
    height: 100%;
    width: 100%;}

.menu-topo-topo img {
    margin-top: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;}
/*=========================================================*/



/*======================== Banner =========================*/
.banner {
    margin-top: 80px;
    width: 100%;
    height: 200px;
    background: rgb(255, 145, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;}

.banner h1, .banner p {
    color: #fff;
    margin: 5px;
    text-align: center;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.3);}

.banner h1 { font-size: 55px; }
.credenci-grande { font-weight: 700; }
.credenci-pequeno { font-weight: 400; }
.banner p { font-size: 20px; }
/*=========================================================*/



/*==================== Aba de Pesquisa ====================*/
.area_busca {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    margin-top: 20px;
    padding-right: 20px;}


.area_busca div {
    margin-right: 0;
    border: 1px solid #c0c0c0;
    background: #fff;
    width: 80%;
    max-width: 700px;
    height: 55px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: 0.3s ease}

.area_busca img { width: 30px; height: 30px; margin-right: 10px; }
.area_busca input { padding: 10px; border-radius: 6px; border: none; outline: none; flex: 1; font-size: 16px; }

.area_busca div:hover {
    border-color: #ff9900; 
    box-shadow: 0px 4px 12px rgba(0,0,0,0.18);
    transform: scale(1.01);}

.area_busca {
    box-sizing: border-box;}
/*=========================================================*/



/*=================== Botões Secundários ==================*/
.botoes-secundarios {
    width: 100%;
    height: 100px;
    background: #f1f1f1; 
    margin-top: 60px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;}

.card-cinza {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    flex-wrap: wrap;}

.card-cinza { max-width: 900px; }

.card-secundario {
    margin-top: 20px;
    padding: 20px 30px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 50px;
    width: 250px;
    transition: .2s;}

.card-cinza .card-secundario { background: #e8e8e8; color: #333; }
.card-cinza .card-secundario:hover { border: 1px solid #ff9900;}
.card-secundario img { width: 36px; }
.card-secundario a { font-size: 20px; font-weight: 600; color: inherit; text-decoration: none; }
.card-secundario:hover { transform: scale(1.03); cursor: pointer;}

.card-menor { height: 15px; }
.card-menor a { font-size: 16px; }
/*=========================================================*/



/*===================== FAQ / Accordion ====================*/
.faq-section {
    padding: 2em 11em;
    display: flex;
    flex-direction: column;
    gap: 2em;}

.faq-item {
    overflow: hidden;}

.faq-question {
    background: #fff;
    color: #0c3666;
    font-size: 25px;
    font-weight: 500;
    padding: 20px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease, color 0.2s ease;}

.faq-question:hover {
    background: #f5f5f5;}

.faq-question:focus {
    outline: none;}

.faq-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height 0.4s ease,
        opacity 0.25s ease,
        transform 0.25s ease;}

.faq-item.open .faq-content {
    max-height: 3000px; 
    opacity: 1;
    transform: translateY(0);}

.arrow-img {
    padding-right: 10px;
    width: 40px;
    height: 40px;
    min-width: 18px;
    min-height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: invert(14%) sepia(56%) saturate(430%)
            hue-rotate(182deg) brightness(90%) contrast(95%);}

.faq-item.open .arrow-img {
    transform: rotate(180deg);}

/*=========================================================*/



/*========================= Cargos ========================*/
.cargo-item {
    position: relative;
    background-color: #e8e8e8;
    color: #0c3666;
    padding: 20px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #aaaaaa;
    transition: 0.3s;
    text-align: center;
    transition: .2s;
    z-index: 10;}

.cargo-item:hover {
    z-index: 10000; 
    cursor: pointer;
     transform: scale(1.03);
    background-color: #0c3666;
    color: white;}

/* Balão que flutua */
.cargo-tooltip {
    position: absolute;
    top: 105%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 360px;
    max-height: 200px; 
    overflow-y: auto;  /* Rolagem dentro do balão */
    background: white;
    color: #333;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); 
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: normal;
    font-size: 17px;
    text-align: left;
    border-top: 5px solid #f37c1b; 
    pointer-events: auto; /* Permite que o usuário use a rolagem */}

.cargo-item:hover .cargo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);}

/* Estilo da barrinha de rolagem interna do balão */
.cargo-tooltip::-webkit-scrollbar {
    width: 6px;}

.cargo-tooltip::-webkit-scrollbar-thumb {
    background: #f37c1b;
    border-radius: 10px;}

.lei {
    color: #f37c1b;
    text-decoration: underline;
}
/*=========================================================*/



/*========================= Overlay =======================*/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 95000;}
/*=========================================================*/



/*====================== Menu Lateral =====================*/
.menu {
    position: fixed;
    top: 0;
    left: -250px; 
    width: 250px;
    height: 100vh; 
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 100000;
    display: flex;
    flex-direction: column;}

.menu.expanded { left: 0;}

.menu .btn-fechar {
    width: 30px;
    height: 30px;
    margin: 15px;
    cursor: pointer;
    align-self: flex-end;}

.menu-list {
    list-style: none;
    padding: 20px;
    margin: 0;}

.menu-list li {
    margin: 15px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;}

.menu.expanded li {
    opacity: 1;
    transform: translateX(0);}

.menu-list li a {
    text-decoration: none;
    color: #0c3666;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, color 0.2s;}

.menu-list li a:hover {
    color: #ff9900;
    transform: scale(1.05);}

.menu-sociais {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    margin-bottom: 20px;
    margin-top: auto;}

.menu-sociais img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;}

.menu-sociais img:hover { transform: scale(1.1);}
/*=========================================================*/



/*=================== Responsividade ======================*/
@media (max-width: 1024px) {
    .banner h1 { font-size: 35px; }
    .banner p { font-size: 18px; }
    .usuario-area > span { font-size: 24px; }
    .area_busca { padding-right: 20px; }
    .card-principal { width: 200px; font-size: 18px; height: 70px; }
    .botoes-secundarios { width: 100%; height: fit-content; padding: 20px 0; gap: 20px; }
    summary {font-size: 18pt;}
    #faq-question > div {flex-direction: column;}
    details {max-width: 100%; width: 100%;}}

@media (max-width: 768px) {
    .topo-notificacoes {width: 20px; height: 20px;}
    .usuario-area > span {font-size: 18px;}
    .area_busca { justify-content: center; padding: 0 20px; margin-top: 10px; }
    .botoes-principais { justify-content: center; gap: 20px; }
    .card-principal { width: 150px; font-size: 16px; height: 60px; }
    .card-azul, .card-cinza { flex-direction: column; gap: 20px; }}

@media (max-width: 480px) {
    .banner h1 { font-size: 28px; }
    .banner p { font-size: 15px; }
    .usuario-areaa > span { font-size: 20px; }
    .card-principal { width: 170px; font-size: 16px; height: 60px; }
    .area_busca { padding: 0 10px; margin-top: 10px; }
    .card-secundario a { font-size: 16px; font-weight: bold;}
    summary {font-size: 14pt;}}

@media (max-width: 1024px) {
    #faq-question > div {
        grid-template-columns: repeat(2, 1fr);}}

@media (max-width: 600px) {
    #faq-question > div {
        grid-template-columns: 1fr;}
    .cargo-tooltip {
        width: 260px;}}

@media (max-width: 900px) {

    .noticias-container {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;}

    .noticias-container::-webkit-scrollbar {
        display: none; }

    .noticia-card {
        flex: 0 0 85%;         
        scroll-snap-align: start;
        min-width: 85%;}

    .noticia-card img {
        height: 160px;}

    .secao-noticias {
        margin-top: 30px;}}
/*=========================================================*/



