/* =========================================================
   Courses / shop archive (uses front.css course cards)
   ========================================================= */

.tf-page--courses {
	overflow-x: clip;
}

/* Hero – same brand atmosphere as /articles/ and About us */
.tf-page-hero--courses {
	position: relative;
	overflow: hidden;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	min-height: min(48vh, 22rem);
	padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.25rem);
}

.tf-page-hero--courses .tf-page-hero__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 85% 65% at 12% 15%, rgba(6, 0, 0, 0.26), transparent 58%),
		radial-gradient(ellipse 75% 70% at 100% 0%, rgba(27, 58, 42, 0.35), transparent 70%),
		linear-gradient(
			145deg,
			#8f1528 0%,
			#820016 36%,
			#b62c2c 62%,
			#68281f 80%,
			#472315 92%,
			#235430 100%
		);
}

.tf-page-hero--courses .tf-page-hero__inner {
	position: relative;
	z-index: 1;
	width: min(100% - 1.75rem, var(--wrap));
	margin-inline: auto;
	text-align: left;
}

.tf-page-hero--courses .tf-page-hero__inner > * {
	max-width: 40rem;
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.tf-page-hero--courses h1 {
	color: #fff;
	font-size: clamp(2.15rem, 4.8vw, 3.1rem);
	margin: 0 0 0.75rem;
	letter-spacing: -0.03em;
}

.tf-page-hero--courses .tf-chip {
	margin-bottom: 0.85rem;
}

.tf-page-hero--courses .tf-lede {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08rem;
	line-height: 1.55;
}

#tf-courses-list {
	scroll-margin-top: 6.5rem;
}

.tf-courses-group--spaced {
	margin-top: clamp(2.75rem, 6vw, 4rem);
	padding-top: clamp(2.25rem, 5vw, 3.25rem);
	border-top: 1px solid var(--line);
}

.tf-courses-group__head {
	margin-bottom: 1.35rem;
	max-width: 40rem;
}

.tf-courses-group__head h2 {
	font-size: clamp(1.55rem, 2.8vw, 2.05rem);
	margin-bottom: 0.55rem;
}

.tf-page--courses .tf-section__intro {
	margin: 0;
	color: var(--muted);
	font-size: 1.02rem;
	line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
	.tf-page--courses .tf-reveal {
		opacity: 0;
		transform: translateY(1rem);
		transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
	}

	.tf-page--courses .tf-reveal.is-in {
		opacity: 1;
		transform: none;
	}
}
