:root {
  --navy: #0b2447;
  --navy-light: #16305c;
  --gold: #c9a227;
  --cream: #fbfaf5;
  --text: #1a1a1a;
  --danger: #a4262c;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--cream);
  color: var(--text);
}

header.topo {
  background: var(--navy);
  color: var(--cream);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold);
}

header.topo .marca {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

header.topo .marca span {
  color: var(--gold);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1, h2, h3 {
  color: var(--navy);
}

.cartao {
  background: #fff;
  border: 1px solid #e3ddca;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.cartao a.titulo {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
}

.cartao a.titulo:hover {
  text-decoration: underline;
}

.categoria {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

button, .botao {
  font-family: inherit;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
}

button:hover, .botao:hover {
  background: var(--navy-light);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.botao.dourado {
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
}

input, select, textarea {
  font-family: inherit;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.aviso {
  background: #fff4e5;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.erro {
  background: #fdecec;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.lista-modulos li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lista-modulos li.concluido {
  color: #4a7a3d;
}

.player-wrap video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}

.progresso-barra {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.progresso-barra > div {
  height: 100%;
  background: var(--gold);
}

.quiz-pergunta {
  margin-bottom: 1.2rem;
}

.quiz-pergunta .opcao {
  display: block;
  padding: 0.4rem 0.2rem;
}

footer.rodape {
  text-align: center;
  padding: 2rem 1rem;
  color: #777;
  font-size: 0.8rem;
}
