/*

Theme Name: X &ndash; Child Theme
Theme URI: http://theme.co/x/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.0
Template: x

*/


h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin: 0em 0 0.3em !important;  xcolor: #1dacf6 !important;}

h1, h2, h3, .complete-font { font-family: 'complete_in_himregular' !important; font-weight: normal !important;}

.complete-font {font-size: 200%; line-height:1em;}
.open-sans {font-family: 'Open Sans Condensed', 'Arial Narrow', serif !important;}
.intro {font-weight: 100;}
.eg-obama-element-9{line-height:12px !important;}
.flat-light .esg-filterbutton, .flat-light .esg-navigationbutton, .flat-light .esg-sortbutton, .flat-light .esg-cartbutton{padding:1px 23px !important; margin-right:0px !important;}
.flat-light .esg-filter-checked{margin-right:2px !important;}
h1, .h1 {font-size: 550%;}
h2, .h2 {font-size: 350%;}
h3, .h3 {font-size: 290%;}
h4, .h4 {font-size: 200%;}
h5, .h5 {font-size: 160%;}
h6, .h6 {font-size: 110%;}

.white, .white h3, .white h4, .white h2, .white h5, .white h1 {color: #fff !important;}
.black {color: #333 !important;}
.pink {color: #ff10a8 !important}
.blue {color: #1dacf6 !important}
.green, h4.green, h3.green, h2.green, h1.green, h5.green {color:#89c90f !important;}

h1.h-custom-headline.white span { padding: 0 10px; background: rgb(25,25,25); /* The Fallback */ background: rgba(25,25,25, 0.3); }

.wp-caption, .gallery-item { border: none;}

/* Navigation Bar */
#menu-item-319 a span {
	background: #ff10a8;
    padding: 10px 15px ;
    margin-top: -15px;
    margin-left: -15px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 0px 0px #333;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px; /* future proofing */
    -khtml-border-radius: 5px; /* for old Konqueror browsers */
    font-size: 1.2em;
}

/* Sub Menu */
.desktop .sub-menu { padding: 1.2em; padding-top:0px;}


/* Homepage mentors */

.eg-mentors-content {display: block !important; margin-top: -2em;}
.esg-overflowtrick { overflow: visible !important;}


/* Round mentor photos essential grid */

.eg-mentors-wrapper .esg-entry-media,
.eg-mentors-wrapper .esg-overlay, .eg-mentors-wrapper .esg-entry-cover {
    overflow:hidden;
    box-sizing:border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    border-radius:50%;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
}

.esg-filters {margin-top: 20px !important;}


/* number counter on homepage */
.x-block-grid .x-block-grid-item:nth-child(3) .x-counter .number-wrap {padding: 60px 30px 60px 10px !important;}



/* Programs Search Filter */ 
.esg-dropdown-wrapper { padding:5px; width: auto; margin-left: -260px; z-index: 200;}

.length-nav .esg-dropdown-wrapper {margin-left: -100px; width: 250px;}

.flat-light .esg-filterbutton, .flat-light .esg-navigationbutton, .flat-light .esg-sortbutton, .flat-light .esg-cartbutton {
padding: 2px 10px !important; display: inline-block !important;
}

.esg-filter-wrapper.eg-search-wrapper  {margin-top: -10px;}



/* Programs Search Results */

.searchandfilter > ul > li { width: auto; float: left; margin-right: 2%; padding: 10px; border: 1px solid #efefef; }

.mentor-nameplate {
	background: #333;
	margin-top: 25px;
	padding:15px;
	
}

/* General Content */
.subhead {font-size: 2em; color:#fff; font-style: italic; padding: 3px 5px 5px; background: rgb(0,0,0); /* The Fallback */ background: rgba(0,0,0, 0.2);}
.single .entry-content {margin-top: 0px;}


/* hide apps open box when empty */
.esg-bottom a:empty {
   display: none;
}


/* Buttons */
.x-btn.blue-btn {
  color: #ffffff;
  border-color: #ff10a8;
  border-width: 2px;
  background-color: #ff10a8;
}

.x-btn.blue-btn:hover {
  color: #fefefe;
  border-color: #cc0073;
  background-color: #e0229b;
}

h1.green {color: #89c90f;}
h1.blue, h2.blue, h3.blue, h4.blue, h5.blue {color: #1dacf6;}

.pagination {display: none;}


/* Card program designs */

.x-card-outer.flip-3d .x-card-inner {min-height: 330px;}

.card {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 10px;
    background: #FFF;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    color: #272727;
    border-radius: 2px;
    cursor: pointer;
  }
  .card .title {
    line-height: 48px;
    font-size: 24px;
    font-weight: 300;
  }
  .card .content {
    padding: 20px;
    font-weight: 300;
    border-radius: 0 0 2px 2px;
  }
  .card p {
    margin: 0;
  }
  .card .action {
    border-top: 1px solid rgba(160, 160, 160, 0.2);
    padding: 20px;
  }
  .card a {
    color: #ffab40;
    margin-right: 20px;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
  }
  .card .image {
    position: relative;
  }
  .card .image img {
    border-radius: 2px 2px 0 0;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
  }
  .card .image img:hover {cursor: pointer;}
  .card .image .title {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    color: #FFF;
  }
  
  
  /* Team */
  
  .esg-grid .mainul li.eg-team-wrapper { background: transparent !important;}
/* default max height */
/* this number should be the smallest image height used in your grid */
.eg-team-wrapper, .esg-media-cover-wrapper {
    max-height: 280px;
}
 
.esg-cc {
    top: 0 !important;
}



/* We Believe Page */

/* Tabs */
.x-nav-tabs {border: none;}
.x-tab-content {border: none;}
.x-nav-tabs.top>li {border: none;}
.tabs-up {margin-top: -75px;}

.x-nav-tabs li.active a {background: #fff;}
.x-tab-content {clear:both;}


.x-nav-tabs.three-up>li {    width: 32% !important;
    margin-right: 2%;}
    
.believe-tabs li a {font-size: 1.2em;}

.darken {position: relative;}
#color-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: #000;
   opacity: 0.35;
}


li.why a {background: #777777;
    background: -moz-linear-gradient(top, #777777 0%, #505050 44%, #393939 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #777777), color-stop(44%, #505050), color-stop(100%, #393939));
    background: -webkit-linear-gradient(top, #777777 0%, #505050 44%, #393939 100%);
    background: -o-linear-gradient(top, #777777 0%, #505050 44%, #393939 100%);
    background: -ms-linear-gradient(top, #777777 0%, #505050 44%, #393939 100%);
    background: linear-gradient(to bottom, #777777 0%, #505050 44%, #393939 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#777777', endColorstr='#393939', GradientType=0);}
    
    li.why a:hover { color: #efefef !important;}
    li.why.active a:hover { color: #333 !important;}
    
    li.why.active a {color:#333;}
    
li.mission a {background: #bc3cd6;
    background: -moz-linear-gradient(top, #bc3cd6 0%, #9931af 44%, #852b98 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #bc3cd6), color-stop(44%, #9931af), color-stop(100%, #852b98));
    background: -webkit-linear-gradient(top, #bc3cd6 0%, #9931af 44%, #852b98 100%);
    background: -o-linear-gradient(top, #bc3cd6 0%, #9931af 44%, #852b98 100%);
    background: -ms-linear-gradient(top, #bc3cd6 0%, #9931af 44%, #852b98 100%);
    background: linear-gradient(to bottom, #bc3cd6 0%, #9931af 44%, #852b98 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bc3cd6', endColorstr='#852b98', GradientType=0);}
    
li.how a {    background: #46bbee;
    background: -moz-linear-gradient(top, #46bbee 0%, #2485bf 44%, #0a81b1 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #46bbee), color-stop(44%, #2485bf), color-stop(100%, #0a81b1));
    background: -webkit-linear-gradient(top, #46bbee 0%, #2485bf 44%, #0a81b1 100%);
    background: -o-linear-gradient(top, #46bbee 0%, #2485bf 44%, #0a81b1 100%);
    background: -ms-linear-gradient(top, #46bbee 0%, #2485bf 44%, #0a81b1 100%);
    background: linear-gradient(to bottom, #46bbee 0%, #2485bf 44%, #0a81b1 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#46bbee', endColorstr='#0a81b1', GradientType=0);}



 
 /* Bernard Shaw Quote */
 
 .bernard blockquote {border: none; margin-bottom: 0;}
 
 .bernard blockquote p {
 	color: rgba(255, 255, 255, 0.95);
    font-size: 21px;
    line-height: 26px;
    text-align: right;
    color: #ccc;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Open Sans Condensed', 'Arial Narrow', serif;
 }
 
 
 blockquote span {
    font-weight: 700;
    color: #c98a3c;
    font-size: 2em;
    line-height: 40px;
    display: block; 
    float: right;
    padding: 15px;
    font-family: 'complete_in_himregular';
    padding-bottom: 55px;
    text-shadow: 4px 4px 3px rgba(0, 0, 0, 0.2);
    -webkit-transform: rotate(-6deg) translateY(10px);
    -moz-transform: rotate(-6deg) translateY(10px);
    -o-transform: rotate(-6deg) translateY(10px);
    -ms-transform: rotate(-6deg) translateY(10px);
    transform: rotate(-6deg) translateY(10px);   
}

.bernard blockquote p:nth-child(3) {clear: both;}

.mb-attribution {
    text-align: right;
    font-weight: bold;
    text-align: right;
    padding: 15px;}
    
    .mb-author:before {
    content: '\2014';
    padding-right: 4px;
}


/* Impact Page */



.tp-tabs.tp-span-wrapper.gyges {top: -20px !important;background: transparent !important;}
.gyges .tp-tab { border-bottom: none;}
.gyges .tp-tab-title {font-family: "Complete In Him", sans-serif;
font-size: 1.75em;
line-height: .8em;
text-align: center;
}

.x-counter .number-wrap {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    box-sizing: border-box;
    text-align: center;
    display: block;
    padding: 60px 30px;
    border: 5px solid #80B80F;
    background: rgb(250,250,250); /* The Fallback */ background: rgba(250,250,250, 0.7);
    font-size: 4em;
    font-weight: 700;
    margin: 0 auto;
    color: #1dacf6;
    
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
  }
  
  
  .ghost-center {
  position: relative;
}
.ghost-center::before {
  content: " ";
  display: inline-block;
  height: 100%;
  width: 1%;
  vertical-align: middle;
}
.ghost-center p {
  display: inline-block;
  vertical-align: middle;
}

  
@media (max-width: 979px) {
	.x-block-grid.three-up>li {
	    width: 28%;
	}
	.x-block-grid.three-up>li:nth-child(2n+1) {
		margin-left: 0px;
		clear: none;
	}
}

@media (max-width: 720px) {
	.x-block-grid.three-up>li {
	    width: 27%;
	}
	.x-counter .number-wrap {
		font-size: 3em;
		width: 150px;
		height: 150px;
		padding: 40px 20px;
	}
}

@media (max-width: 720px) {
	.x-block-grid.three-up>li {
	    width: 100%;
	}
	
}


/* Stories of Impact */
.x-ul-icons li {margin: 15px 0;}

/* Fancy Table CSS
---------------------------------------*/
table#fancy { 
	
	text-align: left;
	border-collapse: collapse;
	border: 1px solid #666666;
}
table#fancy a {
	text-decoration: underline;
}
table#fancy a:visited {
	text-decoration: none;
}
table#fancy tr.odd {
	background-color: #ebf3ff;
}
table#fancy tr a {

}
table#fancy tr:hover a {

}

/*
table#fancy tr:hover, tr.odd:hover {
	background-color: #3d80df;
	color: #ffffff;
}
*/

table#fancy caption {
	height: 45px;
	line-height: 44px;
	color: #60634E;
	font-weight: bold;
	text-align: center;
	width: 100%;
	margin: 0;
	padding: 0;
	margin-left: -1px;
	background-position: 50% top;
	border-left: 2px solid #616161;
	border-right: 2px solid #616161;
}
table#fancy thead th {
	font-size: 110%;
	color: #FFF;
	background: #1FA2E1;
	height: 33px;
}

table#fancy tr {
	vertical-align: top;
}
table#fancy tr,th,td {
	padding: 1em;
}
table#fancy td {
	border-left: 1px solid #dadada;
}
table#fancy tfoot tr {
	background: #fff url(bbar.gif) repeat-x;
}
table#fancy tfoot td, tfoot th {
	color: #000;
	border: 0px;
}

table#fancy.metrics th, table#fancy.metrics td {
	text-align: center;
}



/* Create additional media queries for different screen sizes */
/* and adjust the max-height for each depending on your grid */
@media screen and (max-width: 768px) {
 
	.eg-team-wrapper, .esg-media-cover-wrapper {
		max-height: 310px;
	}
 
}


.esg-media-cover-wrapper .eg-team-content { padding: 2px;}



  
 /* JOBS */
 .job-manager-application-wrapper .application, .single_job_listing .application {overflow: visible;}
 .single_job_listing .company img {position: relative; width: 7em; height: auto;}
 .single_job_listing .company .name {margin: 0 0 0 9em;}
 .single_job_listing .company .tagline {margin: 0 0 0 9em;}
 .rp4wp-related-job_listing>ul li.job_listing a img.company_logo, .rp4wp-related-job_listing>ul li.no_job_listings_found a img.company_logo, ul.job_listings li.job_listing a img.company_logo, ul.job_listings li.no_job_listings_found a img.company_logo {width: 7em; position: relative; height: auto;}
 .position h3 { font-family: 'Calibri', 'PT Sans', sans-serif !important; font-size: 1.3em !important;}
 .rp4wp-related-job_listing>ul li.job_listing a div.location, .rp4wp-related-job_listing>ul li.no_job_listings_found a div.location, ul.job_listings li.job_listing a div.location, ul.job_listings li.no_job_listings_found a div.location{ width: 14%}
 
 .rp4wp-related-job_listing>ul li.job_listing a div.position, .rp4wp-related-job_listing>ul li.no_job_listings_found a div.position, ul.job_listings li.job_listing a div.position, ul.job_listings li.no_job_listings_found a div.position {width: 50%; padding: 0 50px 0 45px;}
 

/* Portrait and Landscape */
@media only screen 
  and (min-width: 961px) 
  and (max-width: 1224px) 
  {
.x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) {
    padding-left: 0px !important;
    
    }
}

@media only screen 
  and (min-width: 1300px) 
  {
	.x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) {
    padding-left: 18px !important;
    padding-right: 18px !important;
    }
    
 	.x-navbar-static-active .masthead-inline .desktop .x-nav>li:last-child>a, .x-navbar-fixed-top-active .masthead-inline .desktop .x-nav>li:last-child>a {
 		    padding-right: 0px !important;

 	}
}


@media only screen 
  and (max-width: 980px) 
  {

	.x-nav-tabs {border: none;}
.x-tab-content {border: none;}
.x-nav-tabs.top>li {border: none;}
div.tabs-up {margin-top: 0px;}
ul.tabs-up {margin-top: -40px;}

.x-nav-tabs.three-up>li { float: left;}
.x-tab-content {clear:both;}
.x-nav-tabs.three-up>li {    width: 32% !important;
    margin-right: 2%;}
    
.believe-tabs li a {font-size: 1em;}


}

@media only screen 
  and (max-width: 510px) 
  {
  	.believe-tabs li a {font-size: .8em; font-weight: 700;}
  	.x-nav-tabs.three-up>li { float: none; width: 100% !important;}
  	.x-nav-tabs li.active a {background: #64ac38 !important;}

  }
  
  @media (max-width: 979px) {
.x-nav-tabs.top, .x-nav-tabs.left, .x-nav-tabs.right {
    border-bottom: none;
}

.x-nav-tabs.top>li.x-nav-tabs-item, .x-nav-tabs.left>li.x-nav-tabs-item, .x-nav-tabs.right>li.x-nav-tabs-item {
    border-left: 0;
    border-right: 0;
    border-bottom: none;
    
}
}

  @media (min-width: 1165px) and (max-width: 1400px) {
  
/* Accelerators */
.eg-mentors-element-2 {font-size: 11px !important; margin: 30px 0px 0px 0px !important;}
.eg-mentors-element-2:hover {font-size: 11px !important; margin: 30px 0px 0px 0px !important;}

}


