/* LIMPAR CONFIGURAÇÃO PADRÃO DO BROWSER*/

* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Evita overflow horizontal inesperado */
html, body {
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: 'Noto Sans', sans-serif, 'Arial';
}

h2 {
    font-weight: 500;
    font-size: 36px;
    line-height: 1.2;
}

h2 b {
    font-weight: 800;
}

p {
    line-height: 1.2;
}

/* MENU DE NAVEGAÇÃO */

nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    position: relative;
}


.logo {
    position: absolute;
    left: 70px;
    top: 24px;
}

nav ul.menu-central {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    top: 33px;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 16px;
    border-radius: 5px;
}

nav ul.menu-direita {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    justify-content: flex-end;
    width: auto;
    top: 33px;
    gap: 15px;
    right: 70px;
    font-weight: 600;
    font-size: 14px;
}

#oportunidades a {
    color: black;
    background-color: white;
    text-align: center;
    margin-right: 5px;
    border-radius: 5px;
}

#login,
#cadastrar {
    color: white;
    background-color: #789959;
    border-radius: 5px;
    padding: 10px 15px;
    margin-right: 0px;
}

.menu-central li a {
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    padding: 8px 12px;
    display: block;
    position: relative;
    z-index: 10;
    border-radius: 5px;
}

.menu-central li a:hover {
    background-color: white;
    opacity: 0.7;
    color: black;
    border-radius: 5px;
}

.menu-direita li a {
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    padding: 1px 3px;
    display: block;
}

.menu-direita li a:hover {
    background-color: #789959;
    opacity: 0.7;
    color: white;
    border-radius: 5px;
}

/* MENU MOBILE */

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 5px;
    height: 2px;
    background-color: white;
    transition: 0.2s;
    padding-right: 20px;
}

@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }

    .nav-list.active {
        transform: translateX(0%);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        background-color: black;
        transform: translateX(100%);
        transition: transform 0.1s ease-in;
        z-index: 10;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        width: 200px;
    }

    .nav-list li {
        display: flex;
        justify-content: flex-end;
        padding-right: 40px;
        padding-left: 40px;
    }

    .nav-list li:first-child {
        padding-top: 70px;
    }

    nav ul.menu-direita {
        position: sticky;
        width: 140px;
        right: auto;
        margin-left: auto;
        margin-top: 325px;
        flex-direction: column;
        align-items: flex-end;
        padding: 30px 40px 30px 20px;
        align-items: center;
    }

    #login, #cadastrar {
        justify-content: flex-start;
        margin-left: 33px;
    }   

    .mobile-menu {
        display: block;
        position: absolute;
        top: 30px;
        right: 40px;
        z-index: 20;
    }

    .mobile-menu div {
        position: static;
        width: 25px;
        height: 3px;
        margin: 10px 0;
    }

    .menu-direita {
        margin-top: 10px;
        z-index: 6;
    }

    .menu-central li a {
        color: white;
        text-decoration: none;
        transition: background-color 0.3s;
        padding: 8px 12px;
        display: block;
        position: relative;
        z-index: 10;
        border-radius: 5px;
        z-index: 7;
}

    .menu-central li a:hover {
        background-color: white;
        opacity: 0.7;
        color: black;
        border-radius: 5px;
}
}


.mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-11px, 8px);
}

.mobile-menu.active .line2 {
    opacity: 0;
}

.mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-10px, -8px);
}

.mobile-menu div {
    transform-origin: center;
}

/* HERO */

header {
    background: url("imgs/Hero.jpg") no-repeat 60% center;
    background-size: cover;
    height: 135px;
    width: 100%;
}

header div.texto-hero {
    position: sticky;
    margin-top: 25%;
    margin-left: 60%;
}

header h1 {
    color: white;
    flex-direction: column;
    margin-bottom: 20px;
}

.button {
    background-color: none;
    border: white;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    margin-right: 10px;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

}

a.button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
}

/* ESTILO PADRÀO */

main {
    background-color: white;
    color: #38326b;
}

section {
    padding: 90px 120px;
}

img {
    display: block;
    max-width: 100%;
}

/* SOBRE */

.home-sobre {
    background-color: #38326b;
    color: white;
    text-align: center;
    justify-content: center;
    font-size: 18px;
    font-optical-sizing: auto;
    font-weight: 300;
    font-variation-settings: "wdth" 300;
    font-style: light;
}

.seta-baixo {
    border: solid #38326b;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg) scaleX(50);
    -webkit-transform: rotate(45deg);
    margin: auto;
    position: absolute;
    left: 50%;
    scale: 10;
    margin-top: -50px;
}

/* ÁREAS DE INTERESSE */

.area-de-interesse {
    background-color: #fcf5ef;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 0;
}

.area-de-interesse ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 20px;
}

.area-de-interesse ul li {
    background-color: white;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 160px;
    min-width: 160px;
    height: 160px;
    border-radius: 5px;
    color: #789959;
    font-size: 18px;
    text-align: center;
    position: relative;


/* Máscara de pesquisa por área de interesse */
.area-mask {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
}

.area-de-interesse ul li p {
    font-weight: bold;
    margin-top: 10px;
    align-self: stretch;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* OPORTUNIDADES EM DESTAQUE */

.oportunidades-destaque {
    background-color: #fcf5ef;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.oportunidades-lista {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    row-gap: 50px;
}

.oportunidades-lista li img:first-of-type {
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

h3 {
    font-weight: 800;
    font-size: 18px;
    color: #789959;
    margin-top: 15px;
    margin-bottom: 10px;
}

.oportunidades-destaque h3 {
    max-width: 250px;
    min-height: 3em;
}

.oportunidades-lista li p {
    font-size: 14px;
}

.mesma-linha {
    display: inline-flex;
    gap: 5px;
}

.mesma-linha img {
    max-width: 15px;
    max-height: 15px;
}

.botao-detalhes {
    background-color: none;
    border: 1px solid #38326b;
    border-radius: 5px;
    margin-right: auto;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

@media only screen and (max-width: 880px) {
    .botao-detalhes {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        font-size: 15px;
    }
    .oportunidade-actions {
        width: 100%;
        margin-top: 8px;
        display: flex;
        justify-content: center;
    }
}

/* RODAPÉ */

footer {
    background-color: #38326b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 120px;
}

footer p {
    display: flex;
    position: relative;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    font-size: 16px;
}

/* RESPONSIVIDADE */

@media only screen and (max-width: 1024px) {
    header {
        height: 135px;
    }

    .h2 {
        width: 100%;
        padding: auto;
        margin: auto;

    }

    .button {
        display: block;
        position: static;
        margin-bottom: 10px;
        text-align: center;
    }

    .oportunidades-lista,
    .area-de-interesse ul {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: flex-start;
        position: relative;
        gap: 40px 20px;
    }

}

@media only screen and (max-width: 825px) {
    .logo {
        left: 30px;
    }

    header {
        height: 135px;
    }

    h1 {
        font-size: 32px;
    }

    .texto-hero br {
        display: none;
    }

    section {
        padding: 80px 50px;
        text-align: center;
    }

    .oportunidades-lista, .area-de-interesse ul {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    body {
        overflow-x: hidden;
    }

    ul, ol {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .depoimentos ul li {
        width: 100%;
    }

    footer {
        display: flex;
        justify-content: space-between;
        padding: 80px 50px;
        gap: 50px;
    }
}

/* SEÇÃO DE VALIDAÇÃO */

.numeros ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: auto 50px auto 50px;
}

.numeros ul p {
    color: #789959;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

/* SEÇÃO DE BUSCA DE OPORTUNIDADES */
.busca-oportunidades {
    background-color: #38326b;
    display: flex;
    justify-content: center;
    padding: 40px 30px 70px 0;
    height: 25px;
    z-index: 5;
    width: 100%;
}

.form-busca {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0px;
    height: 50px;
    max-width: 80%;
    width: calc(100% - 40px);
    margin: 0;
}

#busca {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

#local {
    width: 200px;
    min-width: 100px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.btn-buscar {
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #789959;
    color: white;
    border-radius: 5px;
    border: none;
    font-size: 10px;
    cursor: pointer;
}

.btn-buscar:hover {
    opacity: 0.95;
}

@media only screen and (max-width: 825px) {
    .form-busca {
        max-width: 80%;
        width: calc(100% - 40px);
        padding: 0 20px;
        gap: 10px;
    }

    #local {
        width: 140px;
    }
}


/* SESSÃO RESULTADOS DA BUSCA */

.resultadosBusca {
    background-color:white;
    display: flex;
    gap: 40px;
    padding: 90px 120px;
}

#spanResultadosBusca {
    color: #38326b;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    font-weight: bold;
}

/* TEMPLATE DE OPORTUNIDADES BUSCADAS */
.oportunidade {
    list-style: none;
    display: flex;
    flex-direction: row; 
    gap: 16px;
    align-items: flex-start;
    position: relative;
    background-color: #fcf5ef;
    padding: 12px;
    border-radius: 8px;
}

.oportunidade-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0px 20px 20px;
}

.img-resultado {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 220px;
    margin: auto;  
}

.botao-detalhes {
    color: #789959;

}

@media only screen and (max-width: 880px) {
    .oportunidade {
        flex-direction: column;
        align-items: stretch;
    }

    .img-resultado {
        width: 100%;
        height: 200px;
        flex: 0 0 auto;
    }
}

/* TEMPLATE DE DETALHES DA VAGA */
.vaga-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.vaga-modal {
    background: white;
    border-radius: 8px;
    max-width: 1000px;
    width: 92%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow: hidden;
}
.vaga-modal-body {
    display: flex;
    gap: 20px;
    padding: 18px;
    overflow-y: auto;
    max-height: calc(90vh - 48px);
}
.vaga-modal-img {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
}
.vaga-modal-img img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    background: #f6f6f6;
}
 
.vaga-modal-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vaga-modal h2 { margin: 0 0 6px 0; }
.vaga-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.vaga-modal .button-vaga, .vaga-modal .botao-detalhes {
    padding: 10px 18px;
    border-radius: 6px;
    background: #789959;
    color: white;
    border: none;
    text-decoration: none;
    cursor: pointer;
}
.vaga-modal .vaga-fechar {
    background: #ccc;
    color: #222;
}
.vaga-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .vaga-modal-body { flex-direction: column; }
    .vaga-modal-img img { width: 100%; height: auto; max-height: 300px; }
}