/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
  --primary-color: #101f48fa;
  --secondary-color: #F23545;
  --accent-color: #3a5088;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #333;
  --transition: all 0.3s ease;
  --detail-color: #FFDE59;
}

/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  padding-top: 80px;
}

/* ===== LOADER DO VÍDEO ===== */
.video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 31, 72, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--detail-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(16, 31, 72, 0.98) !important;
  padding: 0.5rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.3rem 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
}

.btn-donation {
  background-color: var(--secondary-color);
  border-radius: 4px;
  padding: 0.5rem 1rem !important;
  margin-left: 0.5rem;
  color: white !important;
  transition: all 0.3s ease;
}

.btn-donation:hover {
  background-color: #d32f2f !important;
  transform: translateY(-2px);
}

/* ===== SHOWCASE SECTION ===== */
#showcase {
  height: 100vh;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  margin-top: -80px;
  padding-top: 80px;
  overflow: hidden;
}

#video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

#video-background.loaded {
  opacity: 1;
}

#video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.581);
  z-index: 0;
}

#showcase-container {
  padding: 2rem;
  max-width: 2000px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

#company-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#verse {
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.8s forwards;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#referencia {
  font-size: 0.9em;
  color: var(--detail-color);
}

/* Botões da showcase */
#fale-conosco a,
#conheca-cursos a {
  padding: 12px 24px;
  border-radius: 5px;
  background-color: var(--primary-color);
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  margin: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
  position: relative;
  overflow: hidden;
}

#fale-conosco a::before,
#conheca-cursos a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

#fale-conosco a:hover::before,
#conheca-cursos a:hover::before {
  left: 100%;
}

#conheca-cursos a {
  background-color: transparent;
  border: 2px solid white;
  animation: fadeIn 1s ease 1.2s forwards;
}

#fale-conosco a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#conheca-cursos a:hover {
  background-color: white;
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

#scroll-indicator.visible {
  opacity: 1;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== SEÇÕES COMUNS ===== */
.headliner {
  color: var(--primary-color);
  padding: 2rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.headliner.animated {
  opacity: 1;
  transform: translateY(0);
}

.headliner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--detail-color);
  transition: width 0.5s ease;
}

.headliner.animated::after {
  width: 120px;
}

/* ===== QUEM SOMOS SECTION ===== */
#quem-somos {
  padding: 2rem 0;
  background-color: white;
}

#quem-somos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Padronização das seções de conteúdo textual */
.text-content,
.diretor-content {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-content.animated,
.diretor-content.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Padronização dos parágrafos */
.text-content p,
.diretor-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  color: var(--text-color);
}

/* Padronização dos containers de imagem */
.image-content,
.diretor-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.image-content.animated,
.diretor-image.animated {
  opacity: 1;
  transform: translateX(0);
}

.image-content img,
.diretor-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.image-content img:hover,
.diretor-image img:hover {
  transform: scale(1.02);
}

/* ===== CURSOS SECTION ===== */
#cursos {
  padding: 2rem 0;
  background-color: #f8f9fa;
}

#card-cursos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  max-width: 350px;
  flex: 1;
  min-width: 280px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.card.animated {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  overflow: hidden;
  height: 200px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card .duracao {
  display: inline-block;
  background-color: var(--detail-color);
  color: var(--dark-color);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: justify;
}

.card-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.card-btn:hover::before {
  left: 100%;
}

.card-btn:hover {
  background-color: var(--accent-color);
}

#button-ver-mais {
  text-align: center;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#button-ver-mais.animated {
  opacity: 1;
  transform: translateY(0);
}

#button-ver-mais a {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

#button-ver-mais a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

#button-ver-mais a:hover::before {
  left: 100%;
}

#button-ver-mais a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* ===== DIRETOR SECTION ===== */
#diretor {
  padding: 2rem 0;
  padding-bottom: 5rem;
  background-color: white;
}

#diretor-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Padronização dos títulos do diretor */
.diretor-content h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.diretor-content h4 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ===== SEÇÃO PROFESSORES NA HOME - CORRIGIDA ===== */
#professores {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-subtitle.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Container dos professores - IGUAL À PÁGINA DE PROFESSORES */
#professores-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards dos professores - IGUAL À PÁGINA DE PROFESSORES */
.professor-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.professor-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.professor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Container da imagem - IGUAL À PÁGINA DE PROFESSORES */
.professor-image-container {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}

/* ===== SEÇÃO 'SAIBA MAIS' RÁPIDA - HOME (SEÇÃO BRANCA) ===== */
#quick-info,
.white-section {
  background-color: #ffffff; /* seção branca explícita */
  padding: 60px 0;
}

#quick-info .headliner {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#quick-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem; /* aumento do espaçamento entre cards para melhor harmonia */
}

.quick-card {
  max-width: 340px;
  min-width: 240px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.quick-card .card-image {
  height: 160px;
}

.quick-card .card-content {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.quick-card p {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.quick-card .card-btn {
  align-self: center;
}

@media (max-width: 768px) {
  #quick-cards {
    gap: 1rem;
  }

  .quick-card {
    max-width: 100%;
    min-width: 100%;
  }
}

.professor-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.professor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  transition: transform 0.5s ease;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.professor-card:hover .professor-image img {
  transform: scale(1.08);
}

/* Conteúdo do card - IGUAL À PÁGINA DE PROFESSORES */
.professor-content {
  padding: 25px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.professor-content h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.professor-formacao {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
}

.professor-disciplinas {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.professor-disciplinas strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
  text-align: center;
  font-size: 1rem;
}

/* Sistema Ver Mais - CORRIGIDO (sem gradiente quando não precisa) */
.formacoes-lista {
  max-height: none; /* Remove o limite padrão */
  overflow: visible; /* Remove overflow padrão */
  transition: max-height 0.4s ease;
  position: relative;
}

/* Aplica estilo apenas quando tem muitos itens e precisa do botão */
.formacoes-lista.com-botao {
  max-height: 120px;
  overflow: hidden;
}

.formacoes-lista.com-botao.expandido {
  max-height: 800px;
}

.formacoes-lista.com-botao:not(.expandido)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.formacoes-lista.com-botao.expandido::after {
  display: none;
}

.formacao-item {
  margin-bottom: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  position: relative;
  padding-left: 15px;
}

.formacao-item::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.btn-ver-mais-formacao {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  font-weight: 500;
}

.btn-ver-mais-formacao:hover {
  color: var(--accent-color);
}

.btn-ver-mais-formacao .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.btn-ver-mais-formacao.expandido .fa-chevron-down {
  transform: rotate(180deg);
}

.formacoes-lista.expandido::after {
  display: none;
}

/* Botão "Conheça Todo o Corpo Docente" - agora igual ao padrão .card-btn */
.btn-ver-mais {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
}

.btn-ver-mais::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-ver-mais:hover::before {
  left: 100%;
}

.btn-ver-mais:hover {
  background-color: var(--accent-color);
}

/* ===== RESPONSIVIDADE ESPECÍFICA PARA PROFESSORES ===== */
@media (max-width: 1200px) {
  #professores-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 992px) {
  #professores-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .professor-image-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  #professores {
    padding: 60px 0;
  }

  #professores-container {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .professor-image-container {
    height: 280px;
  }

  .professor-content {
    padding: 20px;
  }

  .section-subtitle {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  #professores {
    padding: 50px 0;
  }

  .professor-image-container {
    height: 250px;
  }

  .professor-content h3 {
    font-size: 1.3rem;
  }

  #professores-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .professor-content {
    padding: 15px;
  }
}

@media (max-width: 400px) {
  #professores-container {
    grid-template-columns: 1fr;
  }

  .professor-image-container {
    height: 220px;
  }

  .professor-content {
    padding: 15px;
  }

  .professor-content h3 {
    font-size: 1.2rem;
  }
}

/* Estilo para links dentro dos cards de professores */
.link-curso {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 3px;
}

.link-curso::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.link-curso:hover {
    color: var(--secondary-color);
    background-color: rgba(16, 31, 72, 0.05);
}

.link-curso:hover::after {
    width: 100%;
}

/* ===== CTA SECTION ===== */
#cta-section {
  padding: 5rem 0;
  background: linear-gradient(rgba(0, 30, 112, 0.613), rgba(16, 31, 72, 0.9)), url("/imagens/pessoas.jpg") center/cover;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.2s;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.4s;
}

/* Quando a seção estiver visível */
#cta-section.visible .cta-content h2,
#cta-section.visible .cta-content p,
#cta-section.visible .cta-buttons {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn,
.cta-btn-outline {
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-btn::before,
.cta-btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.cta-btn:hover::before,
.cta-btn-outline:hover::before {
  left: 100%;
}

.cta-btn {
  background-color: var(--secondary-color);
  color: white;
}

.cta-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-3px);
}

.cta-btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.cta-btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to bottom, #0d1a3b, #101f48fa);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand,
.footer-contacts,
.footer-links,
.footer-social {
  flex: 1;
  min-width: 250px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-brand.animated,
.footer-contacts.animated,
.footer-links.animated,
.footer-social.animated {
  opacity: 1;
  transform: translateY(0);
}

.footer-brand img {
  max-width: 100px;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.footer-brand img:hover {
  transform: rotate(5deg) scale(1.05);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contacts h4,
.footer-links h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: white;
}

.footer-contacts h4::after,
.footer-links h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.5s ease;
}

.footer-contacts h4:hover::after,
.footer-links h4:hover::after,
.footer-social h4:hover::after {
  width: 60px;
}

.footer-contacts a,
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-contacts a:hover,
.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contacts i {
  margin-right: 0.5rem;
  width: 20px;
  color: var(--detail-color);
}

#endereço {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}

#endereço i {
  color: var(--detail-color);
  margin-right: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px) rotate(5deg);
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
}

#copyright {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px) rotate(360deg);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    padding: 1rem 0;
    text-align: center;
  }

  .btn-donation {
    margin: 0.5rem auto;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 200px;
  }

  #quem-somos-container {
    flex-direction: column;
  }

  .text-content,
  .image-content {
    width: 100%;
  }

  #showcase {
    height: 85vh;
    min-height: 500px;
  }

  #company-name {
    font-size: 2.2rem;
  }

  #verse {
    font-size: 1.1rem;
  }

  .diretor-content {
    flex: 1;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  #showcase {
    height: 80vh;
    min-height: 450px;
    padding: 0 0.5rem;
  }

  #showcase-container {
    padding: 1rem;
  }

  #quem-somos-container {
    display: flex;
    flex-direction: column-reverse;
  }

  #diretor-container {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-brand img {
    width: 50px;
    height: 50px;
  }

  #fale-conosco a,
  #conheca-cursos a {
    padding: 10px 20px;
    font-size: 1rem;
    display: block;
    margin: 0.5rem auto;
    width: 80%;
    max-width: 300px;
    white-space: nowrap;
  }

  .footer-contacts h4::after,
  .footer-links h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .card {
    min-width: 100%;
    max-width: 400px;
  }

  #card-cursos {
    gap: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  #cta-section {
    padding: 3rem 0;
  }

  /* Ajustes específicos para mobile das seções padronizadas */
  .text-content p,
  .diretor-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    padding: 0 0.5rem;
  }

  .diretor-content h3 {
    font-size: 1.5rem;
  }

  .diretor-content h4 {
    font-size: 1.1rem;
  }

  #quem-somos-container,
  #diretor-container {
    gap: 2rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 576px) {
  #company-name {
    font-size: 1.8rem;
  }

  #verse {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .headliner {
    font-size: 2rem;
    padding: 1.5rem 0 1rem;
  }

  #quem-somos,
  #cursos,
  #cta-section,
  #diretor {
    padding: 2rem 0;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-btn,
  .cta-btn-outline {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
  }

  .social-icons {
    justify-content: center;
  }

  /* Ajustes para o vídeo em dispositivos móveis */
  #video-background {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  #showcase {
    min-height: 400px;
  }

  #showcase-container {
    padding-top: 5rem;
  }

  #showcase h1 {
    font-size: 1.4 rem;
  }

  #showcase a {
    width: 215px;
  }

  .card-content {
    padding: 1rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .diretor-content h3 {
    font-size: 1.5rem;
  }

  .diretor-content h4 {
    font-size: 1.1rem;
  }

  .diretor-content p {
    font-size: 1rem;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .navbar-brand span {
    display: none;
  }

  #company-name {
    font-size: 1.6rem;
  }

  #verse {
    font-size: 0.9rem;
  }

  .headliner {
    font-size: 1.8rem;
  }

  .card-btn,
  #button-ver-mais a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .footer-brand h3 {
    font-size: 1.3rem;
  }

  .footer-contacts h4,
  .footer-links h4,
  .footer-social h4 {
    font-size: 1.1rem;
  }
}

/* Melhorias de acessibilidade para toque em dispositivos móveis */
@media (hover: none) and (pointer: coarse) {

  .btn-hero:hover,
  .card-btn:hover,
  .cta-btn:hover,
  .cta-btn-outline:hover,
  .btn-donation:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .image-content img:hover {
    transform: none;
  }

  .back-to-top:hover {
    transform: none;
  }

  .social-icons a:hover {
    transform: none;
  }
}

/* Correção para o espaço branco após a navbar */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

/* Ajuste para garantir que o conteúdo não fique escondido atrás da navbar */
section {
  scroll-margin-top: 80px;
}