.hv-testi-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hv-primary);
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	padding: 3px 9px;
	border-radius: 50px;
}

.hv-testi-badge svg {
	width: 11px;
	height: 11px;
	stroke: var(--hv-primary);
	fill: none;
	flex-shrink: 0;
}

/* Loyal Patient badge — slightly deeper blue */
.hv-testi-badge--loyal {
	color: #004db3;
	background: var(--hv-primary-pale);
	border-color: #93c5fd;
}

.hv-testi-badge--loyal svg {
	stroke: #004db3;
}

.hv-testimonial-stars {
	display: flex;
	gap: 2px;
}

.hv-star {
	font-size: .95rem;
}

.hv-star--filled {
	color: #f59e0b;
}

.hv-star--empty {
	color: #cbd5e1;
}

.hv-testimonial-quote {
	font-size: .9rem;
	line-height: 1.78;
	color: #334155;
	margin: 0;
	font-style: italic;
	position: relative;
	z-index: 1;
}

.hv-testimonial-author {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.hv-testi-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hv-testimonial-author-name {
	font-weight: 700;
	font-size: .88rem;
	color: var(--hv-navy-darkest);
}

.hv-testimonial-author-role {
	font-size: .75rem;
	color: var(--hv-text-muted);
}

.hv-testi-secure {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--hv-primary);
	letter-spacing: .05em;
	flex-shrink: 0;
}

.hv-testi-secure svg {
	width: 13px;
	height: 13px;
}

/* slide widths inside the slider track */
.hv-testi-track.hv-slider-track>.hv-testimonial-card {
	flex: 0 0 calc(33.333% - 14px) !important;
	min-width: 0;
}

@media (max-width: 991px) {
	.hv-testi-track.hv-slider-track>.hv-testimonial-card {
		flex: 0 0 calc(50% - 10px) !important;
	}
}

@media (max-width: 540px) {
	.hv-testi-track.hv-slider-track>.hv-testimonial-card {
		flex: 0 0 300px !important;
	}
}

/* ── 15. BLOG ────────────────────────────────────────────────────── */
#hv-blog,
.hv-blog-query-wrap {
	background: #eef4ff;
}

#hv-blog {
	padding: 80px 0 0;
	overflow: hidden;
	/* prevents margin-bottom on .hv-section-head from collapsing out, which was creating a white gap between sections */
}

.hv-blog-query-wrap {
	padding: 0 40px 80px;
	margin-top: 0 !important;
}

/* Remove default WP block margin that causes the gap */
.wp-block-query.hv-blog-query-wrap {
	margin-top: 0 !important;
	padding-top: 0;
}

#hv-blog .hv-section-head {
	margin-bottom: 20px;
}

/* Blog card: featured image — always reserve height, show placeholder when missing */
.hv-blog-query-wrap .wp-block-post-featured-image {
	aspect-ratio: 16 / 10;
	background: var(--hv-primary-pale);
	border-radius: 12px 12px 0 0 !important;
	overflow: hidden;
	display: block;
	position: relative;
	width: 100%;
}

.hv-blog-query-wrap .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px 12px 0 0;
}

/* Placeholder icon when no image */
.hv-blog-query-wrap .wp-block-post-featured-image:not(:has(img))::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--hv-primary-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") center/56px no-repeat;
	opacity: .45;
}

/* Blog card: restrict excerpt to 3 lines */
.hv-blog-query-wrap .wp-block-post-excerpt__excerpt,
.hv-blog-query-wrap .wp-block-post-excerpt p {
	display: -webkit-box !important;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
