/* custom-header.css */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0px 0;
}

.search-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  margin: 0 15px;
  min-width: auto; /* Garante espaço mínimo para a pesquisa */
}

.search-bar {
  position: relative;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  border: none;
  outline: none;
  padding: 10px 15px;
  font-size: 14px;
  width: 100%;
  border-radius: 25px;
}

.search-icon {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  color: #666;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
}

.search-result-section {
  padding: 10px 0;
}

.search-result-section h5 {
  margin: 0 0 5px 10px;
  font-size: 14px;
  color: #333;
}

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item h6 {
  margin: 0 0 5px 0;
  color: #333;
}

.search-result-item p {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.header-icons {
  display: flex;
  align-items: center;
}

.icon-link {
  color: #ffffff;
  font-size: 18px;
  margin-left: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.icon-link:hover {
  color: #50be23;
}

/* Responsividade */
@media (max-width: 767px) {
  .header-content {
    flex-direction: initial;
    align-items: stretch;
  }

  .search-container {
    margin: 10px 0;
    width: 100%;
  }

  .search-bar {
    max-width: none;
  }

  .header-icons {
    justify-content: space-around;
    width: 100%;
  }

  .icon-link {
    margin-left: 0;
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .search-container {
    margin: 0 10px;
  }

  .icon-link {
    margin-left: 10px;
  }
}

@media (min-width: 1200px) {
  .search-container {
    margin: 0 15px;
  }

  .icon-link {
    margin-left: 15px;
  }
}