html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Garante altura total para o corpo da página */
  scroll-behavior: smooth; /* deixa a rolagem suave */
  width: 100%;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ocupa toda a altura da janela do navegador */
}


/*Começo Navbar*/
.logo-area {
  display: flex;
  align-items: center;
}

.logo-navbar {
  height: 50px;
  width: 50px;
  transform: scale(3.6);
  margin-left: 40px;
  transition: all 0.3s ease;
  /* Adiciona uma transição suave */
}

.nav-link{
  color: white !important;
  font-weight: 500 !important;

}

.nav-link:hover{
 color: rgb(253, 193, 82) !important; 
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link :active {
  color: rgb(253, 193, 82) !important;
  font-weight: 500 !important;
}


/* COMEÇA AQUI */

body {
  margin: 0;
  background-color: #d3ffffde !important;
  font-family: 'Inter', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}

/* CSS Inicio*/
.inicio-hero {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  color: white;
  padding: 60px 20px;
  margin-bottom: 40px;
}

.inicio-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.inicio-texto {
  flex: 1;
  min-width: 280px;
}

.titulo-conteudo-das-aulas {
    text-align: center !important;
    color: white !important;
    padding: 2% !important;
    font-weight: 500 !important;
    text-shadow: 2px 2px 4px rgba(167, 167, 167, 0.2) !important;
    font-size: 2rem;
    
}


.inicio-texto h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.inicio-texto .destaque {
  color: #00c2ff;
}

.inicio-texto p {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
}

.inicio-imagem {
  flex: 1;
  text-align: center;
  min-width: 260px;
}

.inicio-imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
} 


/* materias e livros */
.container {
  max-width: 1000px; 
  margin: 2% auto;
  padding: 20px;
  background-color: #1a131a;
  border-radius: 12px;
}

.container:hover{
  box-shadow: 0 0 20px #2563eb;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

/* Ajuste para a row das colunas dos anos */
#conteudo .row , #cursos{
  display: flex;
  gap: 20px; /* Espaçamento horizontal */
  justify-content: center; /* Centraliza as colunas */
  flex-wrap: wrap;
}

/* Cada coluna dos anos (Pega o ID da SECTION e a CLAS da DIV dentro dela) */
#conteudo .col-md-3 {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Ao passar o mouse em cima, ocorre uma transição, no caso, ela vai mudar de posição e adicionar uma borda de acordo com o time */
  min-height: 350px; /* Altura uniforme */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #222a6a; /* Default - será sobrescrito abaixo */
}

#conteudo .col-md-3:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(0, 200, 255, 0.658);
  transition: all 0.7s ease; /* Tudo no col-md3 vai ter transição suave de 0.7s ao passar o mouse sobre */
}

.caixa_da_materia{
  background-color: rgb(119, 250, 255);
  color: rgb(119, 250, 255) !important;
}

.materia {
  display: none;
  margin-top: 8px;
}

/* Botões dentro do conteúdo das matérias */
.materia a button {
  width: 100%;
  background-color: #00c2ff;
  color: #000;
  padding: 12px;
  margin: 8px 0;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 194, 255, 0.6);
}

.materia a button:hover {
  background-color: #008bb5;
  color: #fff;
}

/* Botões principais das matérias */
.titulo-materia {
  width: 100%;
  background-color: #82B4FF;
  color: #0A1C3C;
  padding: 18px 15px;
  margin-top: 25px;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 8px rgba(202, 239, 255, 0.4);
}

.titulo-materia:hover {
  background-color: #007acc;
  box-shadow: 0 0 12px #00c8ff;
}

/* Ícone seta ao lado do nome da matéria */
.titulo-materia i {
  font-size: 18px;
  color: #0A1C3C;
  transition: transform 0.3s ease;
}

/* Links de navegação */

.seta {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0A1C3C;
  transition: 0.3s ease;
}

.seta-rotacionada {
  transform: rotate(90deg); /* A seta rodará 90° */
  transition: 0.5s ease;
}


/* Responsividade: para telas pequenas */

/* ========== MOBILE (ATÉ 767px) ========== */
@media (max-width: 767px) {

  html, body {
    width: 100%;
    overflow-x: hidden; /* impede rolagem lateral */
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  
  .titulo-ano{
      font-size: 1.4rem;
  }

  #conteudo .col-md-3 {
    min-height: 100%;
    margin-bottom: 30px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    background-color: #1a131a !important;
    padding: 12px !important;
  }

  .row {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card, .card-curso {
    width: 90%;
    max-width: 340px;
    margin: 15px auto;
    padding: 12px 15px;
    border-radius: 15px;
    box-sizing: border-box;
    text-align: center;
  }

  .card-curso {
    align-items: center;
  }

  .col-md-3, .col-md-4, .col-lg-3 {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 10px;
  }

  h1, h2, h3, h4 {
    font-size: 1.2rem;
    text-align: center;
  }

  .voltar {
    width: 90%;
    text-align: center;
    margin: 15px auto;
  }
}

/* ========== TABLETS (768px a 1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {

  html, body {
    overflow-x: hidden;
    background-attachment: fixed;
  }

  .container {
    width: 100%;
    padding: 0 25px;
    box-sizing: border-box;
    background-color: #1a131a !important;
    padding: 12px !important;
  }

  .row {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
  }

  .card, .card-curso {
    width: 45%;
    max-width: 360px;
    margin: 15px;
    padding: 15px 18px;
    border-radius: 16px;
    text-align: center;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
  }

  h1, h2, h3, h4 {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .titulo-ano{
      font-size: 1.4rem;
  }

  .voltar {
    margin: 20px auto;
    display: block;
    text-align: center;
  }
}

/* ========== DESKTOPS GRANDES (1025px+) ========== */
@media (min-width: 1025px) {

  html, body {
    overflow-x: hidden;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
  }

  .card, .card-curso {
    max-width: 320px;
    margin: 15px;
    text-align: center;
    box-sizing: border-box;
  }
}



/* Cursos Gratuitos */
/* Container geral da seção */
#cursos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #222;
  border-radius: 12px;
  text-align: center;
}

/* Título e subtítulo (da seção container) */
.titulo-secao-cursos {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  padding:10px;
}


.subtitulo-secao-cursos {
  font-size: 1.1rem !important;
  color: #ffffff !important;
  margin-bottom: 2rem !important;
}

/* Layout dos cartões */
.lista-cursos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Cartões individuais */



.card {
    background: linear-gradient(135deg, #041647ff, #0b2e67ff);
    width: 90%;
    max-width: 340px;
    margin: 15px auto;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
}

/* container sem borda e com respiro interno */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* botão/links internos */
.card a {
    display: block;
    background-color: #00c2ff;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px;
    margin: 8px auto;
    transition: all 0.3s ease;
}

.card a:hover {
    background-color: #00e1ff;
    transform: scale(1.03);
}

.card-curso {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-curso:hover {
  transform: translate3d(2px, -15px, -135px);
  box-shadow: 0 15px 30px rgba(0, 200, 255, 0.6);
}

/* Título do curso */
.curso-titulo {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.75rem;
}

/* Descrição do curso */
.curso-descricao {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Botão */
.card-curso .btn {
  background-color: #00c2ff;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  border-color: #00c2ff;
  transition: background-color 1s ease;
}

.card-curso .btn:hover {
  background-color: #0056b3;
  transform: scale();
}

/* Footer */
.footer {
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 30px 20px !important;
  font-family: Arial, sans-serif !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-top: auto !important; 
  width: 100% !important;
  border-top: 1px solid #1e293b !important;
  box-sizing: border-box !important; /* Garante que o padding não estoure a largura */
}

.footer p, .footer div {
    color: #ffffff !important;
    margin: 0 !important;
}
