.mobile-menu-wrap {
    display: none;
}
.navbar-brand {
    padding: 0;
    text-align: center;
}
.navbar-brand img {
    width: 174px;
}

.header-right-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Main Navigation */
.site-navigation {
    margin-top: 2px;
}
.emg-nav-wrap {
    margin-left: auto;
}
.emg-desktop-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}
.emg-desktop-nav li {
    list-style: none;
    position: relative;
}

.emg-desktop-nav li  a {
    font-size: 16px;
    color: #2e324c;
    display: block;
}

.emg-desktop-nav > li {
    margin: 0
}

.emg-desktop-nav > li > span > a:before {
    content: '';
    position: absolute;
    height: 7px;
    width: 100%;
    bottom: 0;
    left: 0;
    transition: .3s;
}

.emg-desktop-nav > li:hover > span > a:before,
.emg-desktop-nav > li.current-menu-item > span > a:before {
    background-color: #F67109;
}

.emg-desktop-nav > li > span {
    
}

.emg-desktop-nav > li > span > a {
    padding: 15px 15px 15px;
}

.emg-desktop-nav > li.menu-item-has-children  > span > a {
    padding-right: 25px;
}

.emg-desktop-nav ul {
    transition: transform .4s ease-out,opacity .1s ease-out;
    position: absolute;
    opacity: 0;
    top: 100%;
    left: 0;
    visibility: hidden;
    padding: 10px 0;
    background-color: rgb(var(--primary-color));
    transform: translateY(30px);
    border-radius: 3px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 1;
    min-width: 220px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
}

.emg-desktop-nav ul.sub-menu {
    z-index: 99;
}

.emg-desktop-nav ul.sub-menu li {
    flex: 0 0 100%;
    text-align: left;
}

.emg-desktop-nav ul.sub-menu li a {
    color: #fff;
    padding: 6px 20px;
    white-space: normal;
    text-transform: none;
    transition: .3s;
}

.emg-desktop-nav ul.sub-menu li a:hover {
    background-color: #2e324c;
    color: #fff;
}
/*.emg-desktop-nav .sub-menu li.menu-item-has-children span .nav-arrow {
    left: unset;
    top: 50%;
    right: 20px;
}

.emg-desktop-nav .sub-menu li.menu-item-has-children:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    left: 100%;
    top: -30px;
}
*/
.emg-desktop-nav > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emg-desktop-nav li:not(.menu-item-has-children) .nav-arrow {
    display: none;
}

.emg-desktop-nav li.menu-item-has-children .nav-arrow {
    width: 12px;
    height: 12px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(../img/arrow-down.png);
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform .3s ease-out;
}

.emg-desktop-nav > li.menu-item-has-children:hover > span > .nav-arrow {
    transform: rotate(180deg) translateY(50%);
}

.emg-desktop-nav .sub-menu li.menu-item-has-children:hover > span > .nav-arrow {
    transform: rotate(-90deg) translateY(50%);
    top: calc(50% - 6px);
}

.top-section {
    position: relative;
    background-image: url('../img/hero-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.site-header {
    position: relative;
    background: rgba(255,255,255,0.8);
}

.main-header {
    position: relative;
    padding: 5px 0;
}

.main-header-right {
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.main-header-right-inner {
    margin-left: 20px;
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*Mobile Menu */
.emg_ham {
    display: none;
    position: relative;
    z-index: 10;
}
.mobile-menu-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 300px;
    max-width: 95%;
    position: fixed;
    z-index: 100;
    background: #fff;
    text-align: left;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 25px 90px;
    transition: transform .4s;
    transform: translateX(-100%);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}
.mobile-menu-logo {
    width: 100%;
    margin-bottom: 40px;
}
.mobile-menu-logo img {
    width: 200px;
    max-width: 90%;
}
body.mobile-menu-show .mobile-menu-wrap {
    transform: translateX(0);
}
#emg-mobile-menu {
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
}

#emg-mobile-menu,
#emg-mobile-menu ul {
    margin-bottom: 0;
}

#emg-mobile-menu > ul > li:not(:last-child) {
    margin-bottom: 5px;
}

#emg-mobile-menu > ul > li > ul {
    padding-top: 5px;
}

#emg-mobile-menu ul li {
    list-style: none;
    position: relative;
}

#emg-mobile-menu ul {
    padding: 0;
}

#emg-mobile-menu li a {
    font-size: 16px;
    font-weight: 600;
    padding: 5px 10px;
    display: block;
    position: relative;
    transition: .3s;
}

#emg-mobile-menu li a:hover,
#emg-mobile-menu li a:focus {
    text-decoration: none;
    outline: none;
}

#emg-mobile-menu li.current-menu-item > span > a,
#emg-mobile-menu ul li li.current-menu-item a,
#emg-mobile-menu li a:hover {
    background: rgb(var(--primary-color));
    color: #fff;
}

#emg-mobile-menu ul > li {
    vertical-align: middle;
}

#emg-mobile-menu ul li span {
    display: block;
    width: 100%;
    position: relative;
}

#emg-mobile-menu ul > li:not(.menu-item-has-children) .nav-arrow {
    display: none;
}

#emg-mobile-menu ul > li.menu-item-has-children .nav-arrow {
    width: 30px;
    height: 38px;
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    transition: transform .3s ease-out;
    position: absolute;
    right: 0;
    top: 0;
    background-image: url(../img/arrow-down.png);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
}

#emg-mobile-menu ul > li.show-child-menu .nav-arrow {
    transform: rotate(180deg);
}

#emg-mobile-menu li:not(.current-menu-ancestor) ul,
#emg-mobile-menu li:not(.current-menu-parent) ul {
    display: none;
}

#emg-mobile-menu li.current-menu-item.menu-item-has-children ul {
    display: block;
}

#emg-mobile-menu li ul {
    padding-left: 20px;
}

.hamburger {
    padding: 15px 0;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    margin-left: 20px;
    overflow: visible;
}

.hamburger:hover {}
.hamburger:focus,
.hamburger:active {
    outline: none;
}

.hamburger.is-active:hover {}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: rgb(var(--primary-color));
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 40px;
    height: 5px;
    background-color: rgb(var(--primary-color));
    border-radius: 0;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -12px;
}
.hamburger-inner::after {
    bottom: -12px;
}

/** Squeeze*/
.hamburger--squeeze .hamburger-inner {
    transition-duration: 0.075s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--squeeze .hamburger-inner::before {
    transition: top 0.075s 0.12s ease, opacity 0.075s ease;
}
.hamburger--squeeze .hamburger-inner::after {
    transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--squeeze.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hamburger--squeeze.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.075s ease, opacity 0.075s 0.12s ease;
}
.hamburger--squeeze.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

body.mobile-menu-show .mobile-menu-wrap {
    transform: translateX(0);
}


/* Font Issue Fix */
.header-outer-script{
    display: flex;
    align-items: center;
}
.header-outer-script a{
    margin: 0 15px;
}
.home-advisor img{
    max-height: 100px;
}
.header-right-top .btn {
    font-size: 30px;
    padding: 10px 40px 6px;
    font-weight: 700;
}
.emg-desktop-nav li a {
    font-size: 18px;
    font-family: 'Helvetica';
}
.emg-desktop-nav li a {
    font-size: 18px;
    font-family: var(--secondary-font);
}
@media screen and (max-width:1199px) {
    a#bbblink.ruhzbam, a#bbblink.ruhzbum{
        width: 133px !important;
    }
    .header-right-top .btn{
        font-size: 25px;
    }
    .home-advisor img{
        max-height: 84px;
    }
    .emg-desktop-nav li a{
        font-size: 16px;
    }
}
@media screen and (max-width:991px) {
    a#bbblink.ruhzbam, a#bbblink.ruhzbum{
        width: 145px !important;
    }
    .main-header .container {
        max-width: 100%;
    }

    .main-header {
        position: relative;
        padding: 15px;
    }
    .main-header-right {
        padding-top: 0;
    }

    .header-bbb img {
        width: 150px;
    }

    .header-right-top .btn {
        font-size: 22px;
        padding: 10px 20px 6px;
    }

    .home-advisor img{
        max-height: 78px;
    }
    .emg_ham {
        display: flex;
        z-index: 999;
    }
    .site-navigation {
        display: none;
    }
    .mobile-menu-wrap {
        display: flex !important;
        top: 0;
    }
    body.admin-bar .mobile-menu-wrap {
        top: 32px;
    }

}


@media screen and (max-width:768px) {
    .header-right-top .btn {
        font-size: 15px;
        min-width: 102px;
        padding: 10px 8px 6px;
    }
    .home-advisor img{
        max-height: 100px;
    }
}


@media screen and (max-width:575px) {

    .main-header {
        position: relative;
        padding: 15px 0;
    }

    .main-header-inner {
        flex-wrap: wrap;
    }

    .navbar-brand {
        width: 100%;
        margin: 0 auto 20px;
    }
    .header-outer-script{
        width: 100%;
        justify-content: center;
    }
    .home-advisor img{
        max-height: 100px;
    }
    .main-header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }
    .main-header-right-inner{
        width: 100%;
        margin: 0;
    }
    .header-right-top{
        width: 100%;
        margin-left: 0;
        display: flex;
        justify-content: space-between;
    }
    .a{
        justify-content: space-between;
        width: 100%;
    }
    .header-bbb img {
        width: 110px;
    }

    .header-right-top .btn {
        font-size: 20px;
        min-width: auto;
    }

    .hamburger {
        margin-left: 15px;
    }
}

@media screen and (max-width:480px) {
    .header-right-top .btn {
        font-size: 16px;
    }    
}

@media screen and (max-width:400px) {
    .header-bbb-script{
        width: 36% !important;
        height: 63px !important;
    }
    a#bbblink img{
        width: 200% !important;
        height: auto !important;
    }

}
@media screen and (max-width:350px) {
    .header-bbb-script{
        /*width: 28% !important;*/
        height: 50px !important;
    }
    .header-right-top .btn {
        font-size: 16px;
        padding: 10px 8px 6px;
    }  

}