/* ====== Estilos base ====== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;

    max-width: 1300px; /* Largura máxima */
    max-height: 170px; /* Altura máxima */
    margin: 0 auto; /* Centraliza horizontalmente */
}

.cabecalho {
    background: #e67e22;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.cabecalho h1 {
    margin: 0;
    font-size: 1.8em;
}

.container {
    display: flex;
    margin-top: 60px;
}


.imagem-central {
    text-align: center;          /* Centraliza o texto */
    display: flex;
    flex-direction: column;      /* Empilha imagem e texto */
    justify-content: center;     /* Centraliza verticalmente */
    align-items: center;         /* Centraliza horizontalmente */
    margin: 20px auto;           /* Centraliza o bloco inteiro */
}

.imagem-central img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nascimento-morte {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}


/* ===== Menu lateral otimizado ===== */
.menu, menu {
    width: 250px;                /* largura fixa no desktop */
    background: #d35400;         /* fundo laranja */
    color: white;
    padding: 8px 6px;            /* padding reduzido */
    height: 100vh;               
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;

    overflow-y: auto;             /* permite rolar verticalmente */
    scrollbar-width: thin;        /* Firefox: barra fina */
}

/* Estilo da barra de rolagem no Chrome/Edge/Safari */
.menu::-webkit-scrollbar {
    width: 6px;
}
.menu::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
}
.menu::-webkit-scrollbar-track {
    background-color: rgba(255,255,255,0.1);
}

/* Botões */
.menu button, menu button {
    display: block;
    width: 100%;
    padding: 6px 7px;            /* altura menor para caber mais */
    margin: 2px 0;                /* espaçamento reduzido */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 0.7em;             /* fonte um pouco menor */
    position: relative;
    overflow: hidden;             /* efeito de brilho */
    transition: all 0.3s ease;
    background-size: 200% auto;
}

/* Primeiro botão um pouco afastado do topo */
.menu > button:first-child {
  margin-top: 70px;
}
/* Gradientes diferentes para cada botão */
.menu button:nth-child(1) { background: linear-gradient(45deg, #e67e22, #f39c12); }
.menu button:nth-child(2) { background: linear-gradient(45deg, #27ae60, #2ecc71); }
.menu button:nth-child(3) { background: linear-gradient(45deg, #2980b9, #3498db); }
.menu button:nth-child(4) { background: linear-gradient(45deg, #8e44ad, #9b59b6); }
.menu button:nth-child(5) { background: linear-gradient(45deg, #d35400, #e67e22); }
.menu button:nth-child(6) { background: linear-gradient(45deg, #16a085, #1abc9c); }
.menu button:nth-child(7) { background: linear-gradient(45deg, #c0392b, #e74c3c); }
.menu button:nth-child(8) { background: linear-gradient(45deg, #f39c12, #f1c40f); }
.menu button:nth-child(9) { background: linear-gradient(45deg, #34495e, #2c3e50); }
.menu button:nth-child(10) { background: linear-gradient(45deg, #7f8c8d, #95a5a6); }
.menu button:nth-child(11) { background: linear-gradient(45deg, #d35400, #e67e22); }
.menu button:nth-child(12) { background: linear-gradient(45deg, #27ae60, #2ecc71); }
.menu button:nth-child(13) { background: linear-gradient(45deg, #2980b9, #3498db); }
.menu button:nth-child(14) { background: linear-gradient(45deg, #8e44ad, #9b59b6); }
.menu button:nth-child(15) { background: linear-gradient(45deg, #16a085, #1abc9c); }
.menu button:nth-child(16) { background: linear-gradient(45deg, #c0392b, #e74c3c); }
.menu button:nth-child(17) { background: linear-gradient(45deg, #f39c12, #f1c40f); }
.menu button:nth-child(18) { background: linear-gradient(45deg, #34495e, #2c3e50); }
.menu button:nth-child(19) { background: linear-gradient(45deg, #7f8c8d, #95a5a6); }
.menu button:nth-child(20) { background: linear-gradient(45deg, #d35400, #e67e22); }

/* Efeito de brilho animado */
.menu button::before, menu button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.menu button:hover::before, menu button:hover::before {
    left: 125%;
}

/* Hover animado */
.menu button:hover, menu button:hover {
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

/* Clique animado */
.menu button:active, menu button:active {
    transform: scale(0.97);
}

/* ===== Responsivo: Mobile ===== */
@media(max-width: 1023px) {
    .menu, menu {
        width: 180px;
    }
    .menu button, menu button {
        padding: 6px 4px;
        font-size: 0.85em;
    }
}


.conteudo {
    flex: 1;
    padding: 20px;
    background: white;
    margin-left: 290px;
    min-height: calc(100vh - 110px);
}

.conteudo h2 {
    color: #d35400;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.pagina-inicial {
    text-align: center;
}

.foto-escola {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rodape {
    background: #d35400;
    color: white;
    text-align: center;
    padding: 10px;
    margin-left: 250px;
}

/* ====== Mural ====== */
.mural-fundo {
    background: #fdf6e3;  
    padding: 20px;
    border: 2px solid #d4b483;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.mural-tabela {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 20px auto;
}

.mural-tabela td {
    padding: 10px;
    vertical-align: top;
}

.mural-tabela img {
    display: block;
    margin: 0 auto 5px;
    width: 200px;
    height: 220px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    border-radius: 4px;
    transition: transform 0.2s;
}

.mural-tabela img:hover {
    transform: scale(1.05);
}

.mural-tabela p {
    margin: 0;
    font-size: 13px;
    color: #333;
}

.mural-tabela a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ====== Catálogo ====== */
.catalogo {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.catalogo th, .catalogo td {
    border: 2px solid #228B22;
    padding: 10px;
    text-align: center;
}

.catalogo th {
    background-color: #f4f4f4;
}

.catalogo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

/* ====== Faixa rolando ====== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    padding: 8px 0;
    box-sizing: border-box;
}

#marquee-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    font-weight: bold;
    font-size: 16px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ====== Laboratórios ====== */
.mural-labs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #fdf6e3;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #d4b483;
    max-width: 1000px;
    margin: 0 auto;
}

.lab-item {
    text-align: center;
    flex: 1 1 180px;
}

.lab-item img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    border-radius: 4px;
    display: block;
    margin: 0 auto 8px;
    transition: transform 0.2s;
}

.lab-item img:hover {
    transform: scale(1.05);
}

.lab-item p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* ====== Notícias ====== */
.mural-noticias {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;        
    gap: 20px;
    margin-top: 20px;
}

.mural-noticias .noticia-card {
    background: #f0f8ff;
    border-radius: 12px;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 15px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mural-noticias .noticia-card:hover {
    transform: translateY(-5px);
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.mural-noticias .noticia-card img {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
}

.mural-noticias .noticia-card h3 {
    margin: 10px 0 5px 0;
    justify-content: center;
    color: #0077b6;
}

.mural-noticias .noticia-card h1 {
    margin: 10px 0 5px 0;
    justify-content: center;
    color: #b60000ff;
}

.mural-noticias .noticia-card p {
    font-size: 14px;
    justify-content: center;
    color: #333;
}

/* ====== Professores ====== */
.professores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.professor {
    text-align: center;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.professor img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #3498db;
}

.professor h3 {
    font-size: 16px;
    margin: 5px 0;
    color: #2c3e50;
}

.professor p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* ====== Responsividade suave ====== */

/* Tablet */
@media (max-width: 1024px) {
    .conteudo {
        margin-left: 250px; 
        padding: 15px;
    }
    .rodape {
        margin-left: 250px;
        font-size: 14px;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .menu {
        position: relative;
        width: 100%;
        height: auto;
    }
    .conteudo {
        margin-left: 0;
        padding: 10px;
    }
    .rodape {
        margin-left: 0;
        font-size: 13px;
    }
    .cabecalho h1 {
        font-size: 1.2em;
        padding: 10px;
    }
}

/* Imagens adaptáveis em telas pequenas */
@media (max-width: 480px) {
    .foto-escola, .mural-tabela img, .lab-item img, .professor img, .equipe-card img {
        max-width: 100%;
        height: auto;
    }
    .menu button {
        font-size: 0.9em;
        padding: 6px;
    }
}
/* Piscando o texto */
.mural-piscando {
  animation: piscar 1s infinite;
  font-weight: bold;
  color: #ff6600;
}

@keyframes piscar {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Rolagem contínua */
.mural-rolando-box {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-top: 10px;
}

.mural-rolando {
  display: inline-block;
  white-space: nowrap;
  animation: rolar 15s linear infinite;
}

@keyframes rolar {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Pequena animação na imagem */
.mural-container img {
  transition: transform 0.5s;
}

.mural-container img:hover {
  transform: scale(1.1) rotate(3deg);
}

.centralizar {
  text-align: center; /* centraliza conteúdo inline */
}
/* Geral */
img {
  max-width: 100%;
  height: auto;
}

/* Tabela do mural de projetos */
.mural-tabela {
  width: 100%;
  border-collapse: collapse;
}

.mural-tabela td {
  padding: 10px;
  text-align: center;
}

/* Mural de laboratórios */
.mural-labs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.mural-labs .lab-item {
  flex: 1 1 200px; /* mínimo 200px cada card */
  max-width: 300px;
  text-align: center;
}

/* Mural de evidências */
#gallery {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Media queries */
@media (max-width: 1024px) {
  .mural-labs {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .mural-tabela td {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
  .mural-labs {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.2rem;
  }
  p {
    font-size: 0.9rem;
  }
}
/* =================== PÁGINA INICIAL =================== */
.pagina-inicial {
    text-align: center;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagina-inicial img.foto-escola {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pagina-inicial h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pagina-inicial p {
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.4;
}

/* =================== PROJETOS =================== */
.mural-fundo {
    overflow-x: auto;
    padding: 10px;
}

.mural-tabela {
    width: 100%;
    border-collapse: collapse;
}

.mural-tabela td {
    text-align: center;
    padding: 10px;
}

.mural-tabela img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.mural-tabela p {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* =================== LABORATÓRIOS =================== */
.mural-labs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.lab-item {
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
}

.lab-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =================== MURAL DE EVIDÊNCIAS =================== */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 5px;
}



.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;               /* deixa a imagem crescer naturalmente */
    max-height: 300px;          /* limita o tamanho pra não ficar gigante */
    object-fit: contain;        /* mostra a imagem inteira */
    background: #f0f0f0;        /* fundo neutro para imagens com espaço sobrando */
    display: block;             /* remove pequenos espaços brancos abaixo */
    margin: 0 auto;
}



.gallery-item div {
    margin: 3px 0;
}

/* =================== MEDIA QUERIES =================== */
@media screen and (max-width: 1024px) {
    .pagina-inicial h2 {
        font-size: 1.8rem;
    }
    .pagina-inicial p {
        font-size: 0.95rem;
    }
    .lab-item {
        max-width: 45%;
    }
    .mural-tabela td {
        max-width: 180px;
        padding: 5px;
    }
}

@media screen and (max-width: 768px) {
    .pagina-inicial h2 {
        font-size: 1.5rem;
    }
    .pagina-inicial p {
        font-size: 0.9rem;
    }
    .lab-item {
        max-width: 90%;
    }
    .mural-tabela {
        display: block;
    }
    .mural-tabela tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .mural-tabela td {
        flex: 1 1 45%;
        margin: 5px;
    }
}

@media screen and (max-width: 480px) {
    .pagina-inicial h2 {
        font-size: 1.3rem;
    }
    .pagina-inicial p {
        font-size: 0.85rem;
    }
    .mural-tabela td {
        flex: 1 1 90%;
    }
    #gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
/* Menu superior somente no celular */
.menu-superior {
    display: none; /* Esconde por padrão */
}

/* Menu superior visível em telas menores que 768px */
@media screen and (max-width: 768px) {
    .menu-superior {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background-color: #004080; /* cor do menu */
        padding: 10px;
        position: fixed; /* fixo no topo */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .menu-superior a {
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        padding: 5px 10px;
    }

    body {
        padding-top: 60px; /* espaço para o menu fixo */
    }
}

.mural-tabela img {
  width: 200px;      /* largura fixa */
  height: 150px;     /* altura fixa */
  object-fit: cover; /* corta excesso sem distorcer */
  border-radius: 8px;
}
.mural-tabela td {
  text-align: center;
  vertical-align: top;
  padding: 10px;
}
.mural-tabela p {
  margin-top: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}
body { 
  background: #f0f4f8; 
  font-family: Arial, sans-serif; 
  margin:0; 
  padding:0; 
}

.card { 
  background: #fff; 
  padding: 20px; 
  border-radius: 10px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  margin: 20px auto; 
  max-width: 1000px; 
}

#gallery { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 15px; 
}

.gallery-item { 
  border-radius: 8px; 
  overflow: hidden; 
  background: #fff; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  text-align: center; 
  transition: transform 0.3s, box-shadow 0.3s; 
  position: relative; 
  display:flex; 
  flex-direction: column; 
}

.gallery-item:hover { 
  transform: scale(1.05); 
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}

.gallery-item img { 
  width: 100%;       /* ocupa toda a largura do card */
  height: 180px;     /* altura fixa para uniformidade */
  object-fit: cover; /* corta excesso sem distorcer */
  display: block; 
}

.gallery-item div { 
  margin: 3px 0; 
  padding: 0 5px; 
  word-wrap: break-word; 
}

.row { 
  margin: 10px 0; 
}

input[type="text"], input[type="password"], input[type="file"] { 
  width: 100%; 
  padding: 8px; 
  border-radius: 5px; 
  border: 1px solid #ccc; 
  box-sizing: border-box; 
}

button.btn { 
  padding: 10px 20px; 
  border:none; 
  border-radius:5px; 
  background:#4CAF50; 
  color:#fff; 
  cursor:pointer; 
  transition: background 0.3s; 
}

button.btn:hover { 
  background: #45a049; 
}

.btn-delete { 
  position: absolute; 
  top: 5px; 
  right: 5px; 
  padding: 4px 7px; 
  font-size: .7rem; 
  background: #e74c3c; 
  color: #fff; 
  border: none; 
  border-radius: 3px; 
  cursor: pointer; 
}

.btn-delete:hover { 
  background: #c0392b; 
}

#contador { 
  font-size: .9rem; 
  color: #555; 
  margin-top: 5px; 
  display:block; 
  text-align:right; 
}

/* Responsivo para telas pequenas */
@media screen and (max-width:600px){ 
  #gallery{
    grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  } 
}

#tabelaMural {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#tabelaMural th, #tabelaMural td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
  min-width: 200px;
}

#tabelaMural th {
  background-color: #3498db;
  color: white;
}

#tabelaMural td {
  background-color: #ecf0f1;
}

.atividade {
  margin-top: 5px;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f6f9;
  margin: 0;
  padding: 20px;
  color: #2c3e50;
}

h2 { text-align: center; margin-bottom: 20px; }

.card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

input, select, button {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  background: #27ae60;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

button:hover { background: #219150; }

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.gallery-item:hover { transform: translateY(-4px); }

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 5px;
}

.btn-delete {
  position: relative;
  top: 5px;
  right: 5px;
  padding: 4px 7px;
  font-size: 0.7rem;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn-delete:hover { background: #c0392b; }

.card div { margin: 3px 0; }


.card div { margin: 3px 0; }

/* Estilos para as turmas dentro de cada série (todas as turmas terão a mesma cor de fundo) */
.turma-A {
    background-color: #e0f7fa; /* Azul claro para Turma A */
    color: black;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    border: 1px solid #b0bec5;
}

.turma-B {
    background-color: #b2ebf2; /* Azul mais claro para Turma B */
    color: black;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    border: 1px solid #b0bec5;
}

.turma-C {
    background-color: #b3e5fc; /* Azul bem claro para Turma C */
    color: black;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    border: 1px solid #b0bec5;
}
form textarea[name="conteudos"] {
    width: 100%; /* Faz o campo ocupar toda a largura do formulário */
    padding: 10px; /* Espaçamento interno */
    margin: 10px 0; /* Margem entre os campos */
    border: 1px solid #ddd; /* Borda leve */
    border-radius: 4px; /* Bordas arredondadas */
    height: 150px; /* Define a altura do campo de texto */
    resize: vertical; /* Permite ao usuário redimensionar o campo verticalmente */
    font-family: Arial, sans-serif; /* Defina uma fonte para o texto */
    font-size: 14px; /* Tamanho da fonte */
}

/* Definir o estilo de exibição do conteúdo com quebras de linha */
div#conteudoExibido {
    white-space: pre-wrap; /* Mantém quebras de linha no conteúdo exibido */
    word-wrap: break-word; /* Quebra a palavra, se necessário */
    margin-top: 10px;
}

/* Título */
.titulo-mural {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Botão de formulário */
.botao-formulario {
    text-align: center;
    margin-bottom: 15px;
}

.botao-formulario button {
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.botao-formulario button:hover {
    background: #2980b9;
}

/* Container flexível */
#tutoria-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

/* Menu de professores */
#menu-professores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    background: #fdfdfd;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    width: 180px;
}

/* Botões de professores */
#menu-professores button {
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}

#menu-professores button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Área de exibição do professor */
#areaProfessor {
    flex: 1;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    min-height: 200px;
}

#areaProfessor p {
    color: #888;
    text-align: center;
}

/* ===== Chat estilo WhatsApp ===== */

/* Chat flutuante estilo WhatsApp */
/* ===== Chat flutuante estilo WhatsApp ===== */
#chat-flutuante {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 220px;        /* mais estreito */
    max-height: 300px;   /* menor altura */
    background: #dcf8c6; /* verde claro WhatsApp */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    z-index: 9999;
    overflow: hidden;
}

#chat-header {
    background: #075e54; /* verde escuro WhatsApp */
    color: white;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-size: 14px;
}

#chat-messages {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    display: block;
    background: #e6f2e6; /* verde bem claro para mensagens */
    max-height: 200px;
}

.chat-message {
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 13px;
}

.user-msg {
    text-align: right;
    background: #34b7f1; /* azul estilo WhatsApp */
    color: white;
    margin-left: auto;
}

.bot-msg {
    text-align: left;
    background: #dcf8c6; /* verde claro estilo WhatsApp */
    color: #000;
    margin-right: auto;
}

/* Input e botão em linhas separadas */
#chat-input {
    display: flex;
    flex-direction: column; /* input e botão em coluna */
    border-top: 1px solid #ccc;
    background: #f0f0f0;
    padding: 4px;
}

#chat-input input {
    width: 100%;
    padding: 6px;
    margin-bottom: 4px;
    border: none;
    font-size: 13px;
    border-radius: 8px;
    box-sizing: border-box;
}

#chat-input button {
    width: 100%;
    padding: 6px;
    background: #25d366; /* verde WhatsApp */
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Responsivo para celular */
@media (max-width: 500px) {
    #chat-flutuante {
        width: 90%;
        right: 5%;
        bottom: 10px;
        max-height: 50%;
    }

    #chat-input input,
    #chat-input button {
        font-size: 12px;
        padding: 5px;
    }

    .chat-message {
        font-size: 12px;
    }
}



/* Área do formulário */
#uploadFormGuias {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Campos ocupam largura proporcional */
#uploadFormGuias select,
#uploadFormGuias input,
#uploadFormGuias button {
  flex: 1;
  min-width: 180px;  /* garante legibilidade */
  box-sizing: border-box;
}

/* Responsividade para celular */
@media (max-width: 600px) {
  #uploadFormGuias {
    flex-direction: column;
    align-items: stretch;
  }

  #uploadFormGuias select,
  #uploadFormGuias input,
  #uploadFormGuias button {
    width: 100%;      /* ocupa toda a linha */
    min-width: unset; /* remove limite */
  }
}



/* css metas PEI */
/* ===== Estilo Tabela PEI ===== */
/* ===== Estilo Tabela PEI (Missão) ===== */
/* ===== Estilo Tabela PEI (Missão) ===== */
#missaoTabela {
    background-color: #fefefe;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

#tabelaPEI {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    text-align: center;
}

#tabelaPEI th,
#tabelaPEI td {
    border: 1px solid #bbb;
    padding: 10px;
}

#tabelaPEI thead tr:first-child {
    background-color: #d1f0d1; /* linha de anos verde suave */
}

#tabelaPEI thead tr:nth-child(2) {
    background-color: #b0d4f1; /* linha SARESP/SAEB azul suave */
    font-weight: bold;
}

#tabelaPEI tbody tr td[contenteditable="true"] {
    background-color: #fff7cc; /* fundo das células editáveis amarelo claro */
    transition: background-color 0.3s;
}

#tabelaPEI tbody tr td[contenteditable="true"]:focus {
    background-color: #fff39b; /* destaque ao focar */
    outline: none;
}

#tabelaPEI input[type="text"] {
    width: 100%;
    text-align: center;
    border: none;
    background-color: transparent;
    font-weight: bold;
    font-size: 14px;
}

/* Botões Editar/Salvar */
#btnEditar, #btnSalvar {
    padding: 8px 16px;
    font-size: 14px;
    margin: 0 6px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #2c3e50;
    background-color: #3498db; /* azul vibrante */
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

#btnEditar:hover, #btnSalvar:hover {
    background-color: #2980b9; /* azul mais escuro ao passar o mouse */
    transform: scale(1.05);
}

/* Textos Missão, Visão e Valores */
#conteudo h2 {
    text-align: center;
    text-decoration: underline;
    margin-bottom: 15px;
    font-size: 26px;
}

#conteudo p {
    text-align: justify;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#tabelaPEI thead tr:first-child {
    background-color: #d1f0d1; /* linha dos anos verde suave */
}

#tabelaPEI thead tr:nth-child(2) td:nth-child(1),
#tabelaPEI thead tr:nth-child(2) td:nth-child(2) {
    background-color: #a2d5f2; /* SARESP azul claro */
}

#tabelaPEI thead tr:nth-child(2) td:nth-child(3),
#tabelaPEI thead tr:nth-child(2) td:nth-child(4) {
    background-color: #f9d57e; /* SAEB amarelo */
}

#tabelaPEI thead tr:nth-child(2) td:nth-child(5),
#tabelaPEI thead tr:nth-child(2) td:nth-child(6) {
    background-color: #f2a2a2; /* IDESP vermelho claro */
}

/* Linha de metas editáveis */
#tabelaPEI tbody tr td:nth-child(1),
#tabelaPEI tbody tr td:nth-child(2) {
    background-color: #cce7f7; /* SARESP célula editável azul claro */
}

#tabelaPEI tbody tr td:nth-child(3),
#tabelaPEI tbody tr td:nth-child(4) {
    background-color: #fff3b3; /* SAEB célula editável amarelo claro */
}

#tabelaPEI tbody tr td:nth-child(5),
#tabelaPEI tbody tr td:nth-child(6) {
    background-color: #f7c1c1; /* IDESP célula editável vermelho claro */
}

#tabelaPEI tbody tr td[contenteditable="true"]:focus {
    background-color: #fff39b; /* destaque ao focar permanece igual */
    outline: none;
}

@media (max-width: 768px) {
    #tabelaPEI thead {
        display: none; /* esconde cabeçalho no celular */
    }

    #tabelaPEI, 
    #tabelaPEI tbody, 
    #tabelaPEI tr, 
    #tabelaPEI td {
        display: block;
        width: 100%;
    }

    #tabelaPEI tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 10px;
        background: #fafafa;
    }

    #tabelaPEI td {
        text-align: left;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    #tabelaPEI td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #444;
    }
}

/* ===================== ESTILO DO MURAL DE ELETIVAS ===================== */
#muralEletivas {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    padding: 0 20px;
}

/* CARDS */
#muralEletivas .card {
    background: linear-gradient(145deg, #ffffff, #e3e8ef);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
#muralEletivas .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* TÍTULOS */
#muralEletivas h2 { font-size: 26px; font-weight: 600; color: #34495e; text-align:center; margin-bottom:20px; }
#muralEletivas h3 { font-size: 20px; color: #2c3e50; margin-bottom: 10px; }
#muralEletivas h4 { font-size: 16px; color: #34495e; margin-bottom: 8px; }

/* LISTAS */
#muralEletivas ul { list-style: none; padding-left: 0; }
#muralEletivas ul li {
    background: #fefefe;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background 0.2s;
}
#muralEletivas ul li:hover { background: #e1f0ff; }

/* BOTÕES */
#muralEletivas button { cursor: pointer; font-weight: 500; transition: all 0.2s; }
#muralEletivas button:hover { opacity: 0.85; }
#muralEletivas button[onclick*="removerAluno"],
#muralEletivas button[onclick*="removerEletiva"] { background: #e74c3c !important; color: white !important; }
#muralEletivas button[type="submit"] { border-radius: 6px; padding: 8px 12px; font-weight: 500; }

/* BOTÕES COLORIDOS (mesmo do JS) */
#muralEletivas button[style*="background:#1abc9c"] { background: #1abc9c; color: white; }
#muralEletivas button[style*="background:#2980b9"] { background: #2980b9; color: white; }
#muralEletivas button[style*="background:#27ae60"] { background: #27ae60; color: white; }
#muralEletivas button[style*="background:#7f8c8d"] { background: #7f8c8d; color: white; }
#muralEletivas button[style*="background:#95a5a6"] { background: #95a5a6; color: white; }

/* INPUTS E SELECTS */
#muralEletivas input[type="text"], 
#muralEletivas input[type="password"], 
#muralEletivas select {
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    margin: 5px 0;
    width: calc(100% - 16px);
    transition: border 0.2s, box-shadow 0.2s;
}
#muralEletivas input[type="text"]:focus,
#muralEletivas input[type="password"]:focus,
#muralEletivas select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

/* CONTAINERS FLEX */
#muralEletivas #tutoria-container, #muralEletivas #areaEletiva { display:flex; flex-direction:column; gap:15px; }
#muralEletivas #menu-professores button { margin: 3px 3px 3px 0; padding: 6px 12px; border:none; border-radius:6px; color:white; font-weight:500; }
#muralEletivas #lista1semestre, #muralEletivas #lista2semestre { min-height: 50px; }

/* RESPONSIVO */
@media (max-width: 768px) {
    #muralEletivas #tutoria-container, #muralEletivas #areaEletiva { flex-direction: column; }
    #muralEletivas #lista1semestre, #muralEletivas #lista2semestre { width: 100%; }
    #muralEletivas input[type="text"], #muralEletivas input[type="password"], #muralEletivas select, #muralEletivas button[type="submit"] { width:100%; margin-bottom:8px; }
}

/* Estilos para o mural Conviva SP */
/* ======================= Estilo Moderno para o Mural Conviva SP ======================= */
#muralConviva {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #e0f7fa, #f5f7fa);
  padding: 30px 20px;
  color: #2c3e50;
}

#muralConviva h2 {
  text-align: center;
  color: #00796b;
  font-size: 2.5em;
  margin-bottom: 20px;
}

#muralConviva p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Cartões das seções */
#muralConviva .card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin: 15px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

#muralConviva .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

#muralConviva .card h3 {
  color: #00796b;
  font-size: 1.8em;
  margin-bottom: 12px;
  border-bottom: 2px solid #00796b;
  padding-bottom: 5px;
}

#muralConviva .card h4 {
  color: #004d40;
  margin-top: 15px;
  font-size: 1.2em;
}

/* Áreas de atuação */
#muralConviva .areas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#muralConviva .area {
  flex: 1 1 30%;
  background: #e0f2f1;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Listas de links e recursos */
#muralConviva ul {
  list-style: none;
  padding: 0;
}

#muralConviva ul li {
  margin-bottom: 10px;
}

#muralConviva ul li a {
  color: #00796b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

#muralConviva ul li a:hover {
  color: #004d40;
  text-decoration: underline;
}

/* Vídeos */
#muralConviva .videos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

#muralConviva .video {
  flex: 1 1 48%;
  background: #f1f8f7;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}

#muralConviva .video iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}

#muralConviva .video p {
  margin-top: 10px;
  font-weight: bold;
  color: #00796b;
}

/* Responsividade */
@media (max-width: 900px) {
  #muralConviva .areas, #muralConviva .videos {
    flex-direction: column;
  }
  #muralConviva .area, #muralConviva .videos {
    flex-direction: column;
  }}
  
  
  /* ======================= Estilo Moderno para o Mural CEL ======================= */
#muralCEL {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #f0f8ff, #f5f7fa);
  padding: 30px 20px;
  color: #2c3e50;
}

#muralCEL h2 {
  text-align: center;
  color: #1a73e8;
  font-size: 2.5em;
  margin-bottom: 20px;
}

#muralCEL p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Cartões */
#muralCEL .card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin: 15px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

#muralCEL .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

#muralCEL .card h3 {
  color: #1a73e8;
  font-size: 1.8em;
  margin-bottom: 12px;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 5px;
}

/* Vídeos */
#muralCEL .videos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

#muralCEL .video {
  flex: 1 1 48%;
  background: #f1f8ff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}

#muralCEL .video iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}

#muralCEL .video p {
  margin-top: 10px;
  font-weight: bold;
  color: #1a73e8;
}

/* Links */
#muralCEL ul li a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
}

#muralCEL ul li a:hover {
  text-decoration: underline;
}

/* Benefícios */
#muralCEL .card-beneficios {
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  border-left: 6px solid #27ae60;
}

#muralCEL .card-beneficios ul li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  font-weight: 500;
}

#muralCEL .card-beneficios ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-size: cover;
}

#muralCEL .beneficio-certificado::before { background-image: url('https://img.icons8.com/color/48/certificate.png'); }
#muralCEL .beneficio-fluencia::before { background-image: url('https://img.icons8.com/color/48/speech-bubble.png'); }
#muralCEL .beneficio-atividade::before { background-image: url('https://img.icons8.com/color/48/culture.png'); }
#muralCEL .beneficio-materiais::before { background-image: url('https://img.icons8.com/color/48/books.png'); }
#muralCEL .beneficio-intercambio::before { background-image: url('https://img.icons8.com/color/48/globe.png'); }
#muralCEL .beneficio-viagem::before { background-image: url('https://img.icons8.com/color/48/airplane-take-off.png'); }

/* Galeria de imagens */
.galeriaCEL {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.galeriaCEL .imagem {
  flex: 1 1 calc(50% - 15px);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.galeriaCEL .imagem img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.galeriaCEL .imagem:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.galeriaCEL .imagem:hover img {
  transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 900px) {
  #muralCEL .videos {
    flex-direction: column;
  }
  #muralCEL .video {
    flex: 1 1 100%;
  }
}

@media (max-width: 700px) {
  .galeriaCEL .imagem {
    flex: 1 1 100%;
  }
}

/* ===== Dropdowns no menu lateral ===== */

.dropdown-btn {
    font-weight: bold;
    background: linear-gradient(45deg, #d35400, #e67e22);
    margin: 1px 0;      /* espaçamento menor entre os botões principais */
    padding:  6px 7px;        /* ajuste interno */
}

.dropdown-btn.active {
    background: linear-gradient(45deg, #e67e22, #f39c12);
}

/* Container do dropdown */
.dropdown-container {
    display: none;
    flex-direction: column;
    margin-left: 4px;                        /* distância do botão pai */
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 3px;
    animation: fadeIn 0.3s ease;
}

/* Botões dentro do dropdown */
.dropdown-container button {
    margin: 2px 0;                             /* espaçamento entre os botões do dropdown */
    padding: 6px 7px;     /* ajuste interno */
    font-size: 0.7em;                          /* tamanho de fonte menor */
    background: linear-gradient(45deg, #34495e, #2c3e50);
    transition: transform 0.2s ease;           /* animação suave ao passar o mouse */
}

.dropdown-container button:hover {
    transform: scale(1.03);
}

/* Animação suave ao abrir dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diretores-cards {
    margin: 40px 0;
    text-align: center;
}

.titulo-diretores {
    font-size: 1.8em;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 25px;
}

.cards-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-diretor {
    width: 220px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-diretor:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.card-diretor img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.card-diretor h4 {
    margin: 10px 0 5px;
    font-size: 1.1em;
    font-weight: 700;
    color: #111;
}

.periodo {
    color: #555;
    font-size: 0.95em;
}

.card-diretor {
    text-align: center; /* Centraliza tudo dentro do card */
}

.card-diretor .periodo {
    font-size: 16px;
    margin-top: 5px;
}

.cards-wrapper .card-diretor p.periodo {
    text-align: center;
}

.periodo {
    text-align: center;
}
