/* Course catalog — additive layer on top of home.css.
   Section-based layout: 4 stage sections, each with their courses. */

.aryf-courses {
	--cc-card-bg: rgba(255, 255, 255, 0.04);
	--cc-card-border: rgba(255, 255, 255, 0.10);
	--cc-card-border-hover: rgba(255, 255, 255, 0.22);
	--cc-card-radius: 16px;
}

/* ============================================================
   Hero anchor nav (replaces the old filter bar)
   ============================================================ */
.aryf-courses-anchornav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
	margin: 0.6rem auto 0;
	max-width: 760px;
}
.aryf-courses-anchor {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.95rem 0.45rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
	color: #e9eef5;
	font-size: 0.93rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.aryf-courses-anchor:hover,
.aryf-courses-anchor:focus-visible {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
	outline: none;
}
.aryf-courses-anchor__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.aryf-courses-anchor--blue   .aryf-courses-anchor__num { background: rgba(93, 177, 255, 0.22); color: var(--c-blue); }
.aryf-courses-anchor--teal   .aryf-courses-anchor__num { background: rgba(52, 212, 168, 0.22); color: var(--c-teal); }
.aryf-courses-anchor--purple .aryf-courses-anchor__num { background: rgba(185, 124, 255, 0.22); color: var(--c-purple); }
.aryf-courses-anchor--amber  .aryf-courses-anchor__num { background: rgba(251, 191, 36, 0.22); color: var(--c-amber); }

/* ============================================================
   Stage section bands
   ============================================================ */
.aryf-courses-stage {
	scroll-margin-top: 100px; /* account for sticky header on anchor jumps */
	position: relative;
}
.aryf-courses-stage--blue   { color: var(--c-blue); }
.aryf-courses-stage--teal   { color: var(--c-teal); }
.aryf-courses-stage--purple { color: var(--c-purple); }
.aryf-courses-stage--amber  { color: var(--c-amber); }

/* Subtle accent stripe + glow on the section so each tier reads as its own band */
.aryf-courses-stage::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent);
	opacity: 0.4;
}

/* Stage header — treated as a section banner, NOT a card. Differentiates
   visually from the course cards underneath so the hierarchy reads clearly. */
.aryf-courses-stage__head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: end;
	gap: 1.2rem 1.6rem;
	margin-bottom: 1.6rem;
	padding: 2.2rem 0 1.4rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	position: relative;
}
/* Thin colored accent line that sits ON the bottom border in the stage color. */
.aryf-courses-stage__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 120px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 0 12px currentColor;
}
.aryf-courses-stage__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	color: currentColor;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: 0 0 32px -10px currentColor;
	flex-shrink: 0;
}
.aryf-courses-stage__heading { min-width: 0; }
.aryf-courses-stage__tag {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: currentColor;
	opacity: 0.9;
}
/* Big section title — clearly outranks the h3 course names below. */
.aryf-courses-stage__name {
	margin: 0.3rem 0 0.35rem;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.aryf-courses-stage__tagline {
	margin: 0;
	color: currentColor;
	font-size: 1.02rem;
	font-weight: 500;
	opacity: 0.95;
}
/* Focus pills now read as understated tags — no card-like chrome. */
.aryf-courses-stage__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.7rem;
	list-style: none;
	padding: 0 0 0.4rem;
	margin: 0;
	align-items: center;
	justify-content: flex-end;
}
.aryf-courses-stage__pills li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #cfd6e0;
}
.aryf-courses-stage__pills li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	box-shadow: 0 0 6px currentColor;
	color: var(--cc-pill-dot, currentColor);
}
.aryf-courses-stage--blue   .aryf-courses-stage__pills li::before { background: var(--c-blue);   box-shadow: 0 0 6px var(--c-blue); }
.aryf-courses-stage--teal   .aryf-courses-stage__pills li::before { background: var(--c-teal);   box-shadow: 0 0 6px var(--c-teal); }
.aryf-courses-stage--purple .aryf-courses-stage__pills li::before { background: var(--c-purple); box-shadow: 0 0 6px var(--c-purple); }
.aryf-courses-stage--amber  .aryf-courses-stage__pills li::before { background: var(--c-amber);  box-shadow: 0 0 6px var(--c-amber); }

/* Course grid within a stage section */
.aryf-courses-stage__grid {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ============================================================
   Course card (simplified — stage badge moved up to section header)
   ============================================================ */
.aryf-course {
	position: relative;
	background: var(--cc-card-bg);
	border: 1px solid var(--cc-card-border);
	border-radius: var(--cc-card-radius);
	padding: 1.35rem 1.4rem 1.3rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	overflow: hidden;
	transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.aryf-course:hover {
	transform: translateY(-2px);
	border-color: var(--cc-card-border-hover);
	background: rgba(255, 255, 255, 0.055);
}
.aryf-course::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: currentColor;
	opacity: 0.85;
}
.aryf-course::after {
	content: "";
	position: absolute;
	top: -70px;
	right: -70px;
	width: 180px;
	height: 180px;
	border-radius: 999px;
	background: radial-gradient(closest-side, currentColor, transparent 70%);
	opacity: 0.08;
	pointer-events: none;
}
.aryf-course--blue   { color: var(--c-blue); }
.aryf-course--teal   { color: var(--c-teal); }
.aryf-course--purple { color: var(--c-purple); }
.aryf-course--amber  { color: var(--c-amber); }

/* Per-course hero image — full-bleed across the top of the card.
   Only renders when the slug-keyed JPEG exists in /assets/courses/hero/. */
.aryf-course__hero {
	margin: -1.35rem -1.4rem 0.4rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
}
.aryf-course__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 350ms ease;
}
.aryf-course:hover .aryf-course__hero-img {
	transform: scale(1.025);
}
.aryf-course__hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 30%;
	background: linear-gradient(to bottom, transparent, var(--cc-card-bg));
	pointer-events: none;
}

/* Card head now just holds the track chips */
.aryf-course__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.aryf-course__tracks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.aryf-course__track {
	padding: 0.18rem 0.55rem;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e9eef5;
}
.aryf-course__track--ai         { border-left: 2px solid #5db1ff; }
.aryf-course__track--code       { border-left: 2px solid #34d4a8; }
.aryf-course__track--robotics   { border-left: 2px solid #ff6f9e; }
.aryf-course__track--innovation { border-left: 2px solid #b97cff; }
.aryf-course__track--venture    { border-left: 2px solid #fbbf24; }

.aryf-course__name {
	margin: 0;
	font-size: 1.18rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.aryf-course__body {
	margin: 0;
	color: #c9d1de;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* "You'll build" callout */
.aryf-course__build {
	margin: 0.2rem 0;
	padding: 0.7rem 0.85rem 0.75rem;
	background: rgba(255, 255, 255, 0.04);
	border-left: 3px solid currentColor;
	border-radius: 0 8px 8px 0;
}
.aryf-course__build-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: currentColor;
	margin-bottom: 0.25rem;
}
.aryf-course__build-text {
	margin: 0;
	color: #eaf0f8;
	font-size: 0.93rem;
	line-height: 1.5;
}

/* Facts row */
.aryf-course__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem 0.8rem;
	margin: 0;
	padding-top: 0.7rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.10);
}
.aryf-course__fact { margin: 0; }
.aryf-course__fact--wide { grid-column: 1 / -1; }
.aryf-course__fact dt {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #a9b3c2;
	margin-bottom: 0.15rem;
}
.aryf-course__fact dd {
	margin: 0;
	color: #e9eef5;
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Card CTA */
.aryf-course__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: currentColor;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	padding-top: 0.4rem;
	transition: gap 200ms ease;
}
.aryf-course__cta:hover,
.aryf-course__cta:focus-visible { gap: 0.7rem; }
.aryf-course__cta span {
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}

/* Final CTA */
.aryf-courses-finalcta__ctas {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	align-items: center;
	justify-content: center;
	margin-top: 1.4rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.aryf-courses-stage__head {
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"icon heading"
			"pills pills";
		gap: 0.9rem 1rem;
		align-items: center;
	}
	.aryf-courses-stage__icon { grid-area: icon; }
	.aryf-courses-stage__heading { grid-area: heading; }
	.aryf-courses-stage__pills {
		grid-area: pills;
		justify-content: flex-start;
		padding: 0;
	}
	.aryf-courses-stage__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.aryf-courses-stage__head { padding: 1.6rem 0 1.1rem; }
	.aryf-courses-stage__icon { width: 48px; height: 48px; border-radius: 12px; }
	.aryf-course { padding: 1.2rem 1.15rem 1.1rem; }
}
