/* =========================
   RESET GERAL
========================= */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f8;
  color: #111827;
}

a {
  text-decoration: none;
  color: inherit;
}


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

.top {
  background: #0b1f3a;
  color: white;
  padding: 10px 6%;
  font-weight: 700;
}


/* =========================
   HEADER / MENU
========================= */

.header {
  background: white;
  padding: 22px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0b1f3a;
}

.logo span {
  color: #0ea5e9;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
  color: #374151;
  flex-wrap: wrap;
}


/* =========================
   HERO
========================= */

.hero {
  padding: 34px 6%;
  background: linear-gradient(135deg, #0b1f3a, #0ea5e9);
  color: white;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  max-width: 950px;
}

.hero p {
  margin-top: 16px;
  max-width: 800px;
  line-height: 1.7;
  color: #e0f2fe;
}


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

.search-panel {
  margin: -24px 6% 30px;
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.filters {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px 120px;
  gap: 10px;
}

.filters input,
.filters select {
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}

.filters button {
  background: #0ea5e9;
  color: white;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}


/* =========================
   LAYOUT PRINCIPAL
========================= */

.layout {
  padding: 0 6% 38px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.jobs-list {
  display: grid;
  gap: 16px;
}


/* =========================
   CARDS DAS VAGAS
========================= */

.job-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
  border: 1px solid #e5e7eb;
}

.job-card h2 {
  font-size: 1.45rem;
  margin: 12px 0;
  color: #0b1f3a;
}

.job-card p {
  color: #4b5563;
  line-height: 1.7;
}

.job-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.job-meta div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  color: #374151;
}


/* =========================
   BADGES
========================= */

.badge {
  display: inline-block;
  background: #dbeafe;
  color: #0369a1;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-right: 6px;
}


/* =========================
   BOTÕES
========================= */

.btn {
  display: inline-block;
  background: #16a34a;
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  font-weight: 900;
  margin-top: 14px;
}

.btn.secondary {
  background: #0ea5e9;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
  display: grid;
  gap: 16px;
  height: fit-content;
}

.side-box {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}

.side-box h3 {
  color: #0b1f3a;
  margin-bottom: 12px;
}

.side-box a {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.side-box a:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.side-box a:hover {
  color: #0ea5e9;
}


/* =========================
   PÁGINAS INTERNAS
========================= */

.article {
  max-width: 950px;
  margin: 34px auto;
  background: white;
  padding: 34px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}

.article h1 {
  font-size: 2.6rem;
  color: #0b1f3a;
  margin: 12px 0;
}

.article h2 {
  font-size: 1.55rem;
  margin: 26px 0 10px;
  color: #0b1f3a;
}

.article p,
.article li {
  line-height: 1.8;
  color: #374151;
}

.article ul {
  margin-left: 20px;
}


/* =========================
   GRIDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.mini-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}


/* =========================
   RODAPÉ
========================= */

.footer {
  background: #0b1f3a;
  color: white;
  padding: 32px 6%;
  margin-top: 40px;
}

.footer p,
.footer a {
  color: #cbd5e1;
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {

  .header {
    display: block;
  }

  .nav {
    margin-top: 14px;
  }

  .filters,
  .layout,
  .job-meta,
  .grid {
    grid-template-columns: 1fr;
  }

  .filters button {
    height: 46px;
  }

  .hero h1,
  .article h1 {
    font-size: 2rem;
  }
}

/* CORREÇÃO FINAL SIDEBAR */
.cidades-box a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 700;
}

.cidades-box h3 {
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}