/* Blog Page */

:root {
	--gel-main: #28978a;
	--gel-main-dark: #1f766d;
	--gel-ink: #102629;
	--gel-text: #2c3d40;
	--gel-muted: #657477;
	--gel-soft: #f6f8f8;
	--gel-line: #e4ebea;
	--gel-white: #ffffff;
}

.gel-blog-page {
	width: 100%;
	background: #ffffff;
	color: var(--gel-text);
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.gel-blog-page a {
	text-decoration: none;
}

.blog-container {
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* Blog Content */

.blog-main {
	padding: 86px 0 108px;
	background: var(--gel-soft);
}

.blog-layout {
	width: 100%;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 58px;
	align-items: start;
}

/* Blog Sidebar */

.blog-sidebar {
	position: sticky;
	top: 120px;
}

.blog-sidebar-box {
	margin-bottom: 26px;
	padding: 30px 28px 32px;
	background: #ffffff;
	border: 1px solid var(--gel-line);
	box-shadow: 0 18px 46px rgba(16, 38, 41, 0.07);
	box-sizing: border-box;
}

.blog-sidebar-box h2 {
	margin: 0 0 20px;
	color: var(--gel-ink);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 760;
	letter-spacing: -0.3px;
}

/* Blog Categories */

.blog-category-nav {
	display: grid;
	gap: 10px;
}

.blog-category-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: #f6f8f8;
	color: var(--gel-ink);
	font-size: 14px;
	font-weight: 700;
	transition: all 0.25s ease;
}

.blog-category-nav a:hover,
.blog-category-nav a.active {
	background: var(--gel-main);
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(40, 151, 138, 0.2);
}

/* Quick Quote Form */

.blog-sidebar-form-box {
	position: relative;
	overflow: hidden;
}

.blog-sidebar-form-box::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 5px;
	height: 100%;
	background: var(--gel-main);
}

.blog-sidebar-form-box h2,
.blog-sidebar-form-box p,
.blog-sidebar-form {
	position: relative;
	z-index: 2;
}

.blog-sidebar-form-box p {
	margin: -6px 0 22px;
	color: var(--gel-muted);
	font-size: 14px;
	line-height: 1.72;
}

.blog-form-row {
	margin-bottom: 12px;
}

.blog-form-row input,
.blog-form-row textarea {
	width: 100%;
	border: 1px solid var(--gel-line);
	background: #f6f8f8;
	color: var(--gel-ink);
	font-size: 14px;
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	outline: none;
	box-sizing: border-box;
	transition: all 0.22s ease;
}

.blog-form-row input {
	height: 44px;
	padding: 0 15px;
}

.blog-form-row textarea {
	height: 110px;
	padding: 14px 15px;
	resize: vertical;
}

.blog-form-row input::placeholder,
.blog-form-row textarea::placeholder {
	color: #7b898b;
}

.blog-form-row input:focus,
.blog-form-row textarea:focus {
	border-color: rgba(40, 151, 138, 0.72);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(40, 151, 138, 0.1);
}

.blog-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin-top: 4px;
	border: 1px solid var(--gel-main);
	border-radius: 999px;
	background: var(--gel-main);
	color: #ffffff;
	font-size: 14px;
	font-weight: 760;
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(40, 151, 138, 0.22);
	transition: all 0.25s ease;
}

.blog-form-submit:hover {
	background: var(--gel-main-dark);
	border-color: var(--gel-main-dark);
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(40, 151, 138, 0.3);
}

/* Blog List */

.blog-list-area {
	min-width: 0;
}

.blog-list-head {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 42px;
	align-items: end;
	margin-bottom: 40px;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--gel-line);
}

.blog-list-head span {
	display: block;
	margin-bottom: 12px;
	color: var(--gel-main);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.blog-list-head h1 {
	margin: 0;
	color: var(--gel-ink);
	font-size: 42px;
	line-height: 1.14;
	font-weight: 760;
	letter-spacing: -1.2px;
}

.blog-list-head p {
	margin: 0;
	color: var(--gel-muted);
	font-size: 16px;
	line-height: 1.78;
}

/* Blog Cards */

.blog-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.blog-card {
	display: block;
	overflow: hidden;
	background: #ffffff;
	color: inherit;
	box-shadow: 0 18px 46px rgba(16, 38, 41, 0.08);
	transition: all 0.28s ease;
}

.blog-card:hover {
	color: inherit;
	transform: translateY(-7px);
	box-shadow: 0 28px 68px rgba(16, 38, 41, 0.13);
}

.blog-card-image {
	position: relative;
	overflow: hidden;
	background: #e8efee;
}

.blog-card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(40, 151, 138, 0.12), rgba(255, 255, 255, 0) 46%),
		linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
	pointer-events: none;
}

.blog-card-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.55s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.045);
}

.blog-card-content {
	padding: 26px 26px 30px;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	color: var(--gel-main);
	font-size: 13px;
	font-weight: 760;
}

.blog-card-meta time {
	color: #9aa5a7;
	font-weight: 600;
}

.blog-card-content h3 {
	margin: 0 0 12px;
	color: var(--gel-ink);
	font-size: 21px;
	line-height: 1.3;
	font-weight: 760;
	letter-spacing: -0.4px;
}

/* Blog Cards */

.blog-card-content p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 20px;
	color: var(--gel-muted);
	font-size: 15px;
	line-height: 1.72;
}

.blog-card-content strong {
	color: var(--gel-main);
	font-size: 14px;
	font-weight: 800;
}

/* Blog Pagination */

.blog-pagebar {
	margin-top: 48px;
	text-align: center;
}

.blog-pagebar a,
.blog-pagebar span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0 4px;
	padding: 0 12px;
	border: 1px solid var(--gel-line);
	background: #ffffff;
	color: var(--gel-ink);
	font-size: 14px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.blog-pagebar a:hover,
.blog-pagebar .page-num-current,
.blog-pagebar .active {
	background: var(--gel-main);
	border-color: var(--gel-main);
	color: #ffffff;
}

/* Blog Responsive */

@media (max-width: 1199px) {
	.blog-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.blog-main {
		padding: 76px 0 86px;
	}

	.blog-layout {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.blog-sidebar {
		position: static;
	}

	.blog-list-head {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.blog-list-head h1 {
		font-size: 34px;
	}
}

@media (max-width: 575px) {
	.blog-main {
		padding: 60px 0 70px;
	}

	.blog-sidebar-box {
		padding: 24px 22px 26px;
	}

	.blog-card-grid {
		grid-template-columns: 1fr;
	}

	.blog-card-image img {
		height: 220px;
	}

	.blog-list-head h1 {
		font-size: 29px;
		letter-spacing: -0.6px;
	}

	.blog-pagebar a,
	.blog-pagebar span {
		min-width: 36px;
		height: 36px;
		margin: 0 2px;
		padding: 0 10px;
	}
}