:root{
  --bg:#f7f5f2;
  --surface:#ffffff;
  --surface-2:#eef3fb;
  --text:#2f3a4a;
  --muted:#667085;
  --primary:#c9d7f2;
  --primary-2:#dfe7f3;
  --primary-strong:#6b7ea6;
  --line:#e6e8ee;
  --shadow:0 10px 22px rgba(15, 23, 42, .05);
  --radius:12px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  color:inherit;
}

.topo{
  background:var(--primary);
  color:var(--text);
  position:sticky;
  top:0;
  z-index:10;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
  border-bottom:1px solid rgba(255,255,255,.35);
}

.topo-inner{
  max-width:1180px;
  margin:0 auto;
  padding:20px 20px 16px;
}

.perfil{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.foto-perfil{
  width:96px;
  height:96px;
  border-radius:14px;
  object-fit:cover;
  border:3px solid rgba(255,255,255,.9);
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.perfil-texto{
  max-width:760px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary-strong);
}

.perfil h1{
  margin:10px 0 8px;
  font-size:clamp(1.9rem, 3vw, 2.8rem);
  line-height:1.05;
  color:var(--text);
}

.perfil p{
  margin:0;
  color:var(--muted);
  font-size:1rem;
  line-height:1.6;
}

.menu{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.menu a{
  text-decoration:none;
  padding:10px 14px;
  border-radius:10px;
  background:#eef2f8;
  border:1px solid #dde5f2;
  font-weight:600;
  transition:.2s ease;
  color:var(--text);
}

.menu a:hover{
  background:#e4ebf6;
  transform:translateY(-1px);
}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:26px 20px 54px;
}

.container.container-full {
  max-width: 75%; /* Ocupa quase toda a largura da tela */
}

.hero{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:var(--primary-2);
  min-height:260px;
  padding:34px 30px;
  color:var(--text);
  box-shadow:var(--shadow);
  margin-bottom:28px;
  border:1px solid var(--line);
}

.hero-slide{
  display:none;
  max-width:760px;
  min-height:190px;
  align-items:center;
}

.hero-slide.active{
  display:flex;
}

.hero-kicker{
  display:inline-block;
  margin-bottom:12px;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--primary-strong);
}

.hero h2{
  margin:0 0 12px;
  font-size:clamp(1.8rem, 3vw, 3rem);
  line-height:1.08;
  max-width:760px;
  color:var(--text);
}

.hero p{
  margin:0;
  max-width:640px;
  font-size:1.02rem;
  line-height:1.7;
  color:var(--muted);
}

.hero-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-size:1.6rem;
  color:var(--text);
  background:#eef2f8;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}

.hero-btn:hover{
  background:#e4ebf6;
}

.hero-btn-prev{
  left:-14px;
}

.hero-btn-next{
  right:-14px;
}

.secao{
  margin-top:24px;
}

.secao-cabecalho{
  margin-bottom:14px;
  text-align:center;
}

.secao-cabecalho h2{
  margin:8px 0 0;
  font-size:clamp(1.4rem, 2vw, 1.9rem);
  color:var(--text);
}

.secao-cabecalho p{
  margin:0;
  color:var(--muted);
  font-size:0.95rem;
}

.secao-tag{
  color:var(--primary-strong);
  background:#eef3fb;
  border:1px solid #dde5f2;
  padding:7px 12px;
  border-radius:10px;
}

.grid-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  text-align:center;
}

.card h3{
  margin:0 0 10px;
  font-size:1.08rem;
  color:var(--primary-strong);
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.card.destaque{
  background:var(--surface-2);
}

.listas-duas-colunas{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.lista-coluna{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.lista-coluna h3{
  margin:0 0 14px;
  font-size:1.2rem;
  color:var(--primary-strong);
  text-align:center;
}

.grid-listas{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
}

.lista-item{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:60px;
  text-align:center;
  padding:14px 16px;
  background:var(--surface);
  border-radius:var(--radius);
  border:1px solid var(--line);
  text-decoration:none;
  font-weight:700;
  color:var(--primary-strong);
  box-shadow:var(--shadow);
  transition:.2s ease;
}

.lista-item:hover{
  transform:translateY(-2px);
  background:var(--surface-2);
}

.ano-provas{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.ano-provas h3{
  font-size:1.5rem;
  color:var(--text);
  margin-bottom:18px;
  text-align:center;
}

.prova-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  padding:25px;
}

.prova-card h4{
  margin:0 0 10px;
  font-size:1.15rem;
  color:var(--text);
}

.prova-card p{
  flex-grow:1;
  margin-bottom:15px;
  font-size:.95rem;
}

.tag-bimestre{
  display:inline-block;
  background:var(--primary);
  color:var(--primary-strong);
  font-size:.7rem;
  font-weight:700;
  padding:5px 10px;
  border-radius:8px;
  margin-bottom:12px;
  border:1px solid #b3c7e6;
}

.btn-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--primary-strong);
  color:#fff;
  padding:10px 18px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:.9rem;
  transition:.2s ease;
  margin-top:10px;
}

.btn-download:hover{
  background:#5a6b8c;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}

.rodape{
  margin-top:36px;
  background:var(--primary);
  color:var(--text);
  padding:22px 20px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.35);
}

.rodape p{
  margin:0;
  line-height:1.6;
  color:var(--muted);
}

@media (min-width: 900px){
  .listas-duas-colunas{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 768px){
  .hero{
    padding:24px 16px;
    min-height:220px;
    border-radius:14px;
  }

  .hero-btn{
    width:38px;
    height:38px;
    font-size:1.4rem;
  }

  .perfil{
    align-items:flex-start;
  }

  .foto-perfil{
    width:84px;
    height:84px;
    border-radius:12px;
  }

  .secao-cabecalho{
    text-align:left;
  }

  .ano-provas h3{
    text-align:left;
  }

  .prova-card{
    padding:20px;
  }

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

.tabela-controle{
  display:flex;
  align-items:center;
  gap:12px;
  margin:20px 0 18px;
  flex-wrap:wrap;
  justify-content:center;
}

.tabela-controle label{
  font-weight:700;
  color:var(--text);
}

.tabela-controle select{
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-family:inherit;
  font-size:1rem;
  outline:none;
  box-shadow:var(--shadow);
}

.tabela-wrapper{
  width:100%;
  overflow-x:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.tabela-notas{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}

.tabela-notas th,
.tabela-notas td{
  padding:14px 12px;
  border:1px solid var(--line);
  text-align:center;
  font-size:.95rem;
}

.tabela-notas th{
  background:var(--primary-2);
  color:var(--text);
  font-weight:800;
}

.tabela-notas tbody tr:nth-child(even){
  background:#fafbfe;
}

.tabela-notas tbody tr:hover{
  background:#f1f5fb;
}

.tabela-status{
  margin:20px 0;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  text-align:center;
  color:var(--muted);
  box-shadow:var(--shadow);
}

.tabela-erro{
  color:#8b1e1e;
  background:#fff5f5;
  border-color:#f2c4c4;
}

.tabela-wrapper{
  width:100%;
  overflow-x:auto;
}

.tabela-notas{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
  min-width:700px;
}

.tabela-notas th,
.tabela-notas td{
  padding:14px 12px;
  border:1px solid var(--line);
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
}

.tabela-notas th{
  background:var(--primary-2);
  color:var(--text);
  font-weight:800;
}

.imagem-responsiva {
    max-width: 100%;
    height: auto;
}