header {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 15px;
position: relative;
top: 0;
left: 0;
z-index: 5;
transition: 0.3s;
width: 100%;
background-color: var(--dark-bkgd);
}

header span {
    color: var(--light-text);
}

header .site_logo_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close_mobile_container,  .mobile_menu {
    display: none;
    z-index: 3;
}

.mobile_menu_icon {
    width: 45px;
    height: 45px;
}

.custom-logo-link {
    max-width: 250px;
    border-bottom: none !important;

}

.custom-logo {
    transition: 0.3s;
}


.header_bar {
flex-direction: row;
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
padding-bottom: 5px;
border-bottom: 1px solid lightgray;
margin-bottom: 5px;
}

header ul {
list-style: none;
display: flex;
flex-direction: row;
margin-block-start: 0em;
margin-block-end: 0em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 0px;
unicode-bidi: isolate;

}

header .phone_number_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

header .phone_number_container .phone_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 15px;
}


header .phone_number_container .phone_info a {
    color: var(--accent);
    font-weight: 600;
    font-size: 20px;
}

header .phone_number_container img {
    width: 30px;
}

header a {
text-decoration: none;
color: var(--light-text);
font-size: 16px;
text-transform: uppercase;
font-weight: 400;
}

.primary-menu-container ul li, .primary-menu-container ol li {
    position: relative;
    margin-bottom: 0px;
    padding-top: 7px;
}

.primary-menu-container ul li a {
padding: 0px 25px 14px 25px;
letter-spacing: 1.2px;
font-weight: 500;
position: relative;
text-transform: uppercase;
font-size: 14px;
border-bottom: 5px solid transparent;
}

.primary-menu-container ul li a:hover {
color: var(--light-link);
border-bottom: 5px solid var(--accent);
}

.primary-menu-container ul li:last-of-type a {
border-right: none;
}

[aria-current="page"] {
color: var(--light-link) !important;
border-bottom: 5px solid var(--accent);
}

.menu-item-has-children > a {
    padding-right: 1.5em;
    position: relative;
}

.primary-menu-container .submenu-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background-color: transparent;
    cursor: pointer;
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
}

.primary-menu-container .submenu-toggle:hover {
    cursor: pointer;
}

.primary-menu-container .submenu-toggle::before {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.primary-menu-container .submenu-toggle.open-toggle {
    transform: rotate(180deg);
    top: 6%;
}


.primary-menu-container .sub-menu {
    position: absolute;
    left: 0;
    margin-left: 0px;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 5;
    flex-wrap: nowrap;
    white-space: nowrap;
    visibility: hidden;
    background-color: var(--dark-bkgd);
    }

    .primary-menu-container .sub-menu li {
        margin-left: 0px;
        margin-right: 0px;
        background: var(--dark-bkgd);
        padding: 15px 10px 15px 10px;
        display: flex;
        width: calc(100% + 20px);
        line-height: 1;
        align-items: center;
    }

    .primary-menu-container .sub-menu li:first-of-type {
        padding-top: 30px;
        }

.social_icon {
    width: 30px;
    height: 30px;
    
}

.social_icon_link:last-of-type {
    margin-right: 0px;
}

.social_icon_link {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    margin-left: 5px;
}

.social_icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; 
}

.social_icon_link:hover {
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

@media screen and (max-width: 1120px) {
    .close_mobile_container {
        display: flex;
    }

    header {
        height: 138px;
    }

    .header_bar .social_icons {
        display: none;
    }

    .primary-menu-container {
        display: none;
    }
    
    .mobile-menu-container {
        background-color: var(--dark-bkgd);
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 20px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .mobile_menu {
        background-color: var(--dark-bkgd);
        width: 100%;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .mobile-menu-container ul {
        padding-inline-start: 0px;
    }

    .mobile_menu .social_icons {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 50px;
    }

    .sub-menu li {
        border-bottom: 0px solid transparent !important;
    }

    .mobile-menu-container .sub-menu {
        height: 0px;
        overflow: hidden;
    }

    .mobile-menu-container .sub-menu.open_sub_menu {
        height: 100%;
    }

    .mobile_menu {
        position: fixed;
        padding-top: 138px;
        top: 0;
        width: 100%;
        height: 100vh;
        padding-left: 30px;
        padding-right: 30px;
        z-index: 4;
    }

    .mobile-menu-container .submenu-toggle::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .mobile-menu-container .submenu-toggle {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-left: 8px;
        background-color: transparent;
        cursor: pointer;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-container .submenu-toggle.open-toggle {
        transform: rotate(180deg);
        top: 4%;
        right: 4.5%;
    }
    
    .mobile-menu-container .submenu-toggle:hover {
        cursor: pointer;
    }


    .mobile-menu-container ul {
        list-style: none;
        width: 100%;
    }

    .mobile-menu-container ul li {
        width: 100%;
        border-bottom: 1px solid var(--light-text);
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        position: relative;
    }

    .mobile-menu-container ul li a {
        color: var(--light-text);
        text-decoration: none;
        font-size: 18px;
    }
    
}

@media (max-width: 768px)
{
    .phone_number_container img {
        display: none;
    }

    .phone_number_container .phone_info span {
        display: none;
    }

    header .custom-logo-link {
        max-width: 200px;
    
    }
    header .content_div {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 400px)
{
    header .phone_number_container {
        display: none;
    }
}
