/* ============================================================
   HornSports Featured Posts — v3.0.1
   Editorial hero + supporting stories module
   ============================================================ */

.hs-fp {
	--hs-accent: #BF5700;
	--hs-surface: #ffffff;
	--hs-text: #14161a;
	--hs-meta: #6b7280;
	--hs-border: rgba(20, 22, 26, .10);
	--hs-hero-h: 460px;
	--hs-hero-title: 34px;
	--hs-card-title: 17px;
	--hs-gap: 20px;
	--hs-radius: 12px;
	--hs-overlay: .78;
	--hs-ease: cubic-bezier(.2, .7, .3, 1);

	box-sizing: border-box;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--hs-text);
	container-type: inline-size;
}
.hs-fp *,
.hs-fp *::before,
.hs-fp *::after { box-sizing: inherit; }

.hs-fp--dark {
	--hs-surface: #16181d;
	--hs-text: #f4f5f7;
	--hs-meta: #a2a8b4;
	--hs-border: rgba(255, 255, 255, .12);
}

.hs-fp a { text-decoration: none; color: inherit; }

/* Themes and Elementor commonly force `img { height: auto }` / `max-width: 100%`,
   which stops object-fit from filling the frame. These win against that. */
.hs-fp img,
.hs-fp .hs-hero__img,
.hs-fp .hs-card__img {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-width: 100% !important;
	max-height: none !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	object-position: center center;
	aspect-ratio: auto !important;
}

.hs-fp-empty {
	padding: 1rem;
	font-family: "Inter", system-ui, sans-serif;
	color: #6b7280;
}

/* ── Section header ───────────────────────────────────────── */
.hs-fp__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--hs-accent);
}
.hs-fp__eyebrow {
	margin: 0;
	font-family: "Oswald", "Inter", sans-serif;
	font-weight: 700;
	font-size: clamp(16px, 2.2vw, 21px);
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.1;
	color: var(--hs-text);
}
.hs-fp__more {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--hs-accent);
	white-space: nowrap;
	transition: opacity .2s var(--hs-ease);
}
.hs-fp__more span { display: inline-block; transition: transform .2s var(--hs-ease); }
.hs-fp__more:hover span { transform: translateX(3px); }

/* ── Grid ─────────────────────────────────────────────────── */
.hs-fp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: var(--hs-gap);
	align-items: stretch;
}
.hs-fp--hero-right .hs-fp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.hs-fp--hero-right .hs-hero  { order: 2; }
.hs-fp--hero-right .hs-stack { order: 1; }
.hs-fp--stacked .hs-fp__grid { grid-template-columns: minmax(0, 1fr); }
.hs-fp--stacked .hs-stack {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hs-gap);
}
.hs-fp--stacked .hs-card__link { grid-template-columns: minmax(0, 1fr); }
.hs-fp--stacked .hs-card__media { aspect-ratio: 16 / 9; width: 100%; }
.hs-fp--stacked .hs-card__body { padding: 12px 14px 14px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hs-hero {
	position: relative;
	min-height: var(--hs-hero-h);
	border-radius: var(--hs-radius);
	overflow: hidden;
	background: #0d0f12;
	isolation: isolate;
}
.hs-hero__link {
	display: block;
	position: relative;
	height: 100%;
	min-height: inherit;
}
.hs-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #0d0f12;
}
.hs-hero__img {
	transform: scale(1.02);
	transition: transform .5s var(--hs-ease);
	will-change: transform;
}
.hs-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(8, 9, 11, var(--hs-overlay)) 0%,
		rgba(8, 9, 11, calc(var(--hs-overlay) * .72)) 32%,
		rgba(8, 9, 11, .10) 66%,
		rgba(8, 9, 11, .02) 100%
	);
}
.hs-hero__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: clamp(16px, 3cqi, 28px);
	display: grid;
	gap: 10px;
	justify-items: start;
}
.hs-hero__title {
	margin: 0;
	font-family: "Oswald", "Inter", sans-serif;
	font-weight: 600;
	font-size: var(--hs-hero-title);
	line-height: 1.15;
	letter-spacing: .005em;
	color: #fff;
	text-wrap: balance;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
}
.hs-hero__excerpt {
	margin: 0;
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .84);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Badges / meta ────────────────────────────────────────── */
.hs-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--hs-accent);
	color: #fff;
	font-family: "Oswald", "Inter", sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .11em;
	text-transform: uppercase;
	line-height: 1;
}
.hs-kicker {
	display: block;
	color: var(--hs-accent);
	font-family: "Oswald", "Inter", sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .11em;
	text-transform: uppercase;
	line-height: 1;
}
.hs-meta {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--hs-meta);
	letter-spacing: .01em;
}
.hs-meta--onDark { color: rgba(255, 255, 255, .72); }
.hs-dot { opacity: .6; }

/* ── Secondary stack ──────────────────────────────────────── */
.hs-stack {
	display: flex;
	flex-direction: column;
	gap: var(--hs-gap);
	min-width: 0;
}
.hs-card {
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	overflow: hidden;
	flex: 1 1 auto;
	transition: transform .22s var(--hs-ease), box-shadow .22s var(--hs-ease), border-color .22s var(--hs-ease);
}
.hs-card__link {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	height: 100%;
	align-items: stretch;
}
.hs-card__media {
	position: relative;
	overflow: hidden;
	background: #e9eaee;
	align-self: stretch;
	min-height: 96px;
}
.hs-card__img {
	transform: scale(1.02);
	transition: transform .45s var(--hs-ease);
	will-change: transform;
}
/* Absolutely-positioned images need a sized parent. */
.hs-fp .hs-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hs-card__body {
	display: grid;
	align-content: center;
	gap: 7px;
	padding: 12px 14px;
	min-width: 0;
}
.hs-card__title {
	margin: 0;
	font-family: "Oswald", "Inter", sans-serif;
	font-weight: 500;
	font-size: var(--hs-card-title);
	line-height: 1.25;
	color: var(--hs-text);
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s var(--hs-ease);
}

/* ── Interaction ──────────────────────────────────────────── */
@media (hover: hover) {
	.hs-hero:hover .hs-hero__img { transform: scale(1.075); }
	.hs-card:hover {
		transform: translateY(-2px);
		border-color: color-mix(in srgb, var(--hs-accent) 45%, transparent);
		box-shadow: 0 8px 24px rgba(10, 12, 16, .10);
	}
	.hs-card:hover .hs-card__img { transform: scale(1.09); }
	.hs-card:hover .hs-card__title { color: var(--hs-accent); }
}
.hs-fp a:focus-visible {
	outline: 3px solid var(--hs-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ── Loading placeholder ──────────────────────────────────── */
.hs-placeholder {
	background: linear-gradient(100deg, #e6e7ea 30%, #f2f3f5 50%, #e6e7ea 70%);
	background-size: 220% 100%;
	animation: hs-shimmer 1.4s linear infinite;
}
.hs-fp--dark .hs-placeholder {
	background: linear-gradient(100deg, #23262c 30%, #2c3037 50%, #23262c 70%);
	background-size: 220% 100%;
}
@keyframes hs-shimmer {
	from { background-position: 140% 0; }
	to   { background-position: -40% 0; }
}
.hs-fp[data-hs-loading="1"] { opacity: .82; transition: opacity .25s var(--hs-ease); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
	.hs-fp__grid,
	.hs-fp--hero-right .hs-fp__grid { grid-template-columns: minmax(0, 1fr); }
	.hs-fp--hero-right .hs-hero  { order: 0; }
	.hs-fp--hero-right .hs-stack { order: 0; }
	.hs-fp--stacked .hs-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hs-card__link { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.hs-fp { --hs-gap: 14px; }
	.hs-hero__title { -webkit-line-clamp: 4; }
	.hs-hero__excerpt { -webkit-line-clamp: 3; font-size: 14px; }
	.hs-card__media { min-height: 84px; }
	.hs-card__link { grid-template-columns: 112px minmax(0, 1fr); }
	.hs-fp--stacked .hs-stack { grid-template-columns: minmax(0, 1fr); }
	.hs-fp--stacked .hs-card__link { grid-template-columns: 112px minmax(0, 1fr); }
	.hs-fp--stacked .hs-card__media { aspect-ratio: auto; }
	.hs-card__body { padding: 10px 12px; }
	.hs-fp__more { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.hs-fp *,
	.hs-fp *::before,
	.hs-fp *::after {
		transition: none !important;
		animation: none !important;
	}
}
