/**
 * Story cards.
 *
 * brand.css .courses / .course. Same card family as the program card, with a
 * taller 16:11 thumbnail and the category line under the title rather than a
 * tag above it.
 */

.nysf-story-card {
	background: var(--nysf-card);
	border: 1px solid var(--nysf-line);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--nysf-shadow-sm);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nysf-story-card:hover,
.nysf-story-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--nysf-shadow);
}

.nysf-story-card__media {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
}

.nysf-story-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nysf-story-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nysf-story-card__title {
	font-family: var(--nysf-display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.22;
	letter-spacing: -0.3px;
	margin: 0 0 10px;
}

.nysf-story-card__title a {
	color: var(--nysf-navy);
}

/*
 * The card is one click target. Stretching the title's link over the card
 * beats wrapping the whole thing in an <a>, which would nest the thumbnail
 * link inside it.
 */
.nysf-story-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.nysf-story-card {
	position: relative;
}

/* brand.css .course .teacher, which is the category line here. */
.nysf-story-card__meta {
	color: var(--nysf-ink-soft);
	font-size: 14px;
	margin: 0 0 12px;
	flex: 1;
}

/* brand.css .enroll */
.nysf-story-card__go {
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--nysf-navy);
	margin-top: auto;
}

.nysf-story-card:hover .nysf-story-card__go {
	color: var(--nysf-flare);
}

@media (prefers-reduced-motion: reduce) {
	.nysf-story-card {
		transition: none;
	}

	.nysf-story-card:hover,
	.nysf-story-card:focus-within {
		transform: none;
	}
}
