#masthead > .header {
  background-color: #112E51;
  min-height: 90px;
  display: flex;
  justify-content: center;
}

#masthead > .header > .header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#masthead > .header > .header-container > .header-logo-container > .header-logo {
  display: block;
  width: 100%;
  max-width: 795px;
  height: 32px;
  object-fit: contain;
}

#masthead > .header > .header-container > .header-logo-container > .header-logo-small {
  display: none;
  width: 100%;
  height: 80px;
  object-fit: contain;
}

#masthead > .header > .header-container .address-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#masthead > .header > .header-container > .address-container > .address-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

#masthead > .header > .header-container .address-container > .address {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0%;
  color: var(--text-white);
}

.navbar li a {
  color: #005B99 !important;
  text-decoration: none;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 16px;
}

#menu-menu {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#menu-menu > li > .dropdown-toggle::after {
  margin-left: 8px;
}

.navbar {
    padding: 20px 0;
}

.navbar-nav {
    margin: 0 0 0 auto;
}

/* Commission Menu */
.commission-menu .dropdown-submenu {
  position: relative;
}

.commission-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.commission-menu ul.dropdown-menu.sub-menu.depth_1 {
    width: auto;
    height: auto;
    top: -9px;
}
/* End Commission Menu */

@media (max-width: 767px) {
    .navbar-nav {
        margin: 20px 0 20px 0;
    }
}



/**********/

.dropdown-item.active, .dropdown-item:active {
    color: var(--text-white) !important;
    background-color: var(--primary-color);
}

@media (max-width: 1199px) {
  .navbar > .container {
    justify-content: flex-end;
  }

  #menu-menu {
    margin-left: 0;
    border-top: 1px solid #0075bb;
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}

/***** Cascading Style for District Council Menu*****/

ul.dropdown-menu.sub-menu.depth_1 {
    width: 95%;
    margin-left: 5%;
    display: none;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu-end:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

ul.dropdown-menu.sub-menu.depth_1 {
    width: clamp(400px, 20em, 430px);
    position: absolute;
    left: 100%;
    top: -1px;
    margin-left: 0;
    height: auto;
    box-sizing: border-box;
}

ul.dropdown-menu.depth_0 li:nth-child(1):hover > ul.dropdown-menu.sub-menu.depth_1 {
  display: grid;
}

@media (min-width: 768px) {
    ul.dropdown-menu.sub-menu.depth_1 {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: repeat(11, auto);
      grid-auto-flow: column;

    }
}

@media only screen and (max-width: 1399px) {
    .navbar-nav {
        font-size: 15px;
    }
}

@media (max-width: 1279px) {
  #masthead > .header {
    min-height: 120px;
  }

  #masthead > .header > .header-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media only screen and (max-width: 1199px) {
    .navbar-nav {
        font-size: 16px;
    }

    ul.dropdown-menu.sub-menu.depth_1 {
        position: static;
        width: 100%;
        position: static;
        height: auto;
    }
}

@media (max-width: 767px) {
  #masthead > .header {
    min-height: 180px;
  }
  
  #masthead > .header > .header-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
  }

  #masthead > .header > .header-container > .header-logo-container > .header-logo {
    display: none;
  }

  #masthead > .header > .header-container > .header-logo-container > .header-logo-small {
    display: block;
    width: auto;
  }
}

@media only screen and (max-width: 480px) {
    a.dropdown-item {
        white-space: break-spaces;
    }
}
