body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Cabeçalho */
header {
  background-color: #1a3d7c;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 22px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
}

nav a:hover {
  background-color: #365ea8;
}

/* Conteúdo principal */
main {
  flex: 1;
  padding: 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Carrossel */
.carousel {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.slide {
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 300px; /* altura desktop */
  object-fit: cover;
}

/* Texto sobre a imagem */
.slide-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 10px 15px;
  border-radius: 5px;
}

.slide-info h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
}

.slide-info p {
  margin: 0;
  font-size: 14px;
}

/* Pontinhos */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  display: inline-block;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
}

.dot.active {
  background-color: #1a3d7c;
}

/* Caixa de pesquisa centralizada */
.search-box {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  position: relative;
  max-width: 500px;
  width: 100%;
}

/* Input da pesquisa */
.search-box {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 500px;
  width: 100%;
  position: relative; /* importante */
}

/* Efeito ao clicar no campo */
.search-box input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Resultados logo abaixo do campo */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* agora segue o tamanho do input */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 5px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

/* Links dos resultados */
.search-results a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

/* Último link sem borda */
.search-results a:last-child {
  border-bottom: none;
}

/* Efeito hover */
.search-results a:hover {
  background: #007BFF;
  color: #fff;
  cursor: pointer;
}

/* Mensagem quando não tem resultado */
.search-results p {
  padding: 12px;
  margin: 0;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Responsividade no celular */
@media (max-width: 600px) {
  .search-box {
    max-width: 90%;
  }
  .search-box input {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Rodapé */
footer {
  background-color: #1a3d7c;
  color: white;
  text-align: center;
  padding: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    flex-direction: column;
    gap: 0;
    background-color: #1a3d7c;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
    z-index: 9999;
  }

  nav a {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 9999;
  }

  nav.active {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
  }

  main {
    justify-content: flex-start;
    align-items: center;
  }
  
  main p {
    justify-content: flex-start;
    align-items: center;
  }

  .search-box {
    max-width: 100%;
  }

  .slide img {
    height: auto; /* altura automática mobile */
  }
}

 .info-box {
    background: #e9f3ff;
    border-left: 5px solid #0d6efd;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
  }