/* 1. Reset Moderno: Remove comportamentos estranhos dos navegadores */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Garante que padding não aumente o tamanho total da caixa */
}

:root {
  --bg-main: #0f172a;
  --bg-glass: rgba(30, 32, 44, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-white: #ffffff;
  --text-gray: #a0aec0;
  --accent-green: #a3e635;
}

@media (max-width: 768px) {
  :root {
    --bg-main: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-white: #0f172a;
    --text-gray: #475569;
    --accent-green: #65a30d;
  }
}

body.force-light {
  --bg-main: #f8fafc !important;
  --bg-glass: rgba(255, 255, 255, 0.7) !important;
  --glass-border: rgba(0, 0, 0, 0.1) !important;
  --text-white: #0f172a !important;
  --text-gray: #475569 !important;
  --accent-green: #65a30d !important;
}

body.force-dark {
  --bg-main: #0f172a !important;
  --bg-glass: rgba(30, 32, 44, 0.7) !important;
  --glass-border: rgba(255, 255, 255, 0.1) !important;
  --text-white: #ffffff !important;
  --text-gray: #a0aec0 !important;
  --accent-green: #a3e635 !important;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background-color: var(--bg-main);
  color: var(--text-white);
  /* REPARE QUE TIREI O 'TRANSITION' DAQUI */
}

/* Criamos uma classe isolada só para a animação do clique */
body.theme-transition {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* 1. O container que segura a barra e dá um respiro na tela */

.navbar-container {
  padding: 2rem; /* Cria um espaço em volta da barra para ela não colar nas bordas */
  display: flex;
  justify-content: center; /*mantém a barra no meio da tela */

  /* AS DUAS LINHAS PARA RESOLVER O PROBLEMA DO MENU ESCONDIDO: */
  position: relative;
  z-index: 9999; /* Garante que o topo do site fique acima de todo o resto */
}

/* 2. A barra em si (o efeito vidro) */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(10px); /* o desfoque do vidro */
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 1200px;
  min-height: 75px; /* a altura da nossa barra */
  /* por enquanto, vamos usar flexbox simples para ver o logo */
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px; /* Ajuste essa altura conforme o desenho da sua logo */
  width: auto; /* Mantém a proporção largura/altura correta */
  object-fit: contain;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

/* 1. ESTADO PADRÃO (Azulado/Escuro): Logo branca original */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-left: 1rem;
  /* Garantimos que aqui não haja filtro nenhum */
  filter: none !important;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

/* 2. QUANDO O TEMA FOR CLARO: Inverte para preto */
/* O seu JS adiciona "light-theme", então usamos este seletor: */
/* Inverte a logo para preto no DESKTOP se o usuário forçar o claro */
body.force-light .logo-img {
  filter: invert(1) brightness(0) !important;
}

/* Inverte a logo para preto no CELULAR, EXCETO se o usuário forçar o escuro */
@media (max-width: 768px) {
  body:not(.force-dark) .logo-img {
    filter: invert(1) brightness(0) !important;
  }
}

/* 3. EFEITO DE HOVER (Opcional) */
.logo-img:hover {
  transform: scale(1.05);
}

.icon-code {
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.2rem;
}

/*a cor branca do nome */
.brand-name {
  color: var(--text-white);
  font-weight: 600;
  letter-spacing: 1px;
}

/* o container da lista */
.nav-links {
  display: flex; /* coloca os itens (<li>) um ao lado do outro */
  list-style: none; /* arranca as bolinhas pretas padrão do html */
  gap: 1.5rem; /* dá o espaçamento perfeito entre cada palavra */
  margin: 0;
  padding: 0;
  align-items: center;
  margin: 0 auto;
}

/* O estilo do texto do link */
.nav-links a {
  text-decoration: none; /* Remove o sublinhado azul feio */
  color: var(--text-gray); /*pinta com nosso cinza do :root */
  font-size: 0.95rem;
  transition: var(
    --transition-smooth
  ); /* prepara o terreno para o efeito de passar o mouse */
  white-space: nowrap;
}

/* o efeito de hover (mouse em cima) e o link ativo (página atual) */
.nav-links a.active,
.nav-links a:hover {
  color: var(--text-white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2); /* da aquele leve brilho profissional */
}

.nav-left,
.nav-actions {
  display: flex;
  align-items: stretch;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-right: 1.5rem;
}

/* Tamanho padrão dos ícones */
.lucide {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2px;
}

/* os botões das pontas (hambúrguer e Sol) */
.menu-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* linhas divisórias (borda direita no hamburguer, borda esquerda no sol */

.menu-toggle {
  border-right: 1px solid var(--glass-border);
  color: var(--text-white);
}

.theme-toggle {
  border-left: 1px solid var(--glass-border);
  color: #fbbf24; /* ícone amarelo/sol */
}

/* ícones sociais (links) */

.social-icons a {
  color: var(--text-gray);
  transition: var(--transition-smooth);
  display: flex;
}

/* == EFEITOS DE HOVER === */

.social-icons a:hover {
  color: var(--text-white);
  transform: translateY(-3px);
}

.menu-toggle:hover,
.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Arrumando a nova caixa no desktop */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1; /* Faz a caixa ocupar todo o espaço restante da barra */
}

/* === RESPONSIVIDADE (CELULARES E TABLETS) === */

/* O navegador lerá: "Se a tela for menor que 800px, aplique essas regras" */

@media (max-width: 1100px) {
  /* 1. O Menu Principal Mobile */
  .nav-menu {
    display: flex;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);

    /* A MÁGICA 1: A gaveta agora espera 0.5s antes de sumir, 
       dando tempo para os links desaparecerem primeiro */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    pointer-events: none;
  }

  /* Quando o JS coloca o active, a gaveta desce na hora */
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s; /* Zera o atraso para abrir imediatamente */
  }

  /* 2. Preparando os Itens */
  .nav-menu .nav-links li,
  .nav-menu .nav-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.active .nav-links li,
  .nav-menu.active .nav-actions {
    opacity: 1;
    transform: translateY(0);
  }

  /* 3. O EFEITO DOMINÓ REVERSO (Quando o menu FECHA) */
  /* Eles somem de baixo para cima */
  .nav-menu .nav-links li:nth-child(1) {
    transition-delay: 0.6s;
  }
  .nav-menu .nav-links li:nth-child(2) {
    transition-delay: 0.5s;
  }
  .nav-menu .nav-links li:nth-child(3) {
    transition-delay: 0.4s;
  }
  .nav-menu .nav-links li:nth-child(4) {
    transition-delay: 0.3s;
  }
  .nav-menu .nav-links li:nth-child(5) {
    transition-delay: 0.2s;
  }
  .nav-menu .nav-links li:nth-child(6) {
    transition-delay: 0.1s;
  }
  .nav-menu .nav-actions {
    transition-delay: 0s;
  } /* Redes somem primeiro */

  /* 4. O EFEITO DOMINÓ NORMAL (Quando o menu ABRE) */
  /* Eles aparecem de cima para baixo */
  .nav-menu.active .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu.active .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-menu.active .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-menu.active .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-menu.active .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-menu.active .nav-links li:nth-child(6) {
    transition-delay: 0.6s;
  }
  .nav-menu.active .nav-actions {
    transition-delay: 0.7s;
  }
  /* Redes sociais por último */

  /* SOLUÇÃO DA BORDA: Quando a gaveta está aberta, a barra de cima fica quadrada embaixo */
  .navbar:has(.nav-menu.active) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none; /* Remove a linha divisória para unir tudo */
  }

  /* Arruma os itens dentro da gaveta para ficarem em coluna */
  .nav-menu .nav-links,
  .nav-menu .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
  }

  /* 2. Ajuste fino na Barra Principal */
  .navbar {
    align-items: center; /* Deixamos de 'esticar' (stretch) os botões do teto ao chão */
    overflow: visible; /* IMPORTANTE: Isso permitirá que a gaveta do menu apareça para fora da barra mais tarde! */
  }

  /* 3. A mágica: Voando o hamburguer para a direita */
  .menu-toggle {
    position: absolute; /* tira o botão do alinhamento normal do flexbox */
    right: 1.5rem; /* Empurra ele para a extrema direita, alinhado com o limite da tela */
    top: 50%;
    padding: 0.6rem;
    transform: translateY(
      -50%
    ); /* Esse combo top 50% + translateY centraliza ele verticalmente com perfeição */

    /* Estilizando igualzinho à foto (quadradinho arredondado) */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background-color: transparent;
    padding: 0.4rem;
    height: auto;
  }
  /* 4. Ajustando o botão do sol */

  .nav-actions {
    /* Como o hamburguer está flutuando à direita, precisamos dar uma margem para o sol não ficar esmagado embaixo dele */
    margin-right: 5rem;
  }
  .theme-toggle {
    position: absolute;
    right: 4.8rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background-color: transparent;
    padding: 0.5rem; /* A MÁGICA 1: Deixa o botão mais "gordinho" para facilitar o clique */
border-radius: 8px;
cursor: pointer !important; / A MÁGICA 2: Força a mãozinha a aparecer */
    z-index: 1000;
  }
  .menu-toggle .lucide,
  .theme-toggle .lucide {
    width: 1.7rem;
    height: 1.7rem;
    stroke-width: 2.2px;
  }
}

/* ========================================= */
/* HERO SECTION (BANNER PRINCIPAL)           */
/* ========================================= */

.hero-container {
  padding: 0 2rem; /* Mantém o respiro lateral igual ao do menu */
  display: flex;
  justify-content: center; /* Centraliza na tela */
  margin-top: 0; /* AJUSTE 1: Diminui a distância do menu para o banner */
  margin-bottom: 4rem;
}

/* ========================================= */
/* O CONTAINER PRINCIPAL DO BANNER           */
/* ========================================= */
.hero-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* PREPARAÇÃO PARA A BORDA ANIMADA */
  position: relative; /* Segura o raio de luz para ele não escapar da caixa */
  border: 1px solid rgba(255, 255, 255, 0.03); /* Bordinha de base quase invisível */
}

/* ========================================= */
/* A MAGIA: RAIO DE LUZ CORRENDO NA BORDA    */
/* ========================================= */

/* 1. Ensinamos o navegador a animar ângulos (para girar como um relógio) */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;

  /* 2. O gradiente cônico faz o efeito de radar no sentido horário */
  background: conic-gradient(
    from var(--angle),
    transparent 60%,
    /* Rastro invisível */ rgba(163, 230, 53, 0.2) 80%,
    /* Rastro fraco */ var(--accent-green) 95%,
    /* A ponta brilhante do raio */ transparent 100%
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;

  /* 3. Rodamos DUAS animações juntas: Girar e Fraquejar */
  animation:
    spin-border 8s linear infinite,
    flicker-border 2s infinite;
}

/* O motor 1: Gira o ângulo até 360 graus infinitamente */
@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}

/* O motor 2: Dá os "curtos-circuitos" e fraquejadas de energia */
@keyframes flicker-border {
  0% {
    opacity: 1;
  }
  15% {
    opacity: 0.3;
  } /* Quase apaga */
  20% {
    opacity: 1;
  }
  22% {
    opacity: 0.1;
  } /* Pisca forte */
  25% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  65% {
    opacity: 0.5;
  } /* Fraqueja de leve */
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* --- LADO ESQUERDO: IMAGEM HEXAGONAL --- */
.hero-image-box {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end; /* A MÁGICA: Isso empurra a foto para encostar no texto! /
padding-right: 2rem; / Dá só um respirinho pequeno para não colar 100% no texto */
}

.hero-photo-wrapper {
  width: 440px; /* Aumentamos a largura para tirar o aspecto achatado */
  height: 560px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-photo-wrapper:hover img {
  transform: scale(1.03);
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantém a proporção da foto sem esticar */
  transition: transform 0.4s ease;
}

/* EFEITO DE HOVER (Opcional): A foto dá um leve zoom quando passa o mouse */
.hero-photo-wrapper:hover img {
  transform: scale(1.03);
}

/* --- LADO DIREITO: TEXTOS E BOTÕES --- */
.hero-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-green {
  color: var(--accent-green);
}

.greeting {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: -0.4rem;
}

.main-title {
  color: var(--text-white);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.highlight-green {
  color: var(--accent-green);
}

.description {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- ÍCONES DE DIFERENCIAIS (ACADEMIAS) --- */
.features-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.02); /* Fundo do vidro quase invisível */
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Garante que nada escape da caixa */
  transition: all 0.3s ease;
}

/* ESTILO DA IMAGEM: A Mágica Monocromática */
.icon-box .academy-logo {
  width: 70%; /* Ajuste o tamanho da logo dentro da caixa */
  height: 70%;
  object-fit: contain; /* Não distorce a logo */

  /* FILTROS PARA FICAR CINZA/BRANCO SUTIL */
  filter: grayscale(100%) brightness(150%) opacity(0.5);
  transition: all 0.3s ease;
}

/* === EFEITOS DE HOVER === */
.icon-box:hover {
  background: rgba(163, 230, 53, 0.05); /* Leve fundo verde */
  border-color: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(163, 230, 53, 0.2);
}

/* Quando o mouse passa na caixa, a imagem acende! */
.icon-box:hover .academy-logo {
  /* Remove o cinza, aumenta o brilho e a opacidade */
  filter: grayscale(0%) brightness(100%) opacity(1)
    drop-shadow(0 0 5px rgba(163, 230, 53, 0.5));
}

.more-text {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* --- BOTÃO DE AÇÃO (CTA) - ESTILO RGB VERDE --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem; /* Dá o formato de botão gordinho e clicável */
  border-radius: 12px; /* Arredonda as pontas */

  /* Fonte do botão */
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a; /* Texto escuro para contrastar e dar leitura no fundo claro */
  text-decoration: none;

  width: fit-content;

  /* A MÁGICA DO RGB VERDE (Gradiente animado) */
  background: linear-gradient(
    135deg,
    var(--accent-green),
    #10b981,
    #06b6d4,
    var(--accent-green)
  );
  background-size: 300% 300%; /* Deixa o gradiente gigante para a animação funcionar */
  animation: rgb-flow 5s ease infinite; /* Faz as cores se mexerem em loop infinito */

  /* Brilho flutuante neon */
  box-shadow: 0 4px 15px rgba(163, 230, 53, 0.4);
  transition: all 0.3s ease;
}

/* A instrução para a animação de movimento das cores */
@keyframes rgb-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Efeito quando o mouse passa por cima */
.cta-button:hover {
  transform: translateY(-4px); /* Pula um pouquinho para cima */
  box-shadow: 0 10px 25px rgba(163, 230, 53, 0.6); /* O brilho aumenta muito */
  color: #000;
}

.cta-button .lucide {
  width: 1.5rem;
  height: 1.5rem;
}

/* ========================================= */
/* RESPONSIVIDADE (CELULAR) DA HERO          */
/* ========================================= */
@media (max-width: 1100px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 3rem;
  }

  .hexagon-shape {
    width: 280px;
    height: 280px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .features-icons {
    justify-content: center;
  }

  .cta-button {
    margin: 1.5rem auto 0 auto;
  }
}

/* ========================================= */
/* MENU INFERIOR MOBILE (BOTTOM NAV)         */
/* ========================================= */

/* Esconde no computador por padrão */
.bottom-nav {
  display: none;
}

/* Regras apenas para Celular/Tablet */
@media (max-width: 1100px) {
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 9990;

    /* ESCONDIDO POR PADRÃO: Empurra ele 100% para baixo da tela */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* A CLASSE MÁGICA: O Javascript vai adicionar ela para a barra subir */
  .bottom-nav.show-nav {
    transform: translateY(0);
  }

  /* 1. Ajuste na lista: Criamos o espaço para o botão central */
  .bottom-nav-list {
    display: flex;
    justify-content: space-between; /* Espaça os itens nas pontas */
    align-items: center;
    list-style: none;
    padding: 0.8rem 1.5rem 1.2rem 1.5rem; /* Respiro interno */
    position: relative; /* Isso permite que o botão central "flutue" nela */
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s;
  }

  .bottom-nav-item .lucide {
    width: 1.4rem;
    height: 1.4rem;
  }

  .bottom-nav-item.active,
  .bottom-nav-item:hover {
    color: var(--accent-green);
  }

  /* 1. O CONTAINER: Dividimos a barra em 5 colunas idênticas de 20% cada */
  .bottom-nav-list {
    display: grid;
    grid-template-columns: repeat(
      5,
      1fr
    ); /* 5 colunas de tamanho exatamente igual */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.8rem 0 1.2rem 0;
    width: 100%;
  }

  /* 2. OS ITENS (li): Centralizamos o conteúdo dentro de cada uma das 5 colunas */
  .bottom-nav-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  /* 3. OS BOTÕES COMUNS (Início, Cursos, etc.) */
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    width: 100%; /* Garante que o clique pegue em toda a área da coluna */
  }

  /* 4. O BOTÃO CENTRAL (Play) */
  .bottom-nav-item-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Ajustei para um tamanho que não force a coluna */
    height: 48px;
    background: linear-gradient(135deg, var(--accent-green), #10b981);
    border-radius: 50%;
    color: #111;
    border: none;
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.3);
    text-decoration: none;
  }
  /* O MOTOR DA CHACOALHADA (SHAKE) */
  @keyframes attention-shake {
    0% {
      transform: translateX(0);
    }
    5% {
      transform: translateX(-3px) rotate(-5deg);
    }
    10% {
      transform: translateX(3px) rotate(5deg);
    }
    15% {
      transform: translateX(-3px) rotate(-5deg);
    }
    20% {
      transform: translateX(3px) rotate(5deg);
    }
    25% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(0);
    } /* Pausa longa até repetir */
  }

  /* APLICANDO AO BOTÃO CENTRAL */
  .bottom-nav-item-center {
    /* ... mantenha suas outras propriedades (background, width, height, etc) ... */

    /* Adicionamos a animação: dura 5s no total, mas o movimento só ocorre no começo */
    animation: attention-shake 5s ease-in-out infinite;

    /* Garante que o brilho acompanhe o movimento */
    transition: all 0.3s ease;
  }

  /* Se quiser que ele pare de chacoalhar quando o usuário clicar/segurar */
  .bottom-nav-item-center:active {
    animation-play-state: paused;
  }
  .hero-image-box {
    justify-content: center;
    padding-right: 0;
    width: 100%; /* Garante que a caixa respeite a tela do celular */
  }

  .hero-photo-wrapper {
    width: 100%; /* A foto se adapta sozinha a largura... /
max-width: 320px; / ...mas nunca passa de 320px para não ficar gigante */
    height: 420px;
    margin: 0 auto;
  }
}

/* Ajuste para telas menores (Celular) */
@media (max-width: 600px) {
  .logo-img {
    height: 32px; /* Logo um pouco menor no celular para sobrar espaço */
  }
}

.courses-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--text-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.courses-grid {
  display: grid;
  /* Cria colunas automáticas que se ajustam entre 300px e o espaço disponível */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Pequeno ajuste para garantir que os ícones da Marinha e Aeronáutica 
   não fiquem pequenos demais dentro do círculo */
.card-icon img {
  width: 70%; /* Aumentei um pouco para dar mais destaque aos brasões */
  height: 70%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: all 0.4s ease;
}

/* Destaque para o card quando passa o mouse */

.course-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-green);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon img {
  width: 85%;
  filter: grayscale(100%) brightness(1.5);
  transition: 0.3s;
}

.course-card:hover .card-icon img {
  filter: grayscale(0%) brightness(1);
}

.course-card h3 {
  color: var(--text-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.course-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.5;
}

.card-btn {
  margin-top: auto;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.4);
}

.stats-targets {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 4rem 3rem;
  background-color: #0f172a; /* Fundo azul marinho profundo */

  /* EFEITO DE ALVOS: Círculos concêntricos repetidos */
  background-image: radial-gradient(
    circle at center,
    rgba(163, 230, 53, 0.05) 0,
    rgba(163, 230, 53, 0.05) 1px,
    transparent 1px
  );
  background-size: 60px 60px; /* Distância entre os centros dos alvos */

  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* Camada extra para fazer os anéis maiores do alvo */
.stats-targets::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle,
    transparent 20%,
    rgba(163, 230, 53, 0.02) 21%,
    transparent 22%
  );
  background-size: 150px 150px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1; /* Fica acima dos alvos do fundo */
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.stat-icon {
  color: var(--accent-green);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 5px rgba(163, 230, 53, 0.5));
}

.stat-number {
  color: var(--text-white);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- RESPONSIVIDADE DOS ALVOS --- */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* Fica 2x2 em tablets */
    gap: 3rem;
  }

  .stat-number {
    font-size: 3rem; /* Diminui um pouco o número para caber melhor */
  }
}

@media (max-width: 600px) {
  .stats-targets {
    padding: 3rem 1.5rem; /* Reduz o respiro lateral no celular */
    margin: 2rem 1rem; /* Margem externa para não colar na borda da tela */
    background-size: 40px 40px; /* Alvos menores no fundo para não poluir */
  }

  .stats-grid {
    grid-template-columns: 1fr; /* Empilha tudo em uma única coluna */
    gap: 2.5rem;
  }

  .stat-number {
    font-size: 3.5rem; /* No celular empilhado, o número pode voltar a ser grande */
  }

  .stat-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }
}

.media-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.media-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* --- ESTILIZAÇÃO DO VÍDEO --- */
.video-wrapper {
  flex: 1.2;
  position: relative;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--glass-border);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff0000; /* Vermelho vibrante para TV */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  z-index: 2;
}

/* --- TEXTO DE APOIO --- */
.media-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-tag {
  color: var(--accent-green);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.media-title {
  color: var(--text-white);
  font-size: 2.5rem;
  line-height: 1.2;
}

.media-description {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

.media-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.m-feat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-white);
  font-weight: 500;
}

.m-feat i {
  color: var(--accent-green);
  width: 1.2rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
  .media-content {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }

  .media-text {
    text-align: center;
    align-items: center;
    width: 100%;
    gap: 0.8rem;
  }

  .media-title {
    font-size: 2.2rem;
  }

  .video-wrapper {
    width: 100%;
  }
}

.testimonials-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quote-icon {
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.testimonial-text {
  color: var(--text-white);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.student-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-green);
}

.student-info h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.student-info span {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsividade */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.blog-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.blog-grid {
  display: grid;
  /* A MÁGICA: Trocamos 'auto-fit' por 'auto-fill' para não esticar o cartão único */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-glass);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-green);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Imagem com efeito de Zoom */
.blog-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.1);
}

/* Etiqueta Flutuante (Glass) */
.blog-category {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(163, 230, 53, 0.9);
  color: #000;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

/* Informações do Post */
.blog-info {
  padding: 2rem;
}

.blog-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-gray);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-info h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s;
}

.blog-card:hover h3 {
  color: var(--accent-green);
}

.blog-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 0.8rem;
}

/* Responsividade */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.contact-section {
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.contact-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem;
}

.unibe-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-white);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-green);
}

.radio-group {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 0;
}

.radio-option {
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

.conditional-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .contact-card {
    padding: 2rem;
  }
}

/* Esconde os cards extras */
.hidden-card {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

/* Classe que o JS vai adicionar para mostrar */
.show-card {
  display: flex !important; /* Mantém o layout de flex do card */
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.show-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Esconde o botão quando tudo for mostrado */
.btn-hidden {
  display: none;
}

.footer-container {
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-gray);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-logo {
  margin-left: 0 !important;
  height: 45px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-contact p {
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--accent-green);
  width: 1.1rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-gray);
  font-size: 0.8rem;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 600px) {
  /* 1. Esconde as colunas de links e contatos */
  .footer-links,
  .footer-contact {
    display: none;
  }

  /* 2. Centraliza o conteúdo da marca que sobrou */
  .footer-content {
    grid-template-columns: 1fr; /* Força uma coluna única */
    text-align: center;
    gap: 0; /* Remove o espaço das colunas invisíveis */
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }

  .footer-logo {
    margin: 0 auto !important;
  }

  .footer-social {
    justify-content: center;
  }

  /* 3. Ajuste do Copyright para ele colar logo abaixo da marca */
  .footer-bottom {
    margin-top: 1rem;
    padding-top: 1.5rem;
  }

  /* 4. Respiro para não colar no menu inferior fixo */
  .footer-container {
    padding-bottom: 90px;
    padding-top: 3rem;
  }
}

/* CORREÇÃO DOS NÚMEROS INVISÍVEIS NO MOBILE */
.stats-targets .stat-number {
  color: #ffffff;
}

.stats-targets .stat-label {
  color: #a0aec0;
}

/* ========================================= */
/* BOTÃO VOLTAR AO TOPO                      */
/* ========================================= */
.btn-voltar-topo {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  color: #0f172a;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9980;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;

  /* A MÁGICA DAS CORES IGUAL AO BOTAO EXPERIMENTAL */
  background: linear-gradient(
    135deg,
    var(--accent-green),
    #10b981,
    #06b6d4,
    var(--accent-green)
  );
  background-size: 300% 300%;
  animation: rgb-flow 5s ease infinite;
}

.btn-voltar-topo:hover {
  transform: translateY(-5px);
}

/* Classe que o JS vai adicionar para mostrar o botão */
.btn-voltar-topo.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ajuste para o celular (não ficar em cima do menu inferior fixo) */
@media (max-width: 1100px) {
  .btn-voltar-topo {
    bottom: 90px;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}

/* ========================================= */
/* GAVETA LATERAL (SUPER BOTÃO DESKTOP)      */
/* ========================================= */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  z-index: 999999;
}

.desktop-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--glass-border);
  z-index: 999999;
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.desktop-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}
.close-drawer {
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
}
.close-drawer:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-green);
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.drawer-content h3 {
  color: var(--text-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: -0.5rem;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.drawer-link:hover {
  color: var(--accent-green);
  transform: translateX(5px);
}
.drawer-content p {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}
.drawer-content i {
  color: var(--accent-green);
  width: 1.2rem;
}
.drawer-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1rem 0;
}
.drawer-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--accent-green), #10b981);
  color: #0f172a;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 1rem;
  transition: all 0.3s;
}
.drawer-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(163, 230, 53, 0.4);
}

/* Esconde no celular (pois lá o botão abre o menu principal) */
@media (max-width: 1100px) {
  .desktop-drawer,
  .drawer-overlay {
    display: none !important;
  }
}

/* ========================================= */
/* FORMULÁRIO DE DESCONTO (GAVETA)           */
/* ========================================= */
.discount-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 0.5rem;
}

.discount-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
  margin-bottom: 0.3rem;
}

.discount-header i {
  width: 1.2rem;
}

.discount-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.discount-desc {
  font-size: 0.8rem !important;
  color: var(--text-gray) !important;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.discount-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.discount-form input,
.discount-form select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.7rem;
  color: var(--text-white);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.discount-form input:focus,
.discount-form select:focus {
  border-color: var(--accent-green);
}

.btn-desconto {
  background: var(--accent-green);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.8rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: all 0.3s ease;
}

.btn-desconto:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(163, 230, 53, 0.3);
}

/* ========================================= /
/ POP-UP (MODAL) DA AULA EXPERIMENTAL       /
/ ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-main);
  border: 1px solid var(--accent-green);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.fechar-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-gray);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.fechar-modal:hover {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.modal-icon {
  color: var(--accent-green);
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 10px rgba(163, 230, 53, 0.4));
}
.modal-header h2 {
  color: var(--text-white);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.modal-header p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.4;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.modal-form input:focus {
  border-color: var(--accent-green);
  background: rgba(255, 255, 255, 0.06);
}

/* ========================================= /
/ PÁGINAS INTERNAS DE CURSOS (EsPCEx, etc)  /
/ ========================================= */

/* 1. O Banner Principal do Curso */
.course-hero-container {
  padding: 6rem 2rem 4rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.course-hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-badge-img {
  width: 25px;
  height: auto;
  filter: grayscale(100%) brightness(1.5);
}

.course-hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================= */
/* BOTÃO GRADE CURRICULAR (PERFEITO NOS 2 TEMAS) */
/* ========================================= */

/* 1. ESTADO PADRÃO (Modo Escuro) */
.secondary-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.5rem;
  background: transparent; /* Fundo transparente */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Borda cinza/branca sutil */
  color: var(--text-white); /* Letra branca */
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

/* Hover no Modo Escuro */
.secondary-button:hover {
  background: rgba(255, 255, 255, 0.05); /* Acende levemente o fundo */
  border-color: var(--accent-green); /* A borda fica verde ao passar o mouse */
  color: var(--accent-green);
  transform: translateY(-3px);
}

/* 2. MODO CLARO (Sol Ativado) */
body.force-light .secondary-button {
  background: transparent;
  border: 1px solid var(--accent-green); /* Borda verde fixa */
  color: var(--accent-green); /* Letra verde fixa */
}

/* Hover no Modo Claro */
body.force-light .secondary-button:hover {
  background: rgba(163, 230, 53, 0.1); /* Fundo verdinho bem translúcido */
  transform: translateY(-3px);
}

/* 2. Seção de Detalhes (Cards de Requisitos e Provas) */
.course-details-section {
  max-width: 1000px;
  margin: 0 auto 6rem auto;
  padding: 0 2rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.info-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.info-icon {
  color: var(--accent-green);
  width: 2rem;
  height: 2rem;
}

.info-header h3 {
  color: var(--text-white);
  font-size: 1.4rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-gray);
  font-size: 1rem;
}

.info-list li i {
  color: var(--accent-green);
  width: 1.2rem;
  flex-shrink: 0;
}

.info-list li strong {
  color: var(--text-white);
}

/* 3. Seção de Diferenciais do Curso */
.course-features {
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  padding: 0 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.feat-item:hover {
  background: rgba(163, 230, 53, 0.05);
  border-color: var(--accent-green);
  transform: translateY(-5px);
}

.feat-item i {
  color: var(--accent-green);
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.feat-item h4 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.feat-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 4. Responsividade do Molde de Curso */
@media (max-width: 768px) {
  .course-hero-container {
    padding: 4rem 1.5rem 3rem;
  }
  .course-hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .secondary-button,
  .cta-button {
    width: 100%;
  }
}

/* AJUSTES DO TÍTULO PRINCIPAL (CURSOS) */
.main-title {
  font-size: 3.5rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.highlight-green {
  color: var(--accent-green);
}

.description {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  .description {
    font-size: 1rem;
  }
}

/* ========================================= */
/* GRADE CURRICULAR (CURSOS)                 */
/* ========================================= */
.curriculum-section {
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  padding: 0 2rem;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.subject-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.subject-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.subject-card h4 {
  color: var(--text-white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent-green);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.subject-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.subject-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.subject-card li i {
  color: var(--accent-green);
  width: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ========================================= */
/* SISTEMA DE MINI SIMULADO (QUIZ)           */
/* ========================================= */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.question-text {
  color: var(--text-white);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem;
  color: var(--text-gray);
  text-align: left;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-green);
  color: var(--text-white);
  transform: translateX(5px);
}

.option-letter {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #fff;
}
.option-btn.correct .option-letter {
  background: #10b981;
}

.option-btn.wrong {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
}
.option-btn.wrong .option-letter {
  background: #ef4444;
}

.feedback-container {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.feedback-container.success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
  color: #d1fae5;
}
.feedback-container.error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  color: #fee2e2;
}

@media (max-width: 768px) {
  .quiz-container {
    padding: 1.5rem;
  }
  .question-text {
    font-size: 1.1rem;
  }
  .option-btn {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* ========================================= */
/* CORREÇÃO DE CONTRASTE - TEMA CLARO (QUIZ) */
/* ========================================= */

/* 1. Para quando o usuário clica no botão (Sol) no Desktop */
body.force-light .option-btn.correct { color: #065f46; font-weight: 500; }
body.force-light .option-btn.wrong { color: #991b1b; font-weight: 500; }
body.force-light .feedback-container.success { color: #065f46; background: rgba(16, 185, 129, 0.2); }
body.force-light .feedback-container.error { color: #991b1b; background: rgba(239, 68, 68, 0.2); }
body.force-light .option-btn.correct .option-letter,
body.force-light .option-btn.wrong .option-letter { color: #ffffff; }

/* 2. Para quando o celular ativa o Modo Claro automaticamente */
@media (max-width: 768px) {
    body:not(.force-dark) .option-btn.correct { color: #065f46; font-weight: 500; }
    body:not(.force-dark) .option-btn.wrong { color: #991b1b; font-weight: 500; }
    body:not(.force-dark) .feedback-container.success { color: #065f46; background: rgba(16, 185, 129, 0.2); }
    body:not(.force-dark) .feedback-container.error { color: #991b1b; background: rgba(239, 68, 68, 0.2); }
    body:not(.force-dark) .option-btn.correct .option-letter,
    body:not(.force-dark) .option-btn.wrong .option-letter { color: #ffffff; }
}

/* ========================================= */
/* ESTILOS DOS CAMPOS DO FORMULÁRIO FINAL    */
/* ========================================= */
.lead-input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05); /* Fundo bem suave no modo escuro */
  color: var(--text-white);
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.lead-input:focus {
  border-color: var(--accent-green);
  background: rgba(255, 255, 255, 0.1);
}

/* Ajuste automático para o Tema Claro (Sol ativado) */
body.force-light .lead-input {
  background: transparent; /* Fundo invisível para mesclar com o branco */
  border-color: #ccc;
  color: #333; /* Texto escuro para o usuário conseguir ler o que digita */
}

body.force-light .lead-input:focus {
  border-color: var(--accent-green);
  background: #f9f9f9;
}

/* ========================================= */
/* FAQ (SANFONA DE PERGUNTAS)                */
/* ========================================= */
.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  border-color: var(--accent-green);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item summary {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none; /* Esconde a setinha feia nativa do HTML */
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none; /* Esconde no Chrome/Safari antigos */
}

/* O texto da resposta que aparece quando abre */
.faq-item p {
  color: var(--text-gray);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--glass-border);
  animation: fadeInDown 0.4s ease; /* Uma pequena animação de surgimento */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* O ícone roda quando a sanfona abre */
.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-green);
  transition: transform 0.3s ease;
}

.faq-item summary .faq-icon {
  color: var(--text-gray);
  transition: transform 0.3s ease;
}

/* Modo claro (Contraste) */
body.force-light .faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
}
body.force-light .faq-item summary {
  color: #1e293b;
}

/* ========================================= */
/* CORREÇÃO DEFINITIVA: OPÇÕES DO SELECT     */
/* ========================================= */

/* Garante fundo escuro e texto branco no Modo Escuro */
select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* Garante fundo branco e texto escuro no Modo Claro */
body.force-light select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* ========================================= */
/* CORREÇÃO DE LEITURA E CONTRASTE DA GAVETA */
/* ========================================= */

/* Mantemos apenas o texto de dica mais legível no modo escuro, sem mexer no fundo! */
.discount-form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* Ajustes EXCLUSIVOS para o Modo Claro (Sol Ativado) */
body.force-light .discount-box {
  background: rgba(163, 230, 53, 0.15); /* Fundo verde super suave */
  border-color: var(--accent-green);
}

body.force-light .discount-form input,
body.force-light .discount-form select {
  background: #ffffff; /* Campos brancos para leitura */
  border: 1px solid #cbd5e1;
  color: #0f172a; /* Texto digitado escuro */
}

body.force-light .discount-form input::placeholder {
  color: #64748b; /* Dica escura */
}

body.force-light .drawer-link {
  color: #0f172a; /* Link do portal escuro */
}

body.force-light .close-drawer {
  color: #0f172a; /* X de fechar escuro */
}

/* ========================================= */
/* PÁGINA DE UNIDADES (CARTÕES E MAPA)       */
/* ========================================= */

.units-section {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
}

.units-grid {
  display: grid;
  /* A MÁGICA: auto-fill garante que o card mantenha o tamanho original mesmo se estiver sozinho */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  align-items: start; /* Impede que ele estique para baixo também */
}

/* Deixando o botão sempre alinhado no fundo do cartão */
.unit-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.unit-info .cta-button {
  margin-top: auto;
}

.unit-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.unit-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-green);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.unit-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.unit-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.unit-card:hover .unit-img-wrapper img {
  transform: scale(1.08);
}

.unit-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-green);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.unit-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1; /* Faz o conteúdo esticar para os botões alinharem no fundo */
}

.unit-info h3 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.unit-address,
.unit-phone {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.unit-address i,
.unit-phone i {
  color: var(--accent-green);
  width: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.unit-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--glass-border);
}

.unit-amenities span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-white);
}

.unit-amenities span i {
  width: 1rem;
  color: var(--accent-green);
}

/* MODO CLARO PARA AS UNIDADES */
body.force-light .unit-amenities span {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

/* ========================================= */
/* BARRA DE PESQUISA INTELIGENTE (UNIDADES)  */
/* ========================================= */
.search-filter-container {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  display: flex;
  gap: 1.5rem;
}

.search-box,
.filter-box {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  flex: 1;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.search-box:focus-within,
.filter-box:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.2);
}

.search-box input,
.filter-box select {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  margin-left: 1rem;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-gray);
}

/* Classe mágica para esconder os cartões na hora da busca */
.unit-card.escondido {
  display: none !important;
}

/* Modo claro (Sol) */
body.force-light .search-box input,
body.force-light .filter-box select {
  color: #0f172a;
}
body.force-light .search-box input::placeholder {
  color: #64748b;
}

/* Responsividade: Um embaixo do outro no celular */
@media (max-width: 768px) {
  .search-filter-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========================================= */
/* VÍDEO TOUR (PÁGINA DE UNIDADES)           */
/* ========================================= */
.tour-video-wrapper {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  /* Animação para sumir suavemente */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-video-inner {
  position: relative;
  padding-bottom: 56.25%; /* Mantém a proporção perfeita de cinema 16:9 */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tour-video-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tour-video-text h3 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tour-video-text p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* Classe mágica para esconder o vídeo quando o estado for selecionado */
.tour-video-wrapper.escondido {
  display: none !important;
}

/* Modo Claro */
body.force-light .tour-video-text h3 {
  color: #0f172a;
}

/* ========================================= */
/* BARRA DE FILTRO AVANÇADO (BLOG)           */
/* ========================================= */
.blog-filter-bar {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 2rem;
  display: flex;
  gap: 1rem;
}

.blog-filter-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
}

.blog-filter-item:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.2);
}

.blog-filter-item i {
  color: var(--text-gray);
  margin-right: 0.8rem;
  width: 1.2rem;
}

/* O campo de pesquisa ocupava o dobro do espaço. Agora deixamos mais equilibrado! */
.search-item {
  flex: 1.2; /* Fica só um pouquinho maior que os filtros, mantendo a harmonia */
}

.select-item {
  flex: 1;
}

/* Garante um espaço de respiro entre a lupa e o texto digitado */
.search-item input {
  cursor: text;
  margin-left: 0.8rem;
}

.blog-filter-item input,
.blog-filter-item select {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.search-item input {
  cursor: text;
}

.search-item input::placeholder {
  color: var(--text-gray);
}

/* Esconder os cartões via JS */
.blog-card.escondido {
  display: none !important;
}

/* --- Ajustes do Modo Claro --- */
body.force-light .blog-filter-item input,
body.force-light .blog-filter-item select {
  color: #0f172a !important;
}

body.force-light .search-item input::placeholder {
  color: #64748b;
}

/* Responsividade: Empilha tudo no celular */
@media (max-width: 900px) {
  .blog-filter-bar {
    flex-direction: column;
  }
  .search-item,
  .select-item {
    flex: none;
    width: 100%;
  }
}

/* ========================================= */
/* PÁGINA INTERNA DO ARTIGO (BLOG POST)      */
/* ========================================= */

/* Centraliza a leitura e estreita a página para os olhos não cansarem */
.article-container {
  max-width: 830px;
  margin: 2rem auto 4rem auto;
  padding: 0 2rem;
}

/* Caminho de navegação (Breadcrumb) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--accent-green);
}

.breadcrumb .divider {
  width: 1rem;
  opacity: 0.5;
}

.breadcrumb span {
  color: var(--accent-green);
  font-weight: 600;
}

/* Título e Info do Post */
.article-title {
  color: var(--text-white);
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-white);
}

.meta-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.meta-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.meta-details i {
  width: 1rem;
  margin-right: 0.3rem;
}

.meta-dot {
  opacity: 0.3;
}

/* Imagem Grande de Capa */
.article-cover {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Formatação do Texto do Artigo */
.article-content {
  color: var(--text-white); /* No modo claro, vira preto automaticamente */
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(
    --text-gray
  ); /* No modo claro, vira cinza escuro de leitura automaticamente */
}

.article-content h2 {
  font-size: 1.8rem;
  color: var(--accent-green);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-content strong {
  color: var(--text-white); /* O negrito vai acompanhar o tema */
}

/* Citação (Bloco em destaque) */
.article-content blockquote {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent-green);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-white);
  font-size: 1.2rem;
}

/* Lista de Tópicos */
.article-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.8rem;
  color: var(--text-gray); /* Acompanha o tema */
}

.article-content li strong {
  color: var(--text-white);
}

/* Garante que a caixa de citação fique clara no tema Sol */
body.force-light .article-content blockquote {
  background: #f1f5f9;
}

/* Caixa de Vendas no meio do texto */
.article-cta-box {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.article-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Compartilhamento no Rodapé */
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
}

.share-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-gray);
  font-weight: 600;
}

.share-box .social-icons a {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.share-box .social-icons a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Ajustes do Modo Claro --- */
body.force-light .breadcrumb {
  color: #64748b;
}
body.force-light .article-title {
  color: #0f172a;
}
body.force-light .meta-author {
  color: #334155;
}
body.force-light .article-content p {
  color: #334155;
}
body.force-light .article-content h2 {
  color: #0f172a;
}
body.force-light .article-content strong {
  color: #000;
}
body.force-light .article-content li {
  color: #334155;
}
body.force-light .article-content blockquote {
  background: #f8fafc;
  color: #1e293b;
  border-color: #0f172a;
}
body.force-light .article-cta-box {
  background: #f1f5f9;
  border-color: var(--accent-green);
}

/* Responsividade */
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  .article-cover {
    height: 250px;
    margin-bottom: 2rem;
  }
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-footer {
    justify-content: center;
  }
  .share-box {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ========================================= */
/* CORREÇÃO: LEITURA DO ARTIGO NO MODO CLARO */
/* ========================================= */
body.force-light .article-content p,
body.force-light .article-content li {
  color: #334155 !important; /* Cinza escuro perfeito para leitura longa */
}

body.force-light .article-content strong {
  color: #0f172a !important; /* Preto forte para o negrito */
}

body.force-light .article-content blockquote {
  color: #1e293b !important;
  background-color: #f1f5f9 !important;
  border-left-color: var(--accent-green) !important;
}



/* ============================================== */
/* DESTRUIDOR DE SELECT NATIVO (FORÇA MÁXIMA)     */
/* ============================================== */

div.blog-filter-item select {
  /* 1. Arranca o estilo feio do Windows/Chrome de vez */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  
  /* 2. Força o fundo transparente para ver a sua borda bonita */
  background-color: transparent !important;
  color: var(--text-white) !important;
  border: none !important;
  outline: none !important;
  
  /* 3. Desenha uma setinha cinza perfeita direto no código */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 1.2em !important;
  padding-right: 2.5rem !important;
}

div.blog-filter-item select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* --- Ajuste quando o Modo Claro for ativado --- */
body.force-light div.blog-filter-item select {
  color: #0f172a !important;
  /* Troca a setinha para preto */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

body.force-light div.blog-filter-item select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* =======================================================
   O FORMULÁRIO DE COMENTÁRIOS DO BLOG 
   ======================================================= */

/* Textos e linhas puxam as variáveis inteligentes do :root */
#respond { 
    border-top: 1px solid var(--glass-border); 
    padding-top: 2rem; 
    margin-top: 2rem; 
}
/* Título e Descrição (Ajuste de Harmonia) */
#respond #reply-title { 
    color: var(--text-white) !important; 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 0.2rem !important; /* Tira o buraco debaixo do título */
    display: block;
}
#respond .comment-notes {
    color: var(--text-gray) !important;
    font-size: 0.95rem;
    margin-bottom: 1.5rem !important; /* Empurra os campos para baixo, dando respiro */
    display: block;
}
#respond .comment-form label { 
    color: var(--text-white) !important; 
    font-weight: 600; 
    display: block; 
    margin-bottom: 0.5rem; 
}

/* O Checkbox Rebelde (Ajuste de Alinhamento e Posição) */
#respond .comment-form-cookies-consent { 
    display: flex !important; 
    align-items: center !important; 
    gap: 0.5rem !important; /* Espaço entre o quadrado e o texto */
    margin-top: 0.5rem !important;
}
#respond .comment-form-cookies-consent input[type="checkbox"] {
    width: 18px !important; /* Força um tamanho bonitinho no quadrado */
    height: 18px !important;
    margin: 0 !important; /* Remove margens que o WP inventa */
    flex-shrink: 0; /* Impede o quadradinho de espremer se a tela for pequena */
}
#respond .comment-form-cookies-consent label {
    margin: 0 !important; /* Alinha perfeitamente com o quadrado */
    color: var(--text-gray) !important;
    font-weight: normal !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
}

/* CAIXAS DE TEXTO 
  Cópia exata da inteligência do seu campo .lead-input
*/
#respond #author, 
#respond #email, 
#respond #url, 
#respond #comment {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-white) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

#respond #author:focus, 
#respond #email:focus, 
#respond #url:focus, 
#respond #comment:focus {
    border-color: var(--accent-green) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* BOTÃO DE PUBLICAR (Design RGB/Verde Unibe) */
#respond .form-submit #submit {
    background: linear-gradient(135deg, var(--accent-green), #10b981) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(163, 230, 53, 0.3) !important;
    margin-top: 1rem;
}
#respond .form-submit #submit:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: 0 8px 25px rgba(163, 230, 53, 0.5) !important;
}

/* INVERSÃO PARA MODO CLARO (O FORMULÁRIO) */
body.force-light #respond #author, 
body.force-light #respond #email, 
body.force-light #respond #url, 
body.force-light #respond #comment {
    background: transparent !important;
    border-color: #ccc !important;
    color: #333 !important;
}
body.force-light #respond #author:focus, 
body.force-light #respond #email:focus, 
body.force-light #respond #url:focus, 
body.force-light #respond #comment:focus {
    border-color: var(--accent-green) !important;
    background: #f9f9f9 !important;
}
body.force-light #respond .comment-notes,
body.force-light #respond .comment-form-cookies-consent label {
    color: #64748b !important;
}

@media (max-width: 768px) {
    body:not(.force-dark) #respond #author, 
    body:not(.force-dark) #respond #email, 
    body:not(.force-dark) #respond #url, 
    body:not(.force-dark) #respond #comment {
        background: transparent !important;
        border-color: #ccc !important;
        color: #333 !important;
    }
    body:not(.force-dark) #respond #author:focus, 
    body:not(.force-dark) #respond #email:focus, 
    body:not(.force-dark) #respond #url:focus, 
    body:not(.force-dark) #respond #comment:focus {
        border-color: var(--accent-green) !important;
        background: #f9f9f9 !important;
    }
    body:not(.force-dark) #respond .comment-notes,
    body:not(.force-dark) #respond .comment-form-cookies-consent label {
        color: #64748b !important;
    }
}

/* =======================================================
   A LISTA DE COMENTÁRIOS IMPRESSOS (OS CARTÕES BLINDADOS) 
   ======================================================= */

/* Título "X respostas para..." */
.comments-title {
    color: var(--text-white) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

/* 1. MATA OS NÚMEROS (Cobre todas as classes que o WP pode inventar) */
.comments-area ol, .comments-area ul,
ol.commentlist, ul.commentlist, 
ol.comment-list, ul.comment-list,
li.comment, .comment {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. CRIA O "CARTÃO" APENAS NO CORPO DO TEXTO (Evita o sombreamento escuro) */
li.comment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    box-shadow: none !important;
}

.comment-body {
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    padding: 2rem !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* 3. ALINHAMENTO DA FOTO DE PERFIL E NOME */
.comment-author {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
}
.comment-author .avatar {
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    border: 2px solid var(--accent-green) !important;
    margin: 0 !important; 
    padding: 0 !important;
}

/* Transforma qualquer link do autor em texto branco */
.comment-author, .comment-author a, .comment-author b, .comment-author cite, .comment-author span {
    color: var(--text-white) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    font-style: normal !important;
    text-decoration: none !important;
}
.comment-author a:hover {
    color: var(--accent-green) !important;
}

/* Esconde a palavra feia "disse:" */
.comment-author .says { display: none !important; }

/* 4. A DATA DE ENVIO */
.comment-meta {
    margin-bottom: 1.5rem !important; 
    font-size: 0.85rem !important;
}
.comment-meta a {
    color: var(--text-gray) !important;
    text-decoration: none !important;
}
.comment-meta a:hover {
    color: var(--accent-green) !important;
}

/* Aviso bonitinho de Moderação */
.comment-awaiting-moderation {
    background: rgba(251, 191, 36, 0.1) !important;
    color: #fbbf24 !important; 
    border-left: 3px solid #fbbf24 !important;
    padding: 0.8rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

/* 5. TEXTO DO COMENTÁRIO E BOTÃO RESPONDER */
.comment-body p {
    color: var(--text-gray) !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important; 
}

.reply {
    margin-top: 1rem !important;
}
.reply a {
    display: inline-block !important;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}
.reply a:hover {
    background: var(--accent-green) !important;
    color: #0f172a !important;
}

/* 6. INDENTAÇÃO PARA AS RESPOSTAS DAS RESPOSTAS */
ol.children, ul.children, .children {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 2.5rem !important;
    margin-top: 1.5rem !important;
    border-left: 2px dashed var(--glass-border) !important;
}

/* =======================================================
   INVERSÃO PARA MODO CLARO (A LISTA DE COMENTÁRIOS) 
   ======================================================= */
body.force-light .comments-title { color: #0f172a !important; }
body.force-light .comment-body { background: #ffffff !important; border-color: #cbd5e1 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; }
body.force-light .comment-author, body.force-light .comment-author a, body.force-light .comment-author cite, body.force-light .comment-author b { color: #0f172a !important; }
body.force-light .comment-body p { color: #334155 !important; }
body.force-light .comment-meta a { color: #64748b !important; }
body.force-light .children { border-left-color: #cbd5e1 !important; }

/* REGRAS EXCLUSIVAS PARA CELULAR (Evita esmagamento) */
@media (max-width: 768px) {
    body:not(.force-dark) .comments-title { color: #0f172a !important; }
    body:not(.force-dark) .comment-body { background: #ffffff !important; border-color: #cbd5e1 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;}
    body:not(.force-dark) .comment-author, body:not(.force-dark) .comment-author a, body:not(.force-dark) .comment-author cite, body:not(.force-dark) .comment-author b { color: #0f172a !important; }
    body:not(.force-dark) .comment-body p { color: #334155 !important; }
    body:not(.force-dark) .comment-meta a { color: #64748b !important; }
    body:not(.force-dark) .children { border-left-color: #cbd5e1 !important; }
    
    /* Diminui o espaçamento lateral no celular para não amassar o texto */
    ol.children, ul.children, .children {
        padding-left: 1rem !important;
    }
    .comment-body {
        padding: 1.5rem !important; 
    }
}






/* =======================================================
   PÁGINAS INSTITUCIONAIS (TERMOS, PRIVACIDADE, ETC)
   ======================================================= */
.legal-container {
    max-width: 900px;
    margin: 4rem auto 6rem auto;
    padding: 0 2rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.legal-title {
    color: var(--text-white);
    font-size: 2.5rem;
    font-weight: 800;
}

/* A Caixa de Vidro onde vai o texto */
.legal-content {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Estilização dos textos lá de dentro */
.legal-content h2, 
.legal-content h3 {
    color: var(--accent-green);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.legal-content p { margin-bottom: 1.5rem; }
.legal-content ul, .legal-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--text-white); }

/* --- INVERSÃO PARA O MODO CLARO --- */
body.force-light .legal-title { color: #0f172a; }
body.force-light .legal-content { 
    background: #ffffff; 
    border-color: #cbd5e1; 
    color: #334155; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
body.force-light .legal-content strong { color: #0f172a; }

/* Responsividade (Celular) */
@media (max-width: 768px) {
    .legal-container { margin-top: 2rem; padding: 0 1.5rem; }
    .legal-title { font-size: 2rem; }
    .legal-content { padding: 2rem 1.5rem; }
    
    body:not(.force-dark) .legal-title { color: #0f172a; }
    body:not(.force-dark) .legal-content { background: #ffffff; border-color: #cbd5e1; color: #334155; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
    body:not(.force-dark) .legal-content strong { color: #0f172a; }
}




/* ======================================================= */
/* REFINAMENTOS FINAIS PÓS-LANÇAMENTO (AJUSTES FINOS)      */
/* ======================================================= */

/* 1. REMOVER O AZUL DOS TELEFONES NO IPHONE (SAFARI) */
/* Obriga o link automático do iOS a herdar a cor do nosso texto (Branco ou Escuro) */
a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* 2. ESPAÇAMENTOS DA PÁGINA DE CURSOS (ESCOLHA SUA FARDA) */
.course-hero-container {
    /* Topo era 6rem (diminuímos um pouco), base era 4rem (diminuímos bastante) */
    padding: 4rem 2rem 1rem !important; 
}

.courses-section {
    /* Topo era 4rem, diminuímos para aproximar os cartões do texto */
    margin-top: 1.5rem !important; 
}

/* 3. CENTRALIZAR ÍCONES SOCIAIS NA GAVETA MOBILE */
@media (max-width: 1100px) {
    .social-icons {
        /* Remove o recuo direito que era exclusivo do Desktop */
        padding-right: 0 !important; 
        justify-content: center !important;
        width: 100% !important;
    }
}



/* ======================================================= */
/* 4. CORREÇÃO DO FORMULÁRIO DE CONTATO (IPHONE/SAFARI)    */
/* ======================================================= */

/* Padroniza o tamanho da fonte em absolutamente todos os campos */
.form-group input,
.form-group select,
.form-group textarea {
    font-size: 1rem !important;
}

/* Estiliza os textos de "Dica" (Placeholders) para ficarem com a mesma cor e opacidade */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray) !important;
    font-size: 1rem !important;
    opacity: 0.7 !important;
}

/* Destruidor do Select Nativo da Apple */
.form-group select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-gray) !important; /* Inicia com a mesma cor do placeholder */
    
    /* Injeta a nossa própria setinha minimalista em SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.2em !important;
    padding-right: 2.5rem !important; /* Espaço para o texto não encostar na seta */
}

/* Quando o usuário preencher algo, o texto do Select acende para branco */
.form-group select:focus, 
.form-group select:valid {
    color: var(--text-white) !important;
}

/* Ajustes de contraste para o Tema Claro (Sol ativado) */
body.force-light .form-group select {
    background-color: transparent !important;
    color: #333 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
body.force-light .form-group input::placeholder,
body.force-light .form-group textarea::placeholder {
    color: #64748b !important;
}




/* ======================================================= */
/* BANNER DE COOKIES (LGPD)                                */
/* ======================================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Começa escondido */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 30px; /* Sobe suavemente */
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-icon i {
    color: var(--accent-green);
    width: 35px;
    height: 35px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    color: var(--text-white);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--accent-green);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.btn-cookie-aceitar {
    background: var(--accent-green);
    color: #0f172a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-cookie-recusar {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-cookie-aceitar:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(163, 230, 53, 0.3); }

/* Ajuste para celular */
@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; flex-direction: column; }
    .cookie-banner.show { bottom: 100px; } /* Fica acima da bottom-nav mobile */
}