/* Subpage styling goes here. Excluded on homepage */

/*
SUBPAGE STRUCTURE
BLOG
TEMPLATES
*/

/*******************************************************************************************
SUBPAGE STRUCTURE - Non-critical page features
*******************************************************************************************/

.search-form {
	display: flex;
	position: relative;
}

.search-form button {
	height: 45px;
	width: 45px;
	font-size: 1.1rem;
	padding: 0 12px;
	border-radius: 0;
}

/*******************************************************************************************
BLOG - Posts, search results, and pagination
*******************************************************************************************/

.post {
	margin-bottom: 50px;
	padding-bottom: 50px;
	/*border-bottom: 1px solid var(--color-border);*/
}

.post:last-child {
	border: none;
	padding-bottom: 0;
}

.post-head h2 {
	font-size: 2.275rem;
	margin-bottom: 10px;
	padding: 0;
	border: 0;
	font-weight: 300 !important;
	letter-spacing: -1px;
}


.post-head h1 {

    line-height: 1.2;
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0px 0px 24px;
}

.post-head h2 a {
	font-weight: 400;
}

.post-head,
.post-body {
	margin-bottom: 10px;
}

.single-blog-post .post-head {
	/*border-bottom: 3px solid #676258;*/
}

.single-blog-post .blogbar {
	border-bottom: 3px solid #676258;
	margin: 35px 0;
}

.post-head .label-text {
	font-size: 0.938rem;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.post-head .label-text > a:hover span,
.post-head .label-text > a:focus span {
	background: var(--color-primary);
}

.post-body {
	display: block;
}

.post-head-info {
    display: flex;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.post-head-info a {
	text-decoration: none;
}

.post-head-info a:hover,
.post-head-info a:focus {
	color: var(--color-near-black);
}

.post-head-info > div:not(:last-of-type)::after {
	width: 2px;
	height: 12px;
	background: var(--color-primary);
	content: "";
	display: inline-block;
	margin: 0 10px;
	position: relative;
	top: 0;
}

.post-head-info-authors span:not(:last-child)::after,
.post-head-info-authors a:not(:last-child)::after {
	content: ", ";
}

.post-body-image img {
	object-fit: cover;
	object-position: top;
}

.single-post .post-body-image img {
	height: auto;
	    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.post-body-image {
	margin-bottom: 15px;
}

img.alignright {
	float: right;
	margin: 0 0 30px 30px;
}

img.alignleft {
	float: left;
	margin: 0 30px 30px 0;
}

.post-body-excerpt p:last-of-type {
	margin-bottom: 0;
}

.post-bottom {
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: space-between;
	-ms-align-items: center;
	align-items: center;
}

.post-bottom-share {
	color: var(--color-black);
	font-weight: 600;
}

.post-bottom-share span {
	display: none;
}

.post-body-content {
	/*line-height: 1.6;*/
}

.post-body-content p {
	margin-bottom: 15px;
}

@media screen and (min-width: 1025px) {
	.post-body {
		display: flex;
		flex-direction: row-reverse;
	}

	.post-body-image {
		margin: 0 0 0 30px;
		width: 30%;
		flex-basis: 30%;
	}

	.post-head h1 {
		font-size: 2.9rem;
	}

	.post-body-content {
		flex: 1;
	}

	.single .post-body {
		display: block;
	}

.single .post-body-image {
     width: 100%;
     margin-left: 0;
     margin-top: 15px;
     margin-bottom: 20px;
}

	.post-body-image ~ .post-body-excerpt {
		margin-left: 40px;
		width: 75%;
	}
}

/* BLOG > Blog Grid Style */
.blog-grid .post {
	border: 1px solid var(--color-primary);
	padding-bottom: 0;
}

.blog-grid .post-inner {
	padding: 30px;
}

.post-thumbnail-link {
	transition: opacity 200ms ease-out;
}

.post-thumbnail-link:focus,
.post-thumbnail-link:hover {
	opacity: 0.9;
}

.post-thumbnail-image {
	height: 175px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position-x: 50%;
	background-position-y: 100%;
}

.blog-filters {
	margin-bottom: 40px;
}

.blog-filters-block:not(:last-of-type) {
	margin-bottom: 20px;
}

#blog-grid-pagination {
	margin-top: 50px;
}

.blog-grid .post,
.blog-filters-block {
	max-width: 380px;
}

@media screen and (min-width: 760px) {
	.blog-filters {
		display: flex;
		justify-content: space-between;
		margin-bottom: 60px;
	}

	.blog-filters-block {
		margin-bottom: 0 !important;
		width: 48%;
	}

	.blog-grid .post-inner {
		padding: 40px;
	}

	.blog-grid .post-head-info-authors {
		display: none;
	}

	.blog-grid .post {
		margin-bottom: 30px;
	}
}

@media screen and (min-width: 1025px) {
	.post-thumbnail-image {
		height: 250px;
	}

	.blog-filters {
		justify-content: flex-start;
	}

	.blog-filters-block:not(:last-of-type) {
		margin-right: 30px;
	}
}

/* BLOG > Page Navigation */
.wp-pagenavi {
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
}

.wp-pagenavi a,
.wp-pagenavi span {
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	margin: 0 20px 0 0;
	display: block;
	text-transform: uppercase;
	color: var(--color-primary);
}

.wp-pagenavi a:hover,
.wp-pagenavi a:focus,
.wp-pagenavi span.current {
	color: var(--color-secondary);
}

.wp-pagenavi span.pages,
.wp-pagenavi span.extend {
	display: none;
}

.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .first,
.wp-pagenavi .last {
	width: auto;
	color: var(--color-black);
	background: none;
	border-radius: 0;
	letter-spacing: 1px;
}

.wp-pagenavi .nextpostslink:hover,
.wp-pagenavi .nextpostslink:focus,
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .previouspostslink:focus,
.wp-pagenavi .first:hover,
.wp-pagenavi .first:focus,
.wp-pagenavi .last:hover,
.wp-pagenavi .last:focus {
	background: none;
	color: var(--color-secondary);
}


/* TEMPLATES > Video Gallery */
.videos-filter {
	margin-bottom: 50px;
}

@media screen and (min-width: 1025px) {
	.videos-filter {
		max-width: 450px;
	}
}

/* TEMPLATES > Contact */
.office-block {
	margin-bottom: 30px;
}

.office-block:not(:last-of-type) {
	margin-bottom: 30px;
	padding-bottom: 30px;
	/*border-bottom: 1px solid var(--color-border);*/
}

.office-block-image {
	width: 100%;
	height: 300px;
	margin-bottom: 20px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position-x: 50%;
	max-width: 250px;
}

.office-block-info {
	position: relative;
}

.office-block-info p {
	margin: 0;
}

.office-contact {
	margin-top: 10px;
	margin-bottom: 10px;
}

.office-contact p {
	font-weight: 700;
}

.office-contact p a {
	text-decoration: none;
}

.office-contact p i {
	font-size: 80%;
	color: var(--color-secondary);
}

.office-block-info-inner {
	width: 100%;
}

/*@media screen and (min-width: 1025px) {
	.office-block {
		display: flex;
	}

	.office-block-image {
		display: flex;
		width: 200px;
		flex-basis: 200px;
		height: 200px;
		margin-bottom: 0;
	}

	.office-block-info {
		flex: 1;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		padding: 10px 0 10px 20px;
	}
}*/

/* TEMPLATES > Contact */
.page-template-template-contact .content {
	order: 1;
}

.page-template-template-contact .sidebar {
	order: 2;
}

/*.page-template-template-contact .footer {
	padding: 40px 0;
}*/

@media screen and (min-width: 768px) {
	.page-template-template-contact .content {
		/*width: 50%;*/
		padding-left: var(--sides-size);
	}

	.page-template-template-contact .sidebar {
		/*width: 50%;*/
		padding-right: var(--sides-size);
	}
}


/* TEMPLATES > Results List */
.result-list {
}

.result-single {
	display: flex;
	text-decoration: none;
	flex-direction: column;
	padding: 20px 15px;
	text-align: center;
	margin-bottom: 30px;
	justify-content: center;
	align-items: center;
	min-height: 128px;
	color: var(--color-pure-white);
	background: var(--color-primary);
	transition: all 200ms ease-out;
}

.result-first-tit {
	font-size: 1.938rem;
	font-weight: bold;
	line-height: 1.1;
	margin-bottom: 5px;
	color: var(--color-secondary);
	transition: all 200ms ease-out;
}

.result-text {
	line-height: 1.4;
	font-size: 13px;
}

.result-single:focus,
.result-single:hover {
	color: var(--color-primary);
	background-color: var(--color-secondary);
}

.result-single:focus .result-first-tit,
.result-single:hover .result-first-tit {
	color: var(--color-primary);
}

@media screen and (min-width: 768px) {
	.result-list {
		gap: 20px;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.result-single {
		margin-bottom: 0;
	}
}

@media screen and (min-width: 1025px) {
	.result-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* TEMPLATES > Long-Form */
.banner-xl {
	background: rgb(20, 23, 47);
	background: linear-gradient(180deg, rgba(20, 23, 47, 1) 46%, rgba(36, 42, 88, 1) 100%);
	padding: 40px 0;
}

.banner-xl-content p:last-child {
	margin: 0;
}

.banner-xl-image {
	text-align: center;
}

.banner-xl-title {
	font-size: 3.5rem;
	line-height: 1.4;
}

.banner-xl-image img {
	max-width: 70%;
	margin: 0 auto;
}

@media screen and (min-width: 1100px) {
	.banner-xl-inner {
		display: flex;
		align-items: center;
	}

	.banner-xl-image img {
		max-width: 100%;
	}

	.banner-xl-content {
		padding-left: 60px;
		flex: 1;
	}
}

.top-table-contents {
	padding: 50px 0;
	background: #e5e8f6;
}

.top-table-contents-button {
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	text-decoration: none !important;
	margin: 0 auto;
}

.top-table-contents-button {
	font-size: 1.2rem;
}

.top-table-contents-icon-container {
	margin-bottom: 15px;
}

.top-table-contents-inner {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-row-gap: 20px;
	grid-column-gap: 20px;
}

.top-table-contents-button-icon {
	background: var(--color-secondary);
	border-radius: 50%;
	width: 90px;
	height: 90px;
	transition: all 200ms ease-out;
}

.top-table-contents-button i {
	font-size: 3rem;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.top-table-contents-button-icon:hover,
.top-table-contents-button-icon:focus {
	transform: scale(1.03);
	background: var(--color-black);
}

.is-sticky .top-table-contents {
	padding: 20px 0;
}

.is-sticky .top-table-contents-button-icon {
	width: 30px;
	height: 30px;
}

.is-sticky .top-table-contents-button i {
	font-size: 1rem;
}

.is-sticky .top-table-contents-icon-container {
	margin: 0 12px 0 0;
}

.is-sticky .top-table-contents-title {
	display: none;
}

.is-sticky .top-table-contents-button {
	flex-direction: row;
	margin: 0 auto 0 0;
}

.single-chapter-banner-title h2 {
	font-size: 2.4rem;
	margin: 0;
}

.single-chapter-banner-image {
	margin-bottom: 20px;
}

.single-chapter:nth-child(2n) {
	background: var(--color-light-gray);
}

.banner-xl {
	padding: 50px 0;
}

.single-chapter-banner {
	background: var(--color-primary);
}

.single-chapter-content,
.single-chapter-banner {
	padding: 30px 0;
}

@media screen and (min-width: 900px) {
	.single-chapter-banner-inner {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: row-reverse;
	}

	.single-chapter-banner-image {
		margin-bottom: 0;
		padding-left: 5vw;
	}

	.single-chapter-banner-title h2 {
		margin: 0;
		font-size: 3.2rem;
	}
}

@media screen and (min-width: 1025px) {
	.top-table-contents-inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* TEMPLATES > Confirmation */
.confirm-contact {
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.confirm-contact a:not(:last-child) {
	margin-right: 20px;
}

.confirm-social {
	margin-bottom: 60px;
}

/* TEMPLATES > Reviews */
.review-social {
	margin: 40px 0;
}

.review-social .social-links {
	max-width: none;
	justify-content: flex-start;
}

.review-social .social-links a {
	font-size: 1.7rem;
	border: 1px solid var(--color-primary);
	background: var(--color-near-white);
	width: 50px;
	height: 50px;
	margin: 0 15px 0 0;
	transition: all 200ms ease-out;
}

.review-social .social-links a:focus,
.review-social .social-links a:hover {
	opacity: 0.85;
	background: var(--color-light-gray);
}

.content-testimonial-single-upper .fa-star,
.review-stars i {
	font-size: 1.6rem;
	color: var(--color-secondary);
}

.content-testimonial-single-upper .fa-google {
	font-size: 2rem;
	display: block;
}

.content-testimonial-single-upper {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.content-testimonial-single-upper .stars-container {
	margin-left: 15px;
}

.page-template-template-review .content .review-social {
	margin-bottom: 60px;
}

/* TEMPLATES > Testimonials */
.content-testimonial-single:not(:last-child) {
	border-bottom: 1px solid var(--color-gray);
	padding-bottom: 30px;
	margin-bottom: 30px;
}

.content-testimonial-stars {
	font-size: 1.5rem;
}

.content-testimonial-source {
	display: block;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 600;
}

.content-testimonial-source::before {
	content: "-";
	margin-right: 6px;
	display: inline-block;
}

.fancy-link-box {
	width: 100%;
	height: 130px;
	overflow: hidden;
	background-color: #003057;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding-left: 15px;
	padding-right: 15px;
	text-transform: uppercase;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	position: relative;
}

.fancy-link-box span {
	position: relative;
	z-index: 1;
}

.fancy-link-box figure {
	background-size: cover;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
	position: absolute;
	-webkit-transition: transform 300ms ease-out;
	-moz-transition: transform 300ms ease-out;
	-ms-transition: transform 300ms ease-out;
	-o-transition: transform 300ms ease-out;
	transition: transform 300ms ease-out;
}

.fancy-link-box:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	bottom: 0;
	left: 0;
	opacity: 0;
	background: var(--color-body-text);
	pointer-events: none;
	-webkit-transition: opacity 200ms ease-out;
	-moz-transition: opacity 200ms ease-out;
	-ms-transition: opacity 200ms ease-out;
	-o-transition: opacity 200ms ease-out;
	transition: opacity 200ms ease-out;
}

.fancy-link-box:hover,
.fancy-link-box:focus {
	color: #fff;
	background-color: #9d7900;
}

.fancy-link-box:hover:before,
.fancy-link-box:focus:before {
	opacity: 0;
	z-index: 1;
}

.fancy-link-box:hover figure,
.fancy-link-box:focus figure {
	transform: scale(1.1);
}

@media screen and (min-width: 768px) {
	.fancy-link-boxes-inner {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-row-gap: 20px;
		grid-column-gap: 20px;
	}

	.fancy-link-box {
		margin-bottom: 0;
	}
}
