/* General Styles for Menu */
.menu-bar {
    margin-bottom: -55px;
    margin-right: auto;
    margin-left: auto;
    z-index: 2;
    position: relative;
    margin-top: 0;
}

#nav-menu {
    width: 100%;
    margin: 0 auto;
}

/* Container to align menu with other sections */
.menu-container {
    padding-right: 0.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsla(0, 0%, 100%, .9);
}

/* Ensure menu items align properly */
.menu-item-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.menu-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-bar > ul {
    width: inherit;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    line-height: 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* Links Styling */
.menu-bar ul {
    text-decoration: none;
    color: #004a8f;
    display: block;
    line-height: 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
}

.menu-bar span {
    padding: 0 15px;
    text-decoration: none;
    color: #004a8f;
    display: block;
    line-height: 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
}

.menu-bar a {
    padding: 0 15px;
    text-decoration: none;
    color: #004a8f;
    display: block;
    /* line-height: 30px; */
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
}

.menu-bar a:hover,
.menu-bar span:hover {
    text-decoration: underline;
    background-color: white;
}

/* Submenu Styles */
    .menu-bar ul ul {
        display: none;
        position: absolute;
        background: white;
        padding: 0;
        border-bottom: 2px solid #004a8f;
        min-width: 230px;    
        margin-top: 0;
    }


.menu-bar ul ul li:hover > ul {
    display: block;
    left: 50%;  /* Centers submenu */
    transform: translateX(-50%); /* Corrects alignment */
}

.menu-bar ul ul li {
    width: 100%;
    text-transform: capitalize;
    list-style-type: none;
    background: white;
}
.menu-bar ul ul li:hover {
    color: #004a8f;
}
.menu-bar ul ul li ul {
    display: block;  /* Always visible */
    position: relative;
    width: 100%;
    background: none;
    border: none;
    box-shadow: none;
    margin-top: 5px;
}

.menu-bar ul ul li ul li {
    font-size: 14px;  /* Smaller font */
    font-weight: 400;  /* Lighter font */
    color: #004a8f; /* Darker shade */
    padding-left: 10px; /* More indentation */
}

.menu-bar ul ul li ul li a {
    font-size: 14px;
    font-weight: lighter;
    color: #004a8f;
    display: block;
}

ul.submenu svg {
    vertical-align: middle;
}

li.submenu-item {
  padding-left: 0px !important;
}

.submenu-toggle {
color:#004a8f;
padding: 0 15px;
}

.submenu-toggle a{
padding: 0;
    }

.submenu-toggle:hover {
    text-decoration: underline;
    
}

.menu-bar ul ul a div{
    padding: 5px 10px;
}

/* Show submenu on hover */
.menu-bar li:hover > ul {
    display: block;
}

/* Hamburger Menu Styling */
.hamburger {
    display: none; 
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    color: #004a8f;
}

li.menu-item {
    margin-bottom: 0px;
    padding-left: 0.5em;
}

.search-container {
    margin-right: 7em;
    margin-top: 0.25em;
}
.contact p {
    color: #004a8f;
}

/* Responsive Styles for Mobile */
/* @media (min-width: 769px) and (max-width: 1093px)  { 
    .menu-container {
        width: 100% !important;
  }
} */


@media (max-width: 791px) {
    .hamburger {
        z-index: 1;
        display: block;
        font-size: 28px;
        cursor: pointer;
        padding: 10px;  
    }
    li.open > .submenu {
        position: relative;
    }
    li.open > .submenu-toggle::before {
        content: '−';
    }
    li.menu-item.open ul.submenu > li.submenu-item > div.submenu-toggle::before{
        content: '';
    }
    li.menu-item.open ul.submenu > li.submenu-item > div.submenu-toggle {
        font-weight: normal;
        margin-left: 5px;
        text-transform: none;
        margin-top: 15px;
    }
    .menu-bar {
      display: none;
    }
}
/* @media (min-width: 792px) and (max-width: 979px) {
    #nav-menu {
        width: 100%;
    }
}
@media(min-width: 980px) and (max-width: 1023px) {
    #nav-menu {
        width: 960px;
    }
} */
@media(min-width: 1024px) and (max-width: 1179px) {
    #nav-menu {
        width: 975px;
        max-width: 1160px;
    }
}
@media(min-width: 1180px) {
    #nav-menu {
        width: 1160px;
    }
}