/* 
    cores padrões da escola
    
    azul: #27348B
    amarelo: #FEA800
    vermelho: #BE1D2C 
    */

.alert-box {
  background-color: #be1622;
}

.alert-box a {
  color: white;
}

.home-destaque {
  /* background-image: url('http://www.santanna.g12.br/wp-content/uploads/2023/03/img-fundo-home.png'); */
  background-color: black;
  background-position: center;
  background-size: cover;
  /* height: 500px; */
}

.home-destaque-textos h2 {
  color: #fea800;
  font-weight: 900;
}

.home-destaque-textos p {
  color: whitesmoke;
  line-height: 150%;
}

.home-destaque-textos p a {
  color: whitesmoke;
  line-height: 150%;
  color: #fea800;
}

.home-destaque-estatisticas {
  padding-top: 48px;
}

.home-destaque-estatisticas div {
  color: #fea800;
}

.home-destaque-estatisticas-icone svg {
  color: whitesmoke;
}

div.home-destaque-estatisticas-valor {
  font-size: 2rem;
  font-weight: 700;
}

div.home-destaque-estatisticas-valor-texto {
  font-size: 1rem;
  font-weight: 700;
  line-height: 100%;
  padding-top: 8px;
}

div.home-destaque-estatisticas-texto {
  color: whitesmoke;
  font-size: 0.8rem;
}

#video-pagina-inicial {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  /* max-height: 650px; */
}

/* Estilos para o bloco de vídeo na home: ocupa toda a área visível abaixo do header */
.home-video-section {
  position: relative;
  width: 100%;
  /* assumir header com ~75px; o valor pode ser ajustado se necessário */
  height: calc(100vh - 75px);
  overflow: hidden;
}

.home-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#video-pagina-inicial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: auto;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Se o header não for fixo, garantir que o vídeo ainda apareça corretamente em telas pequenas */
@media (max-width: 767px) {
  /* Em mobile, diminui a altura para ocupar metade da viewport */
  .home-video-section {
    height: 50vh;
  }
}

/* camada de texto/overlay caso queira adicionar conteúdo sobre o vídeo no futuro */
.home-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.video-noscript-fallback {
  padding: 1rem;
  background: #000;
  color: #fff;
  text-align: center;
}

/* .borda-direita {
        border-right: 3px solid whitesmoke;
    } */

.estatistica-item:hover {
  cursor: auto;

  animation: bounce;
  /* referring directly to the animation's @keyframe declaration */
  animation-duration: 1s;
  /* don't forget to set a duration! */
}

.card-missao:hover {
  cursor: auto;

  animation: pulse;
  /* referring directly to the animation's @keyframe declaration */
  animation-duration: 0.7s;
  /* don't forget to set a duration! */
}

.card-programas:hover {
  cursor: auto;

  animation: pulse;
  /* referring directly to the animation's @keyframe declaration */
  animation-duration: 0.7s;
  /* don't forget to set a duration! */
}

.conceito-educacional p,
.nossa-historia p,
.programa-brasileiro p,
.programa-internacional p {
  line-height: 120%;
}

.nossa-historia h3 {
  color: #fea800;
}

.programa-internacional,
.programa-brasileiro {
  background-image: url('http://www.santanna.g12.br/wp-content/uploads/2023/03/textura-fundo-menor-res.png');
}

.conceito-educacional {
  background-image: url('http://www.santanna.g12.br/wp-content/uploads/2023/03/Fundo-Conceito-Educacional_Prancheta-1.png');
  background-size: contain;
}

.nossa-historia {
  /* background-color: #27348B; */
  background-image: url('http://www.santanna.g12.br/wp-content/uploads/2023/03/Fundo-Nossa-Historia.png');
}

.nossa-historia p {
  color: whitesmoke;
}

.botao-home {
  margin-top: 8px;
  margin-right: 8px;
  font-size: 0.7rem;
  background-color: gainsboro;
  color: black;
  border-color: black;
}

.botao-home:hover {
  background-color: #27348b;
  border-color: black;
}

.btn-fundo-vermelho:hover {
  background-color: #be1d2c;
  border-color: black;
}

.row-missao-visao-valores {
  /* background-color: #0A1455; */
  /* background-color: var(--azul); */

  background-color: #f2f4f4;
  background-image: url('https://www.santanna.g12.br/wp-content/uploads/2023/08/Fundo-Missao-Visao-Valores-jpg.webp');

  /* padding-top: 40px; */
  /* padding-bottom: 20px; */
}

.row-missao-visao-valores p,
.row-missao-visao-valores h5 {
  color: whitesmoke;
}

.card {
  /* border-style: solid; */
  /* border-width: 2px; */
  border-color: transparent;
  border-radius: 18px;
}

.row-lista-faculdades h3 {
  color: #27348b;
}

.row-lista-faculdades h6 {
  margin-top: 0px;
  color: #be1d2c;
  font-size: large;
  font-weight: bold;
  margin-bottom: 4px;
}

.row-lista-faculdades-fundo {
  background-image: url('https://www.santanna.g12.br/wp-content/uploads/2023/03/Fundo-Mapa_Prancheta-1-1.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.titulo-home-fundo-claro {
  color: #27348b;
}

.img-testimonial {
  background-size: cover !important;
}

.parceiro-item:hover {
  cursor: pointer;

  /* animation: rubberBand; */
  animation: pulse;
  /* referring directly to the animation's @keyframe declaration */
  animation-duration: 1s;
  /* don't forget to set a duration! */
}

.img-miv {
  max-width: 50px;
  padding-right: 8px;
}

.titulo-miv {
  margin-top: 0px;
}

.card-missao-celular {
  min-height: 210px;
}

#div-parceiros-celular {
  min-height: 210px;
}

.div-card-programas {
  /*background-image: url('https://www.santanna.g12.br/wp-content/uploads/2023/03/textura-fundo-menor-res.png');*/
  background-color: #f8f9f9;
}

.bandeira {
  max-width: 30px;
}

.imagem-banner-home {
  object-fit: cover;
  /* object-position: center; */
}

/* Melhorias para lista de universidades */
.universidades-section {
  --primary-blue: #27348b;
  --primary-yellow: #fea800;
  --primary-red: #be1d2c;
  --light-gray: #f8f9f9;
  --white: #ffffff;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.universidades-title {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.universidades-carousel {
  position: relative;
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 15px 35px rgba(0, 0, 0, 0.08);
  background: var(--white);
  margin-bottom: 50px;
}

.universidades-slide {
  padding: 2rem;
  min-height: 400px;
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
}

.universidades-country-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.8rem;
  background: linear-gradient(135deg, var(--primary-blue), #3a4bc7);
  border-radius: 30px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 20px rgba(39, 52, 139, 0.4);
  position: relative;
  overflow: hidden;
}

.universidades-country-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.universidades-country-header .bandeira {
  width: 48px;
  height: auto;
  margin-right: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.universidades-country-header .bandeira:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-yellow);
}

.universidades-list {
  column-count: 1;
  column-gap: 2rem;
  line-height: 1.8;
  color: #2c3e50;
}

@media (min-width: 768px) {
  .universidades-list {
    column-count: 2;
  }
}

@media (min-width: 1200px) {
  .universidades-list {
    column-count: 3;
  }
}

.universidades-list-mobile {
  column-count: 1;
  column-gap: 1.5rem;
  line-height: 1.6;
  color: #2c3e50;
}

@media (min-width: 576px) {
  .universidades-list-mobile {
    column-count: 2;
  }
}

.universidade-item {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 0.5rem;
}

.universidade-item:hover {
  color: var(--primary-blue);
  border-left-color: var(--primary-yellow);
  transform: translateX(5px);
  background-color: rgba(254, 168, 0, 0.05);
  border-radius: 0 5px 5px 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -14px;
}

.carousel-control-next {
  right: -14px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--primary-red);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-image: none !important;
  position: relative;
}

/* Correção para os ícones do carousel - criando setas personalizadas */
.carousel-control-prev-icon::before {
  content: '<';
  font-size: 2rem;
  font-weight: bold;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  font-family: Arial, sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-control-next-icon::before {
  content: '>';
  font-size: 2rem;
  font-weight: bold;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  font-family: Arial, sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  bottom: -80px;
  margin-bottom: 0;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  opacity: 0.5;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: var(--primary-yellow);
  opacity: 1;
  transform: scale(1.2);
}

.botao-matricula {
  display: inline-block;
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.botao-matricula:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.botao-matricula img {
  transition: transform 0.3s ease;
}

.botao-matricula:hover img {
  transform: scale(1.05);
}

/* Animações personalizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.universidades-slide {
  animation: fadeInUp 0.6s ease-out;
}

/* Prevenção de scroll automático nos controles do carousel */
.carousel-control-prev[href],
.carousel-control-next[href] {
  scroll-behavior: auto !important;
}

/* Melhorias de acessibilidade */
.carousel-control-prev:focus,
.carousel-control-next:focus {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 2px;
}

.universidade-item:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Espaçamento específico para indicadores */
#listaUniversidadesComputador .carousel-indicators,
#listaUniversidadesCelular .carousel-indicators {
  position: static;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Correção: evita barra de rolagem horizontal apenas na home
       - força imagens a serem responsivas
       - esconde qualquer overflow-x residual somente na página inicial */
body.home {
  overflow-x: hidden;
}

body.home img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Protege carousels grandes de produzir overflow horizontal */
body.home .universidades-carousel,
body.home .carousel {
  overflow-x: hidden;
}

/* Banner: limita a altura do carousel, esconde overflow vertical e garante que
       a imagem não force uma altura inline (JS). Isso remove a barra de rolagem no banner. */
body.home .carousel,
body.home .carousel-inner,
body.home .carousel-item {
  max-height: calc(100vh - 75px);
  overflow: hidden;
}

body.home .imagem-banner-home {
  width: 100%;
  height: auto !important;
  /* sobrescreve a altura inline aplicada por JS */
  max-height: calc(100vh - 75px);
  object-fit: cover;
  display: block;
}
