/* ===== LAYOUT DAS PÁGINAS INTERNAS ===== */
.pagina-conteudo {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-height) + 30px) 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  text-align: left;
}

.pagina-conteudo h2 {
  font-size: 1.8rem;
  color: #1a2a4a;
  font-weight: 700;
  font-family: 'Shantell Sans', cursive;
}

.pagina-conteudo p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.mes-ano {
  font-family: 'Rubik', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: -10px;
}

/* ===== TABS ===== */
.tabs {
  width: 100%;
}

.tab-botoes {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #d0d8e8;
  margin-bottom: 24px;
}

.tab-btn {
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #556;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--cor-destaque);
}

.tab-btn.ativo {
  color: var(--cor-destaque);
  font-weight: 600;
  border-bottom-color: var(--cor-destaque);
}

.tab-painel {
  display: none;
}

.tab-painel.ativo {
  display: block;
}

/* ===== TABELA ===== */
.tabela-aulas {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  margin-top: 12px;
}

.tabela-aulas thead tr {
  background-color: var(--cor-destaque);
  color: #ffffff;
}

.tabela-aulas thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tabela-aulas tbody tr {
  border-bottom: 1px solid #dde4f0;
  transition: background 0.15s ease;
}

.tabela-aulas tbody tr:last-child {
  border-bottom: none;
}

.tabela-aulas tbody tr:hover {
  background-color: #f0f4fb;
}

.tabela-aulas td {
  padding: 12px 16px;
  color: #333;
  vertical-align: top;
}

.tabela-aulas td:first-child {
  color: #556;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .tabela-aulas thead { display: none; }

  .tabela-aulas tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid #dde4f0;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;
  }

  .tabela-aulas td {
    padding: 4px 8px;
    font-size: 0.9rem;
  }

  .tabela-aulas td:first-child {
    font-weight: 600;
    color: #1a2a4a;
    font-size: 0.85rem;
  }
}

/* ===== ACCORDION ===== */
.accordion {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-item {
  border: 1px solid #d0d8e8;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  background-color: #f4f7fc;
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a2a4a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.accordion-btn::after {
  content: '▸';
  font-size: 0.85rem;
  color: #778;
  transition: transform 0.25s ease;
}

.accordion-btn.ativo {
  background-color: var(--cor-destaque);
  color: #ffffff;
}

.accordion-btn.ativo::after {
  content: '▾';
  color: #aab8cc;
}

.accordion-btn:hover:not(.ativo) {
  background-color: #e4ecf8;
}

.accordion-painel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 18px;
  background-color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}

.accordion-painel.ativo {
  max-height: 1000px;
  padding: 16px 18px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
  .pagina-conteudo {
    padding: calc(var(--header-height)) 20px 24px;
  }
}

/* ===== BOTÃO VOLTAR ===== */
.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1a2a4a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border: 2px solid #c8d4e8;
  border-radius: 8px;
  background: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: fit-content;
}

.btn-voltar:hover {
  background: #e8eef8;
  border-color: #4a7cc7;
}
