.clear {
    clear: both;
}


/***** Start of primary nav ******/

#menu-button {
    display: none;
}

nav.mobile {
    display: none;
}

nav.primary {
    padding: 0;
    display: block;
    margin: 0;
    width: 100%;
    position: relative;
}

nav.primary ul {
    margin: 0;
    padding: 0;
    text-align: right;
    font-size: 0;
}

nav.primary ul li {
    display: inline-block;
    margin: 0;
    list-style-type: none;
}

nav.primary ul li a {
    font-family: 'jaf-bernina-sans', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    color: #262626;
    /* line-height: 20px; */
    text-decoration: none;
    padding: 30px;
    display: block;
    margin: 0;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -ms-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	border-bottom: solid 4px #fff;
}

nav.primary ul li a:hover {
    border-color: #ff5405;
}

.active-primary {
    background: #e5e7eb;
}

nav.primary ul li a i {
    color: #ff5405;
}


/* Appearance of the sub-level links */

nav.primary ul li li a {
    font-size: 14px;
    line-height: 18px;
    padding: 10px 0 10px 20px;
    text-align: left;
    border-right: none;
    border-left: none;
    background: #e5e5e5;
    border-bottom: #c1c1c1 solid 1px;
    color: #262626 !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -ms-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.primary ul li li i {
    display: none;
}


/* Appearance of the sub-level links on hover */

nav.primary ul li li a:hover {
    background: #c2c0c0;
}


/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */

nav.primary ul ul {
    display: none;
    position: absolute;
    -moz-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
}

nav.primary ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
}

nav.primary ul li:hover>ul {
    display: block;
    /* line-height: 18px; */
    z-index: 100;
}

nav.primary ul ul li {
    float: none;
    width: 310px;
    position: relative;
    margin: 0;
    display: block;
}

a.search-toggle {
    color: #212529;
    font-size: 20px;
    -webkit-text-stroke: 1px #fff;
    padding: 10px;
	cursor: pointer;
}
/******** Nav Resets ***************/

i.fas.fa-angle-down {
    padding-left: 8px;
    padding-top: 3px;
}




.search-container{position: relative;}
.mv-search{
	top: calc(100% + 10px);
	right: 0;
	display: flex;
	position: absolute;
	z-index: 100;
	min-width: 200px;
	box-shadow: 0 0 8px 0 rgba(0,0,0,0.33);
}
.mv-search form{
}
.mv-search input{
	-webkit-transition: background-color .25s ease-in-out;
    -o-transition: background-color .25s ease-in-out;
    transition: background-color .25s ease-in-out;
    width: calc(100% - 20px);
    height: 48px !important;
	font-family: "jaf-bernina-sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 48px !important;
    color: #777778;
    text-transform: none;
    letter-spacing: 0em;
    padding-right: 20px;
    border: none;
    padding-left: 15px;
}
.mv-search button{
	font-family: "jaf-bernina-sans", sans-serif;
    position: absolute;
    width: 48px !important;
    height: 48px !important;
    text-align: center;
    border: none;
    padding: 0;
    font-size: 14px;
	appearance: none;
	outline: none;
	right: 0;
	top: 0;
	color: #ff5405;
	background: #fff;
	cursor: pointer;
}


/******** End of primary Nav ***************/


@media screen and (max-width: 1400px) {
    nav.primary ul li a {
        padding: 20px 30px;
        font-size: 14px;
    }
}


@media screen and (max-width: 900px) {
	
		#cs-logo{
		padding: 10px 0;
	}
	#cs-logo img{
		max-width: 100px !important;
	}
    /*==============================
		Mobile Nav Styles
	================================*/
	.search-container{
		
    margin-left: auto;
	}
    nav.primary {
        display: none;
    }
    #menu-button {
        display: block;
        font-size: 24px;
        position: relative;
        line-height: 40px;
        z-index: 1000;
		padding-left: 10px;
        /* needs to be lower than nav.mobile, adjust as needed */
        text-align: right;
    }
    #menu-button a {
        color: #0a2737;
        text-decoration: none;
        font-weight: normal;
        text-align: left;
        font-weight: 600;
    }
    .menu-toggle span {
        font-size: 20px;
    }
    nav.mobile {
        display: block;
        position: fixed;
        text-align: left;
        top: 0;
        left: -350px;
        width: 350px;
        height: 100%;
        background: #e5e5e5;
        z-index: 1001;
        /* needs to be higher than #menu-button, adjust as needed */
        overflow: auto;
    }
    /* MENU HEADER SOCIAL MEDIA */
    nav.mobile .social-media {
        position: relative;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        word-spacing: 13px;
        padding: 0 0 0 15px;
        color: #0a2737!important;
    }
    nav.mobile .social-media a:link,
    nav.mobile .social-media a:visited {
        color: #2383b7;
        text-decoration: none;
    }
    nav.mobile .social-media a:hover,
    nav.mobile .social-media a:active {
        color: #0a2737;
        ;
        text-decoration: underline;
    }
    .mobiletitle {
        padding-left: 20px;
        color: #0a2737;
    }
    /* MENU HEADER STYLES */
    nav.mobile .mobile_top {
        position: relative;
        display: block;
        padding: 0;
        margin: 15px 0 10px 0;
        /*margin:40px 0 10px 0;*/
        color: #999;
        font-size: 18px;
        font-weight: 400;
        height: 56px;
    }
    /* MENU CLOSE 'X' BUTTON */
    nav.mobile .menu-toggle {
        position: absolute;
        padding: 3px 8px 3px;
        font-size: 24px;
        font-weight: bold;
        line-height: 1;
        color: #ff5405;
        text-decoration: none;
        top: -4px;
        /*top:-35px;*/
        right: 13px;
    }
    nav.mobile .menu-toggle:hover {
        /* Menu close button on hoveer */
        color: #fff;
    }
    /* MENU LIST STYLE */
    nav.mobile ul {
        list-style: none;
        font-weight: 300;
        margin: 0;
        padding: 0;
        border-top: 1px solid #6b717b;
    }
    nav.mobile ul li {
        border-bottom: 1px solid #6b717b;
        border-bottom: 1px solid #6b717b;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box!important;
        /* height: 100%; */
    }
    /* FIRST LEVEL */
    nav.mobile ul li a {
        position: relative;
        display: inline-flex;
        font-weight: 500;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        padding: 20px 10px 20px 15px;
        color: #4c4c4c;
        text-decoration: none;
        border-left: 4px #333 solid;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box!important;
    }
    nav.mobile ul li a:hover {
        background: rgba(45, 45, 45, 0.5);
        color: #fff;
        border-left: 4px #ff5405 solid;
        /* border highlight - Change to fit match site colors */
    }
    /* SECOND LEVEL */
    nav.mobile ul li li:last-child {
        border: none;
    }
    nav.mobile ul li li a {
        background: #cccccc;
        position: relative;
        display: inline-flex;
        width: 100%;
        justify-content: space-between;
        padding: 15px 10px 15px 15px;
        border-left: 4px #444 solid;
        color: #4c4c4c;
        text-decoration: none;
    }
    nav.mobile ul li li a:hover {
        background: rgba(65, 65, 65, 0.5);
    }
    /* THIRD LEVEL */
    nav.mobile ul li li li:last-child {
        border: none;
    }
    nav.mobile ul li li li a {
        background: #555;
        position: relative;
        display: block;
        padding: 10px 10px 10px 25px;
        color: #ccc;
        text-decoration: none;
        border-left: 4px #555 solid;
    }
    nav.mobile ul li li li a:hover {
        background: rgba(85, 85, 85, 0.5);
    }
    /* FOURTH LEVEL */
    nav.mobile ul li li li li:last-child {
        border: none;
    }
    nav.mobile ul li li li li a {
        background: #777;
        position: relative;
        display: block;
        padding: 10px 10px 10px 25px;
        color: #ccc;
        text-decoration: none;
        border-left: 4px #555 solid;
    }
    nav.mobile ul li li li li a:hover {
        background: rgba(85, 85, 85, 0.5);
    }
    nav.mobile ul li .click {}
    /* FONT AWESOME ICONS */
    nav.mobile ul li a .fa {
        width: 25px;
        font-weight: 100;
        padding: 8px 3px;
        margin: 0 6px 0 0;
        text-align: center;
        background: #292929;
        -webkit-border-radius: 30px;
        -moz-border-radius: 30px;
        border-radius: 30px;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    }
    nav.mobile ul li .fa-chevron-down {
        color: #999;
    }
    .more {
        position: absolute;
        right: 5%;
    }
    .mobilefooterlogo {
        text-align: center;
        margin: 0 auto;
        transform: scale(0.9);
    }
}

@media screen and (max-width: 500px) {
    #menu-button {
        text-align: center;
    }
}


/* Hide the desktop menu item icons */

.primary li>i {
    display: none;
}