body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Garante que padding e border sejam incluídos no tamanho total dos elementos */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* Hero padrão */
.hero {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Navegação abaixo do hero */
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap; /* Permite quebrar para baixo */
}

.hero-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #0073bb;
}

/* Área principal */
main {
    padding: 40px 20px;
    margin: auto;
    max-width: 1200px;
}

/* Grid dos cursos */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding-bottom: 60px;
  justify-content: center;
  align-items: stretch;
}

.course-grid > * {
  height: 100%;
  display: flex;
}

/* Cards */
.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 24px 20px;
  text-align: center;
  height: 100%;      /* FORÇA ALTURA UNIFORME DENTRO DO GRID */
  min-height: 430px; /* AJUSTE COM BASE NO MAIOR CARD */
}

.course-card:hover {
    transform: scale(1.02);
}

.course-card img.badge {
    max-width: 130px;
    margin: 0 auto 16px;
}

.course-card h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.course-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;             /* Garante que o texto não estoure o card */
  max-width: 100%;         /* Evita expansão indesejada */
  white-space: normal !important; /* Força quebra automática */
  text-align: center;      /* Use left se preferir alinhamento tradicional */
}

.course-card .rating {
    margin: 12px 0 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.course-card .bestseller {
    background: #ffe600;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
}

.course-card .students {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 12px;
}

.course-card .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.course-card .btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #0073bb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.course-card .btn:hover {
    background-color: #005f9e;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    background-color: #111;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-top: 30px;
    overflow: hidden;
    z-index: 1;
}
.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    /* opcional para responsividade */
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-img {
    width: auto;
    height: 420px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 40px;
}

.footer-text {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.footer-text h2 {
    margin-top: 0;
}

/* Partículas */
#particles-js,
#particles-footer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Selector de idioma */
#lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 50%;
    object-fit: cover;
}

#lang-tooltip {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #ffffff;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    max-width: 240px;
    z-index: 999;
    display: none;
}

/* Flashcards */
.flashcards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.flashcard {
    width: 260px;
    height: 160px;
    background: #111;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 20px;
}

.flashcard:hover {
    transform: scale(1.03);
}

.flashcard.flipped {
    background: #0073bb;
    color: white;
}

.flashcard.flipped .flashcard-content {
    display: none;
}

.content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-card-box {
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.info-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 28px;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  animation: fadeInUp 0.5s ease;
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.info-card p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #222;
}

.info-card .destaque {
  color: #0073bb;
  font-weight: 600;
}

.trust-badge {
  margin-top: 16px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-img {
    height: 220px;
    margin: 0 auto 18px auto;
    display: block;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 1.2rem;
  }

  .footer-text {
    max-width: 100%;
    padding: 0 1rem;
  }

  .course-card {
    padding: 20px 8px;
  }

  .course-card {
    min-height: auto;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 30px;
  }

  .flashcard {
    width: 98vw;
    max-width: 340px;
    min-height: 120px;
    font-size: 1rem;
    padding: 12px;
  }

  .valores-lista {
    padding: 0 1rem;
  }

  .valor h3 {
    font-size: 1.1rem;
  }

  .valor p {
    font-size: 0.95rem;
  }

  .hero-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-img {
    height: auto;
    max-height: 300px;
    margin: 0 auto;
  }

  .footer-text {
    padding: 0 1rem;
    max-width: 100%;
  }

  .course-card {
    padding: 20px;
  }

  .course-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero-nav {
    gap: 8px;
    padding: 8px 0;
  }
  .info-bloco,
  .valores-section {
    padding: 0.5rem;
    font-size: 0.98rem;
  }
  .footer-img {
    max-width: 98vw;
    height: 160px;
  }
}

@media (max-width: 420px) {
  .course-card {
    padding: 14px 4px;
    font-size: 0.94rem;
  }
  .course-grid {
    gap: 10px;
  }
}

@media (max-width: 375px) {
  .hero h1, .valores-title {
    font-size: 1.1rem;
  }
  .course-card, .flashcard {
    font-size: 0.94rem;
    padding: 7px 2px;
  }
  .footer-content, .footer-text {
    padding: 0.2rem;
  }
}

body, html {
  overflow-x: hidden;
}

#footer_bio_2 {
    white-space: pre-line;
}


.valores-section,
.identidade-visual {
    padding: 2rem;
    padding-top: 0rem;
    color: #000000;
    text-align: center;
    margin-top: 0;
}

.valores-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.valores-lista {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.valor h3 {
    font-size: 1.3rem;
    margin-bottom: 0.0rem;
    margin-top: 0rem;
}

.valor p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.bloco-identidade {
    margin: 2rem auto;
    max-width: 900px;
    text-align: left;
}

.bloco-identidade h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.bloco-identidade ul {
    padding-left: 1.2rem;
}

.info-banner {
    text-align: center;
    padding: 0px 20px 20px;
    color: #000;
}

.info-intro {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.info-highlight {
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.info-details {
    font-size: 0.95rem;
    color: #0073bb;
    max-width: 820px;
    margin: 0 auto;
}

.info-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 32px auto 24px;
    max-width: 860px;
}

.highlight {
    font-weight: 600;
    color: #0073bb;
}

/* Bloco informativo acima dos cursos */
.info-bloco {
  text-align: center;
  padding: 0px 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bloco informativo de destaque acima dos cursos */
.info-bloco-destaque {
  display: flex;
  justify-content: center;
  margin: 32px auto;
  padding: 0 16px;
  width: 100%;
}

.info-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 28px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (min-width: 768px) {
  .info-card {
    width: 90%;
    max-width: 880px;
  }
}

.info-linha-maior {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #333;
}

.info-destaque {
  font-size: 1rem;
  color: #005b9f;
}

/* Parágrafos comuns */
.info-linha {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Parágrafos um pouco mais destacados */
.info-linha-maior {
  font-size: 1.05rem;
  margin-bottom: 17px;
}

/* Parágrafo com cor e max-width mais restrita */
.info-destaque {
    font-size: 0.95rem;
    color: #0073bb;
    max-width: 820px;
    margin: 0 auto;
    margin-bottom: 12px;
  }
  

/* Linha divisora */
.info-divisor {
  border: none;
  border-top: 1px solid #ddd;
  margin: 32px auto 24px;
  max-width: 860px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.list-no-bullet {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.popup-lab {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  max-width: 400px;
  width: calc(100% - 40px);
  background: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(255, 153, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInLeft 0.5s ease-out;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.popup-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.popup-content p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0.95;
}

.popup-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  backdrop-filter: blur(10px);
}

.popup-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Seção de Vídeo - Ultra-limpa e centralizada */
.video-section {
  padding: 80px 0;
  background: #ffffff;
  margin: 60px 0;
}

.video-section::before {
  display: none; /* Remove completamente o padrão de fundo */
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 0;
  padding-bottom: 50.625%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.video-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Remove todos os efeitos desnecessários */
.video-wrapper::after {
  display: none;
}

/* Responsivo */
@media (max-width: 1024px) {
  .video-wrapper {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .video-section {
    padding: 60px 0;
    margin: 40px 0;
  }
  
  .video-container {
    padding: 0 15px;
  }
  
  .video-wrapper {
    max-width: 100%;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .video-section {
    padding: 40px 0;
    margin: 30px 0;
  }
  
  .video-wrapper {
    border-radius: 8px;
  }
}