* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #e7e7e7;
    font-family: Arial, Helvetica, sans-serif;
    color: #164f73;
}


/* =====================
   TOPO
===================== */

.topo {
    height: 65px;
    padding: 0 7%;
    background: #164f73;

    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 7px;

    color: white;
    text-decoration: none;

    font-size: 27px;
    font-weight: 900;
}

.logo-simbolo {
    width: 31px;
    height: 31px;

    border: 3px solid white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pesquisa {
    width: 280px;
    height: 44px;

    display: flex;

    background: white;
    border-radius: 30px;

    overflow: hidden;
}

.pesquisa input {
    flex: 1;
    border: none;
    outline: none;

    padding-left: 17px;

    color: #164f73;
    font-weight: bold;
}

.pesquisa button {
    width: 50px;

    border: none;
    background: white;

    color: #164f73;

    font-size: 27px;
    cursor: pointer;
}

.topo nav {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 30px;
}

.topo nav a {
    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 900;
}

.topo nav a:hover,
.topo nav .selecionado {
    opacity: .7;
}


/* =====================
   AVATAR
===================== */

.usuario-menu {
    position: relative;
}

.avatar {
    width: 55px;
    height: 55px;

    border: 3px solid white;
    border-radius: 50%;

    background: white;

    position: relative;
    overflow: hidden;

    cursor: pointer;
}

.avatar-cabeca {
    width: 18px;
    height: 18px;

    background: #164f73;
    border-radius: 50%;

    position: absolute;

    top: 6px;
    left: 50%;

    transform: translateX(-50%);
}

.avatar-corpo {
    width: 31px;
    height: 31px;

    background: #164f73;

    border-radius: 50% 50% 0 0;

    position: absolute;

    bottom: -3px;
    left: 50%;

    transform: translateX(-50%);
}


/* DROPDOWN */

.menu-dropdown {
    width: 210px;

    position: absolute;

    right: 0;
    top: 55px;

    background: white;

    border: 3px solid #164f73;
    border-radius: 15px;

    padding: 10px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-7px);

    transition: .2s;

    z-index: 100;
}

.usuario-menu:hover .menu-dropdown,
.menu-dropdown.aberto {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.menu-dropdown a,
.menu-dropdown button {
    width: 100%;

    display: block;

    border: none;
    border-radius: 8px;

    padding: 11px;

    background: transparent;

    color: #164f73;

    text-decoration: none;
    text-align: left;

    font-weight: bold;

    cursor: pointer;
}

.menu-dropdown a:hover,
.menu-dropdown button:hover {
    background: #164f73;
    color: white;
}

.divisor {
    height: 1px;
    background: #ddd;

    margin: 5px;
}


/* =====================
   CONTEÚDO
===================== */

.pagina {
    width: 86%;
    max-width: 1150px;

    margin: 50px auto;
}


/* CABEÇALHO */

.cabecalho-vagas {
    min-height: 200px;

    padding: 40px;

    border-radius: 30px;

    background: #164f73;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.mini-titulo {
    color: #55a7d4;

    font-size: 13px;
    font-weight: 900;

    margin-bottom: 10px;
}

.cabecalho-vagas h1 {
    max-width: 650px;

    font-size: 35px;

    margin-bottom: 12px;
}

.cabecalho-vagas > div > p:last-child {
    max-width: 600px;

    line-height: 1.5;

    color: #e4edf2;
}

.btn-publicar {
    min-width: 190px;
    height: 55px;

    border: none;
    border-radius: 30px;

    background: white;

    color: #164f73;

    font-weight: 900;
    font-size: 14px;

    cursor: pointer;

    transition: .2s;
}

.btn-publicar:hover {
    background: #358fc3;
    color: white;

    transform: translateY(-2px);
}


/* =====================
   FILTROS
===================== */

.filtros {
    margin: 30px 0;

    display: flex;
    gap: 12px;

    flex-wrap: wrap;
}

.filtro {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 45px;
    padding: 12px 22px;
    white-space: nowrap;

    border: none;
    border-radius: 25px;

    background: #164f73;

    color: white;

    font-weight: 900;

    cursor: pointer;
}

.filtro.ativo {
    background: #358fc3;
}


/* =====================
   VAGAS
===================== */

.lista-vagas {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.vaga {
    background: white;

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .08);

    transition: .2s;
}

.vaga:hover {
    transform: translateY(-5px);
}

.imagem-vaga {
    width: 100%;
    height: 180px;

    background: #d8e4eb;

    overflow: hidden;
}

.imagem-vaga img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.sem-imagem {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 65px;
}

.conteudo-vaga {
    padding: 22px;
}

.topo-vaga {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tipo-vaga {
    padding: 7px 12px;

    background: #e5f2f8;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 900;
}

.favorito {
    border: none;
    background: transparent;

    color: #164f73;

    font-size: 28px;

    cursor: pointer;
}

.favorito.ativo {
    color: #e74c3c;
}

.vaga h2 {
    margin-top: 17px;

    font-size: 20px;
}

.empresa {
    margin-top: 5px;

    font-size: 13px;
    font-weight: bold;

    color: #358fc3;
}

.descricao {
    min-height: 65px;

    margin-top: 15px;

    color: #555;

    font-size: 13px;

    line-height: 1.5;
}

.informacoes {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 15px;

    font-size: 12px;
    font-weight: bold;
}

.ver-vaga {
    width: 100%;
    height: 42px;

    margin-top: 20px;

    border: none;
    border-radius: 22px;

    background: #164f73;

    color: white;

    font-weight: 900;

    cursor: pointer;
}

.ver-vaga:hover {
    background: #358fc3;
}


/* =====================
   MODAL
===================== */

.modal-fundo {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .6);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 1000;
}

.modal-fundo.aberto {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 650px;

    max-height: 92vh;
    overflow-y: auto;

    background: #e7e7e7;

    border-radius: 25px;

    padding: 35px;

    position: relative;
}

.fechar-modal {
    position: absolute;

    right: 20px;
    top: 15px;

    border: none;
    background: transparent;

    color: #164f73;

    font-size: 32px;

    cursor: pointer;
}

.modal h2 {
    font-size: 27px;
}

.modal-subtitulo {
    margin: 6px 0 25px;

    color: #555;
}


/* UPLOAD */

.upload-foto input {
    display: none;
}

#previewFoto {
    width: 100%;
    height: 180px;

    margin-bottom: 20px;

    border: 3px dashed #164f73;
    border-radius: 18px;

    background: white;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    cursor: pointer;

    overflow: hidden;
}

#previewFoto span {
    font-size: 35px;
}

#previewFoto small {
    color: #777;
}

#previewFoto img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* FORM */

.duas-colunas {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

#formVaga input,
#formVaga select,
#formVaga textarea {
    width: 100%;

    margin-bottom: 10px;

    border: 3px solid #164f73;
    border-radius: 20px;

    background: white;

    color: #164f73;

    font-family: Arial, sans-serif;
    font-weight: bold;

    outline: none;
}

#formVaga input,
#formVaga select {
    height: 48px;

    padding: 0 15px;
}

#formVaga textarea {
    height: 130px;

    resize: vertical;

    padding: 15px;
}

.confirmar-publicacao {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 25px;

    background: #164f73;

    color: white;

    font-weight: 900;

    cursor: pointer;
}


/* =====================
   CELULAR
===================== */

@media (max-width: 900px) {

    .topo nav {
        display: none;
    }

    .lista-vagas {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .topo {
        padding: 0 12px;
    }

    .logo span:last-child {
        display: none;
    }

    .pesquisa {
        flex: 1;
    }

    .pagina {
        width: 92%;
        margin-top: 25px;
    }

    .cabecalho-vagas {
        flex-direction: column;
        align-items: flex-start;

        padding: 30px 25px;
    }

    .cabecalho-vagas h1 {
        font-size: 27px;
    }

    .lista-vagas {
        grid-template-columns: 1fr;
    }

    .duas-colunas {
        grid-template-columns: 1fr;
    }

}

/* v27 - Header padronizado e estado vazio */
.topo {
    min-height: 65px;
    height: auto;
    padding: 0 7%;
    display: flex;
    align-items: center;
    gap: 24px;
}
.topo .menu-principal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.topo .menu-principal a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.topo .menu-principal .icone { font-size: 12px; }
.estado-vazio {
    grid-column: 1 / -1;
    width: 100%;
    padding: 64px 24px;
    background: #fff;
    border-radius: 24px;
    text-align: center;
    color: #164f73;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.estado-vazio strong { font-size: 18px; }
.estado-vazio p { margin-top: 8px; color: #6b7780; }
@media (max-width: 1100px) {
    .topo { padding: 10px 4%; flex-wrap: wrap; }
    .topo .menu-principal { order: 3; flex-basis: 100%; padding-bottom: 8px; }
}

/* v28 - Header de VAGAS com as mesmas proporcoes do inicio1.html */
@media (min-width: 1101px) {
    .topo {
        width: 100%;
        height: 62px;
        min-height: 62px;
        padding: 0 8%;
        gap: 20px;
        flex-wrap: nowrap;
    }

    .topo .logo {
        gap: 6px;
        font-size: 28px;
        font-weight: 900;
        white-space: nowrap;
    }

    .topo .logo-simbolo {
        width: 32px;
        height: 32px;
        border: 3px solid white;
        font-size: 20px;
    }

    .topo .pesquisa {
        width: 265px;
        height: 47px;
        border-radius: 30px;
        flex: 0 0 265px;
    }

    .topo .pesquisa input {
        padding-left: 14px;
        font-size: 12px;
        font-weight: bold;
    }

    .topo .pesquisa button {
        width: 55px;
        height: 100%;
        font-size: 25px;
    }

    .topo .menu-principal {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 20px;
        order: initial;
    }

    .topo .menu-principal a {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 900;
        white-space: nowrap;
    }

    .topo .menu-principal .icone {
        font-size: 24px;
    }

    .topo .avatar {
        width: 58px;
        height: 58px;
        border: 3px solid white;
    }

    .topo .avatar-cabeca {
        width: 19px;
        height: 19px;
    }
}

/* v29 - Detalhes da vaga e candidatura */
.modal-vaga-detalhe{width:min(760px,94vw);max-height:90vh;overflow:auto;padding:30px}
.vd-capa{width:100%;height:250px;border-radius:20px;overflow:hidden;background:#e9f0f4;margin:8px 0 22px}.vd-capa img{width:100%;height:100%;object-fit:cover}.vd-tag{display:inline-block;background:#e5f4fb;color:#07577f;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:900}.vd-titulo{font-size:30px;color:#07527b;margin:14px 0 5px}.vd-empresa{font-weight:800;color:#2795ce;margin-bottom:14px}.vd-meta{display:flex;flex-wrap:wrap;gap:10px 20px;padding:14px 0;border-top:1px solid #dbe5ea;border-bottom:1px solid #dbe5ea}.vd-descricao{white-space:pre-wrap;line-height:1.6;color:#415465;margin:20px 0}.vd-candidato{margin-top:24px;padding-top:20px;border-top:1px solid #dbe5ea}.vd-candidato textarea{width:100%;min-height:125px;box-sizing:border-box;border:2px solid #d2e0e8;border-radius:16px;padding:14px;font:inherit;resize:vertical}.vd-upload{display:block;border:2px dashed #9dbdce;border-radius:16px;padding:16px;margin:12px 0;color:#07527b;font-weight:800}.vd-upload input{display:block;margin-top:9px}.vd-enviar{width:100%;border:0;border-radius:999px;background:#075b86;color:#fff;font-weight:900;padding:15px;cursor:pointer}.vd-enviar:disabled{opacity:.55;cursor:not-allowed}.vd-aviso{margin-top:10px;min-height:20px;font-weight:700}.vd-perfil{display:flex;align-items:center;gap:12px;background:#f5f9fb;border-radius:16px;padding:14px;margin:15px 0}.vd-perfil img{width:48px;height:48px;border-radius:50%;object-fit:cover}.vd-perfil strong{display:block;color:#07527b}

/* v30 - ações do autor da vaga */
.vd-acoes-autor{display:flex;gap:12px;margin-top:16px}.vd-acoes-autor button{flex:1;border:2px solid #075b86;border-radius:999px;background:#075b86;color:#fff;font-weight:900;padding:14px;cursor:pointer}.vd-acoes-autor .perigo{background:#fff;color:#c62828;border-color:#c62828}.nexu-confirm-overlay{position:fixed;inset:0;background:rgba(7,36,54,.58);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}.nexu-confirm{width:min(430px,94vw);background:#fff;border-radius:24px;padding:28px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.28)}.nexu-confirm-icon{font-size:38px}.nexu-confirm h3{color:#07527b;font-size:24px;margin:10px 0}.nexu-confirm p{color:#536572;line-height:1.5;margin-bottom:22px}.nexu-confirm>div:last-child{display:flex;gap:10px}.nexu-confirm button{flex:1;border:0;border-radius:999px;padding:13px;font-weight:900;cursor:pointer;background:#e9f0f4;color:#07527b}.nexu-confirm button.perigo{background:#c62828;color:#fff}@media(max-width:600px){.vd-acoes-autor{flex-direction:column}}

/* Pesquisa de vagas por localização e botões com espaço para os rótulos. */
.busca-vagas{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:16px;align-items:end;margin-top:28px;background:#fff;padding:22px;border-radius:22px;box-shadow:0 8px 22px #0001}
.campo-busca{display:flex;flex-direction:column;gap:8px;min-width:0}
.campo-busca label{font-size:12px;font-weight:900;color:#164f73}
.campo-busca input,.campo-busca select{width:100%;height:48px;border:1px solid #bfd1dd;border-radius:12px;background:#fff;color:#164f73;padding:0 12px;font:inherit;min-width:0}
.acoes-busca{display:flex;gap:8px;flex-wrap:wrap}
.acoes-busca button{min-height:48px;border:0;border-radius:12px;padding:12px 18px;font-weight:900;cursor:pointer}
.buscar-vagas{background:#164f73;color:#fff}.limpar-busca{background:#edf4f8;color:#164f73}
.buscar-vagas:hover,.filtro:hover{background:#257ba7}.limpar-busca:hover{background:#dcebf3}
.busca-vagas :focus-visible,.filtros button:focus-visible{outline:3px solid #358fc3;outline-offset:3px}
.resultado-busca{margin-top:14px;font-size:14px;color:#164f73}.resultado-busca:empty{display:none}
.estado-vazio[hidden]{display:none}
@media(max-width:1100px){.busca-vagas{grid-template-columns:1fr 1fr}.acoes-busca button{flex:1}}
@media(max-width:600px){.busca-vagas{grid-template-columns:1fr;padding:18px;gap:14px}.filtros{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.filtro{min-width:0;width:100%;padding:12px 8px;font-size:12px;white-space:normal}}

.campo-busca select:disabled{background:#f0f4f7;color:#677983}
.recarregar-cidades{border:0;background:transparent;color:#164f73;text-align:left;font-size:12px;font-weight:700;cursor:pointer;padding:4px 0}.recarregar-cidades[hidden]{display:none}
