/**
 * Advisor Evolved Case Studies
 */

.aecs .site-inner {
	margin: 0;
	max-width: 100%;
	padding: 0;
}

.aecs .aecs-container {
	position: relative;
}

.aecs .aecs-bg-image {
	background-image: url( '../images/business-laptop.jpg' );
	background-attachment: scroll;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top center;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 25%;
}

.aecs .aecs-cf:before,
.aecs .aecs-cf:after {
	content: '';
	display: table;
}

.aecs .aecs-cf:after {
	clear: both;
}

.aecs .aecs-clear {
	clear: both;
}

.aecs .aecs-in {
	width: 100%;
	margin: auto;
	padding: 0 1.25em;
	max-width: 1096px;
	position: relative;
}

.aecs .aecs-in.aecs-content-wrapper-in {
	margin-bottom: 4em;
}

/**
 * Flexbox
 */
.aecs .aecs-flex {
	width: 100%;
	margin: auto;

	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-moz-flex-flow: row wrap;
	-ms-flex-flow: row wrap;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	-moz-justify-content: space-between;
	-ms-justify-content: space-between;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	-moz-align-content: flex-start;
	-ms-align-content: flex-start;
	-webkit-align-content: flex-start;
	align-content: flex-start;
	-ms-flex-pack: end;
}

.aecs .aecs-flex .aecs-col {
	border-right: 1px solid rgba(0, 0, 0, 0.10);
	padding: 30px 60px;
	position: relative;
	width: 100%;
}

.aecs .aecs-company-logos .aecs-col {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
}

.aecs .aecs-company-logos .aecs-col img {
	display: block;
    height: auto;
    margin: auto;
    max-width: 100%;
}

.aecs .aecs-company-logos .aecs-col,
.aecs .aecs-flex .aecs-col:last-child  {
	border: 0;
}

.aecs .aecs-flex-1-columns .aecs-col {
	width: 100%;
}

.aecs .aecs-flex-2-columns .aecs-col {
	width: 50%;
}

.aecs .aecs-flex-3-columns .aecs-col {
	width: 33.333%;
}

.aecs .aecs-flex-4-columns .aecs-col {
	width: 25%;
}

.aecs .aecs-flex-5-columns .aecs-col {
	width: 20%;
}

.aecs .aecs-flex-6-columns .aecs-col {
	width: 16.667%;
}

/**
 * Featured Image
 */
.aecs .aecs-featured-image {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.aecs .aecs-featured-image img {
	width: 100%;
}

/**
 * Advisor Evolved Case Studies Company Logos
 */
.aecs .aecs-company-logos {
	padding: 1.875em 1.25em;
}

.aecs .aecs-flex .aecs-col.aecs-company-logo-vs-col {
	padding: 1.25em 0.5em;
	text-align: center;
	font-size: 1.25em;

	-moz-align-self: center;
	-ms-align-self: center;
	-webkit-align-self: center;
	align-self: center;
}

.aecs .aecs-company-logos.aecs-flex-3-columns .aecs-company-logo {
	width: 50%;
	text-align: center;
}

.aecs .aecs-company-logos.aecs-flex-3-columns .aecs-company-logo-vs {
	width: 12.5%;
	margin-left: -6.25%;
	margin-right: -6.25%;
}

.aecs .aecs-company-logos.aecs-flex-5-columns .aecs-company-logo {
	width: 33.333%;
}

.aecs .aecs-company-logos.aecs-flex-5-columns .aecs-company-logo-vs {
	width: 12.5%;
	margin-left: -6.25%;
	margin-right: -6.25%;
}


/**
 * Advisor Evolved Case Studies Title
 */
.aecs .aecs-title {
	text-align: center;
}

.aecs .aecs-title h1 {
	margin: 0;
	padding: 120px 40px;
	color: #fff;
	font-size: 50px;
	line-height: 1.3;
	font-weight: 100;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}


/**
 * Advisor Evolved Case Studies Breakdown
 */
.aecs .aecs-comparison-breakdown {
	margin-bottom: 0;
	background: #fff;
	font-family: 'Open Sans', sans-serif;
	font-weight: normal;
}


/**
 * Advisor Evolved Case Studies Breakdown Title/Total Savings
 */
.aecs .aecs-comparison-breakdown-title,
.aecs .aecs-total-cost-savings-title-amount {
	background: #0171bb;
	text-align: center;
}

.aecs .aecs-comparison-breakdown-title h3,
.aecs .aecs-total-cost-savings-title-amount h3 {
	font-weight: 100;
	margin: 0;
	padding: 0.8em;
	color: #fff;
}


/**
 * Advisor Evolved Case Studies Breakdown Title/Total Savings
 */
.aecs .aecs-comparison-breakdown-rows {
	font-size: 1em;
	text-align: center;
}

.aecs .aecs-comparison-breakdown-row:nth-of-type(odd) {
	background: #abdaf4;
}

.aecs .aecs-comparison-breakdown-row:nth-of-type(even) {
	background: #dae7ed;
}

.aecs .aecs-comparison-breakdown-titles-col h4 {
	margin: 0;
	padding: 0;
	text-align: center;
	display: block;
	text-transform: uppercase;
	font-weight: 600;
}

.aecs .aecs-comparison-breakdown-row-description {
	text-align: left;
	display: block;
	width: 100%;
}


/**
 * Content
 */
.aecs .aecs-content {
	background: #fff;
	padding: 20px;
}

@media only screen and (min-width: 680px) {
	.aecs .aecs-content {
		padding: 40px 80px;
	}
}

@media only screen and (min-width: 1023px) {
	.aecs .aecs-content {
		padding: 80px 160px;
	}
}

.aecs .aecs-content p {
	margin: 1.5em 0;
}

.aecs .aecs-content .gform_wrapper {
	padding: 20px;
	background: #f7f2d3;
	border: solid 3px #cecece;
	border-radius: 4px;
}

@media only screen and (min-width: 680px) {
	.aecs .aecs-content .gform_wrapper {
		padding: 30px;
	}
}

@media only screen and (min-width: 1023px) {
	.aecs .aecs-content .gform_wrapper {
		padding: 30px 60px;
	}
}

.aecs .aecs-content .gform_footer {
	text-align: center;
}

.aecs .aecs-content .gform_footer .button {
	min-width: 250px;
}

.aecs .aecs-content .gform_wrapper input[type="color"],
.aecs .aecs-content .gform_wrapper input[type="date"],
.aecs .aecs-content .gform_wrapper input[type="datetime"],
.aecs .aecs-content .gform_wrapper input[type="datetime-local"],
.aecs .aecs-content .gform_wrapper input[type="email"],
.aecs .aecs-content .gform_wrapper input[type="month"],
.aecs .aecs-content .gform_wrapper input[type="number"],
.aecs .aecs-content .gform_wrapper input[type="password"],
.aecs .aecs-content .gform_wrapper input[type="search"],
.aecs .aecs-content .gform_wrapper input[type="tel"],
.aecs .aecs-content .gform_wrapper input[type="text"],
.aecs .aecs-content .gform_wrapper input[type="time"],
.aecs .aecs-content .gform_wrapper input[type="url"],
.aecs .aecs-content .gform_wrapper input[type="week"],
.aecs .aecs-content .gform_wrapper select,
.aecs .aecs-content .gform_wrapper textarea {
	background: #fff;
}

/**
 * Responsive Structure
 */
@media only screen and (max-width: 1024px) {
	.aecs .aecs-title h1 {
		padding: 80px 20px;
		font-size: 46px;
	}

	.aecs .aecs-comparison-breakdown-titles-col h4 {
		min-width: 200px;
	}

	.aecs .aecs-comparison-breakdown-row-description {
		min-width: 200px;
	}
}

@media only screen and (max-width: 960px) {
	.aecs .aecs-title h1 {
		padding: 60px 20px;
	}

	.aecs .aecs-flex .aecs-col {
		padding: 20px 40px;
	}
}

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

	.aecs .aecs-title h1 {
		padding: 40px 20px;
		font-size: 40px;
	}

	.aecs .aecs-company-logos {
		padding: 0.5em;
	}

	.aecs .aecs-in.aecs-content-wrapper-in {
	}

	.aecs .aecs-comparison-breakdown-rows .aecs-comparison-breakdown-row-description {
		font-size: 0.8em;
		text-align: left;
	}

	.aecs .aecs-flex .aecs-col {
		padding: 20px;
	}

	.aecs .aecs-comparison-breakdown-row-title {
		font-size: 0.9em;
	}

	.aecs .aecs-comparison-breakdown-titles-col h4 {
		min-width: 0;
	}

	.aecs .aecs-comparison-breakdown-row-description {
		min-width: 0;
		padding: 0 0.5em;
	}

	.aecs .company-logo-vs-label {
		font-size: 0.9em;
	}
}

@media only screen and (max-width: 568px) {
	.aecs .alignnone,
	.aecs a img.alignnone,
	.aecs .aligncenter,
	.aecs div.aligncenter,
	.aecs a img.aligncenter,
	.aecs .alignleft,
	.aecs a img.alignleft,
	.aecs .wp-caption.alignleft,
	.aecs .alignright,
	.aecs a img.alignright,
	.aecs .wp-caption.alignright {
		margin: 1.5em auto;
		float: none;
		display: block;
	}
}

@media only screen and (max-width: 480px) {
	.aecs .company-logo-vs-label {
		font-size: 0.8em;
	}

	.aecs .aecs-company-logos.aecs-flex-3-columns .aecs-company-logo-vs {
		width: 14%;
		margin-left: -7.25%;
		margin-right: -7.25%;
		padding: 0.5em 0;
	}

	.aecs .aecs-company-logos.aecs-flex-5-columns .aecs-company-logo-vs {
		width: 14%;
		margin-left: -7.25%;
		margin-right: -7.25%;
		padding: 0.5em 0;
	}
}

.aecs .aecs-archive-header {
	background-color: #333;
	background-attachment: scroll;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	background-image: url( '../images/business-laptop.jpg' );
	margin-bottom: 30px;
	padding: 40px 0;
	position: relative;
	text-align: center;
	-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 87%);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 87%);
}

@media only screen and (min-width: 768px) {
	.aecs .aecs-archive-header {
		padding: 80px 0;
	}
}

.aecs .aecs-archive-header h1 {
	color: #fff;
	font-size: 42px;
}

.aecs-archive-description {
	max-width: 600px;
	margin: 0 auto;
}

.aecs-archive-description p {
	color: #fff;
	font-size: 24px;
	margin-bottom: 0;
}

.aecs-auto-flex {
	display: flex;
	flex-wrap: wrap;
}

.aecs-auto-flex .aecs-flex-item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.aecs .aecs-one-third {
	width: 100%;
	margin-right: 0;
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
	.aecs .aecs-one-third {
		width: 47.3684210526%;
		float: left;
		margin-right: 5.2631578947%;
	}

	.aecs .aecs-one-third:nth-child( 2n ) {
		float: right;
		margin-right: 0;
	}
}

@media only screen and (min-width: 768px) {
	.aecs .aecs-one-third {
		width: 29.8245614035%;
		float: left;
		margin-right: 5.2631578947%;
	}

	.aecs .aecs-one-third:nth-child( 3n ) {
		float: right;
		margin-right: 0;
	}
}

.aecs .aecs-archive-container .aecs-case-study {
	background: #fff;
	text-align: center;
	margin-bottom: 30px;
	box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.15);
}

.aecs .aecs-archive-container .aecs-case-study .aecs-title {
	color: #333;
	margin: 0;
	padding: 30px;
}

.aecs .aecs-archive-container .aecs-case-study .aecs-title a {
	color: #333;
}

.aecs .aecs-archive-container .aecs-case-study .aecs-cta-button {
	background: #0171bb;
	color: #fff;
	display: block;
	width: 100%;
	padding: 30px;
}

.aecs .aecs-archive-container .aecs-case-study .aecs-cta-button:hover,
.aecs .aecs-archive-container .aecs-case-study .aecs-cta-button:focus {
	background: #0d84d2;
}
