/* ── Blog archive ────────────────────────────────────────────── */

.blog-shell {
	padding: 2.5rem 0 5rem;
	background: var(--supramel-color-bg);
	min-height: 60vh;
}

/* Header */
.blog-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.blog-header::after {
	content: '';
	flex: 1;
	height: 2px;
	background: #168048;
	opacity: 0.25;
}

.blog-header__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 800;
	color: #168048;
	white-space: nowrap;
}

.blog-header__desc {
	margin: 0;
	font-size: 0.95rem;
	color: var(--supramel-color-text-soft);
}

/* Grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

/* Card */
.blog-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 0.875rem;
	overflow: hidden;
	border: 1px solid #e5e1d8;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
	box-shadow: 0 8px 28px rgba(29, 28, 28, 0.09);
	transform: translateY(-2px);
}

.blog-card__thumb {
	display: block;
	height: 200px;
	overflow: hidden;
	flex-shrink: 0;
}

.blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

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

.blog-card__thumb--empty {
	background: linear-gradient(135deg, #e8f0eb 0%, #d4e6da 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.blog-card__thumb-placeholder {
	display: block;
	width: 48px;
	height: 48px;
	opacity: 0.3;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23168048'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.25rem 1.25rem;
	flex: 1;
}

.blog-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.blog-card__title a {
	color: #1D1C1C;
	text-decoration: none;
	transition: color 0.2s ease;
}

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

.blog-card__excerpt {
	margin: 0.2rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--supramel-color-text);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #168048;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-card__more:hover {
	color: #d2a93f;
	text-decoration: underline;
}

/* Pagination */
.blog-pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.blog-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--supramel-color-text);
	text-decoration: none;
	border: 1px solid #e5e1d8;
	transition: background 0.15s ease, color 0.15s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
	background: #168048;
	color: #ffffff;
	border-color: #168048;
}

/* ── Single post ─────────────────────────────────────────────── */

.single-post {
	max-width: 780px;
	margin: 0 auto;
}

.single-post__breadcrumb {
	font-size: 0.82rem;
	color: var(--supramel-color-text-soft);
	margin-bottom: 1.25rem;
}

.single-post__breadcrumb a {
	color: var(--supramel-color-text-soft);
	text-decoration: none;
}

.single-post__breadcrumb a:hover {
	color: #168048;
}

.single-post__header {
	margin-bottom: 1.5rem;
}

.single-post__title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	color: var(--supramel-color-secondary);
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.single-post__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--supramel-color-text-soft);
}

.single-post__thumb {
	margin-bottom: 2rem;
	border-radius: 0.875rem;
	overflow: hidden;
	aspect-ratio: 16 / 7;
}

.single-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-post__content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--supramel-color-text);
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
	color: var(--supramel-color-secondary);
	margin: 1.75rem 0 0.75rem;
}

.single-post__content p {
	margin: 0 0 1.25rem;
}

.single-post__content a {
	color: #168048;
}

.single-post__content img {
	max-width: 100%;
	border-radius: 0.5rem;
}

.single-post__nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e1d8;
	font-size: 0.88rem;
	font-weight: 600;
}

.single-post__nav a {
	color: #168048;
	text-decoration: none;
}

.single-post__nav a:hover {
	text-decoration: underline;
}

.single-post__nav-next {
	text-align: right;
}

/* ── Mobile ──────────────────────────────────────────────────── */

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

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

	.blog-header {
		flex-wrap: wrap;
	}

	.blog-header::after {
		display: none;
	}
}
