/*
 * Homepage v7 — "Insights & Intelligence" article grid ([log_health_library]).
 * Literal reproduction: mobile = thumbnail-left row card with an inline
 * "Category · N min read" line, desktop = full-width top image with a
 * floating category badge and a separate excerpt paragraph.
 * Depends on: log-home-v7-shared.css
 */

.v7-insight-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 768px) {
	.v7-insight-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

.v7-insight-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	background: #f8f5fb;
	border-radius: 12px;
	border: 1px solid rgba(212, 197, 232, .2);
	box-shadow: 0 20px 40px -10px rgba(30, 20, 64, .15);
	overflow: hidden;
	padding: 12px;
	transition: transform .3s, box-shadow .3s;
}

@media (min-width: 768px) {
	.v7-insight-card {
		flex-direction: column;
		padding: 0;
	}

	.v7-insight-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 25px 50px -12px rgba(30, 20, 64, .25);
	}
}

.v7-insight-thumb {
	position: relative;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
}

@media (min-width: 768px) {
	.v7-insight-thumb {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		border-radius: 0;
	}
}

.v7-insight-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .7s;
}

.v7-insight-card:hover .v7-insight-img {
	transform: scale(1.05);
}

.v7-insight-badge {
	display: none;
}

@media (min-width: 768px) {
	.v7-insight-badge {
		display: block;
		position: absolute;
		top: 16px;
		left: 16px;
		background: #e3d9f0;
		color: #2a1a4d;
		font-family: 'Manrope', sans-serif;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
		padding: 4px 12px;
		border-radius: 999px;
	}
}

.v7-insight-body {
	flex: 1;
	min-width: 0;
	padding: 0 0 0 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (min-width: 768px) {
	.v7-insight-body {
		padding: 24px;
		justify-content: flex-start;
	}
}

.v7-insight-meta-mobile {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #1e1440;
	margin-bottom: 4px;
}

@media (min-width: 768px) {
	.v7-insight-meta-mobile {
		display: none;
	}
}

.v7-insight-title {
	font-family: 'EB Garamond', Georgia, serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.3;
	color: #010006;
	margin: 0 0 4px;
}

@media (min-width: 768px) {
	.v7-insight-title {
		font-size: 22px;
		margin-bottom: 12px;
	}
}

.v7-insight-title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.v7-insight-card:hover .v7-insight-title a {
	color: #1e1440;
}

.v7-insight-excerpt {
	display: none;
}

@media (min-width: 768px) {
	.v7-insight-excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-family: 'Manrope', sans-serif;
		font-size: 13.5px;
		line-height: 1.6;
		color: #4a3570;
		margin: 0 0 24px;
	}
}

.v7-insight-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #1e1440;
	text-decoration: none;
}

@media (min-width: 768px) {
	.v7-insight-link {
		gap: 8px;
		font-size: 11.5px;
		letter-spacing: .1em;
	}
}

.v7-insight-link .material-symbols-outlined {
	font-size: 15px;
	color: #e9c349;
	transition: transform .2s;
}

@media (min-width: 768px) {
	.v7-insight-link .material-symbols-outlined {
		font-size: 17px;
	}
}

.v7-insight-card:hover .v7-insight-link .material-symbols-outlined {
	transform: translateX(3px);
}
