/* Página /cursos-online. Ao mudar, troque o nome para cursos-online.v3.css e atualize src/pages/cursos-online.astro. */

.co { display: flex; flex-direction: column; align-items: center; width: 100%; overflow: clip; background: #06000d; }

/* ---------- Topo com vídeo (Panda) ---------- */
.co-hero { position: relative; width: 100%; max-width: 1440px; padding: 0 40px; overflow: clip; display: flex; }
.co-hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; container-type: size; }
/* o vídeo cobre a caixa toda mantendo 16:9 (corta as sobras), como no site antigo */
.co-hero__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: none;
  width: 100%; height: 100%;
  width: max(100%, 100cqh * 16 / 9); height: max(100%, 100cqw * 9 / 16);
}
.co-hero__sombra { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 0, 13, 0) 0%, #06000d 79%); }
.co-hero__conteudo { position: relative; z-index: 2; flex: 1 1 0; height: 80vh; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 80px; }
.co-hero__textos { flex: 1 1 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 48px; }
.co-hero__esq { width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.co-hero__selo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.co-hero__titulo { font-size: 42px; line-height: 46.2px; font-weight: 500; letter-spacing: -0.04em; color: #fff; text-align: left; width: 100%;
  -webkit-mask: radial-gradient(59% 100% at 43.2%, #000 0%, rgba(0, 0, 0, 0.25) 100%); mask: radial-gradient(59% 100% at 43.2%, #000 0%, rgba(0, 0, 0, 0.25) 100%); }
.co-hero__dir { width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.co-hero__desc { font-size: 18px; line-height: 27px; letter-spacing: -0.02em; color: #fff; }

/* ---------- Cursos ---------- */
.co-cursos { width: 100%; max-width: 1440px; padding: 0 40px 60px; display: flex; scroll-margin-top: 0; }
.co-cursos__conteudo { flex: 1 1 0; min-width: 0; padding: 0 0 32px; }
.co-cursos__grade { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); grid-auto-rows: min-content; gap: 24px 20px; }
.co-cursos__item { place-self: center; width: 100%; display: flex; scroll-margin-top: 20px; }

.co-card { --eo: cubic-bezier(.23, 1, .32, 1); width: 100%; display: flex; flex-direction: column; border-radius: 25px; overflow: hidden; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.co-card__capa { aspect-ratio: 3 / 4; overflow: hidden; background: #120a1d; }
.co-card__capa img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--eo); }
@media (hover: hover) and (pointer: fine) { .co-card:hover .co-card__capa img { transform: scale(1.03); } }
.co-card__corpo { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; }
.co-card__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-weight: 500; font-size: 11px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.co-card__titulo { margin: 0; color: #fff; font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -.04em; text-wrap: wrap; }
.co-card__desc { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.5; letter-spacing: -.02em; text-wrap: wrap; }
/* cartões fechados alinhados na fileira (título reserva 2 linhas e descrição 4; a partir de 1400px, descrição 3) */
@media (min-width: 810px) and (max-width: 1399.98px) { .co-card__titulo { min-height: 2.2em; } .co-card__desc { min-height: 6em; } }
@media (min-width: 1400px) { .co-card__desc { min-height: 4.5em; } }
.co-card__sanfona { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.co-card__abrir { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; background: none; border: 0; cursor: pointer; color: #fff; font-weight: 500; font-size: 14px; line-height: 1.3; text-align: left; }
.co-card__abrir:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.co-card__abrir svg { flex: none; transition: transform 250ms var(--eo); }
.co-card__abrir[aria-expanded="true"] svg { transform: rotate(180deg); }
.co-card__painel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--eo); }
.co-card__painel[data-aberto="true"] { grid-template-rows: 1fr; }
.co-card__painel-dentro { min-height: 0; overflow: hidden; }
.co-card__painel[data-aberto="false"] .co-card__painel-dentro { visibility: hidden; transition: visibility 0s linear 280ms; }
.co-card__lista { list-style: none; margin: 0; padding: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.co-card__lista li { display: flex; gap: 8px; align-items: flex-start; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(4px); transition: opacity 150ms ease-out, transform 150ms ease-out; }
.co-card__lista li svg { flex: none; margin-top: 3px; }
.co-card__painel[data-aberto="true"] .co-card__lista li { opacity: 1; transform: none; transition: opacity 240ms ease-out, transform 240ms var(--eo); transition-delay: calc(60ms + var(--i) * 30ms); }
.co-card__acoes { display: flex; padding-top: 4px; }
/* Comprar: faixa roxa entra da esquerda ao passar o mouse */
.co-card__comprar { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-radius: 100px; background: #fff; color: #06000d; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.2; transition: transform 200ms var(--eo), color 220ms ease, box-shadow 300ms var(--eo); }
.co-card__comprar::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(110deg, #4b1f86 0%, #7a1ad6 100%); clip-path: inset(0 100% 0 0); transition: clip-path 300ms var(--eo); }
.co-card__comprar svg { transition: transform 260ms var(--eo); }
@media (hover: hover) and (pointer: fine) {
  .co-card__comprar:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(122, 26, 214, .65); }
  .co-card__comprar:hover::before { clip-path: inset(0 0 0 0); }
  .co-card__comprar:hover svg { transform: translateX(3px); }
}
.co-card__comprar:focus-visible { color: #fff; outline: 2px solid #fff; outline-offset: 3px; }
.co-card__comprar:focus-visible::before { clip-path: inset(0 0 0 0); }
.co-card__comprar:active { transform: translateY(0) scale(.97); }

/* ---------- Professores ---------- */
.co-prof-bloco { width: 100%; max-width: 1440px; display: flex; }
.co-prof { position: relative; flex: 1 1 0; min-width: 0; background: #fff; border-radius: 25px; overflow: clip; padding: 112px 0; display: flex; flex-direction: column; align-items: center; gap: 72px; }
.co-prof__fundo { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1.75; opacity: 0.5; transform: rotate(-180deg); z-index: 1; }
.co-prof__fundo img { width: 100%; height: 100%; object-fit: cover; }
.co-prof__fundo-luz { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%); }
.co-prof__conteudo { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 72px; }
.co-prof__titulo { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 48px; }
.co-prof__h { width: 704px; font-size: 36px; line-height: 39.6px; font-weight: 500; letter-spacing: -0.04em; color: #000; }
.co-prof__palavra { white-space: nowrap; }
.co-prof__palavra > span { display: inline-block; }
.co-prof__lado { flex: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.co-prof__desc { width: 280px; font-size: 16px; line-height: 22.4px; color: rgba(0, 0, 0, 0.7); }

/* Título aparece ao rolar (só com JS ligado e sem "movimento reduzido"; sem JS fica visível) */
.co-revela-ativo [data-revela] .co-prof__palavra > span { opacity: 0.001; transform: translateY(10px); transition: opacity .9s cubic-bezier(.2, .8, .25, 1) .2s, transform .9s cubic-bezier(.2, .8, .25, 1) .2s; }
.co-revela-ativo [data-revela].visivel .co-prof__palavra > span { opacity: 1; transform: none; }

/* Faixa de professores: parada até a seção aparecer; depois anda sem parar (computador e tablet) */
.co-ticker { width: 100%; height: 600px; overflow: hidden; display: flex; align-items: center; touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.co-ticker img { -webkit-user-drag: none; pointer-events: none; }
/* Com o script ativo, o movimento é feito por ele (automático + arraste); sem script fica a animação em CSS */
.co-ticker.co-ticker--js .co-ticker__trilho { animation: none; transform: translateX(var(--x, -16px)); }
.co-ticker__trilho { display: flex; gap: 16px; width: max-content; padding-right: 16px; transform: translateX(-16px); animation: co-ticker var(--duracao, 160.3s) linear infinite paused; will-change: transform; }
.co-ticker.andando .co-ticker__trilho { animation-play-state: running; }
@keyframes co-ticker { from { transform: translateX(-16px); } to { transform: translateX(calc(-50% - 16px)); } }
.co-prof-card { position: relative; width: 442px; height: 600px; flex: none; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.co-prof-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.co-prof-card__sombra { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 53%, #000 127%); }
.co-prof-card__topo { position: relative; width: 100%; padding: 32px; display: flex; justify-content: space-between; align-items: center; }
.co-prof-card__pilula, .co-prof-card__seta { display: flex; align-items: center; justify-content: center; border-radius: 100px; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #fff; }
.co-prof-card__pilula { padding: 6px 16px; font-size: 14px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.co-prof-card__seta { width: 56px; height: 32px; padding: 4px 16px; }
.co-prof-card__nome { position: relative; width: 100%; padding: 48px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; }
.co-prof-card__n { font-size: 32px; line-height: 32px; font-weight: 600; white-space: nowrap; }
.co-prof-card__d { font-size: 18px; line-height: 27px; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* ---------- Faixa desfocada fixa no pé da tela ---------- */
.co-desfoque { position: fixed; left: 0; right: 0; bottom: 0; height: 55px; z-index: 3; pointer-events: none; }
.co-desfoque span { position: absolute; inset: 0; }
.co-desfoque span:nth-child(1) { -webkit-backdrop-filter: blur(0.083rem); backdrop-filter: blur(0.083rem); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 40%, transparent 60%); mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 40%, transparent 60%); }
.co-desfoque span:nth-child(2) { -webkit-backdrop-filter: blur(0.166rem); backdrop-filter: blur(0.166rem); -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 40%, black 60%, transparent 80%); mask-image: linear-gradient(to bottom, transparent 20%, black 40%, black 60%, transparent 80%); }
.co-desfoque span:nth-child(3) { -webkit-backdrop-filter: blur(0.377rem); backdrop-filter: blur(0.377rem); -webkit-mask-image: linear-gradient(to bottom, transparent 40%, black 60%, black 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 40%, black 60%, black 80%, transparent 100%); }
.co-desfoque span:nth-child(4) { -webkit-backdrop-filter: blur(0.750rem); backdrop-filter: blur(0.750rem); -webkit-mask-image: linear-gradient(to bottom, transparent 60%, black 80%, black 100%); mask-image: linear-gradient(to bottom, transparent 60%, black 80%, black 100%); }
.co-desfoque span:nth-child(5) { -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); -webkit-mask-image: linear-gradient(to bottom, transparent 80%, black 100%); mask-image: linear-gradient(to bottom, transparent 80%, black 100%); }

/* Rolagem suave com a roda do mouse (Lenis), como no site antigo */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* ---------- Tablet (810 a 1199px) ---------- */
@media (max-width: 1199.98px) {
  .co-hero__sombra { background: linear-gradient(rgba(0, 0, 0, 0) 25%, #000 90%); }
  .co-hero__conteudo { gap: 14px; }
  .co-hero__textos { flex-direction: column; align-items: center; }
  .co-hero__esq { width: 550px; align-items: center; padding: 0 0 20px; }
  .co-hero__titulo { font-size: 38px; line-height: 41.8px; text-align: center; }
  .co-hero__dir { width: 550px; }
  .co-hero__desc { font-size: 16px; line-height: 24px; text-align: center; }

  .co-cursos__grade { grid-template-columns: repeat(2, minmax(200px, 1fr)); }

  .co-prof { padding: 80px 0; }
  .co-prof__conteudo { gap: 56px; }
  .co-prof__titulo { flex-direction: column; justify-content: center; gap: 16px; padding: 0 32px; }
  .co-prof__h { width: 100%; font-size: 32px; line-height: 35.2px; text-align: center; }
  .co-prof__lado { width: 100%; align-items: center; gap: 24px; }
  .co-prof__desc { width: 434px; font-size: 14px; line-height: 19.6px; text-align: center; }
}

/* ---------- Celular (até 809px) ---------- */
@media (max-width: 809.98px) {
  .co-hero { padding: 0; }
  .co-hero__sombra { background: linear-gradient(rgba(0, 0, 0, 0) 19%, #000 77%); }
  .co-hero__conteudo { flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 0 64px; }
  .co-hero__textos { flex: none; width: 100%; gap: 8px; justify-content: flex-start; padding: 0 16px; }
  .co-hero__esq { width: 100%; padding: 0; }
  .co-hero__titulo { font-size: 28px; line-height: 30.8px; }
  .co-hero__dir { width: 100%; gap: 16px; }
  .co-hero__desc { font-size: 14px; line-height: 21px; }

  .co-cursos { padding: 0 10px 60px; }
  .co-cursos__conteudo { padding-bottom: 48px; }
  .co-cursos__grade { grid-template-columns: minmax(200px, 1fr); }

  .co-prof { padding: 64px 0; }
  .co-prof__conteudo { gap: 48px; }
  .co-prof__titulo { padding: 0 24px; align-items: flex-start; }
  .co-prof__h { font-size: 24px; line-height: 28.8px; }
  .co-prof__lado { align-items: flex-start; }
  .co-prof__desc { width: 100%; }
  /* no celular a faixa fica parada, como no site antigo; a altura acompanha a largura da tela */
  .co-ticker { height: 97.4359vw; }
  .co-ticker__trilho { animation: none; transform: none; }
  .co-ticker.co-ticker--js .co-ticker__trilho { transform: translateX(var(--x, 0px)); }
  .co-prof-card { width: 300px; height: 97.4359vw; }
  .co-prof-card__topo { padding: 20px; }
  .co-prof-card__pilula { font-size: 12px; line-height: 12px; }
  .co-prof-card__seta { width: 48px; height: 24px; }
  .co-prof-card__seta .icone { width: 16px; height: 16px; }
  .co-prof-card__nome { padding: 20px; }
  .co-prof-card__n { font-size: 20px; line-height: 20px; }
  .co-prof-card__d { font-size: 14px; line-height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .co-ticker__trilho { animation: none; }
  .co-revela-ativo [data-revela] .co-prof__palavra > span { opacity: 1; transform: none; transition: none; }
  .co-card__capa img, .co-card__abrir svg, .co-card__painel, .co-card__comprar, .co-card__comprar::before, .co-card__comprar svg { transition: none; }
  .co-card__comprar:hover, .co-card__comprar:hover svg { transform: none; }
  .co-card__lista li, .co-card__painel[data-aberto="true"] .co-card__lista li { transform: none; transition: opacity 150ms linear; transition-delay: 0ms; }
}

/* Recursos tipográficos da fonte usados no site antigo */
.co-hero__titulo, .co-hero__desc, .co-prof__h { font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; }
.co-prof__desc { font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11", "tnum"; }
