/* ==========================================================================
   VSL AI INSIGHTS — blog card grid, rendered by [vsl_ai_insights] or
   vsl_ai_insights_render() (see inc/vsl-ai-insights.php).

   Fully self-contained so the shortcode works on ANY page: tokens are
   declared on .vai-blog itself (mirroring the .vsl-clutch palette) and no
   selector assumes a .vsl-ai / .vsl-clutch ancestor. Card anatomy mirrors
   the AI lead-gen page's .vai-stage cards (white, 16px radius, soft
   shadow, lift on hover).
   ========================================================================== */
.vai-blog {
	--vc-orange: #fe8e06;
	--vc-orange-dark: #e67d04;
	--vc-orange-soft: #fff1e0;
	--vc-navy: #353c3e;
	--vc-muted: #65707b;
	--vc-line: #e3e6ec;
	background: #fafbfc;
	padding: 64px 0 60px;
	border-top: 1px solid var(--vc-line);
	font-family: 'Open Sans', sans-serif;
}
.vai-blog__wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.vai-blog__head { text-align: center; margin-bottom: 34px; }
.vai-blog__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--vc-orange);
	margin-bottom: 16px;
}
.vai-blog__eyebrow::before,
.vai-blog__eyebrow::after {
	content: '';
	display: block;
	width: 32px;
	height: 1px;
	background: var(--vc-orange);
	opacity: 0.7;
}
.vai-blog__title {
	font-family: 'Open Sans', sans-serif;
	font-size: 31px;
	font-weight: 800;
	color: var(--vc-navy);
	letter-spacing: -0.018em;
	line-height: 1.15;
	margin: 0 0 12px;
}
.vai-blog__sub {
	margin: 0 auto;
	max-width: 52em;
	font-size: 15px;
	line-height: 1.6;
	color: var(--vc-muted);
}

.vai-blog__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.vai-blog__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--vc-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 26px rgba(53, 60, 62, 0.05);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.vai-blog__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 38px rgba(53, 60, 62, 0.10);
}
.vai-blog__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--vc-orange-soft);
}
.vai-blog__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vai-blog__media-fallback {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	color: var(--vc-orange);
}
.vai-blog__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 18px 20px 20px;
}
.vai-blog__date {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vc-muted);
}
.vai-blog__card-title {
	font-family: 'Open Sans', sans-serif;
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}
.vai-blog__card-title a {
	color: var(--vc-navy);
	text-decoration: none;
	transition: color 0.22s ease;
}
.vai-blog__card-title a:hover { color: var(--vc-orange); }
.vai-blog__excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--vc-muted);
}
/* margin-top:auto pins the link to the card foot so a short excerpt
   doesn't leave the link floating mid-card next to its neighbours */
.vai-blog__more {
	margin-top: auto;
	padding-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--vc-orange);
	text-decoration: none;
}
.vai-blog__more i { font-size: 11px; transition: transform 0.22s ease; }
.vai-blog__more:hover i { transform: translateX(3px); }

.vai-blog__all { margin-top: 30px; text-align: center; }
.vai-blog__all-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 26px;
	border-radius: 999px;
	border: 2px solid var(--vc-orange);
	font-size: 14px;
	font-weight: 700;
	color: var(--vc-orange);
	background: transparent;
	text-decoration: none;
	transition: background 0.22s ease, color 0.22s ease;
}
.vai-blog__all-btn:hover { background: var(--vc-orange); color: #fff; }

@media (max-width: 1024px) and (min-width: 781px) {
	.vai-blog__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 780px) {
	.vai-blog { padding: 40px 0 38px; }
	.vai-blog__head { margin-bottom: 22px; }
	.vai-blog__title { font-size: 22px; }
	.vai-blog__sub { font-size: 13.5px; }
	.vai-blog__grid { grid-template-columns: 1fr; gap: 14px; }
	.vai-blog__all { margin-top: 22px; }
}
