body.archive::before {
	display: none;
}

header,
.archive_header {
	background-color: var(--lighter-blue);
}

.archive_header {
	z-index: 2;
	position: relative;
	padding-bottom: 33px;
}

.heading_text {
	text-align: center;
	width: 810px;
	max-width: 100%;
	margin: auto;
	margin-bottom: 22px;
}

.heading_text h1 {
	font-size: 44px;
	line-height: 1.522727;
	font-weight: normal;
	margin-bottom: 12px;
}

.filter_bar {
	background-color: white;
	border: 2px solid rgba(11,187,239,0.2);
	border-radius: 4px;
	box-shadow: 0 12px 24px -10px rgba(36,48,110,0.2);
	padding: 21px 30px;
}

.overview {
	padding-top: 44px;
	margin-bottom: 90px;
}

ul.post_overview {
	padding: 0;
	margin: 0;
	list-style: none;
	margin-bottom: 50px;
}

.card_wrapper {
	margin-bottom: 28px;
}

.card_wrapper:last-child {
	margin-bottom: 0;
}

.card {
	border: 3px solid rgba(11,187,239,0.2);
	border-radius: 4px;
	background-color: white;
	padding: 35px;
	position: relative;
}

.card_row {
	overflow: hidden;
}

.card .button {
	width: 100%;
}

.excerpt {
	border-radius: 2px;
	background-color: var(--lighter-blue);
	padding: 14px 16px;
}

.card h2 {
	font-size: 24px;
	line-height: 1.291667;
	margin-bottom: 10px;
}

.facetwp-facet-pagination {
	text-align: center;
}

a.facetwp-page {
	min-width: 48px;
	line-height: 48px;
	border-radius: 4px;
	color: var(--light-blue);
}

.facetwp-page.active {
	background-color: var(--light-blue);
	color: white;
	font-weight: normal;
}

a.facetwp-page.next,
a.facetwp-page.prev {
	background-image: url(../img/right-page-light-blue.svg);
	background-repeat: no-repeat;
	background-position: center;
	text-indent: -9999px;
}

a.facetwp-page.prev {
	transform: rotate(180deg);
}

.archive #autocomplete {
	left: -30px;
	width: calc(100% + 60px);
	bottom: -22px;
}

.filter_bar {
	display: flex;
	justify-content: space-between;
	align-items: center; 
}

.miles_filter,
.results_count,
.right_side_bar {
	flex: 1; 
}

.right_side_bar {
	text-align: right;
	min-width: 313px;
}

.bar_label {
	font-size: 14px;
	line-height: 28px;
	margin-right: 6px;
	vertical-align: middle;
	display: inline-block;
}

.sort_wrapper {
	display: inline-block;
	vertical-align: middle;
	margin-right: 20px;
}

.sort_wrapper .facetwp-facet {
	margin-bottom: 0;
	display: inline-block;
}

.results_count {
	font-size: 14px;
	line-height: 18px;
	margin-left: 28px;
}

.results_count .facetwp-facet {
	margin-bottom: 0;
}

.no_results_wrapper {
	padding-top: 50px;
	padding-bottom: 70px;
}

.no_results {
	position: relative;
}

.no_results .no_results_message {
	border-radius: 8px;
	background-color: white;
	padding: 12px 14px;
	width: 352px;
	max-width: 100%;
	position: absolute;
	left: 50%;
	top: 1px;
	transform: translateX(-50%);
	box-shadow: 0 12px 24px -10px rgba(0,0,0,0.2);
}

.facetwp-facet-result_count,
.facetwp-facet-result_count_training_requests {
	display: inline-block;
}

.within_range {
	color: var(--light-blue);
	font-weight: bold;
	display: inline-block;
}

.archive_cta_wrapper {
	margin-bottom: 82px;
}

.read_more {
	color: var(--light-blue);
	text-decoration: underline;
}

.post_overview #miles_filter {
	display: none;
}

.facetwp-facet-result_count_training_requests:empty:before,
.facetwp-facet-result_count:empty:before {
	content: 'No results';
}

@media (min-width: 768px) and (max-width: 991px) {
	.bar_label {
		display: none;
	}

	.right_side_bar {
		min-width: 0;
	}

	.sort_wrapper {
		margin-right: 0;
	}

	select#miles {
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {
	.bar_label {
		font-weight: bold;
	}

	.filter_bar {
		display: block;
		padding: 20px;
		margin-bottom: 20px;
	}

	.filter_bar .miles_filter_inside {
		padding: 0;
	}

	.subtitle.mobile_only {
		display: none;
	}

	.heading_text h1 {
		margin-bottom: 20px;
		font-size: 28px;
		line-height: 36px;
	}

	.heading_text p {
		height: 54px;
		overflow: hidden;
		margin-bottom: 7px;
		position: relative;
		transition: height 0.3s ease-in-out;
	}

	.heading_text {
		margin-bottom: 30px;
	}

	.heading_text:not(.full) p:before {
		content: '';
		display: block;
		height: 56px;
		background: linear-gradient(180deg, rgba(230,248,253,0) 0%, rgba(230,248,253,0.39) 31.07%, #E6F8FD 100%);
		position: absolute;
		width: 100%;
		top: 10px;
	}

	.heading_text.full p {
		height: auto;
	}

	.heading_text.full .read_more.more {
		display: none;
	}

	.heading_text:not(.full) .read_more.less {
		display: none;
	}

	.sort_wrapper.mobile_only {
		background-color: var(--lighter-blue);
		display: block;
		text-align: right;
	}

	.results_count {
		margin-left: 0;
		text-align: center;
		margin-top: 18px;
	}

	.card {
		box-shadow: 0 2px 4px 0 rgba(36,48,110,0.2);
		border: none;
		padding: 20px;
		padding-bottom: 30px;
	}

	.overview {
		margin-bottom: 75px;
	}

	/* To make: make conditional have posts */
	.sort_wrapper select {
		background-color: transparent;
	}

	.overview {
		padding-top: 25px;
	}

	.archive_header {
		padding-bottom: 20px;
	}

	.no_results_wrapper {
		padding-top: 20px;
		padding-bottom: 45px;
	}
}
