/*
 * Upskilling Portal — styles for the courses CTA, catalog grid,
 * single course page, enroll modal and payment success page.
 *
 * Brand red is reused for accents to match the rest of the site.
 */

/* ---------- Nav CTA pill ------------------------------------------- */
.navigation li.nav-cta {
	margin-left: 6px;
}
.navigation li.nav-cta > a {
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
}
.navigation li.nav-cta .cta-pill {
	display: inline-block;
	padding: 8px 18px;
	background: #e30613;
	color: #fff !important;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .2px;
	text-transform: uppercase;
	line-height: 1;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 2px 8px rgba(227, 6, 19, .25);
}
.navigation li.nav-cta:hover .cta-pill,
.navigation li.nav-cta a:focus .cta-pill {
	background: #c10510;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(227, 6, 19, .35);
}

/* ---------- Courses catalog (archive-course.php) ------------------- */
.flt-courses-wrap {
	padding: 60px 0 90px;
	background: #f7f9fc;
}
.flt-courses-wrap .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.flt-courses-header {
	text-align: center;
	margin-bottom: 50px;
}
.flt-courses-header h1 {
	font-size: 38px;
	font-weight: 700;
	color: #0b1c39;
	margin-bottom: 12px;
}
.flt-courses-header p {
	color: #5a6477;
	font-size: 16px;
	max-width: 640px;
	margin: 0 auto;
}

.flt-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}
.flt-course-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(11, 28, 57, .08);
	transition: transform .25s ease, box-shadow .25s ease;
	display: flex;
	flex-direction: column;
}
.flt-course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(11, 28, 57, .15);
}
.flt-course-card__media {
	aspect-ratio: 16 / 9;
	background: #0b1c39 center/cover no-repeat;
	position: relative;
}
.flt-course-card__level {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, .95);
	color: #0b1c39;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	text-transform: uppercase;
}
.flt-course-card__body {
	padding: 20px 22px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.flt-course-card__cat {
	font-size: 11px;
	font-weight: 700;
	color: #e30613;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.flt-course-card__title {
	font-size: 18px;
	font-weight: 700;
	color: #0b1c39;
	margin: 0 0 8px;
	line-height: 1.3;
}
.flt-course-card__title a {
	color: inherit;
	text-decoration: none;
}
.flt-course-card__title a:hover { color: #e30613; }
.flt-course-card__subtitle {
	color: #5a6477;
	font-size: 14px;
	margin-bottom: 14px;
	flex: 1;
}
.flt-course-card__meta {
	display: flex;
	gap: 14px;
	font-size: 12px;
	color: #5a6477;
	margin-bottom: 14px;
}
.flt-course-card__meta i { color: #e30613; margin-right: 4px; }
.flt-course-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #eef1f6;
	padding-top: 14px;
	margin-top: auto;
}
.flt-course-card__price {
	font-size: 16px;
	font-weight: 700;
	color: #0b1c39;
}
.flt-course-card__price small { font-weight: 500; color: #5a6477; font-size: 11px; }
.flt-course-card__cta {
	background: #e30613;
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
}
.flt-course-card__cta:hover { background: #c10510; }

/* ---------- Empty state ------------------------------------------- */
.flt-courses-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 14px;
	color: #5a6477;
}
.flt-courses-empty h3 { color: #0b1c39; margin-bottom: 8px; }

/* ---------- Single course page ------------------------------------ */
.flt-course-single {
	padding: 50px 0 80px;
	background: #f7f9fc;
}
.flt-course-single .container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
}
@media (max-width: 900px) {
	.flt-course-single .container { grid-template-columns: 1fr; }
}
.flt-course-main { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(11, 28, 57, .08); }
.flt-course-hero {
	aspect-ratio: 21 / 9;
	background: #0b1c39 center/cover no-repeat;
}
.flt-course-content { padding: 32px; }
.flt-course-content h1 { font-size: 28px; color: #0b1c39; margin-bottom: 8px; }
.flt-course-content .subtitle { color: #5a6477; font-size: 16px; margin-bottom: 20px; }
.flt-course-content h2 {
	font-size: 20px;
	color: #0b1c39;
	margin: 32px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e30613;
	display: inline-block;
}
.flt-course-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.flt-course-skills span { background: #eef1f6; color: #0b1c39; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.flt-course-outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.flt-course-outcomes li {
	position: relative;
	padding-left: 28px;
	color: #2b3b5c;
}
.flt-course-outcomes li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 20px; height: 20px;
	background: #e30613;
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}
/* ---- Curriculum: numbered module cards with lesson rows ---------- */
.flt-course-modules {
	counter-reset: flt-module;
	margin: 0;
	padding: 0;
	list-style: none;
}
.flt-course-module {
	background: #fff;
	border: 1px solid #e4e8ef;
	border-radius: 14px;
	padding: 0;
	margin-bottom: 18px;
	counter-increment: flt-module;
	overflow: hidden;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.flt-course-module:hover {
	border-color: #c6cfdb;
	box-shadow: 0 6px 20px rgba(11, 28, 57, .08);
}
.flt-course-module h3 {
	font-size: 22px;
	font-weight: 700;
	color: #0b1c39;
	margin: 0;
	padding: 22px 24px;
	background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
	border-bottom: 2px solid #e30613;
	display: flex;
	align-items: center;
	gap: 16px;
	line-height: 1.25;
}
.flt-course-module h3::before {
	content: "Module " counter(flt-module);
	width: auto;
	height: auto;
	padding: 6px 14px;
	background: #e30613;
	color: #fff;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	flex-shrink: 0;
	box-shadow: 0 3px 10px rgba(227, 6, 19, .25);
}
.flt-course-module p {
	color: #5a6477;
	font-size: 14px;
	margin: 0;
	padding: 12px 24px 0;
	line-height: 1.5;
}
.flt-course-module ul {
	list-style: none;
	padding: 8px 24px 16px;
	margin: 0;
}
.flt-course-module ul li {
	position: relative;
	padding: 12px 0 12px 30px;
	color: #2b3b5c;
	font-size: 14px;
	line-height: 1.45;
	border-bottom: 1px dashed #eef1f6;
}
.flt-course-module ul li:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}
.flt-course-module ul li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border: 2px solid #e30613;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
}

/* ---- Instructor: prominent card with ringed avatar --------------- */
.flt-course-instructor {
	display: flex;
	gap: 28px;
	background: linear-gradient(135deg, #f7f9fc 0%, #fff 100%);
	border: 1px solid #e4e8ef;
	border-radius: 14px;
	padding: 28px;
	align-items: center;
	margin-top: 16px;
}
.flt-course-instructor img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 0 0 3px #e30613, 0 8px 22px rgba(11, 28, 57, .15);
	flex-shrink: 0;
}
.flt-course-instructor > div {
	min-width: 0;
	flex: 1;
}
.flt-course-instructor h4 {
	margin: 0 0 4px;
	color: #0b1c39;
	font-size: 20px;
	font-weight: 700;
}
.flt-course-instructor .role {
	color: #e30613;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 12px;
}
.flt-course-instructor p {
	color: #5a6477;
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
}
@media (max-width: 600px) {
	.flt-course-instructor {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 18px;
		padding: 24px 20px;
	}
}

/* ---------- Sticky enrollment sidebar ------------------------------ */
.flt-course-side {
	position: sticky;
	top: 100px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(11, 28, 57, .08);
	padding: 26px;
	height: fit-content;
}
.flt-course-side .price-block { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eef1f6; }
.flt-course-side .price-block .label { font-size: 12px; color: #5a6477; text-transform: uppercase; font-weight: 600; }
.flt-course-side .price-block .amount { font-size: 28px; font-weight: 700; color: #0b1c39; margin-top: 4px; }
.flt-course-side .price-block .amount small { font-size: 14px; color: #5a6477; font-weight: 500; display: block; margin-top: 2px; }

.flt-course-side .meta-list { list-style: none; padding: 0; margin: 0 0 20px; }
.flt-course-side .meta-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eef1f6; font-size: 13px; color: #2b3b5c; }
.flt-course-side .meta-list li:last-child { border-bottom: 0; }
.flt-course-side .meta-list li span:first-child { color: #5a6477; }
.flt-course-side .meta-list li span:last-child { font-weight: 600; }

.flt-enroll-btn {
	display: block;
	width: 100%;
	background: #e30613;
	color: #fff;
	border: 0;
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background .2s ease;
}
.flt-enroll-btn:hover { background: #c10510; }
.flt-course-side .ssl-note { text-align: center; color: #5a6477; font-size: 12px; margin-top: 12px; }
.flt-course-side .ssl-note i { color: #1a7f37; margin-right: 4px; }

/* ---------- Enroll modal ------------------------------------------- */
.flt-modal {
	position: fixed;
	inset: 0;
	background: rgba(11, 28, 57, .72);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
}
.flt-modal.is-open { display: flex; }
.flt-modal__box {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	position: relative;
}
.flt-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 22px;
	color: #5a6477;
	cursor: pointer;
}
.flt-modal__box h3 { margin: 0 0 6px; color: #0b1c39; font-size: 22px; }
.flt-modal__box .sub { color: #5a6477; font-size: 14px; margin-bottom: 18px; }

.flt-class-options { display: grid; gap: 12px; margin-bottom: 20px; }
.flt-class-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 2px solid #eef1f6;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}
.flt-class-option:hover { border-color: #c6cfdb; }
.flt-class-option input { accent-color: #e30613; }
.flt-class-option input:checked + .opt-body { color: #0b1c39; }
.flt-class-option input:checked ~ .opt-body { color: #0b1c39; }
.flt-class-option:has(input:checked) { border-color: #e30613; background: #fff5f6; }
.flt-class-option .opt-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.35;
}
.flt-class-option .opt-title {
	display: block;
	font-weight: 600;
	color: #0b1c39;
	font-size: 14px;
}
.flt-class-option .opt-desc {
	display: block;
	color: #5a6477;
	font-size: 12px;
	line-height: 1.4;
}
.flt-class-option .opt-price {
	flex-shrink: 0;
	font-weight: 700;
	color: #e30613;
	font-size: 16px;
	white-space: nowrap;
	margin-left: auto;
}

.flt-modal__box .form-row { margin-bottom: 14px; }
.flt-modal__box label { display: block; font-size: 12px; color: #0b1c39; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.flt-modal__box input[type=text],
.flt-modal__box input[type=email],
.flt-modal__box input[type=tel] {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d6dde8;
	border-radius: 8px;
	font-size: 14px;
}
.flt-modal__box .submit-row { margin-top: 18px; }
.flt-modal__box .secure-note { font-size: 11px; text-align: center; color: #5a6477; margin-top: 10px; }
.flt-modal__error { background: #fdecea; color: #a4262c; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; display: none; }
.flt-modal__error.is-shown { display: block; }

/* ---------- Payment success page ----------------------------------- */
.flt-payment-success {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7f9fc;
	padding: 60px 20px;
}
.flt-payment-success__box {
	background: #fff;
	border-radius: 16px;
	padding: 48px 36px;
	max-width: 560px;
	width: 100%;
	text-align: center;
	box-shadow: 0 6px 24px rgba(11, 28, 57, .08);
}
.flt-payment-success__icon {
	width: 72px; height: 72px;
	border-radius: 50%;
	background: #e6f7ec;
	color: #1a7f37;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	margin-bottom: 18px;
}
.flt-payment-success h1 { color: #0b1c39; margin: 0 0 8px; font-size: 26px; }
.flt-payment-success p { color: #5a6477; margin: 0 0 24px; }
.flt-receipt {
	background: #f7f9fc;
	border-radius: 10px;
	padding: 18px;
	text-align: left;
	margin: 0 0 24px;
}
.flt-receipt dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.flt-receipt dt { color: #5a6477; font-size: 12px; text-transform: uppercase; font-weight: 600; }
.flt-receipt dd { color: #0b1c39; font-size: 14px; font-weight: 600; margin: 0; text-align: right; }

.flt-payment-failed__icon { background: #fdecea; color: #a4262c; }

/* Logo block at the top of the receipt — rendered as a dark navy
   header strip so logos of ANY colour (including white-on-transparent)
   stay visible. Extends to the edges of the receipt box via negative
   margins that cancel the box's own padding, matching its rounded top
   corners. A red 4px stripe underneath ties it to the brand. */
.flt-receipt-logo {
	display: block;
	text-align: center;
	background: #0b1c39;
	border-bottom: 4px solid #e30613;
	border-radius: 16px 16px 0 0;
	margin: -48px -36px 28px;
	padding: 22px 24px;
}
.flt-receipt-logo img {
	max-height: 60px;
	width: auto;
	display: inline-block;
}
/* Tiny tip rendered only on screen to guide users to a cleaner PDF. */
.flt-print-tip {
	font-size: 11px;
	color: #5a6477;
	margin-top: 10px;
	text-align: center;
}

/* ---------- Print styles ------------------------------------------ */
/* Goal: when the visitor hits Print / Save as PDF on the receipt page,
   strip the site header / footer / nav / banner so the PDF contains
   ONLY the receipt block — branded with the Firstlincoln logo at the
   top. Classic "hide everything, show only what's needed" pattern. */
@page {
	/* Tighter margins help the receipt sit closer to the page edges
	   so the browser's auto-added URL/date strip has less room. */
	margin: 12mm;
}
@media print {
	body * { visibility: hidden; }
	.flt-payment-success,
	.flt-payment-success * { visibility: visible; }
	.flt-payment-success {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		min-height: 0;
		padding: 0;
		background: #fff !important;
	}
	.flt-payment-success__box {
		max-width: 720px;
		margin: 0 auto;
		padding: 28px 32px;
		box-shadow: none !important;
		border: 1px solid #e4e8ef;
		page-break-inside: avoid;
	}

	/* The buttons + tip are noise on a printed receipt. */
	.flt-payment-success .flt-enroll-btn,
	.flt-payment-success .flt-print-btn,
	.flt-payment-success .flt-print-tip,
	.flt-payment-success a {
		display: none !important;
	}

	.flt-receipt-logo .logo,
	.flt-receipt-logo .logo a { display: inline-block; }

	/* Browsers tend to drop background-color when printing — force the
	   key receipt accents back on so the PDF still looks branded. */
	.flt-payment-success__icon,
	.flt-receipt {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
