/*
  Georgia Mechanical - Blog Section
  Blog index (home/archive) + single post styles
*/

/* blog container */
.blog-container {
	max-width: 1304px;
}

/* blog banner */
.blog-banner-content p {
	max-width: 755px;
}

/* blog grid section start */
.blog-grid-area {
	padding: 80px 0;
	background-color: #fff;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #000;
	border-radius: 4px;
	overflow: hidden;
	height: 100%;
}

.blog-card-img {
	display: block;
	height: 220px;
	overflow: hidden;
}

.blog-card-img img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: all 0.3s ease-in-out;
}

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

.blog-card-img-placeholder {
	display: block;
	height: 100%;
	width: 100%;
	background-color: #191919;
}

.blog-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
}

.blog-card-cat {
	color: #c1132a;
	font-family: "Chivo Mono", monospace;
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
	text-transform: uppercase;
	transition: all 0.3s ease-in-out;
}

.blog-card-cat:hover {
	color: #991627;
}

.blog-card-title {
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: 0;
}

.blog-card-title a {
	color: #000;
	transition: all 0.3s ease-in-out;
}

.blog-card-title a:hover {
	color: #c1132a;
}

.blog-card-excerpt {
	color: #333;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-top: 8px;
	color: #c1132a;
	font-family: "helvetica-neue-condensed", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	transition: all 0.3s ease-in-out;
}

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

/* pagination */
.blog-pagination {
	margin-top: 64px;
}

.blog-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-pagination .page-numbers li .page-numbers {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #000;
	border-radius: 4px;
	background-color: #fff;
	color: #000;
	font-family: "Chivo Mono", monospace;
	font-size: 13px;
	font-weight: 400;
	line-height: normal;
	text-transform: uppercase;
	transition: all 0.3s ease-in-out;
}

.blog-pagination .page-numbers li a.page-numbers:hover {
	background-color: #c1132a;
	border-color: #c1132a;
	color: #fff;
}

.blog-pagination .page-numbers li .page-numbers.current {
	background-color: #c1132a;
	border-color: #c1132a;
	color: #fff;
}

.blog-empty {
	text-align: center;
	margin: 0;
}
/* blog grid section end */

/* single post start */
.single-post-area {
	padding: 50px 0 96px;
}

.post-split {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 60px;
}

.post-main {
	flex: 1 1 auto;
	max-width: 800px;
	min-width: 0;
}

.post-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.post-cat {
	color: #c1132a;
	font-family: "Chivo Mono", monospace;
	font-size: 13px;
	font-weight: 400;
	line-height: normal;
	text-transform: uppercase;
	transition: all 0.3s ease-in-out;
}

.post-cat:hover {
	color: #991627;
}

.post-title {
	font-size: 48px;
	line-height: 1.11;
	margin-bottom: 0;
	max-width: 761px;
}

.post-cover {
	width: 100%;
}

.post-cover img {
	width: 100%;
	height: 440px;
	object-fit: cover;
	border-radius: 4px;
}

/* post body (classic editor content) */
.post-body {
	margin-top: 40px;
	color: #333;
	font-size: 16px;
	line-height: 1.6;
}

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

.post-body > *:last-child {
	margin-bottom: 0;
}

.post-body a {
	color: #c1132a;
	text-decoration: underline;
	transition: all 0.3s ease-in-out;
}

.post-body a:hover {
	color: #991627;
	text-decoration: none;
}

.post-body h2 {
	font-size: 32px;
	line-height: normal;
	margin: 40px 0 24px;
	padding-bottom: 15px;
	position: relative;
}

.post-body h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 3px;
	background-color: #c1132a;
}

.post-body h3 {
	font-size: 26px;
	margin: 32px 0 16px;
}

.post-body h4 {
	font-size: 22px;
	margin: 28px 0 14px;
}

.post-body ul,
.post-body ol {
	list-style: none;
	padding-left: 16px;
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.post-body li {
	position: relative;
	padding-left: 26px;
	font-size: 15px;
	line-height: 1.5;
}

.post-body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 14px;
	height: 14px;
	background: url("../images/check-red.svg") no-repeat center;
	background-size: contain;
}

.post-body ol {
	counter-reset: gm-ol;
}

.post-body ol li {
	counter-increment: gm-ol;
}

.post-body ol li::before {
	content: counter(gm-ol) ".";
	position: absolute;
	left: 0;
	top: 0;
	color: #c1132a;
	font-family: "helvetica-neue-condensed", sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.5;
}

.post-body li strong,
.post-body li b {
	color: #1b2a4a;
}

.post-body blockquote {
	border-left: 3px solid #c1132a;
	padding: 4px 0 4px 20px;
	margin: 0 0 24px;
	font-style: italic;
}

.post-body img {
	border-radius: 4px;
	margin: 8px 0;
}

/* sidebar */
.post-sidebar {
	width: 320px;
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.sidebar-widget-title {
	font-size: 24px;
	line-height: normal;
	margin-bottom: 0;
	padding-bottom: 15px;
	position: relative;
}

.sidebar-widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	background-color: #c1132a;
}

.sidebar-cta {
	background-color: #000;
	border-radius: 4px;
	padding: 32px;
}

.sidebar-cta .sidebar-widget-title {
	color: #fff;
}

.sidebar-cta p {
	color: #fff;
	opacity: 0.8;
	font-size: 14px;
	line-height: 1.5;
	margin: 20px 0;
}

.georgia-btn.georgia-btn-sm {
	font-size: 16px;
	padding: 14px 24px;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 20px),
		calc(100% - 17px) 100%,
		0 100%
	);
}

.sidebar-related {
	border: 1px solid #000;
	border-radius: 4px;
	padding: 23px;
}

.sidebar-related .sidebar-widget-title::after {
	height: 2px;
}

.sidebar-related-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}

.sidebar-related-list li {
	border-bottom: 1px solid #d9d9d9;
	padding-bottom: 16px;
	margin-bottom: 16px;
}

.sidebar-related-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.sidebar-related-title {
	display: block;
	color: #000;
	font-family: "helvetica-neue-condensed", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 8px;
	transition: all 0.3s ease-in-out;
}

.sidebar-related-title:hover {
	color: #c1132a;
}

.sidebar-related-list .blog-card-more {
	padding-top: 0;
}
/* single post end */

/* responsive */
@media (max-width: 1199.98px) {
	.post-split {
		gap: 40px;
	}
}

@media (max-width: 991.98px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-split {
		flex-direction: column;
	}

	.post-main {
		max-width: 100%;
	}

	.post-sidebar {
		width: 100%;
		flex: 0 0 auto;
		max-width: 480px;
	}

	.post-title {
		max-width: 100%;
	}
}

@media (max-width: 767.98px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-grid-area {
		padding: 64px 0;
	}

	.single-post-area {
		padding: 32px 0 64px;
	}

	.post-title {
		font-size: 34px;
	}

	.post-cover img {
		height: auto;
		min-height: 220px;
	}

	.post-body h2 {
		font-size: 26px;
	}

	.blog-pagination {
		margin-top: 48px;
	}

	.blog-pagination .page-numbers {
		flex-wrap: wrap;
	}
}
