/* ===== Nexmark Core — f4 Blog Scroll Column ===== */

.nx-f4 {
	--nx-green: #c8f560;
	--nx-ink: #0C3569;
	--nx-grey: #7a7a7a;
	--nx-f4-h: 520px;

	display: flex;
	flex-direction: column;
	gap: 34px;
	font-family: "Inter", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	width: 100%;
}
.nx-f4 *, .nx-f4 *::before, .nx-f4 *::after { box-sizing: border-box; }

/* Each blog card = image background */
.nx-f4__card {
	position: relative;
	display: block;
	width: 100%;
	height: var(--nx-f4-h);
	border-radius: 16px;
	background-size: cover;
	background-position: center;
	background-color: #cfcfcf;
	text-decoration: none;
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease;
}
.nx-f4__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(0,0,0,0.16);
}

/* White info box overlapping bottom of image */
.nx-f4__box {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	background: #fff;
	border-radius: 12px;
	padding: 18px 20px 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.nx-f4__pills {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.nx-f4__pill {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nx-grey);
	padding: 5px 12px;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	line-height: 1;
}

.nx-f4__title {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 8px;
	color: var(--nx-ink);
}

.nx-f4__excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: var(--nx-grey);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nx-f4__empty {
	padding: 50px 20px;
	text-align: center;
	color: #999;
	font-family: "Inter", sans-serif;
}

/* ===== Mobile: show only N cards (mobile attr), shrink height ===== */
@media (max-width: 768px) {
	.nx-f4 { gap: 24px; }
	.nx-f4__card {
		height: 64vw;
		min-height: 360px;
	}
	.nx-f4__card--hide-mobile { display: none; }
	.nx-f4__title { font-size: 18px; }
}
