:root {
  --primaria: #232f81; 
  --secundaria: #f2f4f3;
  --destaque: #fff;
  --texto: #222;
  --cinza: #ddd;
  --sombra: 0 4px 12px rgba(0,0,0,0.1);
  --borda: 1px solid #e0e0e0;
  --amarelo: #ffffff; 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--amarelo);
  color: var(--texto);
  line-height: 1.6;
}




/* LOADING SCREEN */
#loading-screen {
  position: fixed;
  z-index: 9999;
  background-color: var(--amarelo);
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newtons-cradle {
  --uib-size: 60px;
  --uib-speed: 1.2s;
  --uib-color: #2910ca;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--uib-size);
  height: var(--uib-size);
  position: relative;
}

.newtons-cradle__dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 25%;
  transform-origin: center top;
}

.newtons-cradle__dot::after {
  content: '';
  display: block;
  width: 100%;
  height: 25%;
  border-radius: 50%;
  background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
  animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
  animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
  0% { transform: rotate(0deg); animation-timing-function: ease-out; }
  25% { transform: rotate(70deg); animation-timing-function: ease-in; }
  50% { transform: rotate(0deg); animation-timing-function: linear; }
}

@keyframes swing2 {
  0% { transform: rotate(0deg); animation-timing-function: linear; }
  50% { transform: rotate(0deg); animation-timing-function: ease-out; }
  75% { transform: rotate(-70deg); animation-timing-function: ease-in; }
}

/* ENVOLVER TUDO QUE VEM DEPOIS DO CARROSSEL */
.main-content {
  position: relative;
  z-index: 1;
}

.background-fundo {
  position: relative;
  z-index: 1;
  background-color: var(--amarelo); 
  overflow: hidden;
}





/* HEADER */
header {
  background: var(--primaria);
  color: var(--destaque);
  padding: 30px 20px;
  text-align: center;
}

.linha-verde {
  height: 5px;
  background-color: #4CAF50; 
  width: 100%;
  margin: 0 auto;
  padding: 0;
}


.logo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;

  box-shadow: var(--sombra);
  margin-bottom: 10px;
}

nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* BOTÃO SAIR */
#btn-logout {
  margin-top: 10px;
  background: #f44336;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.hidden {
  display: none !important;
}

/* SEÇÕES */
section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.sec-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.sec-title h2 {
  font-size: 1.8rem;
  color: var(--primaria);
}

.edit-btn {
  display: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* CARROSSEL */
.custom-carousel {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.carousel-container {
    width: 100%;
    max-width: 100%;
    height: 65vh; 
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    padding: 0;
     position: relative; 
}
.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}


.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: FILL;
  flex-shrink: 0;
  border-radius: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primaria);
  border: none;
  font-size: 1.8rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn.left { left: 15px; }
.carousel-btn.right { right: 15px; }

.carousel-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 15;
}

.btn-carousel {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn-carousel.add {
  background-color: #27ae60;
  color: white;
}
.btn-carousel.add:hover {
  background-color: #1e8449;
}

.btn-carousel.delete {
  background-color: #e74c3c;
  color: white;
}
.btn-carousel.delete:hover {
  background-color: #c0392b;
}

/* NOTÍCIAS */
.noticia-grid {
  display: grid;
    grid-template-columns: repeat(2, 1fr); 
  gap: 35px;
}

.card-noticia {
  background: white;
  border-radius: 12px;
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.card-noticia:hover {
  transform: scale(1.02);
}

.card-noticia img {
  width: 100%;
  height: 600x;
  object-fit: contain;
    background-color: #f2f2f2;
}

.card-noticia h4 {
  font-size: 1.1rem;
  padding: 15px;
  color: var(--texto);
}

.btn-excluir-noticia {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
}
#texto-noticia {
  text-align: justify;
}



.btn-excluir-noticia:hover {
  background-color: #d32f2f;
}

.btn-detalhes-noticia {
  background-color: #3662f4;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 10px 15px 15px; 
  display: inline-block;
}


.btn-detalhes-noticia:hover {
  background-color: #3662f4;
}
/* GALERIA */
.galeria {
  background: white;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  justify-items: center;
}

.galeria-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

.btn-add {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-add:hover {
  background-color: #1e8449;
}
/* MODAL GALERIA */
#modal-galeria {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#modal-galeria.hidden {
  display: none;
}

#modal-galeria img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 3rem;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
}

.modal-nav.left { left: 30px; }
.modal-nav.right { right: 30px; }

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.btn-excluir-galeria {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
}

.btn-excluir-galeria:hover {
  background-color: #d32f2f;
}

/* LOGIN POPUP */
.popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--sombra);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
}

.popup input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.popup button {
  width: 100%;
  padding: 10px;
  background-color: var(--primaria);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* FOOTER */
footer {
  background: var(--primaria);
  color: white;
  padding: 40px 20px;
  margin-top: 0;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 220px;
}

.footer-top-row h3 {
  margin-bottom: 10px;
  color: white;
  font-size: 1.2rem;
}


.footer-top-row p,
.footer-top-row a,
.footer-top-row strong {
  font-size: 1rem;
  color: white;
}

.footer-top-row a:hover {
  text-decoration: underline;
}

.social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.social img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.social img:hover {
  transform: scale(1.1);
}

.fb-logo-alone {
  width: 130px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.fb-logo-alone:hover {
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #fdfdfd;
  max-width: 98%;
  margin: 0 auto;
  padding: 0 10px;
}

.footer-bottom a.back-to-top {
  margin-left: 10px;
  color: var(--secundaria);
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom a:hover {
  text-decoration: underline;
}
.footer-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin: 30px 0;
}

.footer-bottom a {
  color: white;
  margin-left: 8px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}
/* --------------------------------------SOBRE NOS-------------------------------------------------------- */

.sobre-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center; 
  margin: 40px auto;
  max-width: 1100px; 
  padding: 0 20px; 
}

.sobre-img {
  flex: 1 1 300px;
  text-align: center;
  transform: translateX(-400px); 
}
.sobre-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

.sobre-texto {
  flex: 1 1 600px; 
  text-align: center; 
  transform: translateX(-185px);
}

#texto-sobre {
  text-align: justify;
  font-size: 1.1rem;
  color: var(--texto);
  line-height: 1.8;
  font-family: 'Poppins', sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.diferenciais-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.diferenciais-grid ul {
  flex: 1 1 400px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.diferenciais-grid li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
}

.diferenciais-imgs {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: -80px; /* ⬆️ sobe as imagens */
}
.diferenciais-imgs img {
  width: 100%;
  max-width: 300px;
  border: 4px solid orange;
  border-radius: 10px;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}
/* NOVO LAYOUT MISSÃO VISÃO VALORES */
.mvv-novo {
  text-align: center;
  margin-top: 60px;
  padding: 0 20px;
}

.titulo-mvv {
  font-size: 2rem;
  font-weight: bold;
  color: #1c1c1c;
  margin-bottom: 40px;
}

.mvv-novo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.mvv-bloco {
  max-width: 300px;
  text-align: center;
}

.mvv-bloco img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.mvv-bloco p {
  text-align: justify;
  font-size: 1rem;
  color: #1c1c1c;
  line-height: 1.5;
}

.mvv-bloco:nth-child(1) img {
  border: 5px solid #FFD700; 
}


.mvv-bloco:nth-child(2) img {
  border: 5px solid #4CAF50; 
}


.mvv-bloco:nth-child(3) img {
  border: 5px solid #232f81; 
}

.turnos-atendidos  {
  text-align: center;       
  max-width: 600px;          
  margin: 0 auto 2rem auto;  
}

.turnos-atendidos ul{ 
  list-style-position: inside; 
  padding-left: 0;             
  display: inline-block;       
  text-align: left;            
  margin: 0 auto;              
}
.disciplinas-container {
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  gap: 30px; 
}

.disciplinas-interativas {
  flex: 1;
  text-align: center;
}

.disciplinas-interativas ul {
  list-style-position: inside;
  padding-left: 0;
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.imagem-disciplinas {
  max-width: 250px;
  height: auto;
  margin-top: -20px; 
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}
/* ========== SEÇÃO TURNOS ATENDIDOS ========== */

/* Turnos Atendidos */
.turnos-atendidos {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 15px;
}

.turnos-atendidos ul {
  list-style-position: inside;
  padding-left: 0;
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.disciplinas-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 0 15px;
  flex-wrap: wrap;
}

.disciplinas-interativas {
  flex: 1 1 300px;
  text-align: center;
}

.disciplinas-interativas ul {
  list-style-position: inside;
  padding-left: 0;
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.imagem-disciplinas {
  flex: 1 1 250px;
  max-width: 250px;
  height: auto;
  margin-top: -20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Turmas Atendidas */
.turmas-atendidas {
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 15px;
  text-align: center;
}

.turmas-atendidas h2 {
  color: #2b3674;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px #aaa;
}

.turmas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
}

.turma-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.turma-item h3 {
  font-weight: 700;
  color: #5a7d2a;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.turma-item img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 15px;
  border: 3px solid #2b3674;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* RESPONSIVIDADE */
/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 1800px) and (min-width: 1301px) {

  .sobre-texto {
    text-align: center;
  }
#texto-sobre{
  text-align: justify;
    padding: 0 15px;
    max-width: 85%;

}
  .sobre-img  {
    max-width: 70%;
    height: auto;
    margin-left: 20px;
    transform: translateX(-250px); 
  }
}
@media (max-width: 1300px) and (min-width: 769px) {
  .sobre-img,
  .sobre-texto {
    transform: none !important;
  }

  .sobre-texto {
    text-align: justify;
    padding: 0 15px;
    max-width: 95%;
  }

  .sobre-img img {
    max-width: 100%;
    height: auto;
  }
}
/* ---------- TABLET E MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {
  /* Disciplinas */
  .disciplinas-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    gap: 20px;
  }

  .custom-carousel {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }


   .carousel-container {
    width: 100%;
    overflow: hidden;
       margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .carousel-slide {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }

  .carousel-slide img {
    width: 100vw; /* faz a imagem ocupar toda a largura da tela */
    height: auto;
    object-fit: contain; /* mostra a imagem inteira */
    flex-shrink: 0;
  }

  .imagem-disciplinas {
    margin-top: 0;
    max-width: 90%;
    height: auto;
  }

  /* Turnos Atendidos */
  .turnos-atendidos {
    font-size: 0.98rem;
    padding: 0 15px;
  }

  .turnos-atendidos ul,
  .disciplinas-interativas ul {
    text-align: left;
    padding-left: 0;
    list-style-position: inside;
    margin: 0 auto;
  }

  /* Manchas */

  /* SOBRE */
  .sobre-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px;
    gap: 20px;
  }

  .sobre-img,
  .sobre-texto {
    transform: none !important; 
  }

  .sobre-texto {
    text-align: justify;
    padding: 0 10px;
    max-width: 95%;
  }

  .sobre-img img {
    max-width: 90%;
    height: auto;
  }

  /* MVV */
  .mvv-novo-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mvv-bloco {
    max-width: 100%;
    padding: 0 15px;
    text-align: center;
  }

  .mvv-bloco img {
    width: 160px;
    height: 160px;
  }

  .titulo-mvv {
    font-size: 1.5rem;
  }

  /* Diferenciais */
  .diferenciais-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .diferenciais-grid ul {
    padding: 0 10px;
    text-align: left;
  }

  .diferenciais-imgs img {
    max-width: 90%;
    height: auto;
  }

  /* Nav */
  nav a {
    padding: 6px 12px;
    font-size: 1rem;
  }

  /* Footer */
  .footer-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-map iframe {
    width: 100%;
    height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
  }
}

/* ---------- MOBILE PEQUENO (max-width: 480px) ---------- */
@media (max-width: 480px) {
  /* Disciplinas */
  .imagem-disciplinas {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .disciplinas-container {
    padding: 0 10px;
    gap: 20px;
  }

  .turnos-atendidos,
  .disciplinas-interativas {
    max-width: 100%;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .turnos-atendidos ul,
  .disciplinas-interativas ul {
    text-align: left;
    padding-left: 0;
  }

  /* Manchas */
 
  /* Header */
  header {
    padding: 20px 10px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    width: 100px;
    height: 100px;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    font-size: 0.95rem;
    padding: 6px 10px;
    display: block;
  }

  /* MVV */
  .titulo-mvv {
    font-size: 1.2rem;
  }

  .mvv-bloco img {
    width: 140px;
    height: 140px;
  }

  /* SOBRE */
  .sobre-img,
  .sobre-texto {
    transform: none !important;
  }

  .sobre-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    gap: 15px;
  }

  .sobre-texto {
    text-align: justify;
    padding: 0 10px;
    max-width: 100%;
    font-size: 1rem;
  }

  .sobre-img img {
    max-width: 95%;
    height: auto;
  }

  /* Diferenciais */
  .diferenciais-imgs img {
    max-width: 100%;
    height: auto;
  }

  /* Turmas */
  .turmas-grid {
    grid-template-columns: 1fr;
  }

  .turma-item img {
    max-width: 90%;
  }

  /* Footer */
  .footer-map iframe {
    height: 250px;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }
}
