﻿/*Navigation header*/

#header {
    height: auto;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

html {
    display: flex;
    flex-direction: column;
}

/*#region Google search box styling */

.gsc-control-cse {
    padding: 0px !important;
}

.gsc-search-button {
    margin-left: 0px !important;
}

.gsc-search-button-v2 {
    padding: 15px 10px !important;
    background-color: #2f74a4 !important;
    border-left: none !important;
    height: 46px !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.gsc-input {
    padding-right: 0px !important;
}

.gsc-input-box {
    padding: 5px 8px !important;
}

.gsib_a {
    padding: 5px 8px !important;
}

.gsc-webResult {
    text-align: left;
}

form.gsc-search-box {
    margin-bottom: 0 !important;
}

table.gsc-search-box {
    margin-bottom: 0 !important;
}

/*#endregion */

section.page-title {
    background: #f7f7f7; /* Old browsers */
    background: -moz-linear-gradient(-45deg, #f7f7f7 0%, #f7f7f7 18%, #54a3ee 77%, #54a3ee 77%, #3690f0 78%, #146794 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #f7f7f7 0%,#f7f7f7 18%,#54a3ee 77%,#54a3ee 77%,#3690f0 78%,#146794 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #f7f7f7 0%,#f7f7f7 18%,#54a3ee 77%,#54a3ee 77%,#3690f0 78%,#146794 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    padding-top: 15px;
    padding-bottom: 15px;
}

.snco-page-title {
    line-height: 38px;
    margin-bottom: 0;
    font-size: 2.25em;
}

.logo {
    align-items: center;
}

.logo > img {
    height: 80px;
}

.logo > text {
    padding-left: 10px;
    padding-right: 20px;
    font-size: 20px;
    white-space: nowrap;
}

#topNav ul.nav > li {
    border-right: #eee 1px solid;
    border-left: 0;
}

    #topNav ul.nav > li:first-child {
        border-left: #eee 1px solid;
    }

#topNav > .container-fluid {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#nav-menu-container {
    display: flex;
}

#contact-info-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#header-contact-info {
    padding-left:10px;
    margin-top: 0;
}

@media(min-width: 1200px) {
    #topNav ul.nav {
        height: 80px;
        display: flex;
        align-items: stretch;
    }

        #topNav ul.nav li.dropdown > a.dropdown-toggle:first-child {
            padding: 0px 35px;
            height: 100%;
            flex-direction: column;
            justify-content: center;
        }

    #topNav ul.nav > li.mega-menu > ul {
        max-width: 1000px;
        position: absolute;
        top: auto;
    }

        #topNav ul.nav > li.mega-menu > ul.dropdown-menu > li > div.row {
            width: 100%;
        }

    #topNav > .container-fluid, section.page-title > .container, .user-bar {
        max-width: 1920px;
        width: 95%;
    }

    #topNav .search {
        min-width: 250px;
        width: 320px;
        max-width: 320px;
        float: right;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #topNav ul.nav {
        height: 80px;
        display: flex;
        align-items: stretch;
    }

        #topNav ul.nav li.dropdown > a.dropdown-toggle:first-child {
            padding: 0px 25px;
            height: 100%;
            flex-direction: column;
            justify-content: center;
        }

    #topNav ul.nav > li.mega-menu > ul {
        position: absolute;
        top: auto;
    }

        #topNav ul.nav > li.mega-menu > ul.dropdown-menu > li > div.row {
            width: 100%;
        }

    #topNav > .container-fluid, section.page-title > .container, .user-bar {
        max-width: 95%;
        width: 95%;
    }

    #topNav .search {
        width: 300px;
        float: right;
    }
}

@media only screen and (max-width: 991px) {
    #topNav ul.nav > li {
        border-left: 0 !important;
        border-right: 0 !important;
    }

    #topNav ul.nav > li > a {
        padding: 15px 20px;
    }

        #topNav ul.nav > li > a:after {
            right: 25px;
        }

    .menu-container {
        margin-left: -20px;
        margin-right: -20px;
        min-width: 100%;
        width: calc(100% + 40px);
    }

    #topNav div.nav-main-collapse, #topNav div.nav-main-collapse.in {
        margin-top: 0px;
    }

    #nav-menu-container {
        order: 5;
        flex-basis: 100%;
    }

    #topNav > div > div {
        flex-wrap: wrap;
    }

    #topNav section.page-title > .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    .logo > img {
        height: 50px;
    }

    .logo > text {
        padding-right: 10px;
    }

    #topNav .search {
        width: 300px;
        float: right;
    }
}

@media (max-width: 767px) {
    #topNav .search {
        width: 220px;
        float: right;
    }
}

@media (max-width: 575px) {
    section.page-title {
        background: #f7f7f7;
        text-align: center;
    }

    #topNav .search {
        width: 320px;
        float: none;
    }

    #contact-info-container {
        order: 4;
        flex-basis: 100%;
        justify-content: center;
    }

    #header-contact-info {
        padding-left: 0;
        margin-top: 10px;
    }
}

@media(min-width: 1920px) {
    #topNav ul.nav > li.mega-menu > ul {
        left: calc(((100% - 1920px) / 2));
    }
}

/*Body Content*/
.body-content {
    width: 95% !important;
    max-width: 1920px !important;
    background-color: white !important;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    height: auto !important;
}

@media(min-width: 1200px) {
    .body-content {
        padding: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .body-content {
        padding: 20px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

@media (min-width:768px) and (max-width:991px) {
    .body-content {
        width: 100% !important;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (min-width:576px) and (max-width:767px) {
    .body-content {
        width: 100% !important;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width:575px) {
    .body-content {
        width: 100% !important;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/*Layout Footer*/
#footer {
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    height: auto !important;
    font-family: Lato;
}

    #footer li {
        padding: 8px 0px;
    }

    #footer a {
        color: #777;
    }

        #footer a:hover, #footer a:focus {
            color: #fff !important;
            text-decoration: none;
        }

#mainFooter {
    text-align: center;
}

    #mainFooter li:last-child, li:last-child:after {
        border-bottom: none !important;
    }

#subfooter {
    background-color: #252525;
    margin-left: -20px;
    margin-right: -20px;
}

#footer-content {
    padding-top: 15px;
    padding-bottom: 15px;
}

@media(min-width: 1200px) {
    #footer-content {
        max-width: 1200px;
        float: none;
        display: inline-block;
    }
}
