/**------------------------------------------- TOP Nav Styles -------------------------------------------**/
#nav-bar {
    position: relative;
    z-index: 999;
}
#nav-bar,
.contain-to-grid {
    background: #005200;
}

.top-bar {
    background: none;
}
.top-bar .toggle-topbar.menu-icon a span::after {
    box-shadow: 0 0 0 2px #fff, 0 7px 0 2px #fff, 0 14px 0 2px #fff;
}
.top-bar .toggle-topbar.menu-icon a {
    color: #fff;
    font: 600 20px sans-serif;
    height: auto;
}
.top-bar-section {
    text-align: center;
    line-height: 0px;
}
.top-bar-section .has-dropdown {
    position: static;
}
.top-bar-section .has-dropdown > a {
    position: relative;
}
.top-bar-section .has-dropdown.moved {
    position: static;
}
.top-bar-section .has-dropdown.moved > a:after {
    display: block;
}
.top-bar-section ul li {
    background: none;
}
ul#top-nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: inline-block;
}
ul#top-nav-list > li {
    display: block;
    background: transparent;
    float: left;
    padding: 15px 30px;
    margin-bottom: 0px;
    /*box-shadow: 1px 0px 0px rgb(96, 182, 143) inset, -1px 0px 0px rgb(0, 123, 67) inset;*/
    transition: all .25s ease;
}
@media screen and (max-width: 640px){
    ul#top-nav-list > li:hover {
        background: none;
    }
}
ul#top-nav-list > li a {
    font: 16px/1.4em sans-serif;
    text-transform: uppercase;
    color: #fff;
    background: none;
    padding: 0px;
    display: block;
    transition: all .25s ease;
}
ul#top-nav-list > li.quote {
    background: #EDEDED;
}
ul#top-nav-list > li.quote a {
    color: #d50208;
    font-weight: 400;
    padding: 0;
}
ul#top-nav-list > li:hover > a {
    color: #fff;
}
ul#top-nav-list > li.quote:hover {
    background-color: #EB0209;
}
ul#top-nav-list > li > a[href="#"] {
    cursor: default;
}
/** STICKY TOP LOGO, PHONE # AND BUTTON - FOR DES & SPRUCE TEMPLATES **/

#logo-phone-sticky {
    background: #fff;
    height: 0;
    overflow: hidden;
}
.f-topbar-fixed #logo-phone-sticky {
    -webkit-animation: slideDown .3s ease-out alternate both;
    animation: slideDown .3s ease-out alternate both;
}
@-webkit-keyframes slideDown {
    0% {
        height: 0;
    }
    100% {
        height: 60px;
    }
}
@keyframes slideDown {
    0% {
        height: 0;
    }
    100% {
        height: 60px;
    }
}
#logo-phone-sticky .row {
    max-width: 66.25rem;
    margin: 0px auto !important;
}
#logo-sticky,
#phone-sticky {
    height: 55px;
    position: relative;
}
#logo-sticky a {
    display: block;
    margin-top: 5px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
}
#phone-sticky a {
    font-family: sans-serif;
    float: right;
    margin: 13px 0px 0px 50px;
}
#phone-sticky a.phone_link {
    margin-left: 0px;
}
#phone-sticky a.phone_link span,
#phone-sticky a.phone_link:hover span {
    font-size: 26px;
    line-height: 36px;
    font-weight: bold;
    color: #E63900;
}
#phone-sticky a.button {
    text-transform: none;
    border-radius: 30px;
    padding: 10px 20px;
    line-height: 100%;
    font-size: 14px;
    width: auto !important;
}
#phone-sticky a.button span {
    font-weight: bold;
}

/** STICKY TOP PHONE # - FOR AFS & HEALTHY TEMPLATES **/

@media screen and (min-width: 1025px) { 
    .sticky div.logo-phone-stick {
        display: none !important;
        margin: 0 auto;
        max-width: 66.25rem;
        transition: .2s ease;
        position: relative;
        z-index: 100;
    }   
    .sticky.fixed div.logo-phone-stick {
        display: block !important;
    }
    .logo-phone-stick >span a {
        color: #efefef;
        font-size: 28px;
        line-height: 24px;
        float: left;
        padding: 15px 20px 0px;
        display: block;
        font-weight: 600;
        cursor: pointer;
    }
}

/*----------------- TOP NAV CUSTOMIZED FOR LARGE SCREEN -------------------*/
@media screen and (min-width: 1025px) {    
    .contain-to-grid .top-bar {
        max-width: 66.25rem;
        height: auto;
    }    
    ul#top-nav-list ul.m-menu.short {
        min-width: 300px;
        width: 300px;
        left: 170px;
    }
    ul#top-nav-list.right ul.m-menu.short {
        right: 170px;
        left: auto;
    }
}

/*--------------- TOP NAV CUSTOMIZED FOR MEDIUM & LARGE -------------------- */
@media screen and (min-width: 641px) {
    .top-bar-section .has-dropdown>a {
        padding-right: 0 !important;
    }
    .top-bar-section .has-dropdown>a:after {
        display: none;
    }
    .top-nav.contain-to-grid.sticky.fixed {
        box-shadow: 0px 5px 10px rgba(0, 0, 0, .35);
        z-index: 999;
    }
    /*** Mega Menu ***/
    
    ul#top-nav-list ul.m-menu {
        background: rgba(255, 255, 255, .975);
        padding: 20px;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, .2);
        text-align: left;
        margin-top: 15px;
    }
    ul#top-nav-list ul.m-menu a {
        color: #353535;
    }
    ul#top-nav-list ul.m-menu-ul {
        display: block;
    }
    ul#top-nav-list ul.m-menu ul a {
        font-weight: bold;
        font-size: 17px;
        line-height: 18px;
        outline: none;
    }
    ul#top-nav-list .m-menu ul ul a {
        font-size: 15px;
        font-weight: normal;
        line-height: 1.8em;
        text-transform: none;
    }
    ul.m-menu ul li {
        margin-bottom: 20px;
        display: inline-block;
        float: none;
        -webkit-column-break-inside:avoid;
        column-break-inside:avoid;
        page-break-inside: avoid;
        break-inside: avoid;        
    }
    ul.m-menu ul ul li {
        padding-left: 20px;
        border: 0;
        margin: 0;
        position: relative;
    }
    ul.m-menu ul ul li::before {
        content: "";
        display: block;
        width: 7px;
        height: 7px;
        border: 2px solid #d50208;
        border-width: 2px 2px 0px 0px;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        position: absolute;
        top: 9px;
        left: 0px;
    }
    ul#top-nav-list ul.m-menu ul a:hover {
        color: #000;
        text-decoration: underline !important;
    }
}

 /*--------------- TOP NAV CUSTOMIZED FOR MEDIUM ONLY -------------------- */
@media screen and (min-width: 641px) and (max-width: 1024px) {
   
    .top-bar {
        height: auto;
    }
    ul#top-nav-list.right { float: none !important; }
    ul#top-nav-list:not(.right) > li {
        padding: 0 15px;
    }
    ul#top-nav-list > li > a {
        font-size: 14px !important;
        position: relative;
    }
    ul#top-nav-list:not(.right) > li > a {
        width: 75px;
        height: 65px;
    }
    ul#top-nav-list > li > a span {
        position: absolute;
        -webkit-transform:translate(-50%,-50%);
        transform:translate(-50%,-50%);
        top: 50%;
        left: 50%;
        width: 100%;
    }
    ul#top-nav-list:not(.right) ul.m-menu {
        margin-top: 0px;
    }
}
/*--------------- MEGA NAV FOR 900px and UP -------------------- */

@media screen and (min-width: 900px) {
    ul#top-nav-list .m-menu:not(.short) ul.m-menu-ul {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
    }
}

/*--------------- MEGA NAV BETWEEN 641px and 899px -------------------- */

@media screen and (min-width: 641px) and (max-width: 899px) {
    ul#top-nav-list .m-menu:not(.short) ul.m-menu-ul {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}

/*--------------------- TOP NAV CUSTOMIZED FOR SMALL SCREEN ------------------*/
@media screen and (max-width: 640px) {
    
    
    .top-bar {
        padding: 10px 20px;
        height: 55px;
    }
    .top-bar.expanded {

    }
    .top-bar.expanded .title-area {
        background: transparent;
    }
    ul#top-nav-list li {
        float: none;
        padding: 0px;
        margin-bottom: 0px;
        text-align: left;
    }
    ul#top-nav-list li a {
        padding: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
    }
    ul#top-nav-list li:hover {
        background: none !important;
        padding: 0px;
    }
    ul#top-nav-list li.quote {
        border: 0;
        background-color: #ea1d2c;
        margin: 20px 20px 10px;
    }
    ul#top-nav-list li.quote a {
        font-size: 20px;
        text-align: center;
        padding: 15px 0px;
    }
    ul#top-nav-list li a {
        color: #fff !important;
        font-size: 18px;
    }
    .back.js-generated a:after {
        border: inset 5px;
        content: "";
        display: block;
        height: 0;
        width: 0;
        border-color: transparent rgba(255, 255, 255, 0.4) transparent transparent;
        border-left-style: solid;
        margin-right: 0.9375rem;
        margin-top: -4.5px;
        position: absolute;
        top: 22px;
        left: -10px;
    }
    li.title.back.js-generated {
        margin: 0px auto 0px !important;
    }
    li.parent-link.hide-for-medium-up {
        display: none !important;
    }
    .m-menu-ul ul {
        display: none;
    }
}

/* Scroll to Top Button */
a#scrollToTop {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: rgba(0, 0, 0, .25);
    border-radius: 5px;
    padding: 10px 15px;
    color: #fff;
    font-size: 20px;
    z-index: 999;
}
a#scrollToTop .fa {
    margin-right: 10px;
    font-size: inherit;
}