/*
 * Single course page: content column plus info sidebar, mirroring the old
 * site's 9/3 split. Reuses the .fc-banner hero from featured-courses.css.
 */

.fc-course {
	--teal: #0d9488;
	--teal-dark: #0f766e;
	--navy: #10263c;
	--ink: #0f2942;
	--slate-500: #64748b;
	--slate-600: #475569;
	--mist: #e5eaf0;
}

/* Hero extras ------------------------------------------------------------- */
.fc-course-facts {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.5rem;
}

.fc-course-fact {
	display: flex;
	flex-direction: column;
	gap: .125rem;
	padding: .5rem .875rem;
	border: 1px solid rgba( 255, 255, 255, .22 );
	border-radius: .75rem;
	background: rgba( 255, 255, 255, .12 );
	backdrop-filter: blur( 10px );
}

.fc-course-fact__label {
	color: rgba( 255, 255, 255, .7 );
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fc-course-fact__value {
	color: #fff;
	font-size: .9375rem;
	font-weight: 600;
}

.fc-course-cta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.75rem;
}

/* Buttons ----------------------------------------------------------------- */
.fc-course .fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: .625rem;
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
	transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}

.fc-course .fc-btn:hover {
	transform: translateY( -2px );
}

.fc-course .fc-btn--solid {
	background: var( --teal );
	color: #fff;
}

.fc-course .fc-btn--solid:hover {
	background: var( --teal-dark );
	color: #fff;
}

.fc-course .fc-btn--ghost {
	border-color: rgba( 255, 255, 255, .5 );
	color: #fff;
}

.fc-course .fc-btn--ghost:hover {
	background: rgba( 255, 255, 255, .16 );
	color: #fff;
}

.fc-course .fc-btn--outline {
	border-color: var( --teal );
	color: var( --teal );
}

.fc-course .fc-btn--outline:hover {
	background: rgba( 13, 148, 136, .08 );
	color: var( --teal-dark );
}

.fc-course .fc-btn--block {
	width: 100%;
}

/* Layout ------------------------------------------------------------------ */
.fc-course-layout {
	display: grid;
	gap: 2.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

@media (min-width: 1024px) {
	.fc-course-layout {
		grid-template-columns: minmax( 0, 1fr ) 20rem;
		align-items: start;
	}
}

/* Prose ------------------------------------------------------------------- */
.fc-prose {
	color: var( --slate-600 );
	font-size: 1rem;
	line-height: 1.75;
}

.fc-prose > *:first-child {
	margin-top: 0;
}

.fc-prose h2,
.fc-prose h3,
.fc-prose h4 {
	margin: 2rem 0 .75rem;
	color: var( --ink );
	font-weight: 700;
	line-height: 1.3;
}

.fc-prose h2 { font-size: 1.5rem; }
.fc-prose h3 { font-size: 1.25rem; }
.fc-prose h4 { font-size: 1.0625rem; }

.fc-prose p,
.fc-prose ul,
.fc-prose ol {
	margin: 0 0 1rem;
}

.fc-prose ul,
.fc-prose ol {
	padding-left: 1.25rem;
}

.fc-prose li {
	margin-bottom: .375rem;
}

.fc-prose a {
	color: var( --teal );
	text-decoration: underline;
	text-underline-offset: .15em;
}

.fc-prose img {
	max-width: 100%;
	height: auto;
	border-radius: .75rem;
}

.fc-prose table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: .9375rem;
}

.fc-prose th,
.fc-prose td {
	padding: .625rem .75rem;
	border: 1px solid var( --mist );
	text-align: left;
	vertical-align: top;
}

.fc-prose thead th {
	background: #f6f9fa;
	color: var( --ink );
	font-weight: 600;
}

/* Wide tables scroll inside the column rather than stretching the page. */
.fc-course-main .fc-prose {
	overflow-x: auto;
}

/* Accordion --------------------------------------------------------------- */
.fc-course-sections {
	margin-top: 2.5rem;
	display: grid;
	gap: .75rem;
}

.fc-accordion {
	border: 1px solid var( --mist );
	border-radius: 1rem;
	background: #fff;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}

.fc-accordion[open] {
	border-color: rgba( 13, 148, 136, .35 );
	box-shadow: 0 8px 24px -12px rgba( 15, 41, 66, .18 );
}

.fc-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	color: var( --ink );
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	transition: background-color .2s, color .2s;
}

/* Safari still paints the default disclosure triangle without this. */
.fc-accordion__summary::-webkit-details-marker {
	display: none;
}

.fc-accordion__summary:hover {
	background: #f6f9fa;
	color: var( --teal );
}

.fc-accordion__summary:focus-visible {
	outline: 2px solid var( --teal );
	outline-offset: -2px;
}

.fc-accordion__chevron {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	color: var( --teal );
	transition: transform .2s;
}

.fc-accordion[open] .fc-accordion__chevron {
	transform: rotate( 180deg );
}

.fc-accordion__body {
	padding: 0 1.25rem 1.25rem;
	border-top: 1px solid var( --mist );
	padding-top: 1.25rem;
}

/* Content that sits below the accordions. */
.fc-course-outro {
	margin-top: 2.5rem;
}

/* Sidebar ----------------------------------------------------------------- */
.fc-course-aside__inner {
	display: grid;
	gap: .75rem;
}

@media (min-width: 1024px) {
	.fc-course-aside__inner {
		position: sticky;
		top: 7rem;
	}
}

.fc-info-card {
	padding: 1.25rem;
	border: 1px solid var( --mist );
	border-radius: 1rem;
	background: #fff;
}

.fc-course .fc-info-card__title {
	margin: 0 0 .75rem;
	color: var( --teal );
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.fc-info-card__lead {
	margin: 0;
	color: var( --ink );
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
}

.fc-info-card__list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var( --slate-600 );
	font-size: .9375rem;
	line-height: 1.55;
}

.fc-info-card__list li + li {
	margin-top: .625rem;
	padding-top: .625rem;
	border-top: 1px solid #f1f5f9;
}

/* NRT + AQF badges carried over from the previous theme's course sidebar. */
.fc-info-card__badges {
	display: block;
	width: 100%;
	max-width: 160px;
	height: auto;
	margin: 1.25rem auto 0;
}

.fc-info-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.fc-course .fc-info-card__chips a {
	display: inline-flex;
	padding: .3125rem .75rem;
	border: 1px solid var( --mist );
	border-radius: 9999px;
	color: var( --slate-600 );
	font-size: .8125rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .2s, background-color .2s, color .2s;
}

.fc-course .fc-info-card__chips a:hover {
	border-color: var( --teal );
	background: rgba( 13, 148, 136, .08 );
	color: var( --teal );
}

@media (prefers-reduced-motion: reduce) {
	.fc-course .fc-btn:hover {
		transform: none;
	}
}
