
/* Blog page, blog posts and category pages - loaded after template-standard-pages.css */

.inner-container-size1 {
	width: 100%;
	max-width: 1200px;
	margin: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

/*---------------------------------------*/
/* title bar */
#blog .header-bar,
#blog-post .header-bar {
	height: auto;
	min-height: 246px;
	padding: 50px 0;
}

#blog .header-bar h1,
#blog-post .header-bar h1 {
	margin: 0;
	font-size: 40px;
	line-height: 1.25;
}

#blog-post .header-bar h1 {
	max-width: 900px;
	margin: 0 auto;
}

#blog .header-subtitle {
	margin-top: 12px;
	font-size: 20px;
	opacity: 0.9;
}

#blog .header-subtitle a {
	color: #fff;
	text-decoration: none;
}

#blog .header-subtitle a:hover {
	text-decoration: underline;
}

#blog-post .post-meta {
	margin-bottom: 15px;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

#blog-post .post-category {
	margin-left: 12px;
	padding: 3px 12px;
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

#blog-post .post-category:hover {
	background-color: #fff;
	color: #7C3C87;
}

/*---------------------------------------*/
/* blog list */
#blog .blog-body {
	padding: 70px 0 80px;
	background-color: #f7f3f8;
}

#blog .blog-intro {
	max-width: 900px;
	margin: 0 auto 50px;
}

#blog .blog-card-list {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

#blog .blog-card {
	flex: 0 1 calc((100% - 60px) / 3);
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.12);
	transition: transform 0.2s, box-shadow 0.2s;
}

#blog .blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px 0 rgba(0,0,0,0.15);
}

#blog .blog-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #eee;
}

#blog .blog-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

#blog .blog-card:hover .blog-card-image img {
	transform: scale(1.04);
}

/* shown when a post has no featured image */
#blog .blog-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(to right, #7c3c87, #2483c5);
}

#blog .blog-card-placeholder img {
	width: 70px;
	height: auto;
	object-fit: contain;
	opacity: 0.9;
}

#blog .blog-card:hover .blog-card-placeholder img {
	transform: none;
}

#blog .blog-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 25px 25px 30px;
	border-top: 5px solid #7C3C87;
}

#blog .blog-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #777;
}

#blog .blog-card-category {
	padding: 2px 10px;
	border-radius: 999px;
	background-color: #eef6fc;
	color: #2483C5;
	font-size: 13px;
	text-decoration: none;
}

#blog .blog-card-category:hover {
	background-color: #2483C5;
	color: #fff;
}

#blog .blog-card h2 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

#blog .blog-card h2 a {
	font-family: Lato-bold, Arial, Helvetica, sans-serif;
	color: #7C3C87;
	text-decoration: none;
}

#blog .blog-card h2 a:hover {
	color: #2483C5;
}

#blog .blog-card p {
	flex: 1;
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}

#blog .blog-card-more {
	font-family: Lato-bold, Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: #2483C5;
	text-decoration: none;
}

#blog .blog-card-more:hover {
	color: #7C3C87;
}

/* page numbers */
#blog .blog-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 50px;
}

#blog .blog-pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	background-color: #fff;
	color: #7C3C87;
	font-size: 16px;
	line-height: 42px;
	text-align: center;
	text-decoration: none;
}

#blog .blog-pagination a.page-numbers:hover,
#blog .blog-pagination .page-numbers.current {
	background-color: #7C3C87;
	color: #fff;
}

#blog .blog-pagination .page-numbers.dots {
	background-color: transparent;
}

/* no posts yet */
#blog .blog-empty {
	max-width: 600px;
	margin: 0 auto;
	padding: 50px 30px;
	border-radius: 8px;
	background-color: #fff;
	text-align: center;
}

#blog .blog-empty h2 {
	margin: 0 0 10px;
	color: #7C3C87;
	font-size: 28px;
}

#blog .blog-empty p {
	margin: 0;
	font-size: 18px;
	color: #444;
}

/*---------------------------------------*/
/* single post */
#blog-post .post-body {
	padding: 60px 0 80px;
}

#blog-post .post-article {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

#blog-post .post-featured-image {
	margin-bottom: 40px;
}

#blog-post .post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/*---------------------------------------*/
/* text typed in the WordPress editor */
.editor-content {
	color: #222;
	font-size: 18px;
	line-height: 1.75;
}

.editor-content p,
.editor-content ul,
.editor-content ol {
	margin: 0 0 22px;
}

.editor-content h2 {
	margin: 45px 0 20px;
	color: #7C3C87;
	font-size: 30px;
	line-height: 1.3;
}

.editor-content h2::after {
	content: '';
	display: block;
	width: 70px;
	height: 5px;
	margin-top: 12px;
	background-image: linear-gradient(to right, #7c3c87, #2483c5);
}

.editor-content h3 {
	margin: 35px 0 15px;
	color: #2483C5;
	font-size: 23px;
	line-height: 1.3;
}

/* the theme sets the light font on every element, so bold text needs it set again */
.editor-content h2 *,
.editor-content h3 *,
.editor-content strong,
.editor-content b {
	font-family: Lato-bold, Arial, Helvetica, sans-serif;
}

.editor-content > :first-child {
	margin-top: 0;
}

.editor-content a {
	color: #2483C5;
	text-decoration: underline;
}

.editor-content a:hover {
	color: #7C3C87;
}

.editor-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.editor-content figure {
	margin: 30px 0;
}

.editor-content figcaption {
	margin-top: 8px;
	font-size: 15px;
	color: #666;
	text-align: center;
}

.editor-content blockquote {
	margin: 35px 0;
	padding: 20px 30px;
	border-left: 5px solid #7C3C87;
	background-color: #f7f3f8;
	font-size: 20px;
}

.editor-content ol > li {
	text-indent: 0;
	padding-left: 0;
	margin-left: 1.3em;
	list-style: decimal;
}

.editor-content iframe {
	max-width: 100%;
}

/* previous / next post */
#blog-post .post-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #e5e5e5;
}

#blog-post .post-nav > div {
	flex: 1 1 250px;
}

#blog-post .post-nav-next {
	text-align: right;
}

#blog-post .post-nav a {
	display: block;
	color: #7C3C87;
	font-family: Lato-bold, Arial, Helvetica, sans-serif;
	font-size: 18px;
	line-height: 1.4;
	text-decoration: none;
}

#blog-post .post-nav a span {
	display: block;
	margin-bottom: 4px;
	font-family: Lato-light, Arial, Helvetica, sans-serif;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #2483C5;
}

#blog-post .post-nav a:hover {
	color: #2483C5;
}

#blog-post .post-back {
	margin-top: 40px;
	text-align: center;
}

#blog-post .post-back a {
	display: inline-block;
	padding: 10px 25px;
	border: 2px solid #7C3C87;
	border-radius: 999px;
	color: #7C3C87;
	font-size: 16px;
	text-decoration: none;
}

#blog-post .post-back a:hover {
	background-color: #7C3C87;
	color: #fff;
}

/*---------------------------------------*/
/* enquire today button - same as the homepage button */
#blog #enquire-today .btn,
#blog-post #enquire-today .btn {
	background-color: #2D2D2D;
	color: #fff;
	width: 200px;
	height: 36px;
	padding: 5px 10px;
	margin: 30px auto 10px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Lato-light, Arial, Helvetica, sans-serif;
}
#blog #enquire-today .btn:hover,
#blog-post #enquire-today .btn:hover {
	background-color: #fff;
	color: #000;
	font-family: Lato-bold, Arial, Helvetica, sans-serif;
}

/*---------------------------------------*/
@media only screen and (max-width: 992px) {

	#blog .blog-card {
		flex-basis: calc((100% - 30px) / 2);
	}

} /* @media only screen and (max-width: 992px) */

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

	#blog .header-bar h1,
	#blog-post .header-bar h1 {
		font-size: 30px;
	}
	#blog .blog-body {
		padding: 40px 0 50px;
	}
	#blog .blog-card {
		flex-basis: 100%;
	}
	#blog-post .post-body {
		padding: 40px 0 50px;
	}
	.editor-content {
		font-size: 17px;
	}
	#blog-post .post-nav-next {
		text-align: left;
	}

} /* @media only screen and (max-width: 576px) */
