/* Blog */

.blog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}

.blog__head .section__title { max-width: 828px; }

.blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 27px;
}

.post-card {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border-radius: var(--radius-lg);
	background: var(--color-white);
}

.post-card__image {
	width: 100%;
	height: 231px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 30px 12px 0;
}

.post-card__title {
	margin: 0 0 14px;
	color: var(--color-primary);
	font-size: var(--h6-size);
	font-weight: var(--h6-weight);
	line-height: var(--h6-lh);
	letter-spacing: var(--h6-ls);
}

.post-card__excerpt {
	color: var(--color-neutral-1);
	font-size: var(--body-small-size);
	line-height: 1.5;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.post-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
}

.post-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.post-card__avatar {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 12%;
}

.post-card__author-name {
	color: var(--color-primary);
	font-size: var(--body-small-size);
	line-height: 1.2;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
	padding-top: 0;
	color: var(--color-neutral-1);
	font-size: 12px;
	line-height: 1.3;
}

.post-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.post-card__meta img { width: 12px; height: 12px; }

@media (min-width: 768px) {
	.blog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.blog__head { margin-bottom: 60px; }
	.blog__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Whole card is clickable — the "Číst článek" anchor is stretched over it. */
.post-card {
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}

.post-card .btn--sm-dark::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Card radius, not the button's pill — see the note in team-grid.css. */
	border-radius: var(--radius-lg);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(16, 33, 71, .08);
}

@media (prefers-reduced-motion: reduce) {
	.post-card { transition: none; }
	.post-card:hover { transform: none; }
}
