﻿/* -------------------------------------------------------------------------
   Blog listing page
   ------------------------------------------------------------------------- */

.blog-page {
	padding: 3rem 1.25rem 4rem;
	background: #fff;
}

.blog-page__inner {
	max-width: 1120px;
	margin: 0 auto;
}

.blog-page__title {
	margin: 0 0 2.5rem;
	text-align: center;
	font-size: clamp(2rem, 4.5vw, 2.85rem);
	font-weight: 800;
	color: #34A853;
	letter-spacing: -0.02em;
}

/* Featured post
   ------------------------------------------------------------------------- */

.blog-featured {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 2.5rem;
	align-items: center;
	margin-bottom: 3.5rem;
}

.blog-featured__badge {
	display: inline-flex;
	padding: 0.35rem 0.9rem;
	margin-bottom: 0.9rem;
	background: #e6f4ea;
	color: #34A853;
	font-size: 0.8rem;
	font-weight: 700;
	border-radius: 999px;
}

.blog-featured__title {
	margin: 0 0 0.9rem;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 800;
	line-height: 1.25;
	color: #243746;
}

.blog-featured__title a {
	color: inherit;
}

.blog-featured__title a:hover {
	color: #34A853;
}

.blog-featured__excerpt {
	margin: 0 0 1.1rem;
	font-size: 1rem;
	line-height: 1.65;
	color: #4a5a66;
}

.blog-featured__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #34A853;
}

.blog-featured__more:hover {
	color: #34A853;
}

.blog-featured__media {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	border: 2px solid #ceead6;
}

.blog-featured__media img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	display: block;
}

/* Grid cards
   ------------------------------------------------------------------------- */

.blog-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem 1.75rem;
}

.blog-card__media {
	margin: 0 0 0.85rem;
	border-radius: 14px;
	overflow: hidden;
}

.blog-card__media img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.blog-card__date {
	display: block;
	margin-bottom: 0.55rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #34A853;
}

.blog-card__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	font-weight: 800;
	line-height: 1.3;
	color: #243746;
}

.blog-card__title a {
	color: inherit;
}

.blog-card__title a:hover {
	color: #34A853;
}

.blog-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #4a5a66;
}

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

	.blog-featured__media {
		order: -1;
	}

	.blog-featured__media img {
		height: 260px;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Single blog post
   ------------------------------------------------------------------------- */

.blog-single {
	padding: 2.75rem 1.25rem 4.5rem;
	background: #fff;
}

.blog-single__inner {
	max-width: 1120px;
	margin: 0 auto;
}

.blog-single__header {
	margin-bottom: 2.25rem;
}

.blog-single__title {
	margin: 0 0 1.25rem;
	max-width: 920px;
	font-size: clamp(1.85rem, 4.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #243746;
}

.blog-single__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem 2rem;
}

.blog-single__lead {
	margin: 0;
	max-width: 720px;
	flex: 1;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #6b7a86;
}

.blog-single__share {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex-shrink: 0;
	padding-top: 0.15rem;
}

.blog-single__share-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #243746;
}

.blog-single__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: #34A853;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.blog-single__share-btn:hover {
	background: #34A853;
	transform: translateY(-1px);
	color: #fff;
}

.blog-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
	grid-template-areas:
		"media aside"
		"body aside";
	gap: 2rem 2.25rem;
	align-items: start;
}

.blog-single__media {
	grid-area: media;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
}

.blog-single__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.blog-single__body {
	grid-area: body;
	color: #4a5a66;
}

.blog-single__section {
	margin-bottom: 2rem;
}

.blog-single__section h2 {
	margin: 0 0 0.85rem;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	color: #243746;
}

.blog-single__section p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.75;
	color: #5a6a76;
}

.blog-single__aside {
	grid-area: aside;
	position: sticky;
	top: 6.5rem;
}

.blog-single-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.75rem 1.35rem 1.5rem;
	background: #243746;
	border-radius: 14px;
	text-align: center;
}

.blog-single-cta__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
}

.blog-single-cta__phones {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.blog-single-cta__phones a {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-single-cta__phones a:hover {
	color: #f5c518;
}

.blog-single-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.35rem;
	padding: 0.85rem 1.35rem;
	width: 100%;
	max-width: 100%;
	border-radius: 999px;
	background: #f5c518;
	color: #243746;
	font-size: 0.95rem;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.blog-single-cta__btn:hover {
	background: #ffb320;
	color: #243746;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.blog-single__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.blog-single__layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"aside"
			"body";
	}

	.blog-single__aside {
		position: static;
	}
}

@media (max-width: 600px) {
	.blog-single {
		padding-top: 2rem;
	}

	.blog-single-cta {
		padding: 1.5rem 1.15rem 1.35rem;
	}
}
