/* ==========================================================================
   Blog card — reusable card component
   Used in: related-posts (slider), category-posts (grid)
   Figma: node 52352:9604
   ========================================================================== */

.blog-card {
	display: flex;
	flex-direction: column;
}

.blog-card__inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card__inner:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ── Thumbnail ── */

.blog-card__thumb {
	width: 100%;
	height: 240px;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 8px 8px 0 0;
}

.blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
	transition: transform 0.35s ease;
	position: relative;
}

.blog-card__inner:hover .blog-card__img {
	transform: scale(1.03);
}

/* Gradient placeholder when no featured image */
.blog-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(201.78deg, rgba(255, 129, 129, 0.5) 0%, rgba(253, 176, 87, 0.5) 100%);
}

/* ── Card body ── */

.blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	flex: 1;
}

/* Top row: category + read time */
.blog-card__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.blog-card__cat {
	font-family: var(--font-figtree);
	font-size: 17px;
	font-weight: 400;
	color: #666;
	line-height: 26px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 55%;
}

.blog-card__time {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-figtree);
	font-size: 17px;
	font-weight: 400;
	color: #666;
	line-height: 26px;
	white-space: nowrap;
	flex-shrink: 0;
}

.blog-card__time-icon {
	flex-shrink: 0;
	color: #666;
}

/* Title + excerpt */
.blog-card__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.blog-card__title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--nav-dark);
	line-height: 30px;
	letter-spacing: 0;
	margin: 0;
}

.blog-card__excerpt {
	font-family: var(--font-figtree);
	font-size: 17px;
	font-weight: 500;
	color: var(--nav-dark);
	line-height: 26px;
	margin: 0;
	/* 3 lines = 78px */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer: date */
.blog-card__footer {
	margin-top: auto;
}

.blog-card__date {
	font-family: var(--font-figtree);
	font-size: 17px;
	font-weight: 400;
	color: #848c97;
	line-height: 26px;
}
