/**
 * bs-posts-grid — native blog-post card grid (Elementor decommission).
 *
 * Replaces the Elementor Pro "Posts" widget (Cards skin) used on the country /
 * verified / recently-listed archives (and, later, entity "related articles").
 * Card visual matches the site's other cards (.bs-dc-card tokens): 1px border +
 * subtle shadow, 10px radius. Rendered by [bs_posts_grid]; below-the-fold, so
 * enqueued (not inlined-critical).
 */

.bs-posts-grid__heading {
	margin: 32px 0 16px;
	font-size: 20px;
	font-weight: 600;
}

.bs-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 0 0;
}

/* When a label precedes the grid, drop the grid's own top margin. */
.bs-posts-grid__heading + .bs-posts-grid {
	margin-top: 0;
}

.bs-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e4e7ed;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .03);
}

.bs-post-card__imglink {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f2f4f7;
}

.bs-post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bs-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
}

.bs-post-card__badge {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--cp-blue, #1DB0E1);
	background: rgba(29, 176, 225, .1);
	padding: 3px 9px;
	border-radius: 6px;
}

.bs-post-card__badge a { color: inherit; text-decoration: none; }

.bs-post-card__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 600;
}

.bs-post-card__title a { color: inherit; text-decoration: none; }
.bs-post-card__title a:hover { color: var(--cp-blue, #1DB0E1); }

.bs-post-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #667085;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

html.bs-dark .bs-post-card {
	background: #22223a;
	border-color: rgba(255, 255, 255, .08);
	box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

html.bs-dark .bs-post-card__imglink { background: #2b2b45; }
html.bs-dark .bs-post-card__excerpt { color: #9aa4b2; }

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

@media (max-width: 640px) {
	.bs-posts-grid { grid-template-columns: 1fr; }
}
