/* Página do minicurso: mesmo visual da página oficial, escura e sem menu. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: #01010f;
  color: #e4e4e4;
  font-family: Inter, sans-serif;
}

.fundo {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  display: block;
  height: 587px;
  overflow: hidden;
  pointer-events: none;
}

.fundo::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent 0%, #01010f 100%);
  content: "";
}

.fundo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.curso {
  position: relative;
  z-index: 1;
  max-width: 1188px;
  margin: 0 auto;
  padding: 60px 24px 48px;
}

/* Rodapé mínimo: o respiro de baixo fica acima da barra fixa */
.curso-rodape {
  position: relative;
  z-index: 1;
  max-width: 1188px;
  margin: 0 auto;
  padding: 24px 24px 118px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #8a8aa0;
  font-size: 13px;
  text-align: center;
}

.curso-rodape p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
}

.curso-rodape a {
  color: inherit;
}

.curso-rodape a:hover {
  color: #e4e4e4;
}

.curso-topo {
  text-align: center;
}

.curso-logo {
  display: block;
  width: 260px;
  height: auto;
  margin: 0 auto 20px;
}

.curso-topo h1 {
  margin: 0 0 20px;
  color: #fff;
  font: 600 40px/1 Sora, sans-serif;
}

/* Mesmo degradê de texto da landing page (.text-gradient--end) */
.curso-topo h1 span {
  background: linear-gradient(90deg, #f2f5ff 0%, #74bcf8 42%, #168ff5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.curso-topo p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: #e4e4e4;
  font-size: 18px;
  line-height: 1.5;
}

.curso-praticar {
  display: inline-block;
  padding: 12px 24px;
  border: 1.6px solid #148cff;
  border-radius: 40px;
  color: #148cff;
  font: 400 18px/1 Sora, sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.curso-praticar:hover {
  background: #148cff;
  color: #fff;
}

.aulas {
  display: grid;
  grid-template-columns: 376px minmax(0, 1fr);
  height: 434px;
  margin-top: 20px;
  overflow: hidden;
  background: #000;
  border-radius: 10px;
}

.aulas-lista {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aulas-cabecalho {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
}

.aulas-cabecalho strong {
  font-size: 16px;
  font-weight: 500;
}

.aulas-itens {
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #3a3a3a transparent;
  scrollbar-width: thin;
}

.aula {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 55px;
  padding: 6px 16px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: 500 14px/1.3 Inter, sans-serif;
  text-align: left;
}

.aula:hover,
.aula.ativa {
  background: #131313;
}

.aula img {
  display: block;
  width: 75px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
}

.aula-duracao {
  color: #b3b3b3;
  font-size: 13px;
  font-weight: 400;
}

.aulas-player {
  min-width: 0;
  background: #000;
}

.aulas-player iframe,
.aulas-capa {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.aulas-capa {
  position: relative;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.aulas-capa::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 50px;
  background: #f00;
  border-radius: 12px;
  color: #fff;
  content: "▶";
  font-size: 22px;
  line-height: 50px;
  transform: translate(-50%, -50%);
}

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

#compilador {
  margin-top: 32px;
  scroll-margin-top: 24px;
}

#compilador h2 {
  margin: 0 0 16px;
  color: #fff;
  font: 600 24px/1.2 Sora, sans-serif;
  text-align: center;
}

.barra-curso {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background: rgb(1 1 10 / 80%);
  backdrop-filter: blur(20px);
}

.barra-dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1188px;
  margin: 0 auto;
  padding: 12px 24px;
}

.barra-dentro p {
  margin: 0;
  color: #b3b3b3;
  font-size: 16px;
  line-height: 1.4;
}

.so-celular {
  display: none;
}

.barra-botao {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 16px;
  padding: 0.8rem 0.5rem 0.8rem 2rem;
  background: linear-gradient(92deg, #108aff -3.01%, #389eff 95.31%);
  border-radius: 55px;
  color: #fff;
  font: 500 18px/1 Inter, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.barra-seta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  color: #000;
  rotate: -45deg;
  transition: rotate 0.5s ease;
}

.barra-seta svg {
  width: 16px;
  height: 16px;
}

.barra-botao:hover .barra-seta {
  rotate: 0deg;
}

@media (max-width: 1024px) {
  .aulas {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .aulas-player {
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }

  .aulas-itens {
    max-height: 330px;
  }
}

@media (max-width: 767px) {
  .curso {
    padding: 32px 16px 32px;
  }

  .curso-rodape {
    padding: 20px 16px 96px;
  }

  .curso-logo {
    width: 220px;
  }

  .curso-topo h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .curso-topo h1 span {
    display: block;
    width: fit-content;
    margin-inline: auto;
  }

  .curso-topo p {
    font-size: 16px;
  }

  .so-computador {
    display: none;
  }

  .so-celular {
    display: inline;
  }

  p.so-celular {
    display: block;
  }

  .barra-dentro {
    padding: 10px 16px;
  }

  /* No celular a barra fica só com o botão, na largura toda: o texto ao lado quebrava em três linhas */
  .barra-dentro p {
    display: none;
  }

  .barra-botao {
    flex: 1;
    gap: 8px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-size: 14px;
  }

  .barra-botao > span:not(.barra-seta) {
    flex: 1;
    text-align: center;
  }

  .barra-seta {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .barra-seta {
    transition: none;
  }
}
