/* ---- Public learning-module catalogue (modules.php) -------------------------
   Loaded automatically by SiteHeader() via pageCSS(). Colours follow the home
   page "New Learning Module" block (.fct-latest-course in home.css). */

.fct-mod__intro {
	max-width: 860px;
	margin: 0 auto 35px;
}

.fct-mod__note {
	font-size: 13px;
	color: #777;
}

/* Catalogue grid */
.fct-mod__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.fct-mod__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.fct-mod__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.fct-mod__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 24px;
}

.fct-mod__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px;
}

.fct-mod__title a,
.fct-mod__title a:visited {
	color: #333;
	text-decoration: none;
}

.fct-mod__title a:hover,
.fct-mod__title a:focus {
	color: #6092a9;
}

.fct-mod__desc {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 18px;
	flex: 1 1 auto;
}

/* Time / pages / videos chips */
.fct-mod__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.fct-mod__chip {
	display: inline-block;
	background: #eef4f7;
	color: #3f6f85;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 12px;
	white-space: nowrap;
}

/* Buttons */
.fct-mod__btn,
.fct-mod__btn:link,
.fct-mod__btn:visited {
	display: inline-block;
	align-self: flex-start;
	background: #6092a9;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 12px 24px;
	border-radius: 12px;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.fct-mod__btn:hover,
.fct-mod__btn:focus {
	background: #333;
	color: #fff;
	text-decoration: none;
}

.fct-mod__btn--block {
	display: block;
	margin-bottom: 10px;
}

.fct-mod__btn--alt,
.fct-mod__btn--alt:link,
.fct-mod__btn--alt:visited {
	background: transparent;
	color: #6092a9;
	border: 2px solid #6092a9;
	padding: 10px 22px;
}

/* Detail page */
.fct-mod__back {
	font-weight: 700;
	color: #6092a9;
}

.fct-mod__banner {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 20px;
}

.fct-mod__heading {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
}

.fct-mod__description p {
	font-size: 16px;
	line-height: 1.7;
}

.fct-mod__subheading {
	font-size: 20px;
	font-weight: 700;
	margin: 30px 0 12px;
	color: #333;
}

.fct-mod__subheading .fa {
	color: #6092a9;
	margin-right: 4px;
}

.fct-mod__list {
	padding-left: 22px;
	margin-bottom: 0;
}

.fct-mod__list li {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 8px;
}

.fct-mod__cta {
	position: sticky;
	top: 110px;
	background: #f7f9fa;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-top: 4px solid #6092a9;
	border-radius: 8px;
	padding: 22px;
}

.fct-mod__cta h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
}

.fct-mod__facts {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
}

.fct-mod__facts li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 15px;
}

.fct-mod__facts .fa {
	width: 20px;
	color: #6092a9;
}

@media only screen and (max-width: 767px) {
	.fct-mod__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.fct-mod__cta {
		position: static;
	}
	.fct-mod__heading { font-size: 22px; }
}
