/* Category pages (/courses/<name>/). The page heading and cards use the frs theme's own
   classes; this only adds what the theme doesn't have. */

.frsac-category-description {
	max-width: 50rem;
	margin-top: 1rem;
}

.frsac-category-courses,
.frsac-category-events {
	padding: 2.5rem 0;
}

/* Course cards: the same look as the old Sectors page's Arlo cards (Keith, 2026-12-02).
   Values are the old cards' (arlo-course.css .arlo-listitem). */
.frsac-course-grid {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 576px) {
	.frsac-course-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.frsac-course-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.frsac-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	background-color: #fff;
	border: 1px solid rgba(51, 51, 51, 0.15);
	font-size: 0.9375rem;
	transition: box-shadow 0.2s;
}

.frsac-card:hover,
.frsac-card:focus-within {
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

.frsac-card-image {
	display: block;
	width: 100%;
	height: auto;
	/* One shape for every card, as on the old Sectors page (362 x 220). */
	aspect-ratio: 362 / 220;
	object-fit: cover;
	margin: 0;
}

/* Picture plus next-date badge (v1.22), values from the live Sectors page's Arlo cards. */
.frsac-card-media {
	position: relative;
}

.frsac-card-date {
	position: absolute;
	left: 1.25rem;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 72px;
	padding: 8px;
	background-color: #76cac1;
	color: #fff;
	font-family: Lyyra-Bold, sans-serif;
	font-size: 1.5rem;
	text-align: center;
}

.frsac-card-date span {
	display: block;
	line-height: 1.1em;
}

.frsac-card-date-month,
.frsac-card-date-year {
	font-size: 0.9375rem;
}

.frsac-card-date-day {
	font-weight: 500;
	margin: 0.25rem 0;
}

.frsac-card-body {
	padding: 1.25rem 1.25rem 0;
}

.frsac-card-title {
	font-family: Lyyra-Bold, sans-serif;
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.frsac-card-title a {
	color: #001738;
	text-decoration: none;
}

.frsac-card-title a:hover {
	color: #76cac1;
	text-decoration: underline;
}

/* The Course name is the card's only link; it covers the whole card. */
.frsac-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.frsac-card-link:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.frsac-card-summary {
	color: #37383b;
	line-height: 1.5;
	border-bottom: 1px solid rgba(51, 51, 51, 0.15);
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.frsac-card-duration,
.frsac-card-price {
	display: flex;
	align-items: baseline;
	margin: 0 0 0.5rem;
}

.frsac-card-duration .fa,
.frsac-card-price .fa {
	width: 1rem;
	margin-right: 0.5rem;
}

/* "Contact us for a quote" goes to /contact/: it sits above the card-wide Course link. */
.frsac-card-quote {
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: underline;
}

.frsac-card-quote:hover,
.frsac-card-quote:focus-visible {
	color: #76cac1;
}

.frsac-card-quote:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.frsac-card-footer {
	margin-top: auto;
	padding-top: 1.5rem;
}

.frsac-card-footer span {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.25rem;
	background-color: #37383b;
	color: #fff;
	text-decoration: underline;
	transition: background-color 0.2s;
}

.frsac-card-footer span::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f061";
	margin-left: 0.5rem;
	text-decoration: none;
	transition: margin-left 0.2s;
}

.frsac-card:hover .frsac-card-footer span,
.frsac-card:focus-within .frsac-card-footer span {
	background-color: #001738;
}

/* Courses with dates: teal "View upcoming dates (N)" bar, as on live (v1.22). */
.frsac-card-footer-dates span {
	background-color: #76cac1;
	color: #fff;
}

.frsac-card:hover .frsac-card-footer span::after {
	margin-left: 0.75rem;
}

.frsac-category .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
