.header {
    background: #0F172A;
    padding: 20px 0px;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 20%;
  overflow: visible;
}

@media only screen and (max-width: 1036px) {
  .navbar {
    gap: 5%;
  }
}

.navbar-brand {
  flex: 1;
  display: flex;
  flex-direction: row;    /* stack items top-to-bottom */
}

.navbar-brand .logo {
  height: 3.2em;
  width: auto;
  padding-right:3px;
}

.navbar-brand .logo-text {
  flex: 2;
  display: flex;
  flex-direction: column;
  color: #EEE;
  font-size: 1.2em;
}

.navbar-brand .logo-text img {
  margin-top: .6em;
}

.navbar-brand .logo-text span {
  font-size: .8em;
  font-weight: 200;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  width: 100%;
  height: 0.2rem;
  background-color: #FFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle:hover {
    opacity: 0.5;
}

/* 2. “Open” state: when .open is on header */
.navbar.open .nav {
  display: flex;
  max-height: 500px;
}
.navbar.open .nav-toggle .bar1 {
  transform: rotate(45deg) translateY(1.1em);
}
.navbar.open .nav-toggle .bar2 {
  opacity: 0;
}
.navbar.open .nav-toggle .bar3 {
  transform: rotate(-45deg) translateY(-1.1em);
}

.nav {
  display: flex;
  flex: 2;
  justify-content: space-evenly;
}

.nav-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;            /* remove bullets */
  margin: 0;                   /* reset default UL margins */
  padding: 0;                  /* reset default UL padding */
}

.nav-list li {
  display: flex;
  justify-content: center;
  align-items: center;
}




.nav-list a {
  text-decoration: none;       /* clean link style */
  color: #E5E5E5;
  font-size: 1.2em;
  padding: 0.5rem 0;           /* vertical hit area */
  display: block;              /* make entire padding clickable */
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  background-color: #FFF;
  position: absolute;
  top: 100%;
  width: fit-content;
  padding: 0 .3em;
  border: 1px solid #0F172A;
}
a.dropdown-item {
  color: #0F172A;
}

.dropdown.open .dropdown-menu {
  display: block;
}



/* Mobile */
@media only screen and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 0;
  }
  .nav-toggle {
    display: flex;
    margin-right: .4em;
  }
  .nav {
    flex: 0 0 100%;
    display: flex;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    padding-top: 1em;
  }
  .nav-list li {
    min-width: 5em;
    max-width: 8em;
  }
  .nav-list li + li {
    margin-left: 0rem;
  }
  .dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .dropdown-menu {
    position: relative;
    top: auto;

  }

}
