/* Hero Featured – front end */
.hf-hero {
	--hf-bg: #FDDF82;
	--hf-fg: #16161a;
	--hf-muted: #6b6b75;
	--hf-dot: #f0437a;
	--hf-radius: 22px;
	--hf-gap: 18px;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: var(--hf-gap);
	align-items: start;
	margin: 0 0 2rem;
	color: var(--hf-fg);
	box-sizing: border-box;
}
.hf-hero *, .hf-hero *::before, .hf-hero *::after { box-sizing: border-box; }
.hf-hero a { color: inherit; text-decoration: none; box-shadow: none; }
.hf-hero h2, .hf-hero h3, .hf-hero p { margin: 0; padding: 0; }

/* Desktop: cards sit directly in the 3-column grid */
.hf-cards { display: contents; }

/* ---------- Feature card ---------- */
.hf-feature {
	background: var(--hf-bg);
	border-radius: var(--hf-radius);
	padding: 34px 34px 34px;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 100%;
}
.hf-badge,
.hf-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 7px 11px;
	border-radius: 999px;
	color: #16161a;
}
.hf-badge { background: #fff; margin-bottom: 26px; }
.hf-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--hf-dot);
	flex: none;
}
.hf-feature-title {
	font-size: clamp(30px, 3.7vw, 52px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: var(--hf-fg);
	margin-bottom: 26px !important;
	overflow-wrap: break-word;
}
.hf-feature-title a:hover { opacity: .85; }
.hf-feature-excerpt {
	font-size: 16px;
	line-height: 1.4;
	opacity: .85;
	margin-bottom: 28px !important;
}
.hf-btn {
	margin-top: auto;
	align-self: flex-start;
	display: inline-block;
	background: #16161a;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 999px;
	transition: transform .15s ease, opacity .15s ease;
}
.hf-btn:hover { transform: translateY(-1px); opacity: .9; }

/* Auto contrast for dark background colours */
.hf-hero.hf-is-dark .hf-feature { --hf-fg: #fff; color: #fff; }
.hf-hero.hf-is-dark .hf-btn { background: #fff; color: #16161a !important; }

/* ---------- Image cards ---------- */
.hf-card { display: flex; flex-direction: column; min-width: 0; }
.hf-card-media {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: 18px;
	overflow: hidden;
	background: #eee;
	margin-bottom: 14px;
}
.hf-card-media img,
.hf-card-placeholder {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .4s ease;
}
.hf-card-placeholder { background: linear-gradient(135deg, #eee, #ddd); }
.hf-card:hover .hf-card-media img { transform: scale(1.03); }
.hf-pill { background: #e6e6ec; margin-bottom: 10px; }
.hf-card-title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--hf-fg);
	margin-bottom: 10px !important;
}
.hf-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hf-card-meta { font-size: 13px; color: var(--hf-muted); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
	.hf-hero { grid-template-columns: 1fr; gap: 14px; }
	.hf-cards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.hf-feature { padding: 24px 22px; min-height: 0; }
	.hf-badge { margin-bottom: 16px; }
	.hf-feature-title { font-size: clamp(24px, 6.5vw, 36px); margin-bottom: 14px !important; }
	.hf-feature-excerpt { font-size: 15px; margin-bottom: 20px !important; }
}
@media (max-width: 480px) {
	.hf-hero { --hf-gap: 10px; }
	.hf-cards { gap: 10px; }
	.hf-card-media { border-radius: 14px; margin-bottom: 10px; }
	.hf-card-title { font-size: 15px; margin-bottom: 8px !important; }
	.hf-card-meta { font-size: 12px; }
	.hf-pill { font-size: 11px; padding: 6px 9px; }
}
