/* Reseta as margens e paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Alto contraste */
body.high-contrast {
  background-color: black;
  color: white;
}

body.high-contrast a {
  color: yellow;
}

body {
  position: relative;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}

/* Estilo original para telas grandes */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  /* Ajuste conforme o tamanho do seu logo */
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main {
  margin-top: 120px;
  /* Igual à altura do header */
  padding: 0 80px;
  /* Seu padding lateral já existente */
  flex: 1;
  padding-top: 100px;
  /* ou a altura do seu header + um pouco de folga */
  padding-left: 20px;
  padding-right: 20px;
}

nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  width: 100%;
  background: linear-gradient(to bottom, #00A604, #037200);
  /* Degradê de verde escuro para verde claro */
}

.logo {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  /* Espaçamento para o logo ficar abaixo da barra de navegação */
  width: 100%;
  /* Garante que o logotipo fique centralizado */
  background-color: rgb(255, 255, 255);
  /* Cor do fundo para o logotipo */
}

.logo img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  /* Limita a altura para não crescer demais */
  display: block;
  margin: 0 auto;
}

.logo img:hover {
  transform: scale(1.05);
}

.menu {
  flex-grow: 1;
  /* Permite que o menu ocupe todo o espaço disponível */
}

.menu ul {
  display: flex;
  list-style: none;
  justify-content: flex-start;
  padding-left: 0;
  margin: 0;
}

.menu ul li {
  margin: 0 10px;
}

.menu ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
}

.menu ul li a {
  position: relative;
  display: inline-block;
  padding: 5px 5px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #eef6fe;
  /* Cor da linha */
  transition: width 0.3s ease;
}

.menu ul li a:hover {
  color: #eaf2fb;
  /* Cor do texto ao passar o mouse */
}

.menu ul li a:hover::after {
  width: 100%;
}

/* Container para Carousel e Cards */
.carousel-cards-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 50px;
  /* Espaço para o header fixo */
  gap: 20px;
}

/* Carrossel */
.carousel {
  flex: 1;
  max-width: 98%;
  /* Ajuste conforme necessário */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 45px;
}

.carousel-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: none;
  /* Escondidas por padrão */
  box-shadow: 0px 0px 10px rgb(182, 182, 182);
  border-radius: 10px;
}

.carousel-image.active {
  display: block;
  /* Mostra apenas a ativa */
}

/* Cards */
.cards-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  /* Ajuste conforme necessário */
  padding: 40px;
}

.card {
  width: 20%;
  /* 5 cards na mesma linha: 100 / 5 = 20%; ajustado para 18% para espaçamento */
  margin: 10px 1%;
}

.card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.card img:hover {
  transform: scale(1.05);
}

/* Notícias */
.noticias {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.noticia-card {
  width: 30%;
  text-align: center;
}

.noticia-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.noticia-card p {
  margin-top: 10px;
  font-size: 16px;
  color: #037200;
}

.accessibility {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
}

.access-btn {
  padding: 8px 12px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.access-btn:hover {
  background-color: #8d8f90;
  transform: scale(1.05);
}

.access-btn:active {
  transform: scale(0.98);
}

.high-contrast-btn i.material-icons {
  font-size: 20px;
}

.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #0ff !important;
}

.high-contrast .access-btn {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000;
}

.high-contrast .high-contrast-btn i {
  color: #000 !important;
}

/* Rodapé */
.footer {
  background: linear-gradient(to bottom, #00A604, #037200);
  color: white;

  .links {
    ul {
      list-style-type: none;
    }

    li a {
      color: white;
      transition: color .2s;

      &:hover {
        text-decoration: none;
        color: #000000;
      }
    }
  }

  .about-company {
    i {
      font-size: 25px;
    }

    a {
      color: white;
      transition: color .2s;

      &:hover {
        color: #4180CB
      }
    }
  }

  .location {

    i,
    h1 {
      font-size: 18px;
    }
  }

  .copyright p {
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
  }
}

.img-container:hover img {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

.zap {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.zap a {
  color: #25D366;
  text-decoration: none;
  font-weight: bold;
}

.zap i {
  margin-right: 5px;
  font-size: 24px;
}

.vaga {
  text-align: center;
  margin-top: 10px;
  font-size: 22px;
}

.vaga a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.vaga i {
  margin-right: 5px;
  font-size: 24px;
}

/* Estilos para telas pequenas (até 768px) */
@media (max-width: 768px) {
  .carousel-cards-container {
    display: none;
  }

  .cards-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0 auto;
    margin-top: 110px;
    /* ou ajuste para o suficiente */
    z-index: 0;
    /* fica atrás do logo se precisar */
  }

  .card {
    width: 100%;
    margin: 10px 0;
  }

  /* Notícias em coluna e mais largas */
  .noticias {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .noticia-card {
    width: 100%;
    /* ocupa quase toda largura */
    margin: 10px 0;
  }

  header {
    height: 90px;
    /* diminui o header */
  }

  .main {
    margin-top: 110px;
  }

  .logo img {
    max-height: 70px;
  }

  /* Esconde o menu (itens da navbar) */
  .menu {
    display: none;
  }

  /* Se quiser mostrar quando o menu estiver ativo (exemplo menu hamburguer) */
  .menu.active {
    display: flex;
    flex-direction: column;
    background-color: #004080;
    /* ou a cor que preferir */
    padding: 10px;
  }

  .menu ul {
    flex-direction: column;
  }

  .menu ul li {
    margin: 10px 0;
  }

  /* Logo menor */
  .logo img {
    width: 90%;
    /* diminui mais o tamanho */
    margin: 0 auto;
    display: block;
  }

  /* Se o logo tem position fixed ou absolute, deixe position static ou relative */
  .logo {
    position: relative;
    /* garante que não fique sobreposto */
    z-index: 1;
    /* um z-index baixo */
  }

  /* Ajustes extras para telas muito pequenas (ex: <400px) */
  @media (max-width: 400px) {

    header,
    .main {
      width: 95%;
      padding: 15px;
      margin-top: 120px;
    }
  }

  .card-matricula {
    background: #ffffff;
    border-radius: 15px;
    border-left: 8px solid #037200;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
  }

  .card-matricula:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

/* Reseta as margens e paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Alto contraste */
body.high-contrast {
  background-color: black;
  color: white;
}

body.high-contrast a {
  color: yellow;
}

body {
  position: relative;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}

/* Estilo original para telas grandes */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  /* Ajuste conforme o tamanho do seu logo */
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main {
  margin-top: 120px;
  /* Igual à altura do header */
  padding: 0 80px;
  /* Seu padding lateral já existente */
  flex: 1;
  padding-top: 100px;
  /* ou a altura do seu header + um pouco de folga */
  padding-left: 20px;
  padding-right: 20px;
}

nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  width: 100%;
  background: linear-gradient(to bottom, #00A604, #037200);
  /* Degradê de verde escuro para verde claro */
}

.logo {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  /* Espaçamento para o logo ficar abaixo da barra de navegação */
  width: 100%;
  /* Garante que o logotipo fique centralizado */
  background-color: rgb(255, 255, 255);
  /* Cor do fundo para o logotipo */
}

.logo img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  /* Limita a altura para não crescer demais */
  display: block;
  margin: 0 auto;
}

.logo img:hover {
  transform: scale(1.05);
}

.menu {
  flex-grow: 1;
  /* Permite que o menu ocupe todo o espaço disponível */
}

.menu ul {
  display: flex;
  list-style: none;
  justify-content: flex-start;
  padding-left: 0;
  margin: 0;
}

.menu ul li {
  margin: 0 10px;
}

.menu ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
}

.menu ul li a {
  position: relative;
  display: inline-block;
  padding: 5px 5px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #eef6fe;
  /* Cor da linha */
  transition: width 0.3s ease;
}

.menu ul li a:hover {
  color: #eaf2fb;
  /* Cor do texto ao passar o mouse */
}

.menu ul li a:hover::after {
  width: 100%;
}

/* Container para Carousel e Cards */
.carousel-cards-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 50px;
  /* Espaço para o header fixo */
  gap: 20px;
}

/* Carrossel */
.carousel {
  flex: 1;
  max-width: 98%;
  /* Ajuste conforme necessário */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 45px;
}

.carousel-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: none;
  /* Escondidas por padrão */
  box-shadow: 0px 0px 10px rgb(182, 182, 182);
  border-radius: 10px;
}

.carousel-image.active {
  display: block;
  /* Mostra apenas a ativa */
}

/* Cards */
.cards-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  /* Ajuste conforme necessário */
  padding: 40px;
}

.card {
  width: 20%;
  /* 5 cards na mesma linha: 100 / 5 = 20%; ajustado para 18% para espaçamento */
  margin: 10px 1%;
}

.card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.card img:hover {
  transform: scale(1.05);
}

/* Notícias */
.noticias {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.noticia-card {
  width: 30%;
  text-align: center;
}

.noticia-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.noticia-card p {
  margin-top: 10px;
  font-size: 16px;
  color: #037200;
}

.accessibility {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
}

.access-btn {
  padding: 8px 12px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.access-btn:hover {
  background-color: #8d8f90;
  transform: scale(1.05);
}

.access-btn:active {
  transform: scale(0.98);
}

.high-contrast-btn i.material-icons {
  font-size: 20px;
}

.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #0ff !important;
}

.high-contrast .access-btn {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000;
}

.high-contrast .high-contrast-btn i {
  color: #000 !important;
}

/* Rodapé */
.footer {
  background: linear-gradient(to bottom, #00A604, #037200);
  color: white;

  .links {
    ul {
      list-style-type: none;
    }

    li a {
      color: white;
      transition: color .2s;

      &:hover {
        text-decoration: none;
        color: #000000;
      }
    }
  }

  .about-company {
    i {
      font-size: 25px;
    }

    a {
      color: white;
      transition: color .2s;

      &:hover {
        color: #4180CB
      }
    }
  }

  .location {

    i,
    h1 {
      font-size: 18px;
    }
  }

  .copyright p {
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
  }
}

.img-container:hover img {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

.zap {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.zap a {
  color: #25D366;
  text-decoration: none;
  font-weight: bold;
}

.zap i {
  margin-right: 5px;
  font-size: 24px;
}

.vaga {
  text-align: center;
  margin-top: 10px;
  font-size: 22px;
}

.vaga a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.vaga i {
  margin-right: 5px;
  font-size: 24px;
}

/* Estilos para telas pequenas (até 768px) */
@media (max-width: 768px) {
  .carousel-cards-container {
    display: none;
  }

  .cards-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0 auto;
    margin-top: 110px;
    /* ou ajuste para o suficiente */
    z-index: 0;
    /* fica atrás do logo se precisar */
  }

  .card {
    width: 100%;
    margin: 10px 0;
  }

  /* Notícias em coluna e mais largas */
  .noticias {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .noticia-card {
    width: 100%;
    /* ocupa quase toda largura */
    margin: 10px 0;
  }

  header {
    height: 90px;
    /* diminui o header */
  }

  .main {
    margin-top: 110px;
  }

  .logo img {
    max-height: 70px;
  }

  /* Esconde o menu (itens da navbar) */
  .menu {
    display: none;
  }

  /* Se quiser mostrar quando o menu estiver ativo (exemplo menu hamburguer) */
  .menu.active {
    display: flex;
    flex-direction: column;
    background-color: #004080;
    /* ou a cor que preferir */
    padding: 10px;
  }

  .menu ul {
    flex-direction: column;
  }

  .menu ul li {
    margin: 10px 0;
  }

  /* Logo menor */
  .logo img {
    width: 90%;
    /* diminui mais o tamanho */
    margin: 0 auto;
    display: block;
  }

  /* Se o logo tem position fixed ou absolute, deixe position static ou relative */
  .logo {
    position: relative;
    /* garante que não fique sobreposto */
    z-index: 1;
    /* um z-index baixo */
  }

  /* Ajustes extras para telas muito pequenas (ex: <400px) */
  @media (max-width: 400px) {

    header,
    .main {
      width: 95%;
      padding: 15px;
      margin-top: 120px;
    }
  }

  .card-matricula {
    background: #ffffff;
    border-radius: 15px;
    border-left: 8px solid #037200;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
  }

  .card-matricula:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

.matriculas-novas {
  background: #f4fff6;
  padding: 40px 20px;
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1200px;
  border-left: 10px solid #037200;
}

.matriculas-novas h2 {
  text-align: center;
  color: #037200;
  font-size: 28px;
  margin-bottom: 10px;
}

.matriculas-novas .descricao {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
}

.matriculas-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card-matricula {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  width: 320px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform .3s, box-shadow .3s;
}

.card-matricula:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.card-matricula h3 {
  color: #037200;
  font-size: 22px;
  margin-bottom: 8px;
}

.card-matricula span {
  font-size: 16px;
  color: #555;
}

.rematriculas {
  background: #eef4ff;
  padding: 40px 20px;
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1200px;
  border-left: 10px solid #004080;
}

.rematriculas h2 {
  text-align: center;
  color: #004080;
  font-size: 28px;
  margin-bottom: 10px;
}

.rematriculas .descricao {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
}

.card-rematricula {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  width: 320px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform .3s, box-shadow .3s;
  border-top: 6px solid #004080;
}

.card-rematricula:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.card-rematricula h3 {
  color: #004080;
  font-size: 22px;
  margin-bottom: 8px;
}

.card-rematricula span {
  font-size: 16px;
  color: #555;
}
.modal-body ul {
  list-style-position: inside;
  padding-left: 0;
}

/* ============================= */
/* ALERTA WHATSAPP – TOPO PÁGINA */
/* ============================= */

.whatsapp-alerta {
  padding: 60px 15px 40px;
  background: linear-gradient(135deg, #e8f5e9, #ffffff);
}

.btn-whatsapp-pulse {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #1ebe57);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-whatsapp 1.8s infinite;
  transition: transform 0.3s ease;
}

.btn-whatsapp-pulse i {
  font-size: 1.6rem;
}

.btn-whatsapp-pulse:hover {
  transform: scale(1.05);
  text-decoration: none;
  color: #fff;
}

/* Animação de alerta (piscar elegante) */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Texto da portaria */
.texto-portaria {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  color: #2e7d32;
  line-height: 1.6;
}

.link-portaria {
  font-weight: 700;
  color: #1b5e20;
  text-decoration: underline;
}

.link-portaria:hover {
  color: #0d3f14;
}
