/* ============================================================
   BOLSAS DIGITAIS — Estilos das Landing Pages
   lp.css: header LP, hero+form, cursos, depoimentos, polo,
           FAQ, CTA final, footer LP, barra mobile WhatsApp
   ============================================================ */

/* ── Header LP (sticky, minimalista) ── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fundo-branco);
  box-shadow: var(--shadow-sm);
}

.lp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: var(--md);
}

.lp-header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sm);
}

.lp-header-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--azul-primario);
  line-height: 1;
}

.lp-header-logo-sub {
  font-size: 0.7rem;
  color: var(--texto-secundario);
  display: none;
}

@media (min-width: 640px) {
  .lp-header-logo-sub { display: block; }
}

.lp-header-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--verde-cta);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.lp-header-whatsapp:hover {
  color: var(--verde-hover);
}

.lp-header-whatsapp svg {
  flex-shrink: 0;
}

/* ── Barra de urgência ── */
.barra-urgencia {
  background: var(--azul-escuro);
  color: var(--texto-claro);
  text-align: center;
  padding: 8px var(--md);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
}

.barra-urgencia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-pulsa {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: pulsar-badge 1.8s ease-in-out infinite;
}

@keyframes pulsar-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero LP ── */
.lp-hero {
  background: #0D2E6E;
  padding: var(--2xl) 0;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay acima das fotos */
.lp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(13,46,110,0.88) 0%, rgba(26,79,186,0.82) 100%);
  pointer-events: none;
}

/* Dot pattern acima do gradient */
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Slideshow de fundo */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.ativo {
  opacity: 1;
}


.lp-hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--2xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .lp-hero .container {
    grid-template-columns: 60fr 40fr;
    align-items: start;
    gap: var(--3xl);
  }
}

/* Copy lado esquerdo — min-width: 0 impede que o carrossel de vídeos alargue a coluna */
.lp-hero-copy {
  color: var(--texto-claro);
  min-width: 0;
}

.lp-hero-copy .badge {
  margin-bottom: var(--md);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.2);
}

.lp-hero-copy h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--texto-claro);
  margin-bottom: var(--md);
  line-height: 1.15;
}

.lp-hero-copy .hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--xl);
  max-width: 520px;
}

/* Lista de bullets */
.lp-beneficios-lista {
  list-style: none;
  margin-bottom: var(--xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-beneficios-lista li {
  display: flex;
  align-items: flex-start;
  gap: var(--sm);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.lp-beneficios-lista li::before {
  content: '✅';
  flex-shrink: 0;
  margin-top: 1px;
}

/* Prova social mini */
.prova-social-mini {
  display: flex;
  align-items: center;
  gap: var(--sm);
  margin-bottom: var(--xl);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.prova-social-estrelas {
  color: #FCD34D;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Formulário lado direito */
.lp-form-card {
  background: var(--fundo-branco);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}

.lp-form-header {
  background: var(--azul-primario);
  padding: var(--lg) var(--xl);
  color: var(--texto-claro);
}

.lp-form-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--texto-claro);
  margin-bottom: 4px;
}

.lp-form-header p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Variante laranja (cores da logo Uningá) */
.lp-form-header-laranja {
  background: linear-gradient(135deg, #F8A010 0%, #F87018 50%, #F04812 100%);
}

.lp-form-header-laranja h2 {
  text-shadow: 0 1px 2px rgba(120,30,0,0.35);
}

.lp-form-header-laranja p {
  color: var(--texto-claro);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(120,30,0,0.35);
}

.lp-form-body {
  padding: var(--xl);
}

/* Botão submit */
.btn-submit {
  background: var(--azul-primario);
  color: var(--texto-claro);
  width: 100%;
  height: 52px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-family: var(--font-corpo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  transition: all 0.2s ease;
  margin-bottom: var(--md);
}

.btn-submit:hover:not(:disabled) {
  background: var(--azul-escuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,79,186,0.35);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Segurança */
.form-seguranca {
  text-align: center;
  font-size: 0.8rem;
  color: var(--texto-secundario);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Contador FOMO */
.fomo-contador-wrap {
  margin-top: var(--md);
  padding: 10px var(--md);
  background: #FEF3C7;
  border-radius: var(--radius-btn);
  border-left: 3px solid #F59E0B;
  font-size: 0.85rem;
  color: #92400E;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Barra WhatsApp mobile (dentro do copy do hero) */
.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  background: var(--verde-cta);
  color: var(--texto-claro);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp-hero:hover {
  background: var(--verde-hover);
  transform: translateY(-1px);
}

/* ── Botão Instagram ── */
.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--texto-claro);
}

.btn-instagram:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(188,24,136,0.35);
}

/* Espaçamento entre botões no card de contato */
/* Botões longos ("Falar com o polo de ... no WhatsApp") quebram linha no celular */
.polo-contato-card .btn {
  white-space: normal;
  text-align: center;
}

.polo-contato-card .btn svg {
  flex-shrink: 0;
}

.polo-contato-card .btn + .btn {
  margin-top: 10px;
}

/* ── Barra WhatsApp fixa no mobile ── */
.barra-whatsapp-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--verde-cta);
  padding: 12px var(--md);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

.barra-whatsapp-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  color: var(--texto-claro);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .barra-whatsapp-mobile {
    display: block;
  }
}

/* ── Seção Cursos ── */
.cursos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm);
  margin-bottom: var(--xl);
}

.curso-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  background: var(--azul-claro);
  color: var(--azul-primario);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(26,79,186,0.2);
  transition: all 0.2s;
}

.curso-tag:hover {
  background: var(--azul-primario);
  color: var(--texto-claro);
}

.cursos-ver-todos {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-primario);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cursos-ver-todos:hover {
  text-decoration: underline;
}

/* ── CTA Teste Vocacional ── */
.teste-vocacional-cta {
  margin-top: var(--xl);
  display: flex;
  align-items: center;
  gap: var(--md);
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0D2E6E 0%, #1A4FBA 100%);
  color: var(--texto-claro);
  box-shadow: var(--shadow-md);
}

.teste-vocacional-cta-icone {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.teste-vocacional-cta-texto {
  flex: 1;
  min-width: 0;
}

.teste-vocacional-cta-texto strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.teste-vocacional-cta-texto span {
  font-size: 0.9rem;
  opacity: 0.92;
}

.btn-teste-vocacional {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F8A010 0%, #F87018 50%, #F04812 100%);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(240,72,18,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: pulso-teste-vocacional 2.4s ease-in-out infinite;
}

.btn-teste-vocacional:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(240,72,18,0.6);
  filter: brightness(1.05);
  animation: none;
}

@keyframes pulso-teste-vocacional {
  0%, 100% { box-shadow: 0 6px 20px rgba(240,72,18,0.45), 0 0 0 0 rgba(248,112,24,0.55); }
  50%      { box-shadow: 0 6px 20px rgba(240,72,18,0.45), 0 0 0 10px rgba(248,112,24,0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-teste-vocacional { animation: none; }
}

@media (max-width: 640px) {
  .teste-vocacional-cta {
    flex-direction: column;
    text-align: center;
  }
  .btn-teste-vocacional {
    width: 100%;
  }
}

/* ── Seção Sobre o Polo ── */
.polo-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--xl);
}

/* min-width: 0 evita que filhos de grid vazem em mobile */
.polo-info-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .polo-info-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.polo-mapa {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--borda);
  background: var(--fundo-claro);
  min-height: 280px;
}

.polo-mapa iframe {
  width: 100%;
  max-width: 100%;
  height: 280px;
  border: none;
  display: block;
}

.polo-contato-card {
  background: var(--fundo-branco);
  border-radius: var(--radius-card);
  border: 1px solid var(--borda);
  padding: var(--xl);
  box-shadow: var(--shadow-sm);
}

.polo-contato-card h3 {
  margin-bottom: var(--md);
  color: var(--azul-primario);
}

.polo-contato-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sm);
  margin-bottom: var(--md);
  font-size: 0.9rem;
  color: var(--texto-secundario);
}

.polo-contato-item:last-of-type {
  margin-bottom: var(--xl);
}

.polo-contato-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--azul-primario);
}

.polo-contato-item strong {
  color: var(--texto-principal);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* ── FAQ Accordion ── */
.faq-lista {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--borda);
}

.faq-item:first-child {
  border-top: 1px solid var(--borda);
}

.faq-pergunta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-corpo);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texto-principal);
  text-align: left;
  gap: var(--md);
}

.faq-pergunta:hover {
  color: var(--azul-primario);
}

.faq-icone {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul-primario);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s;
}

.faq-resposta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-resposta p {
  padding-bottom: var(--lg);
  color: var(--texto-secundario);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

.faq-item.aberto .faq-icone {
  transform: rotate(45deg);
  background: var(--azul-primario);
  color: var(--texto-claro);
}

.faq-item.aberto .faq-resposta {
  max-height: 400px;
}

/* ── CTA Final ── */
.lp-cta-final {
  background: linear-gradient(135deg, #0D2E6E 0%, #1A4FBA 100%);
  padding: var(--3xl) 0;
  position: relative;
  overflow: hidden;
}

.lp-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.lp-cta-final .container {
  position: relative;
  text-align: center;
}

.lp-cta-final h2 {
  color: var(--texto-claro);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: var(--xl);
}

.lp-cta-final-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
  justify-content: center;
}

/* ── Footer LP (minimalista) ── */
.lp-footer {
  background: var(--azul-escuro);
  padding: var(--lg) 0;
}

.lp-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sm);
  text-align: center;
}

@media (min-width: 640px) {
  .lp-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.lp-footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--texto-claro);
}

.lp-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.lp-footer-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.lp-footer-link:hover {
  color: var(--texto-claro);
}

/* ── Como Funciona (LP) ── */
.lp-passos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 768px) {
  .lp-passos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Seção depoimentos LP ── */
.lp-depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 768px) {
  .lp-depoimentos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Ajuste de padding nas LPs para barra mobile ── */
@media (max-width: 1023px) {
  body {
    padding-bottom: 56px;
  }
}

/* ── Seção Cursos em cards (Conheça nossos cursos) ── */
.cursos-cards-titulo {
  text-align: left;
  margin-bottom: var(--xl);
}

.cursos-cards-titulo h2 {
  color: var(--azul-escuro);
}

.cursos-cards-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sucesso);
  margin-bottom: var(--xs);
}

.cursos-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 640px) {
  .cursos-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cursos-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.curso-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--fundo-branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.curso-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.curso-card-foto {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--azul-claro), #D1DDF7);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curso-card-foto-placeholder {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--azul-primario);
  opacity: 0.7;
}

.curso-card-corpo {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 36px var(--lg) var(--lg);
}

.curso-card-icone {
  position: absolute;
  top: -28px;
  left: var(--lg);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--fundo-branco);
  background: var(--sucesso);
  color: var(--texto-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.curso-card:nth-child(1) .curso-card-icone,
.curso-card:nth-child(3) .curso-card-icone {
  background: var(--azul-primario);
}

.curso-card-icone svg {
  width: 26px;
  height: 26px;
}

.curso-card h3 {
  font-size: 1.15rem;
  color: var(--azul-primario);
  margin-bottom: var(--sm);
}

.curso-card p {
  font-size: 0.9rem;
  color: var(--texto-secundario);
  line-height: 1.5;
  margin-bottom: var(--md);
}

.curso-card-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--lg);
  font-size: 0.9rem;
  color: var(--texto-principal);
}

.curso-card-lista li {
  display: flex;
  align-items: flex-start;
  gap: var(--sm);
  line-height: 1.4;
}

.curso-card-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--sucesso);
}

.curso-card-btn {
  margin-top: auto;
  white-space: normal;
  text-align: center;
  font-size: 0.9rem;
  padding: 12px 16px;
  line-height: 1.3;
  background: var(--azul-escuro);
}

/* ── Header LP com logo Uningá centralizada (mesmo padrão da home) ── */
.lp-header .container:has(.lp-header-uninga) {
  position: relative;
}

.lp-header-uninga {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  overflow: hidden; /* a PNG tem muita margem branca: corta o excesso para não cobrir a barra abaixo */
  text-decoration: none;
  line-height: 0;
}

.lp-header-uninga-img {
  height: 208px;
  width: auto;
}

@media (max-width: 639px) {
  .lp-header .container:has(.lp-header-uninga) {
    flex-wrap: wrap;
    padding-top: var(--sm);
    padding-bottom: var(--sm);
    row-gap: var(--sm);
    column-gap: 0;
  }

  .lp-header-uninga {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    overflow: visible;
    width: 100%;
    display: flex;
    justify-content: center;
    order: -1;
  }

  .lp-header-uninga-img {
    height: 110px;
    margin-top: -16px;
    margin-bottom: -16px;
  }
}

/* ── Aviso de vagas acima do formulário ── */
.lp-form-coluna {
  min-width: 0;
}

.form-vagas-aviso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  margin-bottom: var(--md);
  padding: 10px var(--md);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--texto-claro);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

/* Uma linha só: "VAGAS ABERTAS" forte + "SEMESTRE 2027.1" mais leve, mesmo tamanho */
.form-vagas-texto {
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 4.9cqi, 1.05rem); /* acompanha a largura da caixa (texto ≈ 19,4× a fonte) */
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.95;
}

.form-vagas-texto strong {
  font-weight: 800;
  margin-right: 0.35em;
}

/* Bolinha grande no canto esquerdo da caixa, afastada do texto (que segue centralizado) */
.form-vagas-aviso {
  position: relative;
  container-type: inline-size;
  padding-left: 64px;
  padding-right: 24px;
}

.form-vagas-aviso .badge-pulsa {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  box-shadow: 0 0 12px rgba(74,222,128,0.6);
}

@media (max-width: 639px) {
  .form-vagas-aviso {
    padding-left: 52px;
    padding-right: 12px;
  }

  .form-vagas-aviso .badge-pulsa {
    left: 14px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
  }
}

/* ── Barra de cursos em destaque (letreiro correndo para a direita) ── */
.barra-cursos-destaque {
  display: block;
  padding: 4px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.barra-cursos-trilho {
  display: flex;
  width: max-content;
  animation: barra-cursos-letreiro 40s linear infinite;
}

.barra-cursos-grupo {
  display: flex;
  flex-shrink: 0;
}

.barra-cursos-grupo span {
  padding: 0 4rem;
  white-space: nowrap;
}

/* 4 grupos idênticos: desloca metade do trilho e reinicia sem emenda */
@keyframes barra-cursos-letreiro {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 639px) {
  .barra-cursos-destaque { font-size: 1.1rem; }
  .barra-cursos-grupo span { padding: 0 2.5rem; }
}

/* Quem pede menos movimento (inclusive economia de bateria) vê o letreiro em metade da velocidade */
@media (prefers-reduced-motion: reduce) {
  /* !important vence a regra global do style.css que zera todas as animações */
  .barra-cursos-trilho { animation-duration: 80s !important; animation-iteration-count: infinite !important; }
}

/* ── Vídeos dos cursos no hero ── */
.hero-videos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--md);
  margin-bottom: var(--xl);
  max-width: 600px;
}

/* No desktop o trilho não existe para o layout: os cards ficam direto no grid */
.hero-videos-trilho {
  display: contents;
}

/* Cópias usadas só no letreiro do celular (criadas pelo videos.js) */
.hero-video-card[data-copia] {
  display: none;
}

.hero-video-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: none;
  border-radius: 14px;
  background: var(--azul-claro);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: var(--azul-escuro);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background-color: #D1DDF7;
  background-size: cover;
  background-position: center;
}

/* Escurece a base para o botão play aparecer sobre qualquer imagem */
.hero-video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,46,110,0.45), transparent 50%);
}

.hero-video-play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--azul-primario);
  border: 2px solid var(--texto-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(26,79,186,0.35), 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}

/* Triângulo centralizado pelo centro óptico (path já compensado) */
.hero-video-play svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.hero-video-card:hover,
.hero-video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

.hero-video-card:hover .hero-video-play,
.hero-video-card:focus-visible .hero-video-play {
  transform: scale(1.1);
  background: var(--azul-escuro);
}

.hero-video-card:focus-visible {
  outline: 3px solid var(--amarelo-destaque);
  outline-offset: 2px;
}

.hero-video-legenda {
  padding: 8px 4px 4px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--texto-secundario);
}

.hero-video-legenda strong {
  display: block;
  font-size: 0.85rem;
  color: var(--azul-escuro);
}

/* Celular: fileira rolável que anda sozinha (videos.js) e aceita arrastar com o dedo */
@media (max-width: 639px) {
  .hero-videos {
    display: block;
    overflow-x: auto;
    max-width: none;
    margin-left: calc(var(--md) * -1);
    margin-right: calc(var(--md) * -1);
    padding: 6px 0 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero-videos::-webkit-scrollbar { display: none; }

  .hero-videos-trilho {
    display: flex;
    width: max-content;
  }

  .hero-videos:not(.livre) .hero-videos-trilho {
    will-change: transform;
  }

  /* Depois da primeira interação: rolagem livre encaixando um vídeo por vez */
  .hero-videos.livre {
    scroll-snap-type: x mandatory;
  }

  .hero-videos.livre .hero-video-card {
    scroll-snap-align: start;
  }

  .hero-video-card,
  .hero-video-card[data-copia] {
    display: flex;
    flex: 0 0 150px;
    margin-right: 12px; /* margem (não gap) para o loop fechar exatamente na metade */
  }

  .hero-video-card:hover,
  .hero-video-card:focus-visible {
    transform: none;
  }

  .hero-video-legenda {
    font-size: 0.68rem;
  }

  .hero-video-legenda strong {
    font-size: 0.8rem;
  }

  .hero-video-play {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    box-shadow: 0 0 0 4px rgba(26,79,186,0.35), 0 4px 12px rgba(0,0,0,0.3);
  }

  .hero-video-play svg {
    width: 22px;
    height: 22px;
  }
}

/* Modal do vídeo */
.video-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
}

.video-modal::backdrop {
  background: rgba(5,15,40,0.85);
  backdrop-filter: blur(4px);
}

.video-modal-caixa {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sm);
}

.video-modal-player {
  display: block;
  max-height: 80vh;
  max-width: 92vw;
  border-radius: var(--radius-card);
  background: #000;
}

.video-modal-titulo {
  margin: 0;
  color: var(--texto-claro);
  font-weight: 600;
  font-size: 0.95rem;
}

.video-modal-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--texto-claro);
  border-radius: 50%;
  background: var(--azul-primario);
  color: var(--texto-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-modal-fechar:hover,
.video-modal-fechar:focus-visible {
  background: var(--azul-escuro);
  transform: scale(1.08);
}

.video-modal-fechar svg {
  width: 18px;
  height: 18px;
}
