*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* TOPO VERDE COM OS ÍCONES SOCIAIS */
.topbar {
  background-color: #37AF8F;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.topbar-left .nome-associacao {
  letter-spacing: 0.5px;
  margin-left: 40px;
}

.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.topbar-right a {
  color: #ffffff;
  margin-left: 2px;
  font-size: 1rem;
  transition: 0.3s ease;
  text-decoration: none;
}

.topbar-right a:hover {
  color: #DFF3E3;
  transform: scale(1.1);
}

/* CABEÇALHO */
header {
  height: 110px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: auto;
  padding: 15px 0;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 80px;
  object-fit: contain;
}

header nav ul {
  list-style: none;
  font-size: 1.3rem;
  display: flex;
  gap: 90px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #353D3F;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
  color: #37AF8F;
  transform: scale(1.1);
}

/* SEÇÕES GENÉRICAS */
section {
  padding: 20px 0;
  background-color: #f0f0f0;
}

/* TRABALHE CONOSCO */
.banner-trabalho {
  background: linear-gradient(90deg, #37AF8F 40%, #007EA7 60%);
  color: white;
  text-align: center;
  padding: 5px 0;
  margin-top: 40px;
}

.banner-trabalho h1 {
  font-size: 2rem;
}

/* CURRÍCULO */
.curriculo {
  background-color: #F9F9F9;
  text-align: center;
  padding: 60px 20px;
}

.curriculo-container {
  max-width: 800px;
  margin: 0 auto;
}

.curriculo p {
  font-size: 1.1rem;
  color: #353D3F;
  line-height: 1.6;
  margin-bottom: 20px;
}

.curriculo .btn {
  display: inline-block;
  background-color: #37AF8F;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.curriculo .btn:hover {
  background-color: #2C9177;
}

/* MURAL */
.mural {
  background: linear-gradient(90deg, #37AF8F 40%, #007EA7 60%);
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: 30px;
}

.mural h2 {
  font-size: 2rem;
}

/* LISTA DE VAGAS */
.vagas {
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 90%;
  max-width: 1200px;
  margin: 30px auto 60px;
}

/* CARD */
.vaga-card {
  background: #DFF3E3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.vaga-card:hover {
  transform: translateY(-2px);
}

/* REMOVE SETA DO DETAILS */
.vaga-card summary {
  list-style: none;
}

.vaga-card summary::-webkit-details-marker {
  display: none;
}

/* TOPO DO CARD */
.vaga-resumo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
}

/* LADO ESQUERDO */
.vaga-esquerda {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vaga-esquerda h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #37AF8F;
  text-transform: uppercase;
}

/* META INFO */
.vaga-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.empresa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #353D3F;
  font-size: 0.95rem;
}

.local-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1D89AA;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

/* BOTÃO VER VAGA */
.btn-ver-vaga {
  background: #1D89AA;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  white-space: nowrap;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.vaga-resumo:hover .btn-ver-vaga {
  transform: scale(1.05);
}

/* CONTEÚDO EXPANDIDO */
.vaga-conteudo {
  padding: 0 28px 28px;
  border-top: 1px solid #e3e2ec;
}

.vaga-card details[open] .vaga-conteudo {
  padding-top: 20px;
}

/* INFO */
.info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 16px 8px 0;
  color: #353D3F;
  font-size: 0.95rem;
}

/* DETALHES */
.vaga-detalhes h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #353D3F;
}

.vaga-detalhes p,
.vaga-detalhes li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #353D3F;
}

.lista-vaga {
  padding-left: 18px;
}

/* BOTÕES DAS VAGAS */
.botoes-vaga {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-edital,
.btn-candidatar {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.btn-edital {
  background: #37AF8F;
  color: #FFFFFF;
}

.btn-candidatar {
  background: #1D89AA;
  color: #FFFFFF;
}

.btn-edital:hover,
.btn-candidatar:hover {
  opacity: 0.9;
}

/* BOTÕES DOS PAINÉIS */
.painel-acessos {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 20px;
}

.botoes-acesso {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.botoes-acesso a.btn-candidato,
.botoes-acesso a.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: 0.2s ease;
  color: #fff;
}

.botoes-acesso a.btn-candidato {
  background: #1D89AA;
}

.botoes-acesso a.btn-candidato:hover {
  background: #16697f;
  transform: translateY(-2px);
}

.botoes-acesso a.btn-admin {
  background: #37AF8F;
}

.botoes-acesso a.btn-admin:hover {
  background: #2e9b7e;
  transform: translateY(-2px);
}

/* RESULTADOS DO MURAL */
.resultados-selecao {
  margin-top: 30px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 90%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.btn-resultado {
  background-color: #37AF8A;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  display: block;
}

.btn-resultado:hover {
  background-color: #267D63;
  transform: translateY(-2px);
}

.btn-resultado.verde {
  background-color: #353D3F;
}

.btn-resultado.azul {
  background-color: #1D89AA;
}

.btn-resultado.azul:hover {
  background-color: #1D99AA;
}

/* CENTRALIZA O ÚLTIMO SE FICAR SOZINHO */
.resultados-selecao .btn-resultado:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 50%;
}

/* RODAPÉ */
footer {
  background-color: #1D89AA;
  color: #ffffff;
  padding: 25px 0 10px 0;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 25px;
  min-width: 250px;
}

.footer-logo {
  width: 200px;
  height: auto;
  margin-top: 10px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-menu ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-menu ul li a:hover {
  color: #37AF8F;
}

.footer-center {
  flex: 1;
  min-width: 250px;
  margin-left: 30px;
}

.footer-center h3 {
  color: #37AF8F;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-center p {
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.4;
}

.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-right h3 {
  color: #37AF8F;
  font-size: 17px;
  margin-bottom: 8px;
}

.footer-right p {
  margin: 4px 0;
  font-size: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.social-icon a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s, filter 0.3s;
}

.social-icon a img:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(0.7) sepia(1) hue-rotate(20deg) saturate(5);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #1D89AA;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #1D99AA;
}

/* RESPONSIVIDADE - TELAS MÉDIAS */
@media (max-width: 1024px) {
  header nav ul {
    gap: 40px;
    font-size: 1.1rem;
  }

  .resultados-selecao {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVIDADE - TABLET E MOBILE */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .topbar-left .nome-associacao {
    margin-left: 0;
  }

  header {
    height: auto;
    padding: 12px 0;
  }

  header .container {
    flex-direction: column;
    gap: 15px;
  }

  header nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1rem;
  }

  .vaga-resumo {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-ver-vaga {
    align-self: flex-start;
  }

  .resultados-selecao {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .resultados-selecao .btn-resultado:last-child:nth-child(odd) {
    grid-column: auto;
    width: 85%;
  }

  .btn-resultado {
    width: 85%;
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .botoes-acesso {
    flex-direction: column;
  }

  .botoes-acesso a.btn-candidato,
  .botoes-acesso a.btn-admin {
    width: 100%;
    max-width: 320px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-center {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .banner-trabalho h1,
  .mural h2 {
    font-size: 1.5rem;
  }

  .vaga-esquerda h3 {
    font-size: 1.1rem;
  }

  .btn-ver-vaga {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .btn-resultado {
    width: 85%;
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}