/*
 Stylesheet for globals - headers, footer, navigation
*/

.archive #main {
    margin-top:0 !important;
    padding-top:0 !important;
    background:#fff !important;
}

/* Allow header to be NOT STICKY on select pages by adding `no-sticky-header` class to the <body> tag */
body.no-sticky-header .fusion-header-wrapper.fusion-is-sticky .fusion-header {
	position: relative !important;
	top: 0 !important;
}

body.no-sticky-header .fusion-is-sticky .fusion-header-sticky-height {
	display: none;
}

/*
** LINKS IN CONTENT
*/
#wrapper .post-content a:not(.fusion-button) {
    font-weight:700;
}
#wrapper .post-content .fusion-post-cards a {
    font-weight:normal;
}
#wrapper .post-content .avada_vertical_menu a {
    font-weight:700;
}


/*
** ADDTHIS SHARE BAR ENCROACHMENT, 980->1290 SCREENS *****************************
*/
@media(min-width: 980px) and (max-width: 1290px) {
    .eig-panel.fusion-fullwidth {
        padding-right:60px !important;
        padding-left:60px !important;
    }
}


/*
** HELPERS *****************************
*/
.display-none {
	display: none !important;
}

.title-heading-center{
	overflow-wrap: initial;
}

@media(min-width: 700px){
	.mh-510{
		min-height: 510px;
	}

	.mh-400{
		min-height: 400px;
	}
}


.featured-home-card-size{
	max-width: 375px;
	max-height: 170px;
}

.featured-home-card-size img{
	object-fit: cover;
	width: 100%;
}

.bg-size-contain .fusion-empty-column-bg-image{
	background-size: contain !important;
}

.eig-cursor-pointer {
	cursor: pointer;
}


/* THIS FIXED THE NEWS SOURCE ON THE CARDS */

/* .eig-post-card-meta.eig-post-card-meta--trimmed{
	display: contents !important;
} */

/* TABLES */

table td{
	white-space: normal !important;
}


/* CAROUSELS */

.fusion-carousel-title-below-image .fusion-carousel-positioner .fusion-carousel-wrapper.fusion-carousel-swipe{
	min-height: 600px !important;
}

@media(max-width: 700px){
	.eig-post-cards-carousel.fusion-carousel .fusion-carousel-wrapper{
		min-height: 514px;
	}

	.fusion-carousel .fusion-carousel-nav .fusion-nav-next, .fusion-carousel .fusion-carousel-nav .fusion-nav-prev{
		top: 150px !important;
	}
}


/*
** HEADER ******************************
*/

.home .fusion-logo .fusion-logo-link {
    display:none !important;
}
.home .fusion-logo .home-logo-override img, .fusion-sticky-logo {
    max-height: 81px !important;
}
.home .fusion-is-sticky .fusion-logo .fusion-logo-link {
    display:block !important;
}
.home .fusion-is-sticky .fusion-logo .home-logo-override {
    display:none !important;
}
.home .fusion-secondary-header {
    background:#024140;
}
.home .fusion-secondary-header a {
    color: #fff;
}
.home .fusion-secondary-header a:hover {
    color: #fff;
}


/*
** PRIMARY NAV ******************************
*/

.fusion-header-wrapper .fusion-main-menu li {
    float:none;
}
.home .fusion-main-menu > ul > li > a {
    color:#fff;
}
.home .fusion-main-menu > ul > li > a:hover,
.home .fusion-main-menu > ul > li > a:not(.fusion-logo-link):hover {
    color:#fff;
}
.home .fusion-main-menu > ul > li > a:after {
    border-top-color:#fff !important;
}
.home .fusion-is-sticky .fusion-main-menu > ul > li > a {
    color:#000;
}
.home .fusion-is-sticky .fusion-main-menu > ul > li > a:hover,
.home .fusion-is-sticky .fusion-main-menu > ul > li > a:not(.fusion-logo-link):hover {
    color:#000;
}
.home .fusion-is-sticky .fusion-main-menu > ul > li > a:after {
    border-top-color:#000 !important;
}


/*
** MEGA MENU CUSTOM STYLING ******************************
*/
.fusion-megamenu-wrapper {

}
.fusion-megamenu-wrapper .fusion-megamenu-holder {
    box-shadow:0 2px 5px rgba(0,0,0,0.3);
}
.fusion-megamenu-wrapper .menu > .menu-item > a {
    margin-bottom:20px;
    font-size:17px;
    line-height:1.2em;
    font-weight:600;
    color:#024140;
}
.fusion-megamenu-wrapper .menu > .menu-item > a:hover,
.fusion-megamenu-wrapper .menu > .menu-item.current-menu-item > a,
.fusion-megamenu-wrapper .menu > .menu-item.current_page_ancestor > a {
    color:#00677f;
}
.fusion-megamenu-wrapper .fusion-megamenu-submenu .sub-menu {
    margin:0 0 20px;
}
.fusion-megamenu-wrapper .fusion-megamenu-submenu .sub-menu a {
    padding:5px 0 !important;
    line-height:1.2em;
}
.fusion-megamenu-widgets-container {
    padding:0 20px !important;
}
.fusion-megamenu-wrapper .sub-menu > .menu-item > a {
    font-size:14px;
    font-weight:500;
    color:#000000;
}
.fusion-megamenu-wrapper .sub-menu > .menu-item > a:hover,
.fusion-megamenu-wrapper .sub-menu > .menu-item.current-menu-item > a,
.fusion-megamenu-wrapper .sub-menu > .menu-item.current_page_ancestor > a {
    color:#00677f;
}

.fusion-megamenu-wrapper .widget.widget_text {
    clear:both;
}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing {

}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing .listing-item {
    float:none;
}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing .image {
    display:block;
    margin:0 0 10px;
}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing .title {
    display:block;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-bottom: 10px;
    font-size:14px;
    line-height:1.2em;
    font-weight:400;
    color:#000000;
}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing .title:hover {
    color:#00677f;
}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing .excerpt-dash {
    display:none;
}
.fusion-megamenu-wrapper .widget.widget_text .display-posts-listing .excerpt {
    display:block;
    font-size:14px;
    line-height:1.2em;
    font-weight:400;
    color:#000;
}


.no-hover-state > a:hover{
	color: #024140 !important;
	cursor: default;
}

.sub-menu .no-hover-state > a:hover{
	color: #000 !important;
	cursor: default;
}

.space-bottom > a {
    margin-bottom:30px !important;
}

.mega-section-home > a {
    font-weight:900 !important;
}

/*
** REGULAR MENUS ************************************
*/
.fusion-main-menu .fusion-dropdown-menu .sub-menu li a {
    font-weight: 600 !important;
}

/*
** STRUCTURAL PAGE BUILDER HELPER CLASSES ******************************
*/
.fusion-body .fusion-layout-column.flexauto {
    width:auto !important;
}
.fusion-body .title-layout-container .fusion-builder-row,
.title-layout-container .fusion-builder-row {
    width:100% !important;
    margin:0 !important;
}
.fusion-body .latest-news-grid .fusion-builder-row {
    width:100% !important;
    margin:0 !important;
}
.fusion-body .latest-news-grid .news_source {
    align-self:flex-start;
    margin-right:10px;
    padding-right:10px;
    border-right:1px solid #1A7096;
}
.fusion-body .eig-post-cards--meta-links a {
    color:#1A7096;
}
.fusion-body .eig-post-cards--meta-links a:hover {
    color:#5F9D87;
}


/*
** PLACEHOLDER ******************************
*/
.fusion-placeholder-image {
	width: auto !important;
	background-color: #0c4340;
	background-image: url(/wp-content/themes/eig/img/eig-post-placeholder.jpg);
	background-size: cover;
	background-position: center center;
}


/*
** ICONS ******************************
*/
.eig-icon--top {
	vertical-align: top;
}
.eig-icon--middle {
	vertical-align: middle;
}
.eig-icon--bottom {
	vertical-align: bottom;
}
.eig-icon--baseline {
	vertical-align: baseline;
}
.eig-icon--text-top {
	vertical-align: text-top;
}
.eig-icon--text-bottom {
	vertical-align: text-bottom;
}

/*
** TOP BORDERS ******************************
*/
.eig-border-t--peach {
	border-top: 15px solid #F0B79A;
}

.eig-border-t--yellow {
	border-top: 15px solid #FFDB83;
}

.eig-border-t--blue {
	border-top: 15px solid #1C4E89;
}

.eig-border-t--orange {
	border-top: 15px solid #E17744;
}

.eig-border-t--sage-green {
	border-top: 15px solid #5F9D87;
}

.eig-border-t--teal {
	border-top: 15px solid #00677F;
}

/*
** FUSION CAROUSEL ************************
*/
.fusion-carousel .fusion-carousel-item .fusion-image-wrapper.fusion-image-wrapper { /* doubled up to win specificty war */
	display: block;
}

/*
** Post Cards Meta *************************
*/
.fusion-meta-tb-label {
	display: none;
}

/*
** Side Nav *********************************
*/
/* Remove the line when a side nav item is a jump link to content on the same page, which triggers WordPress's 'current-menu-item' class */
#wrapper .fusion-vertical-menu-widget .menu li.current-menu-item>a[href*="#"],
#wrapper .fusion-vertical-menu-widget .menu li.current_page_item>a[href*="#"] {
    border-right: none;
}


/*
** Post Page
*/
/* Make the post image a set height */
body.single-post .eig-post__featured-image img {
    height: 385px;
    object-fit: cover;
}

/* Hide featured image if ACF field is selected */
.post-hide-featured-image .fusion-featured-slider-tb {
	display: none;
}

.eig-post-page__meta {
	font-weight: bold;
	text-transform: uppercase;
}

/* iframes */

iframe.story-iframe {
    width: 100%;
    height: calc(100vh - 95px);
}

/*
** Mobile Edits
*/


/* border home */

@media(min-width:768px){
	.border-right-mobile{
		border-right: 1px solid #f1f1f1;
	}
}


/* menu section */

@media(max-width: 1072px){
	.fusion-secondary-header{
		display: none;
	}
}

@media(max-width: 800px){
	.home .fusion-logo .home-logo-override img {
    	width: 170px;
	}

	.fusion-logo img {
    	width: 170px !important;
	}

	#content .fusion-title h1 {
	    font-size:35px;
	}
}

.fusion-mobile-menu-icons{
	top: 15px !important;
}
.fusion-mobile-selector{
	width: auto !important;
	border: none !important;
	color: #fff !important;
}

.fusion-mobile-menu-design-modern .fusion-mobile-menu-text-align-left .fusion-mobile-nav-item a{
	height: 60px !important;
}

/* footer */

@media(max-width: 640px){
	.center-mobile-text p{
		text-align: center !important;
	}
}

/* cards same height */

.eig-panel .fusion-post-cards {
	flex: 1;
}

.eig-panel .fusion-post-cards > ul.fusion-grid {
	height: 100%;
}


/*
** <Select>
*/
select {
    border-radius: 0 !important;
    padding: 0 10px !important;
	appearance: none;
	padding-right: 30px;
	border: 1px solid #999;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M30.769 7.385c-0.369 0-0.615 0.123-0.862 0.369l-13.908 13.908-13.908-13.908c-0.492-0.492-1.231-0.492-1.723 0s-0.492 1.231 0 1.723l14.769 14.769c0.492 0.492 1.231 0.492 1.723 0l14.769-14.769c0.492-0.492 0.492-1.231 0-1.723-0.246-0.246-0.492-0.369-0.862-0.369z' fill='%2354585A'%3E%3C/path%3E%3C/svg%3E%0A");
	background-repeat: no-repeat;
	background-size: 14px;
	background-position: right 10px center;
}
.knockout select,
select.knockout {
	color: white;
	border: 1px solid white;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M30.769 7.385c-0.369 0-0.615 0.123-0.862 0.369l-13.908 13.908-13.908-13.908c-0.492-0.492-1.231-0.492-1.723 0s-0.492 1.231 0 1.723l14.769 14.769c0.492 0.492 1.231 0.492 1.723 0l14.769-14.769c0.492-0.492 0.492-1.231 0-1.723-0.246-0.246-0.492-0.369-0.862-0.369z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E%0A");
}
	.knockout select option,
	select.knockout option {
		/* Fix a bug with Windows, where option text inherits select text color -- white against white background! */
		color: black;
	}


@media only screen and (max-width: 640px){
	.fusion-builder-column-1 > .fusion-column-wrapper {
    	margin-right: 0px !important;
    	margin-left: 0px !important;
	}
}


/* safari issues */
@media not all and (min-resolution:.001dpcm)
{ @supports (-webkit-appearance:none) and (stroke-color:transparent) {

	.fusion-flex-container .fusion-row .fusion-flex-column .fusion-column-wrapper:not(.fusion-flex-column-wrapper-legacy).fusion-content-layout-column{
		box-shadow: none !important;
	}
}}
