/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
        font-family: 'GalanoGrotesqueBold';
        src: url('elements/GalanoGrotesqueAltBold.otf') format('opentype');
    }
                        
    @font-face {
        font-family: 'GalanoGrotesqueAltLight_2';
        src: url('elements/GalanoGrotesqueAltLight_2.otf') format('opentype');
    }
                        
    @font-face {
        font-family: 'GalanoGrotesqueAltRegular';
        src: url('elements/GalanoGrotesqueAltRegular.otf') format('opentype');
    }
                        
    @font-face {
        font-family: 'GalanoGrotesqueSemiBold';
        src: url('elements/GalanoGrotesqueSemiBold.otf') format('opentype');
    }

body {
  font-family: 'GalanoGrotesqueBold';
  background-color: #ffffff;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

/* Navbar layout */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px;
  height: auto;
}

/* Logo */
.logo img {
  height: 50px;
  display: block;
}

/* Navigation menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-left: 0;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Galano Grotesque', sans-serif;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: darkcyan;
  border-bottom: 2px solid darkcyan;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-menu li a {
    padding-left: 10px;
  }
}

/* Hero section */
.hero {
  background: url('Web-banner4.gif') center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 40px;
}

.hero h1 {
  font-size: 36px;
  background: rgba(0, 0, 0, 0);
  padding: 10px;
  border-radius: 10px;
  margin: 0 0 20px 0;
  width: 100%;
}

/* Section */
.section {
  padding: 10px 40px;
  background: white;
}

.section h2 {
  color: #002B45;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: #002B45;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Search layout */
.center-pane {
  width: 100%;
  padding: 15px;
  background-color: white;
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  min-width: 600px;
  margin: 0 auto;
  background-color: transparent;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

#searchInput {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 16px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  outline: none;
  background-color: white;
}

#searchBtn {
  padding: 8px 15px;
  font-size: 16px;
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 16px;
}

#searchBtn:hover {
  background-color: #2980b9;
}

/* Result area */
#resultArea {
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

.hero .center-pane {
  background-color: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
}

.hero .search-container input {
  width: 100%;
  max-width: 600px;
}

.hero .search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  color: black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  margin-top: 0;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  background-color: white;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #f0f0f0;
}

#searchInput.showing-autocomplete {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.autocomplete-item.active {
  background-color: #e0e0e0;
}

.adhm {
  text-align: center;
  margin-top: -8rem;
  margin-bottom: -8rem; /* space below the image */
}
.adhm img {
  max-width: 1500px;
  max-height: 400px;
}

.adhm-logo {
  margin-left: auto;
}

.adhm-logo img {
  height: 50px;
  display: block;
}

