.header-container {
    width: 100%;
    position: fixed;
    z-index: 9999;
    opacity: 1;
    background: #283682 -webkit-radial-gradient(20% 80%, 60% 60%, rgba(255,255,255,.15), rgba(255,255,255,0));
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-bottom: solid 5px #ffc104;
}

.header-container .content-container {
    line-height: 0;

}

.header-top-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background-color: #FFF;
}

.header-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: right;
    padding-left: 0;
}

#datetime {
    font-weight: normal;
}


.header-content-container {
    display: flex;
    flex-wrap: nowrap;
    /*padding: 15px;*/
    height: 100px;
    margin: 0 auto;
    align-items: center;
}



.header-content-container > div.header-text {
    text-align: right;
}


.header-text-inner {
    display: block;
    line-height: normal;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}


#header-top-text {
    line-height: normal;
    text-align: center;
    font-size: 0.8em;
    padding: 15px;
}

.header-text-inner > a {
    display: block;
    color: #000;
    font-size: 1.3em;
    font-weight: 500;
    text-decoration: none;
}

.header-text-inner > a:hover {
    text-decoration: none;
}

#headerContainer.smaller .header-top,
#headerContainer.smaller .header-top-bg {
    display: none;
}

#header {
    z-index: 3000;
    padding-left: 11px;
}

#header-contact {
    display: table-cell; 
    width: 30%; 
    height: 80px; 
    vertical-align: middle;
}

.header-brand {
    height: 100%;
}

.header-brand img {
    display: inline-block;
    height: 80px;
    max-height: 100%;
}

a.header-brand {
    display: inline-flex;
    align-items: center;
}

.btn-navbar {
    display: none;
    float: right;
    padding: 10px;
    z-index: 9999;
}

.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #FFF;
}

    .icon-bar + .icon-bar {
        margin-top: 4px;
    }

.navBarButtons {
    background-color: #FFF;
    padding-top: 10px;
}

/* CONTACT */
#headerContact {
    padding-top: 10px;
    font-family: 'Lato';
    font-size: 1em;
    line-height: 1;
}

    #headerContact div,
    #headerContact div a,
    .contact-separator {
        color: #fff;
    }

    #headerContact div {
        display: inline-block;
    }

        #headerContact div a {
            text-decoration: none;
        }

.contact-separator {
    margin: 0 5px;
}

/* HEADER LINKS */
.header-links {
    position: absolute;
    top: 13px;
    right: 0;
}

    .header-links a {
        position: relative;
        display: inline-block;
        color: #fff;
        text-decoration: none;
        font-size: 0.9em;
        line-height: 1;
        padding: 15px;
    }

        .header-links a:hover {
            background-color: #eee;
            color: #222;
            border-radius: 3px;
            transition: 0.3s;
        }

    .header-links i {
        color: #ed1c24;
        margin-right: 7px;
    }

/* SOCIAL MEDIA */
.header-social-media {
    position: relative;
    display: inline-block;
    vertical-align: top;
    font-size: 20px;
    margin-top: 8px;
    z-index: 3;
    display: none;
}

    .header-social-media a {
        text-decoration: none;
        color: #fff;
        margin-left: 4px;
        background-color: #1e5f6f;
        width: 35px;
        height: 35px;
        line-height: 35px;
        display: inline-block;
        text-align: center;
    }

        .header-social-media a:hover {
            color: #fff;
            background-color: #5bbad5;
        }


/* ===HEADER=== */
.header-top-bg {
    top: -35px;
}

.btn-navbar {
    background: #FFF;
}

.icon-bar {
    background-color: #14404b;
}

.header-padding {
    height: 130px;
}

.subheader-content-container {
    width: 100%;
    height: 65px;
    display: flex;
    flex-wrap: nowrap;
    background-color: #FFFFFF;
    opacity: 0.85;
    padding: 0px;
    padding-left: 15px;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}

    .subheader-content-container nav {
        color: #111;
    }

    .subheader-content-container nav ul li a {
        color: #111;
    }

@media only screen and (min-width: 1025px) {
        #header,
        #header .header-brand,
        #header .header-brand img {
            transition: all 0.3s;
        }
    }

    @media only screen and (max-width: 1024px) {

        .header-content-container {

        }

        /*.header-content-container > * {
            display: block;
            width: 100%;
            padding: 0px;
        }*/

        .subheader-content-container {
            opacity: 1;
        }

        #header {
            float: none;
            width: 100%;
            display: block;
        }

        #header-contact {
            display: none;
        }

        #headerContact {
            display: none;
        }

        .header-text {
            display: none;
        }

        .header-padding {
            height: 0px;
        }

        .btn-navbar {
            display: block;
        }
        
        .navigation-container {
            width: 100%;
        }

        .navBarButtons {
            padding: unset;
        }

        nav ul {
            float: unset !important;
            left: unset !important;
        }

        nav > ul > li {
            right: unset !important;
        }
    }

    @media only screen and (min-width: 621px) {
        #outer-wrap.top-padding {
            padding-top: 35px;
        }
    }

    @media only screen and (max-width: 400px) {
        .header-container {
            /*padding: 0 15px;*/
        }
    }


@media screen and (max-width: 768px) {
    .header-container .content-container > #pnlSubNavigation,
    .header-container .content-container > .search-right-wrap {
        width: 100%;
    }
}

/* Office Details */

.header-office-details {
    position: absolute;
    top: 0;
    height: 100%;
    right: 42px;
    padding: 15px;
    display: block;
    font-size: 12px;
    float: none;
}

h3.header-office-name {
    color: #283682;
    font-size: 1.5em;
    margin-bottom: 5px;
    font-weight: 800;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

ul.header-office-contact {
    list-style: none;
    white-space: normal;
    font-weight: 200;
}

.header-office-details * {
    float: none;
    position: relative;
    line-height: 1em;
}

ul.header-office-contact > .office-contact-component {
    display: block;
    font-size: 1.2em;
    height: auto;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

ul.header-office-contact > .office-contact-component > a {
    color: #000;
    text-decoration: none;
}

@media screen and (max-width: 500px) {
    .header-office-details {
        display: none;
    }
}

.social-media-nav-wrap {
    position: absolute;
    top: 100%;
    right: 0;
    margin-right: 14px;
    background-color: #fff;
    border-bottom-left-radius: 20px;
}

@media only screen and (max-width: 1024px) {
    .social-media-nav-wrap {
        padding-right: 0px;
    }
}