/* ── Grid e card de post ─────────────────────────────────────
   Separado do blog.css porque a home também usa o card (seção de
   artigos recentes) e o blog.css traz regras de página que não
   devem vazar para lá. */

/* 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;
}

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

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