/*
Theme Name: KTOO
Theme URI: http: //mysite.com/
Description: KTOO custom child theme for Salient
Author: My Name
Author URI: http: //mysite.com/
Template: salient
Version: 0.21
*/

/* add external icon to external links */
.sub-menu .menu-item a[target="_blank"]:after {
    content: '\f08e';
    font-family: FontAwesome;
    margin-left: 10px;
    font-weight: normal;
    font-size: smaller;
    opacity: 0.8;
}

/* make main menu the width of the content, but let the secondary menu be full width */

body.single #header-outer[data-full-width="true"] header > .container {
    max-width: 1220px;
}

#header-outer[data-full-width="true"] header > .container {
    max-width: 1390px;
}


/* remove megamenu header highlighting on mousover of sub-items */

body header#top nav .sf-menu li.sfHover > a.sf-with-ul,
body header#top nav > ul > li.megamenu > ul.sub-menu > li:hover > a {
    color: #e8e8e8 !important;
}

/* megamenu header styles */
body header#top nav > ul > li.megamenu > ul.sub-menu > li.menu-item > a {
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #537EA0 !important;
    margin-bottom: 10px;
    padding-bottom: 5px;
}


/* add label to hamburger menu on desktops */
@media only screen and (min-width: 1001px) {
	li.slide-out-widget-area-toggle a.closed:after,
	#search-btn > div > a:after {
		font-family: 'Open Sans';
		font-size: 12px;
		color: #FFF;
		text-align: center;
		margin-left: -4px;
		letter-spacing: -0.1px;
		opacity:0.7;
	}
	
	li.slide-out-widget-area-toggle a.closed:after {
		content: 'Menu';
	}
	
	#search-btn > div > a:after {
		content: 'Search';
    	margin-left: -5px;
	}
	
	#search-btn > div > a {
		margin-top: -3px;
	}

	#search-btn .icon-salient-search {
		margin-bottom: -4px;
	    display: block;
	}

	#header-outer header#top nav > ul.buttons {
		overflow: visible!important;
	}

	a.closed {}

	li.slide-out-widget-area-toggle a.closed {
		margin-top: -4px;
	}
}

/* END add label to hamburger menu on desktops */




/* slide out (off canvas) styles */
#slide-out-widget-area .off-canvas-menu-container .menu > .menu-item .sub-menu .menu-item:nth-child(2) a,
#slide-out-widget-area .off-canvas-menu-container .sub-menu > .menu-item:nth-child(2) a {
    font-size: 26px;
    border-bottom: 3px solid #4d708e;
    padding-bottom: 4px;
    margin-bottom: 12px;
}


#slide-out-widget-area .inner .off-canvas-menu-container li a {
    font-size: 19px;
}

#slide-out-widget-area .inner .off-canvas-menu-container .menu-item > a {
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #b4c9da;
}

#slide-out-widget-area .menu-item-has-children > a:after,
#slide-out-widget-area .menu.subview .back > a:before,
#slide-out-widget-area .sub-menu .back > a:before {
    font-family: FontAwesome;
    font-size: 15px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: normal;
}

#slide-out-widget-area .menu-item-has-children > a:after {
	content: "\f054";
}

#slide-out-widget-area .menu.subview .back > a:before, 
#slide-out-widget-area .sub-menu .back > a:before {
	content: "\f053";
}


/*
#slide-out-widget-area .sub-menu.dl-animate-in-5,
#slide-out-widget-area .sub-menu.dl-animate-out-5 {
	margin-top:28px!important;
}

#slide-out-widget-area .menu.subview li.subviewopen > a {
    display: block;
    margin-left: -15px;
    pointer-events: none;
    color: #555!important;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.7;
	height:28px;
}

#slide-out-widget-area .menu.subview li.subviewopen > a:after {
    content: '';
}
*/

#slide-out-widget-area .menuwrapper .menu .menu-item .nav_desc,
#slide-out-widget-area .menuwrapper .sub-menu .menu-item .nav_desc {
    display: none;
}

/* END slide out (off canvas) styles */

/* off canvas search box */
#slide-out-widget-area .widget_search .search-form .search-field {
    border: 1px solid #326fa2;
    padding: 4px 8px!important;
}

#slide-out-widget-area .widget_search .search-form .search-submit {
    background-color: #00335e;
    line-height: 1;
    padding: 6px;
    height: 100%;
    /* font-weight: 700; */
}
/* END off canvas search box */


/* hide some sidebar (off canvas) menu items on desktops */
@media only screen and (min-width: 1001px) {
	#slide-out-widget-area .mobile-only {
		display: none;
	}
}
/* END hide some sidebar (off canvas) menu items on desktops */



/* special social icon layout in secondary menu */


#header-secondary-outer nav .sf-menu .sub-menu .menu-social-links > a {
    text-indent: 240px;
    overflow: hidden;
    white-space: nowrap;
    /* display: none; */
    width: 1px;
    padding-left: 0;
    padding-right: 0!important;
    /* display: block; */
    /* position: relative; */
    /* right: 0; */
    /* margin-right: 0; */
    float: right;
    /* visibility: hidden; */
    position: absolute;
    width: 100%;
    height: 100%;
}

#header-secondary-outer nav .sf-menu .sub-menu .menu-social-links > .sub-menu {
    display:block!important;
    position: relative;
    left: 0!important;
    /* float: left; */
    width: 50px;
    left: initial!important;
    height: 100%;
    /* text-indent: 130px; */
    overflow: hidden;
    width: 100%;
    top: 0;
	visibility: visible;
	opacity:1!important;
	
}

#header-secondary-outer ul ul li.menu-social-links.sfHover > a:hover,
body #header-secondary-outer ul ul li.menu-social-links.sfHover > a {
    background-color: #054c84!important;
}

#header-secondary-outer nav .sf-menu .sub-menu .menu-social-links > .sub-menu > .menu-item {
    float:left;
    display: block;
    position: relative;
    width: 50px;
	height: auto;
}

#header-secondary-outer nav .sf-menu .sub-menu .menu-social-links .sub-menu > .icon-twitter:before {
    display:none;
}

#header-secondary-outer nav .sub-menu .menu-social-links .social-icon > a:before {
    
    /* position: relative; */
    /* display: inline; */
    /* left: 0; */
    margin-right: 200px;
    /* visibility: visible; */
    font-size: 21px;
    line-height: 1;
}

/* secondary header hover */
#header-secondary-outer nav > .sf-menu > .menu-item.sfHover,
#header-secondary-outer nav > .sf-menu > .menu-item:hover
 {
    background-color: #054c84;
}





#header-secondary-outer nav .sub-menu .menu-social-links .icon-twitter > a:before {
    content: "\f099";
}

#header-secondary-outer nav .sub-menu .menu-social-links .icon-facebook > a:before {
    content: "\f09a";
}


#header-secondary-outer nav .sub-menu .menu-social-links .social-icon.icon-facebook > a {
    padding-left: 18px;
}

#header-secondary-outer nav .sub-menu .menu-social-links .icon-youtube > a:before {
    content: "\f167";
}

#header-secondary-outer nav .sub-menu .menu-social-links .icon-instagram > a:before {
    content: "\f16d";
}


#header-secondary-outer nav .sub-menu .menu-social-links .social-icon > a {
    text-align:center;
    font-family:FontAwesome;
    font-weight:normal;
    /* font-size: 0; */
    /* visibility: hidden; */
	border:none;
	
    padding-left: 15px;
    padding-bottom: 10px;
}


/* clean up default social icons so they don't show up as phantom elements on the edge of the "real" link */
#header-secondary-outer nav .sub-menu .menu-social-links .social-icon:before {
    display: none;
}

/* END special social icon layout in secondary menu */


/* menu styling - em for frequencies */

.sf-menu .menu-item em {
    font-weight: normal;
    opacity: 0.8;
}

@media only screen and (min-width: 1100px) {
	.sf-menu .menu-item em {
    	margin-left: 20px;
	}
}
/* END menu styling - em for frequencies */


/* secondary menu layout */


#header-secondary-outer nav > ul > li > a {
    font-size: 12.6px!important;
    font-weight: 600;
}

#header-secondary-outer .sf-menu {
    width: 100%;
    text-align: right;
}

#header-secondary-outer .sf-menu * {
    text-align: left;
}

#header-secondary-outer #social {
    display: none;
}

#header-secondary-outer .sf-menu > li, .sf-menu > li > a {
    display: inline-block;
    /* display: inline; */
    float: none;
}

#header-secondary-outer .sf-menu .left-menu {
    float: left !important;
}

#header-secondary-outer .sf-menu > .current-menu-item,
#header-secondary-outer .sf-menu > .current-menu-ancestor {
    background: #041D37;
}

.sf-menu > .menu-item > a {
    cursor: pointer;
}

@media only screen and (max-width: 690px) {
	body #header-secondary-outer nav > ul > li.menu-item > a {
		font-family: 'Open Sans Condensed';
		font-size: 14px!important;
	}
	
	#header-secondary-outer nav > ul > li.left-menu {
		display: none!important;
	}
	
	#header-secondary-outer .sf-menu {
		text-align: center;
	}
	
	#header-secondary-outer .sf-menu * {
		text-align: left;
	}
	
	#header-secondary-outer > .sf-menu > .menu-item > a {
		padding-left: 5px!important;
		padding-right: 5px!important;
	}
	
	body #header-secondary-outer[data-full-width="true"] .container {
		padding: 0 8px !important;
	}
	
	#header-secondary-outer nav > ul > li.menu-item > a {
		/* padding-left: 4px!important;
		padding-right: 4px!important; */
		font-weight: 700;
		padding-left: 3px!important;
		padding-right: 3px!important;
		width: 100%;
		text-align: center;
	}
	
	#header-secondary-outer .sf-menu .menu-item {
		min-width:32%;
	}
	
	#header-secondary-outer nav ul.sf-menu {
		border-top:none;
	}
}

@media only screen and (max-width: 1000px) {
	#header-secondary-outer nav ul.sf-menu {
		border:none!important;
	}
	
	
	body[data-header-color="custom"] #header-secondary-outer {
		border-bottom: none;
	}
	
	#header-secondary-outer nav > ul > li.menu-item:last-child {
		border: none!important;
	}
}

@media only screen and (max-width: 900px) {
	#header-secondary-outer .sf-menu .left-menu:last-child {
		display: none!important;
	}
}

@media only screen and (max-width: 775px) {
	#header-secondary-outer .sf-menu .left-menu:nth-last-child(2) {
		display: none!important;
	}
}

/* END secondary menu layout */


/* search bar */
#search-outer #search input#s {
    border: 1px solid #FFF;
    border-radius: 5px;
    padding: 5px 10px !important;
    background-color: #103965;
    font-family: 'Open Sans';
    text-transform: none;
    font-size: 32px!important;
    box-shadow: 0px 0px 15px 0px #000 !important;
    font-weight: 500;
}
/* END search bar */


/* change search from tiles to list */

/* fix bug with listings still animating away from each other (on page resize and mobile scroll) */
#search-results article.result {
    transform: none!important;
    transition-property: none!important;
}

#search-results .result {
    position: relative!important;
  width: 100%;
  left: 0!important;
  top: 0!important;
  padding: 0px 0px 0px 10px;
  margin-bottom: 10px;
}

#search-results .result > a:first-of-type {
  display: block;
  width: 140px;
  height: 80px;
  float: left;
  overflow: hidden;
  margin-bottom: 10px;
}

#search-results .result img {
  margin-bottom: 0;
  max-height: 100px;
  max-width: 140px;
  float: left;
  margin-right: 10px;
}

#search-results .result p {
    display: block;
    padding-bottom: 7px;
    line-height: 1.6;
    font-size: 11pt;
    color: #000;
}

#search-results .result span.meta-date,
#search-results .result .title,
#search-results .result p,
#search-results .result-meta {
  padding-left: 150px;
}

#search-results .result-date {
    font-size: 14px;
    line-height: 2;
    font-style: italic;
    margin-right:20px;
}

#search-results .result-meta {
    display:block;
}

#search-results .result span.result-type {
    font-family: 'Open Sans';
    color: #FFF;
    background: #ADADAD;
    display: inline-block;
    padding: 6px 8px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1;
    font-style: normal;
}

#search-results .result h2.title a {
    margin-right: 30px;
}
    
#search-results article.result .inner-wrap:after {
    content: " ";
    display: block;
    clear: both;
}

/* END change search from tiles to list */


@media screen and (max-width: 690px) { 
    #search-results .result img {
        max-width:40%;
    }
    #search-results .result span.meta-date, 
    #search-results .result .title, 
    #search-results .result p,
    #search-results .result-meta {
        padding-left:0;
    }
	
	
}



/* search page search field & header */

body.search-results form .search-field {
    max-width: 75%;
    font-size: 20px;
    font-weight: 600;
    height: 100%;
    float:left;
    border-radius: 6px 0px 0px 6px;
    border: 1px solid #A8C0D4;
    border-right: 0;
}

body.search-results .search-bar {
    display: block;
    position: relative;
    height: 40px;
    margin-bottom: 12px;
}

body.search form .search-submit {
    float: right;
    width: 20%;
    height: 100%;
    background: #00335E;
    font-family: 'Open Sans';
    font-weight: 700;
    font-size: 16px;
    max-width: 90px;
    float: left;
    border-radius: 0px 8px 8px 0px;
}

@media screen and (max-width: 450px) { 
	body.search form .search-submit {
		font-size: 13px;
		padding: 7px;
	}
}

body.search-results .row .col.section-title .results-found,  
body.search-results .results-found {
    padding-bottom: 0;
    font-style: italic;
    margin-top: 15px;
    color: #666;
    font-size: 16px;
    display: inline;
    font-weight: 400;
    font-family: 'Open Sans';
    line-height: 1;
	float:left;
}

.row.full-width-section {
    background: #FFF;
    margin-top: -25px!important;
    padding-top: 20px;
    margin-bottom: 10px;
}

body.search-results .row .col.section-title {
    border-bottom: 0;
    /* border-top: 1px solid #DDD; */
}

.search .row .col.section-title h1 {
    font-size: 20px!important;
}

/* END search page search field */


/* search dropdown hide post type description */

#search-box .ui-autocomplete .desc {
    visibility:hidden;
}

/* end search dropdown hide post type description */



/* style pagination */
#pagination .screen-reader-text {
    display: none;
}

#pagination .navigation {
    float: left;
    margin-right: 20px;
}

#pagination {
	height: auto;
}

#pagination:after {
    content: ' ';
    clear: both;
    display: block;
}

html body #pagination > a:first-child.page-numbers {
    padding-left: 13px!important;
}

html body #pagination .page-numbers.prev, html body #pagination .page-numbers.next {
    background-color: rgba(0,0,0,0.1) !important;
}

/* END style pagination */
