body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #333;
}

a {
  text-decoration: none;
  /* Remove o sublinhado */
  color: inherit;
  /* Mantém a cor do texto atual */
}

h1,
h2,
h3 {
  margin: 0;
}

section {
  padding: 0;
  margin-bottom: 40px;
  border-radius: 15px;
  /* 🔹 Borda arredondada para a caixa da seção */
  overflow: hidden;
  /* Garante que conteúdos sigam o arredondamento */
}

.section-title {
  font-size: 2em;
  text-align: center;
  padding: 15px;
  color: #fff;
  border-top-left-radius: 15px;
  /* 🔹 arredonda o topo */
  border-top-right-radius: 15px;
}

.subsection {
  padding: 20px;
  border-radius: 10px;
  /* 🔹 caixas arredondadas para subseções */
  margin: 10px;
  /* separação visual entre subseções */
  background: rgba(255, 255, 255, 0.05);
  /* leve contraste de fundo */
}

.subsection h3 {
  margin: 0;
  padding: 10px 15px;
  font-size: 1.2em;
  color: #fff;
  border-radius: 8px;
  /* 🔹 título da subseção arredondado */
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.card {
  background: #223F6A;
  color: white;
  border-radius: 15px;
  /* 🔹 arredondamento dos cards */
  overflow: hidden;
  width: 180px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  padding-bottom: 10px;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card p {
  margin: 8px 0;
  font-weight: bold;
}

.card span {
  display: block;
  font-size: 0.9em;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-title {
  text-align: center;
  padding: 20px;
  font-size: 2.5em;
  font-weight: bold;
  color: #223F6A;
  /* Azul escuro institucional */
  text-transform: uppercase;
  /* Deixa em maiúsculas */
  letter-spacing: 2px;
  /* Espaçamento entre letras */
  background: linear-gradient(90deg, #2196f3, #4caf50);
  /* Degradê azul→verde */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Aplica o degradê no texto */
  margin-bottom: 30px;
  border-bottom: 3px solid #223F6A;
  /* Linha abaixo do título */
  display: inline-block;
  /* Faz a linha ficar só no tamanho do texto */
}


/* Cores por seção */
#direcao .section-title {
  background: #1976d2;
}

#direcao .subsection:nth-child(2) h3 {
  background: #2196f3;
}

#direcao .subsection:nth-child(3) h3 {
  background: #2196f3;
}

#biblioteca .section-title {
  background: #2e7d32;
}

#biblioteca .subsection:nth-child(2) h3 {
  background: #4caf50;
}

#biblioteca .subsection:nth-child(3) h3 {
  background: #4caf50;
}

#academica .section-title {
  background: #ef6c00;
}

#academica .subsection:nth-child(2) h3 {
  background: #fe9800;
}

#academica .subsection:nth-child(3) h3 {
  background: #fe9800;
}

#academica .subsection:nth-child(4) h3 {
  background: #fe9800;
}

#academica .subsection:nth-child(5) h3 {
  background: #fe9800;
}

#academica .subsection:nth-child(6) h3 {
  background: #fe9800;
}

#estudantis .section-title {
  background: #970e3b;
}

#estudantis .subsection:nth-child(2) h3 {
  background: #ad1457;
}

#estudantis .subsection:nth-child(3) h3 {
  background: #ad1457;
}

#planejamento .section-title {
  background: #3c0e8b;
}

#planejamento .subsection:nth-child(2) h3 {
  background: #5e35b1;
}

#planejamento .subsection:nth-child(3) h3 {
  background: #5e35b1;
}

#planejamento .subsection:nth-child(4) h3 {
  background: #5e35b1;
}

#planejamento .subsection:nth-child(5) h3 {
  background: #5e35b1;
}

#planejamento .subsection:nth-child(6) h3 {
  background: #5e35b1;
}

#planejamento .subsection:nth-child(7) h3 {
  background: #5e35b1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal:target {
  display: flex;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2em;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}