/* ==========================================================================
   Pagina de blog și arhivele: articolul principal pe toată lățimea, apoi grila.
   Baza cardului (.post-card) e în pages.css.
   ========================================================================== */

.blog-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.blog-list .post-card {
	box-shadow: var(--shadow-card);
}

.blog-list .post-card__title {
	transition: color 0.15s ease;
}

.blog-list .post-card:hover .post-card__title {
	color: var(--c-green);
}

.post-card__foot {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
}

.post-card__date {
	font-size: 13px;
	color: var(--c-muted);
}

.post-card--lead {
	border-radius: 28px;
}

.post-card--lead .post-card__title {
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.post-card--lead .post-card__excerpt {
	font-size: 16px;
}

@media (min-width: 761px) {
	.post-card--lead {
		flex-direction: row;
	}

	.post-card--lead .post-card__img {
		flex: none;
		width: 56%;
		height: auto;
		min-height: 420px;
	}

	.post-card--lead .post-card__body {
		min-width: 0;
		justify-content: center;
		gap: 14px;
		padding: clamp(24px, 3.4vw, 52px);
	}

	.post-card--lead .post-card__foot {
		margin-top: 0;
	}

	.blog-grid--archive {
		grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
	}

	/* Două articole: jumătate – jumătate, cu imaginea mai înaltă. */
	.blog-grid--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1081px) {
	.blog-grid--two .post-card__img {
		height: 320px;
	}
}

@media (min-width: 761px) and (max-width: 1080px) {
	.post-card--lead .post-card__img {
		width: 50%;
		min-height: 360px;
	}

	.post-card--lead .post-card__title {
		font-size: 26px;
	}
}

@media (max-width: 760px) {
	.blog-list,
	.blog-grid--archive {
		gap: 14px;
	}

	.post-card--lead {
		border-radius: 24px;
	}

	.blog-list .post-card__img {
		height: 210px;
	}

	.blog-list .post-card__body {
		padding: 18px 18px 20px;
	}

	.post-card--lead .post-card__title {
		font-size: 23px;
	}

	.post-card--lead .post-card__excerpt {
		font-size: 15px;
	}
}
