body { 
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-family: 'comic sans', cursive;
  font-size: 36px;
  margin: 0;
}

header nav {
  display: flex;
  flex-direction: column;  /* empilha verticalmente */
  gap: 0px;                /* espaço entre os itens */
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0;            
  line-height: 1;       
  padding: 2px 0;       
}

header nav a:hover {
  text-decoration: underline;
}

.logo {
  height: 50px;
}

.perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.perfil p {
  text-align: justify;
}

.perfil img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0e0e0;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

h2 {
  color: #2c3e50;
  margin-top: 40px;
}

/* --- IMAGENS DO IFES E EVENTO --- */
.imagens-container {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin: 30px 0;
}

.imagem-bloco {
  text-align: center;
  position: relative;
}

.imagem-bloco .legenda {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.imagem-bloco:hover .legenda {
  color: #00AFC9;
}

.ifes-img,
.eventos-img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  border: none;
  display: block;
  margin: 10px auto;
  height: 450px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito hover suave */
.ifes-img:hover,
.eventos-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Efeito de legenda sobreposta opcional */
.imagem-bloco a {
  display: inline-block;
  position: relative;
}

.imagem-bloco a::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(44, 62, 80, 0.75);
  color: white;
  padding: 6px;
  font-size: 0.9em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.imagem-bloco a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* --- LINKS DAS DISCIPLINAS --- */
.cursos a {
  display: inline-block;              
  margin: 8px 12px 8px 0;             
  padding: 10px 20px;                
  background-color: #2c3e50;         
  color: white;                      
  text-decoration: none;             
  border-radius: 4px;                
}

.cursos p {
  display: inline-block;  
  font-weight: bold;
  font-size: large;
}

nav a:hover {
  background-color: #1a252f;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #ddd;
  font-size: 14px;
  margin-top: 40px;
}
