/* Ajustes que complementam o style.css (sem alterá-lo) */

/* Saudação do usuário logado no header */
.user-greeting {
  font-size: 12px;
  line-height: 1.25;
  color: var(--gray-700, #4a5568);
  text-align: right;
  margin-right: 4px;
}
.user-greeting strong { color: var(--black, #0f1318); font-size: 13px; }

/* Botão "Sair" segue o visual do botão de cadastro */
.btn-sair { cursor: pointer; border: none; font: inherit; }

/* Total no card de curso */
.course-total {
  font-size: 12px;
  color: #718096;
  margin: 2px 0 12px;
}
.course-total strong { color: #0f1318; }

/* Imagem placeholder quando o curso não tem foto */
.course-img-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #cc0000, #a30000);
  color: #fff;
  font-size: 42px;
}

/* Botão "Ver todos os cursos" */
.ver-mais-wrap { text-align: center; margin-top: 32px; }
.btn-ver-mais {
  display: inline-block;
  background: #1a365d;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 10px;
}
.btn-ver-mais:hover { background: #102443; }

/* Voltar */
.cat-back { display:inline-block; font-size: 13px; color: #718096; text-decoration: none; font-weight: 600; margin: 24px 24px 0; }
.cat-back:hover { color: #cc0000; }

/* Página de detalhe do curso */
.detalhe-wrap { max-width: 920px; margin: 0 auto; padding: 0 24px 64px; }
.detalhe-top { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0 36px; }
.detalhe-img { width: 320px; max-width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.detalhe-info { flex: 1; min-width: 260px; }
.detalhe-info h1 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.detalhe-info p { color: #4a5568; line-height: 1.6; margin-bottom: 16px; }
.detalhe-meta { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #4a5568; }
.detalhe-meta i { color: #cc0000; width: 18px; }

.detalhe-turmas-titulo { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.detalhe-turmas { display: flex; flex-direction: column; gap: 12px; }
.detalhe-turma {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px;
}
.detalhe-turma strong { display: block; font-size: 14px; }
.detalhe-turma small { color: #718096; font-size: 12px; }
.detalhe-turma .btn-buy { width: auto; padding: 10px 20px; margin: 0; }

/* ===== Telas internas (área do aluno) ===== */
.interna-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 24px 64px; }
.interna-head { margin-bottom: 28px; }
.interna-head h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.5px; }
.interna-head p { color: #718096; margin-top: 4px; }
.sec-titulo { font-size: 20px; font-weight: 800; margin: 8px 0 18px; }

.interna-vazio {
  background: #fff; border: 1px dashed #cbd5e0; border-radius: 14px;
  padding: 40px; text-align: center; color: #718096;
}
.interna-vazio a { color: #cc0000; font-weight: 700; }

.banner-ok {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
}

/* card de inscrição (mesma base do card de curso) */
.course-card { position: relative; }
.mat-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px; backdrop-filter: blur(2px);
}
.mat-badge-pendente { background: #fef9c3; color: #854d0e; }
.mat-badge-pago { background: #dcfce7; color: #166534; }
.mat-badge-cancelado { background: #fee2e2; color: #991b1b; }
.mat-sub { font-size: 12px; color: #718096; display: block; margin: -4px 0 10px; }

/* cartão central para Meus Dados / Inscrição */
.painel-card {
  max-width: 560px; margin: 32px auto 0; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px 30px;
  box-shadow: 0 8px 30px rgba(15,19,24,0.05);
}
.painel-card h1 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.painel-sub { color: #718096; font-size: 14px; margin-bottom: 22px; }
.dados-lista { display: flex; flex-direction: column; }
.dados-lista > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid #edf2f7; font-size: 14px;
}
.dados-lista > div span { color: #718096; }
.dados-lista > div strong { color: #0f1318; text-align: right; }

.bloco-perigo { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.bloco-perigo h2 { font-size: 16px; font-weight: 800; color: #991b1b; margin-bottom: 6px; }

.campo { display: block; margin-bottom: 16px; }
.campo > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.campo input, .campo select {
  width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid #cbd5e0; border-radius: 10px; background: #fff;
}
.campo select {
  padding-right: 40px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.campo input:focus, .campo select:focus { outline: none; border-color: #1a365d; box-shadow: 0 0 0 3px rgba(26,54,93,0.12); }
.campo small { display: block; font-size: 12px; color: #718096; margin-top: 5px; }

.btn-acao {
  width: 100%; font-family: inherit; font-size: 15px; font-weight: 800;
  color: #fff; background: #cc0000; border: none; border-radius: 10px;
  padding: 14px; cursor: pointer;
}
.btn-acao:hover { filter: brightness(0.93); }
.btn-perigo { background: #991b1b; }

.aviso-erro {
  background: #fff1f1; border: 1px solid #f3c2c2; color: #8a1f1f;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.resumo-box {
  background: #f7f8fa; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 20px;
}
.resumo-box > div { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.resumo-box > div span { color: #4a5568; }
.resumo-box small { display: block; font-size: 12px; color: #718096; margin-top: 4px; }

/* ===== Sticky footer: rodapé sempre no fim quando há pouco conteúdo ===== */
/* (removido height:100% em html,body — quebrava o position:sticky do header) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* O conteúdo principal cresce e empurra o footer pra baixo */
body > main,
body > .courses-section,
body > .detalhe-wrap,
body > section {
  flex: 1 0 auto;
}
.site-footer { flex-shrink: 0; margin-top: auto; }

/* ===== Menu do usuário no header (dropdown nativo, sutil) ===== */
.user-menu { position: relative; }
.user-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #1a365d; padding: 8px 12px; border-radius: 9px;
  border: 1px solid transparent;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: #f0f4f8; }
.user-menu[open] summary { background: #f0f4f8; border-color: #e2e8f0; }
.user-menu summary > i.fa-circle-user { font-size: 20px; color: #cc0000; }
.user-menu-caret { font-size: 10px; color: #718096; transition: transform 0.15s; }
.user-menu[open] .user-menu-caret { transform: rotate(180deg); }

.user-menu-drop {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,19,24,0.12);
  min-width: 210px; padding: 6px; z-index: 60;
}
.user-menu-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 8px;
  font-size: 14px; color: #0f1318; text-decoration: none;
}
.user-menu-drop a:hover { background: #f7f8fa; }
.user-menu-drop a i { width: 18px; color: #718096; }
.user-menu-drop a:last-child { color: #991b1b; }
.user-menu-drop a:last-child i { color: #991b1b; }

.btn-sair-sutil {
  background: none; border: 1px solid #e2e8f0; color: #4a5568;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-sair-sutil:hover { border-color: #cc0000; color: #cc0000; }

/* ===== Painel da conta — visual repaginado ===== */
.interna-wrap { max-width: 1040px; }
.conta-layout {
  display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start;
  margin-top: 8px;
}

.conta-side {
  background: #fff; border: 1px solid #e8edf3; border-radius: 18px;
  padding: 8px; position: sticky; top: 24px;
  box-shadow: 0 10px 30px rgba(15,19,24,0.06);
}
.conta-perfil {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 18px 20px; border-bottom: 1px solid #eef2f7; margin-bottom: 8px;
}
.conta-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(135deg, #cc0000, #8f0000); color: #fff;
  display: grid; place-items: center; font-size: 27px; font-weight: 800;
  margin-bottom: 12px; box-shadow: 0 6px 16px rgba(204,0,0,0.3);
}
.conta-perfil strong { font-size: 16px; color: #0f1318; }
.conta-perfil span { font-size: 12.5px; color: #718096; margin-top: 3px; word-break: break-all; }

.conta-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.conta-side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 11px;
  text-decoration: none; color: #4a5568; font-size: 14.5px; font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.conta-side-item i { width: 18px; text-align: center; }
.conta-side-item:hover { background: #f5f7fa; }
.conta-side-item.ativo { background: #fef2f2; color: #cc0000; }
.conta-side-item.ativo i { color: #cc0000; }
.conta-side-perigo { color: #b04545; }

/* Conteúdo */
.conta-main { min-width: 0; }
.conta-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.conta-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.conta-head-acao {
  font-size: 13px; font-weight: 700; color: #cc0000; text-decoration: none;
  border: 1px solid #f3c2c2; padding: 8px 14px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 7px;
}
.conta-head-acao:hover { background: #fef2f2; }

.conta-card {
  background: #fff; border: 1px solid #e8edf3; border-radius: 18px;
  padding: 30px 32px; box-shadow: 0 10px 30px rgba(15,19,24,0.06);
}

.aviso-bloqueio {
  background: #f7f8fa; border: 1px solid #e2e8f0; color: #4a5568;
  border-radius: 10px; padding: 14px 16px; font-size: 14px;
  display: flex; align-items: center; gap: 9px;
}

.interna-vazio { padding: 48px 24px; }

@media (max-width: 760px) {
  .conta-layout { grid-template-columns: 1fr; }
  .conta-side { position: static; }
}

/* ===== Botões Login/Cadastro (deslogado) — versão sutil ===== */
.btn-login-sutil {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #1a365d; text-decoration: none;
  padding: 9px 14px; border-radius: 9px;
}
.btn-login-sutil i { font-size: 12px; color: #718096; }
.btn-login-sutil:hover { background: #f0f4f8; }

.btn-cadastro-sutil {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #fff; text-decoration: none;
  background: #cc0000; padding: 10px 18px; border-radius: 9px;
}
.btn-cadastro-sutil i { font-size: 12px; }
.btn-cadastro-sutil:hover { background: #a30000; }

/* ===== Páginas institucionais (Sobre / Segurança) ===== */
.pagina-hero {
  background: linear-gradient(135deg, #1a365d, #0f2138);
  color: #fff; padding: 60px 24px; text-align: center;
}
.pagina-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -0.5px; }
.pagina-hero p { color: #cbd5e0; max-width: 640px; margin: 12px auto 0; font-size: 16px; }

.pagina-wrap { max-width: 1140px; margin: 0 auto; padding: 44px 24px; }
.pagina-wrap h2 { font-size: 22px; font-weight: 800; margin: 30px 0 12px; }
.pagina-wrap h2:first-child { margin-top: 0; }
.pagina-wrap > p { color: #4a5568; line-height: 1.75; margin-bottom: 12px; }

.principios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 16px;
}
@media (max-width: 820px) { .principios-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principios-grid { grid-template-columns: 1fr; } }
.principio {
  background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 20px;
  box-shadow: 0 6px 20px rgba(15,19,24,0.04);
}
.principio i { color: #cc0000; font-size: 22px; margin-bottom: 10px; display: block; }
.principio strong { display: block; font-size: 15px; margin-bottom: 5px; color: #0f1318; }
.principio span { font-size: 13px; color: #718096; line-height: 1.55; }

.aviso-placeholder {
  background: #fffbeb; border: 1px solid #fde68a; color: #854d0e;
  border-radius: 10px; padding: 13px 16px; font-size: 13px; margin-top: 24px; line-height: 1.6;
}

/* ===== Páginas institucionais RICAS (Sobre / Segurança) ===== */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: 96px 24px; background-size: cover; background-position: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(143,0,0,0.90), rgba(15,19,24,0.80));
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { letter-spacing: 2.5px; font-size: 13px; font-weight: 800; color: #ffd2d2; text-transform: uppercase; }
.page-hero h1 { font-size: 46px; font-weight: 900; letter-spacing: -1px; margin: 12px 0; line-height: 1.05; }
.page-hero p { color: #f3e3e3; max-width: 680px; margin: 0 auto; font-size: 17px; line-height: 1.6; }
.page-hero .hero-cta {
  display: inline-block; margin-top: 28px; background: #fff; color: #cc0000;
  font-weight: 800; padding: 14px 30px; border-radius: 10px; text-decoration: none;
}
.page-hero .hero-cta:hover { background: #ffe5e5; }

.page-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  max-width: 1140px; margin: 0 auto; padding: 70px 24px;
}
.page-split img {
  width: 100%; border-radius: 18px; box-shadow: 0 18px 44px rgba(0,0,0,0.14);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.page-split.rev .split-img { order: 2; }
.page-split .eyebrow { color: #cc0000; letter-spacing: 2px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; }
.page-split h2 { font-size: 30px; font-weight: 900; margin: 8px 0 14px; letter-spacing: -0.5px; }
.page-split p { color: #4a5568; line-height: 1.75; margin-bottom: 12px; }

.band-vermelha {
  background: linear-gradient(135deg, #cc0000, #8f0000); color: #fff; text-align: center;
  padding: 60px 24px;
}
.band-vermelha h2 { font-size: 30px; font-weight: 900; max-width: 780px; margin: 0 auto 10px; letter-spacing: -0.5px; }
.band-vermelha p { color: #ffd9d9; max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.6; }

.secao { max-width: 1140px; margin: 0 auto; padding: 60px 24px; }
.secao-titulo { text-align: center; }
.secao-titulo .eyebrow { color: #cc0000; letter-spacing: 2px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; }
.secao-titulo h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.5px; margin-top: 4px; }
.secao-sub { text-align: center; color: #718096; max-width: 620px; margin: 8px auto 30px; line-height: 1.6; }

.principio { transition: transform 0.12s, box-shadow 0.12s; }
.principio:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,19,24,0.10); }

.cta-final { text-align: center; padding: 16px 24px 72px; }
.cta-final .btn-ver-mais { font-size: 15px; }

@media (max-width: 760px) {
  .page-split { grid-template-columns: 1fr; gap: 24px; padding: 44px 24px; }
  .page-split.rev .split-img { order: 0; }
  .page-hero h1 { font-size: 34px; }
}

/* Marca d'água dos 3 símbolos estilizados no banner do Sobre */
.hero-simbolos {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url('/img/emblemas.webp') center 38% no-repeat;
  background-size: min(760px, 82%);
  opacity: 0.13;
}

/* Banner sem foto: fundo vermelho da marca */
.page-hero.sem-foto { background: linear-gradient(135deg, #d11a1a, #7a0000); }
.page-hero.sem-foto::before { display: none; }

/* Bloco gráfico da marca (no lugar de foto) */
.split-grafico {
  border-radius: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(135deg, #cc0000, #8f0000);
  box-shadow: 0 18px 44px rgba(204,0,0,0.22);
}
.split-grafico img { width: 62%; opacity: 0.95; }
.split-grafico i { font-size: 76px; color: #fff; opacity: 0.95; }

/* Placeholder de foto (ex.: foto da filial) */
.split-placeholder {
  border-radius: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center;
  border: 2px dashed #cbd5e0; background: #f7f8fa; color: #94a3b8; padding: 24px;
}
.split-placeholder i { font-size: 42px; margin-bottom: 12px; display: block; }
.split-placeholder strong { font-size: 14px; color: #64748b; display: block; }
.split-placeholder span { font-size: 12.5px; }

/* ===== Página /cursos — grade própria e limpa ===== */
.cursos-hero { padding-top: 64px; padding-bottom: 64px; }
.cursos-hero h1 { font-size: 40px; }

.cursos-wrap { max-width: 1160px; margin: 0 auto; padding: 48px 0; }
.cursos-vazio { text-align: center; color: #718096; padding: 50px 20px; }

.cursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .cursos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cursos-grid { grid-template-columns: 1fr; } }

.curso-card {
  background: #fff; border: 1px solid #e8edf3; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(15,19,24,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.curso-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(15,19,24,0.12); }

.curso-card-img { position: relative; height: 235px; background: #f1f5f9; }

.curso-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.curso-card-fallback {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  background: repeating-linear-gradient(45deg, #f3f5f8, #f3f5f8 12px, #eef1f5 12px, #eef1f5 24px);
  color: #aab4c0;
}
.curso-card-fallback i { font-size: 30px; }
.curso-card-fallback span { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.curso-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(15,19,24,0.78); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}

.curso-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.curso-card-body h3 { font-size: 16px; font-weight: 800; color: #0f1318; line-height: 1.35; margin-bottom: 8px; }
.curso-desc { font-size: 13px; color: #718096; line-height: 1.55; margin-bottom: 15px; }

.curso-infos { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.curso-infos li { font-size: 12.5px; color: #4a5568; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.curso-infos li i { width: 15px; text-align: center; color: #cc0000; }

.curso-preco { border-top: 1px solid #eef2f7; padding-top: 14px; margin-top: auto; margin-bottom: 16px; }
.curso-preco-label { display: block; font-size: 10.5px; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.curso-preco-valor { display: block; font-size: 24px; font-weight: 900; color: #0f1318; line-height: 1.2; }
.curso-preco-total { display: block; font-size: 12px; color: #718096; margin-top: 3px; }

.curso-btn {
  display: block; text-align: center; background: #cc0000; color: #fff;
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 13px; border-radius: 9px; text-decoration: none; transition: background 0.15s;
}
.curso-btn:hover { background: #a30000; }

/* ===== Logo oficial no cabeçalho + nome da escola ===== */
.logo-img { height: 62px; width: auto; display: block; }
.logo-area { gap: 16px; } .logo-area .brand-text { padding-left: 16px; border-left: 1px solid #e2e8f0; }
.logo-area .brand-title { font-size: 18px; letter-spacing: 0.3px; }
.logo-area .brand-subtitle { font-size: 11px; letter-spacing: 1px; }
@media (max-width: 680px) {
  .logo-img { height: 48px; }
  .logo-area .brand-text { display: none; } /* em telas pequenas, só a logo */
}

/* Faixa dos emblemas (imagem oficial, fundo branco) na página Sobre */
.emblemas-faixa { text-align: center; padding-top: 8px; padding-bottom: 8px; }
.emblemas-faixa img { max-width: 360px; width: 100%; height: auto; display: block; margin: 0 auto 4px; }

/* ===== Faixa de destaques (substitui a faixa vermelha) ===== */
.destaques { background: #fbfcfe; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; padding: 44px 24px; }
.destaques-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.destaque { text-align: center; }
.destaque-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: #fff1f1; color: #cc0000; font-size: 22px; }
.destaque strong { display: block; font-size: 15px; color: #0f1318; margin-bottom: 5px; }
.destaque span { font-size: 13px; color: #718096; line-height: 1.5; }
@media (max-width: 820px) { .destaques-inner { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 460px) { .destaques-inner { grid-template-columns: 1fr; } }

/* Logo no footer */
.footer-logo-img { height: 64px; width: auto; display: block; }

/* Texto completo e FAQ na página do curso */
.curso-conteudo { margin-top: 36px; }
.curso-conteudo p { color: #3a4252; line-height: 1.7; margin: 0 0 14px; }

.curso-faq { margin-top: 36px; }
.faq-item {
  border: 1px solid #e7ebf2; border-radius: 12px; margin-bottom: 12px;
  background: #fff; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-weight: 600; color: #1f2733; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { transition: transform .2s; color: #cc0000; font-size: 14px; flex: none; }
.faq-item[open] .faq-ico { transform: rotate(180deg); }
.faq-resp { padding: 0 18px 18px; color: #4a5263; line-height: 1.7; }

/* Card de curso clicável por inteiro (link sobreposto) */
.curso-card, .course-card { position: relative; cursor: pointer; }
.card-link-overlay {
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; text-indent: -9999px; overflow: hidden;
  border-top: 5px solid red;
}
/* O botão visível e a tag de escolaridade ficam acima do overlay */
.curso-card .curso-btn, .course-card .btn-buy { position: relative; z-index: 2; }

/* Countdown na página do curso */
.curso-countdown {
  margin: 18px 0 4px; padding: 16px 20px;
  background: #fff5f5; border: 1px solid #ffd6d6; border-radius: 14px;
}
.curso-countdown .cd-label {
  display: block; font-size: 13px; font-weight: 700; color: #cc0000;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.curso-countdown .cd-nums { display: flex; gap: 18px; flex-wrap: wrap; }
.curso-countdown .cd-nums span {
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; color: #8a4b4b; min-width: 48px;
}
.curso-countdown .cd-nums b { font-size: 26px; font-weight: 900; color: #1f2733; line-height: 1.1; }

/* ============================================================
   Página de curso — redesign sóbrio/institucional (cd-*)
   ============================================================ */
.cd-page { max-width: 1080px; margin: 0 auto; padding: 0 24px 72px; }
.cd-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 26px 0 22px; color: #6b7280; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.cd-back:hover { color: #cc0000; }

/* Hero */
.cd-hero { border-bottom: 1px solid #e8e6e1; padding-bottom: 26px; margin-bottom: 34px; }

.cd-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: #cc0000; margin: 0 0 12px; position: relative; padding-left: 26px;
}
.cd-eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 2px; background: #cc0000;
}
.cd-title {
  font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.02em; color: #16191d; margin: 0 0 16px; max-width: 18ch;
}
.cd-lead { font-size: 18px; line-height: 1.6; color: #525a64; margin: 0; max-width: 60ch; }

/* Grid principal */
.cd-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.cd-main { min-width: 0; }
.cd-block + .cd-block { margin-top: 44px; }
.cd-h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: #9aa1ab; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #eceae5;
}
.cd-prose p { font-size: 16.5px; line-height: 1.8; color: #3a4250; margin: 0 0 16px; }
.cd-prose p:last-child { margin-bottom: 0; }

/* FAQ */
.cd-faq { display: flex; flex-direction: column; }
.cd-faq-item { border-bottom: 1px solid #eceae5; }
.cd-faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 650; color: #1f2733;
}
.cd-faq-item summary::-webkit-details-marker { display: none; }
.cd-faq-ico {
  flex: none; color: #cc0000; font-size: 13px; transition: transform .25s ease;
}
.cd-faq-item[open] .cd-faq-ico { transform: rotate(45deg); }
.cd-faq-resp { padding: 0 4px 20px; font-size: 15.5px; line-height: 1.75; color: #5b636e; max-width: 64ch; }

/* Ficha (sidebar sticky) */
.cd-aside { position: static; }
.cd-ficha {
  background: #fff; border: 1px solid #e6e3dd; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,20,.03), 0 12px 32px rgba(20,20,20,.05);
}
.cd-ficha-media { aspect-ratio: 16 / 10; background: #f4f2ee; }
.cd-ficha-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-ficha-noimg {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: #b3ada3;
}
.cd-ficha-noimg i { font-size: 26px; }
.cd-ficha-noimg span { font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.cd-ficha-body { padding: 22px 22px 24px; }

/* Dados (definition list) */
.cd-facts { margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid #eceae5; }
.cd-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; }
.cd-facts dt { font-size: 13.5px; color: #828a94; }
.cd-facts dd { margin: 0; font-size: 14px; font-weight: 700; color: #1f2733; text-align: right; }

/* Investimento */
.cd-invest { display: flex; flex-direction: column; gap: 3px; margin-bottom: 20px; }
.cd-invest-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #9aa1ab;
}
.cd-invest-value { font-size: 30px; font-weight: 900; color: #16191d; letter-spacing: -0.01em; line-height: 1.1; }
.cd-invest-value small { font-size: 14px; font-weight: 600; color: #828a94; letter-spacing: 0; }
.cd-invest-sub { font-size: 14px; color: #5b636e; }
.cd-invest-total { font-size: 12.5px; color: #828a94; margin-top: 6px; }
.cd-invest-total strong { color: #4a525d; }

/* Countdown sóbrio */
.curso-countdown {
  background: #faf7f5; border: 1px solid #f0e2e2; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 20px;
}
.cd-count-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: #cc0000; margin-bottom: 10px;
}
.curso-countdown .cd-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.curso-countdown .cd-nums span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.curso-countdown .cd-nums b {
  font-size: 24px; font-weight: 900; color: #16191d; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.curso-countdown .cd-nums i {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: #97928c;
  letter-spacing: .3px; text-transform: uppercase;
}

/* Turmas dentro da ficha */
.cd-turmas-h {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #9aa1ab; margin: 0 0 12px;
}
.cd-empty { font-size: 14px; color: #828a94; line-height: 1.6; margin: 0; }
.cd-turma {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-top: 1px solid #eceae5;
}
.cd-turma:first-of-type { border-top: none; }
.cd-turma-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cd-turma-info strong { font-size: 14px; color: #1f2733; }
.cd-turma-info span { font-size: 13px; color: #5b636e; }
.cd-turma-date { font-size: 12px !important; color: #97928c !important; }
.cd-cta {
  flex: none; background: #cc0000; color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 800; padding: 13px 22px; border-radius: 10px;
  transition: background .15s, transform .15s;
  box-shadow: 0 6px 16px rgba(204,0,0,0.28);
}
.cd-cta:hover { background: #a30000; transform: translateY(-1px); }
/* .cd-cta:hover { background: #a30000; } */
.cd-cta:focus-visible { outline: 3px solid rgba(204,0,0,.35); outline-offset: 2px; }

/* Responsivo */
@media (max-width: 900px) and (min-width: 681px) {
  .cd-grid { grid-template-columns: 1fr 300px; gap: 28px; }
}

@media (max-width: 680px) {
  .cd-grid { grid-template-columns: 1fr; gap: 32px; }
  .cd-aside { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-faq-ico { transition: none; }
}

/* ============================================================
   Páginas institucionais (Sobre / Segurança) — redesign sóbrio
   Linguagem visual alinhada à página de curso (inst-*)
   ============================================================ */
.inst-page { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }

/* Hero */
.inst-hero { padding: 56px 0 40px; border-bottom: 1px solid #e8e6e1; margin-bottom: 56px; }
.inst-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: #cc0000; margin: 0 0 14px; position: relative; padding-left: 26px;
}
.inst-eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 2px; background: #cc0000;
}
.inst-h1 {
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; line-height: 1.06;
  letter-spacing: -0.02em; color: #16191d; margin: 0 0 18px; max-width: 16ch;
}
.inst-lead { font-size: 18px; line-height: 1.6; color: #525a64; margin: 0; max-width: 60ch; }
.inst-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  background: #cc0000; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 11px; transition: background .15s;
}
.inst-cta:hover { background: #a30000; }
.inst-cta:focus-visible { outline: 3px solid rgba(204,0,0,.35); outline-offset: 2px; }

/* Seções */
.inst-section { margin-bottom: 64px; }
.inst-sec-head { margin-bottom: 28px; }
.inst-sec-head .inst-eyebrow { margin-bottom: 10px; }
.inst-h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -0.01em;
  color: #16191d; margin: 0; line-height: 1.15;
}
.inst-sub { font-size: 16px; line-height: 1.6; color: #5b636e; margin: 10px 0 0; max-width: 64ch; }

/* Split (texto + mídia) */
.inst-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 64px;
}
.inst-split.rev .inst-split-media { order: 2; }
.inst-split-media img {
  width: 100%; border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; display: block;
  box-shadow: 0 18px 44px rgba(15,19,24,.12);
}
.inst-split h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 850; color: #16191d; margin: 8px 0 14px; line-height: 1.15; letter-spacing: -0.01em; }
.inst-split p { font-size: 16.5px; line-height: 1.75; color: #3a4250; margin: 0 0 14px; }
.inst-split p:last-child { margin-bottom: 0; }

/* Painel gráfico (quando não há foto) */
.inst-graphic {
  aspect-ratio: 4/3; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff5f5 0%, #f7f4f1 100%); border: 1px solid #f0e2e2;
}
.inst-graphic i { font-size: 88px; color: #cc0000; opacity: .85; }

/* Grade de cards (destaques / princípios / camadas) */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.inst-card {
  background: #fff; border: 1px solid #e6e3dd; border-radius: 14px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.inst-card-ic {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: #fff5f5; color: #cc0000; font-size: 18px; margin-bottom: 4px;
}
.inst-card strong { font-size: 15.5px; color: #16191d; font-weight: 800; }
.inst-card span { font-size: 14px; line-height: 1.6; color: #5b636e; }

/* Linha de 3 (direitos LGPD) */
.inst-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Emblemas */
.inst-emblemas { text-align: center; margin-bottom: 64px; }
.inst-emblemas img { max-width: 440px; width: 100%; height: auto; margin: 0 auto 16px; display: block; }
.inst-emblemas p { font-size: 14.5px; color: #828a94; max-width: 56ch; margin: 0 auto; line-height: 1.6; }

/* Nota sóbria (placeholder/jurídico) */
.inst-note {
  max-width: 1080px; margin: 0 auto 28px; padding: 14px 18px;
  background: #faf7f5; border: 1px solid #f0e2e2; border-radius: 12px;
  font-size: 13.5px; color: #6b5b5b; line-height: 1.6;
}
.inst-note strong { color: #9b3b3b; }

/* CTA final */
.inst-final { text-align: center; padding: 8px 0 0; }

/* Responsivo */
@media (max-width: 860px) {
  .inst-split { grid-template-columns: 1fr; gap: 28px; }
  .inst-split.rev .inst-split-media { order: 0; }
  .inst-row3 { grid-template-columns: 1fr; }
}

/* Outros cursos no fim da página de detalhe */
.cd-outros { margin-top: 56px; padding-top: 8px; border-top: 1px solid #e8e6e1; }
.cd-outros .cd-h2 { border-bottom: none; padding-bottom: 0; margin: 26px 0 20px; color: #16191d; font-size: 22px; letter-spacing: -0.01em; text-transform: none; }
.cd-outros-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .cd-outros-grid { grid-template-columns: 1fr; } }