/* ==========================================================================
   Blog Index — 3-column card grid
   ========================================================================== */

.blog-index-grid {
	margin-top: 30px;
	margin-bottom: 10px;
}

.blog-card-col {
	margin-bottom: 40px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Featured image */
.blog-card__image-link {
	display: block;
	overflow: hidden;
}

.blog-card__image {
	overflow: hidden;
	height: 220px;
}

.blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.blog-card__image-link:hover .blog-card__image img {
	transform: scale(1.04);
}

/* Card body */
.blog-card__body {
	padding: 20px 0 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__title {
	font-size: 18px;
	line-height: 1.4;
	margin: 0 0 12px;
}

.blog-card__title a {
	color: #323a4b;
	text-decoration: none;
}

.blog-card__title a:hover {
	color: #0f5984;
	text-decoration: none;
}

.blog-card__excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.75;
	margin-bottom: 16px;
	flex: 1;
}

.blog-card__excerpt p {
	margin: 0;
}

.blog-card__read-more {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #323a4b;
	text-decoration: none;
	border-bottom: 2px solid #323a4b;
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
	align-self: flex-start;
}

.blog-card__read-more:hover {
	color: #0f5984;
	border-color: #0f5984;
	text-decoration: none;
}

/* Pagination below the grid */
.blog-index-grid + .pagination {
	margin-top: 10px;
	margin-bottom: 40px;
}

/* ==========================================================================
   Single Blog Post — banner
   ========================================================================== */

/* Restrict banner height and crop the image to fill it */
.single-post #banner,
.blog #banner {
	height: 307px;
	overflow: hidden;
}

.single-post #banner img,
.blog #banner img {
	width: 100%;
	height: 307px;
	object-fit: cover;
	object-position: center;
}

/* Dark overlay so the white title text stands out */
.single-post #banner::after,
.blog #banner::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
	z-index: 1;
}

/* Keep the title above the overlay, and neutralise the negative margin-top
   that was designed for tall full-page banners but offsets the title in a
   307px-tall banner. */
.single-post #banner_inner,
.blog #banner_inner {
	z-index: 2;
}

.single-post #banner_inner h1.entry-title,
.blog #banner_inner h1.entry-title {
	margin-top: 0;
}

/* ==========================================================================
   Single Blog Post — content + sidebar layout
   ========================================================================== */

/* The global .content rule sets text-align: center; override it for blog posts */
.single-post #page_inner.content {
	text-align: left;
}

.single-blog-content .entry-content {
	max-width: 100%;
}

.single-blog-content .entry-content img {
	max-width: 100%;
	height: auto;
}

.single-blog-content .entry-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
	font-size: 13px;
	color: #777;
}

/* ==========================================================================
   Blog Sidebar
   ========================================================================== */

#blog_sidebar {
	padding-top: 20px;
	padding-left: 20px;
}

.blog-sidebar-widget {
	margin-bottom: 35px;
}

.blog-sidebar-widget__title {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #323a4b;
	margin: 0 0 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #323a4b;
}

#blog_sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#blog_sidebar ul li {
	padding: 6px 0;
	border-bottom: 1px solid #ebebeb;
	font-size: 14px;
}

#blog_sidebar ul li:last-child {
	border-bottom: none;
}

#blog_sidebar ul li a {
	color: #555;
	text-decoration: none;
}

#blog_sidebar ul li a:hover {
	color: #0f5984;
}

@media (max-width: 767px) {
	#blog_sidebar {
		padding-left: 0;
		padding-top: 30px;
		border-top: 1px solid #ebebeb;
		margin-top: 30px;
	}
}
