/**
 * e-Enrol page — course picker with search, filters, and admin-editable cards
 */

.eenrol-page {
	position: relative;
	background-color: #ffffff;
	background-image: url('../img/page-bg.png');
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 50% auto;
	width: 100%;
	padding-bottom: 0;
}

@media (max-width: 1024px) {
	.eenrol-page {
		background-size: 60% auto;
	}
}

@media (max-width: 768px) {
	.eenrol-page {
		background-size: 80% auto;
	}
}

.eenrol-wrap {
	width: 100%;
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px);
	box-sizing: border-box;
	position: relative;
	z-index: 2;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Hero */
.eenrol-hero {
	padding: 64px 0 8px;
	background: transparent;
	color: inherit;
}

@media (max-width: 1024px) {
	.eenrol-hero {
		padding: 48px 0 8px;
	}
}

@media (max-width: 768px) {
	.eenrol-hero {
		padding: 32px 0 8px;
	}
}

.eenrol-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	font-family: 'Inter', 'Open Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #64748B;
}

.eenrol-breadcrumb__home,
.eenrol-breadcrumb__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748B;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	transition: color 0.15s ease;
}

.eenrol-breadcrumb__home:hover,
.eenrol-breadcrumb__link:hover {
	color: #03287C;
}

.eenrol-breadcrumb__sep {
	color: #CBD5E1;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.eenrol-breadcrumb__current {
	color: #03287C;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
}

.eenrol-hero__content {
	max-width: 720px;
}

.eenrol-hero__title {
	margin: 0 0 14px;
	font-family: 'Hanken Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: clamp(32px, 4.5vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #0a1f57;
	text-transform: uppercase;
}

.eenrol-hero__lead {
	margin: 0;
	font-family: 'Inter', 'Open Sans', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1e293b;
}

/* Main */
.eenrol-main {
	position: relative;
	padding: 28px 0 56px;
	background: transparent;
	overflow: hidden;
}

.eenrol-main__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.eenrol-main__bar {
	position: absolute;
	display: block;
	border-radius: 4px;
}

.eenrol-main__bar--blue {
	left: -80px;
	bottom: 120px;
	width: 420px;
	height: 48px;
	background: #01319d;
	transform: rotate(-8deg);
	opacity: 0.9;
}

.eenrol-main__bar--red {
	right: -100px;
	bottom: 80px;
	width: 480px;
	height: 48px;
	background: #e20004;
	transform: rotate(-8deg);
	opacity: 0.85;
}

/* Controls: search + filters */
.eenrol-controls {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 28px;
}

.eenrol-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
}

.eenrol-search:focus-within {
	border-color: #01319d;
	box-shadow: 0 0 0 3px rgba(1, 49, 157, 0.12);
}

.eenrol-search__icon {
	flex-shrink: 0;
	color: #94a3b8;
}

.eenrol-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-family: 'Inter', 'Open Sans', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #0f172a;
	padding: 0;
	margin: 0;
}

.eenrol-search__input::placeholder {
	color: #94a3b8;
}

.eenrol-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.eenrol-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #f1f5f9;
	color: #334155;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eenrol-filter:hover {
	border-color: #cbd5e1;
	background: #e2e8f0;
}

.eenrol-filter.is-on {
	background: #0a1f57;
	border-color: #0a1f57;
	color: #fff;
}

.eenrol-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	font-weight: 600;
	opacity: 0.85;
}

.eenrol-filter.is-on .eenrol-filter__count {
	opacity: 1;
}

.eenrol-select-wrap {
	display: none;
	position: relative;
	width: 100%;
}

.eenrol-select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	padding: 12px 44px 12px 16px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	cursor: pointer;
	box-sizing: border-box;
}

.eenrol-select__chev {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #64748b;
}

/* Card grid */
.eenrol-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

/* Login card (first grid cell) */
.eenrol-login {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 100%;
	padding: 28px 24px;
	border-radius: 16px;
	background: #012f96;
	color: #fff;
	box-sizing: border-box;
}

.eenrol-login__copy {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	font-family: 'Inter', 'Open Sans', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #fff;
}

.eenrol-login__title {
	display: block;
	font-family: 'Hanken Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.35;
	color: #fff;
	margin: 0;
}

.eenrol-login__text {
	display: block;
	margin: 0;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.eenrol-login__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	padding: 12px 20px;
	border-radius: 999px;
	background: #fff;
	color: #012f96 !important;
	font-family: 'Inter', 'Hanken Grotesk', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.eenrol-login__btn:hover {
	background: #eff2fb;
	color: #07102c !important;
}

.eenrol-login__btn svg {
	flex-shrink: 0;
}

.eenrol-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-height: 100%;
	padding: 24px 22px 22px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e7e3de;
	box-shadow: 0 8px 24px -16px rgba(10, 31, 87, 0.28);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.eenrol-card[hidden] {
	display: none !important;
}

.eenrol-card:hover {
	border-color: #c9d4ef;
	box-shadow: 0 12px 28px -14px rgba(11, 57, 161, 0.28);
}

.eenrol-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #b1c6f6;
	background: #eff2fb;
	color: #03287c;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.eenrol-card__badge--motorcar-courses {
	background: #eff2fb;
	border-color: #b1c6f6;
	color: #03287c;
}

.eenrol-card__badge--motorcycle-courses {
	background: #eff8f3;
	border-color: #a7d9c0;
	color: #0b6b3a;
}

.eenrol-card__badge--heavy-vehicle-courses {
	background: #fff4ec;
	border-color: #f0c3a0;
	color: #9a4a12;
}

.eenrol-card__badge--other-courses {
	background: #f4f2ff;
	border-color: #c9c0f0;
	color: #4b3d9b;
}

.eenrol-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	width: 100%;
}

.eenrol-card__title {
	margin: 0;
	font-family: 'Hanken Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
	color: #0a1f57;
}

.eenrol-card__desc {
	margin: 0;
	font-family: 'Inter', 'Open Sans', sans-serif;
	font-size: 14.5px;
	line-height: 1.55;
	color: #1e293b;
}

.eenrol-card__guide {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #dbe6ff;
	color: #0a1f57;
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
	width: fit-content;
}

.eenrol-card__guide:hover {
	background: #c9d8ff;
	color: #07102c;
}

.eenrol-card__guide-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #0a1f57;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	font-style: normal;
	flex-shrink: 0;
}

.eenrol-card__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: auto;
}

.eenrol-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: #e30d11;
	color: #fff !important;
	font-family: 'Inter', 'Hanken Grotesk', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.eenrol-card__cta:hover {
	background: #b40b0e;
	color: #fff !important;
}

.eenrol-card__cta svg,
.eenrol-card__link svg {
	flex-shrink: 0;
}

.eenrol-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	color: #0a1f57;
	text-decoration: none;
}

.eenrol-card__link:hover {
	color: #e30d11;
}

/* View more */
.eenrol-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.eenrol-more-wrap[hidden] {
	display: none !important;
}

.eenrol-view-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #0a1f57;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eenrol-view-more:hover {
	border-color: #0a1f57;
	background: #f8fafc;
}

/* CTA — same rail as .eenrol-wrap; content stacked & vertically centered */
.eenrol-cta {
	width: 100%;
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px) 64px;
	box-sizing: border-box;
}

.eenrol-cta .ssdc-cta-banner-container,
.eenrol-cta .container {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

.eenrol-cta .ssdc-cta-banner,
.eenrol-cta .ssdc-faq-banner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	min-height: 240px;
	height: auto;
	margin: 0 !important;
	padding: 40px clamp(28px, 4vw, 56px) !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-size: cover !important;
	background-position: right center !important;
	background-repeat: no-repeat !important;
}

.eenrol-cta .ssdc-cta-banner__copy,
.eenrol-cta .ssdc-faq-banner__copy {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	align-self: center !important;
	flex: 0 1 auto !important;
	height: auto !important;
	min-height: 0 !important;
	width: auto !important;
	max-width: 640px !important;
	margin: 0 !important;
	gap: 0 !important;
}

.eenrol-cta .ssdc-cta-banner__title,
.eenrol-cta .ssdc-faq-banner__title {
	margin: 0 0 8px !important;
	text-transform: uppercase;
}

.eenrol-cta .ssdc-cta-banner__subtitle,
.eenrol-cta .ssdc-faq-banner__text {
	margin: 0 0 24px !important;
}

.eenrol-cta .ssdc-cta-banner__actions,
.eenrol-cta .ssdc-faq-banner__actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 14px !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
}

@media (max-width: 991px) {
	.eenrol-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eenrol-main__bar--blue,
	.eenrol-main__bar--red {
		opacity: 0.35;
	}
}

@media (max-width: 767px) {
	.eenrol-wrap {
		padding: 0 var(--ssdc-gutter, 16px);
	}

	.eenrol-hero {
		padding: 28px 0 4px;
	}

	.eenrol-main {
		padding: 20px 0 40px;
	}

	.eenrol-main__decor {
		display: none;
	}

	.eenrol-filters {
		display: none;
	}

	.eenrol-select-wrap {
		display: block;
	}

	.eenrol-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.eenrol-login {
		padding: 24px 20px;
	}

	.eenrol-login__btn {
		align-self: stretch;
		width: 100%;
	}

	.eenrol-card__actions {
		flex-wrap: nowrap;
	}

	.eenrol-card__cta {
		flex-shrink: 0;
	}

	.eenrol-page .eenrol-cta {
		max-width: none !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
	}

	.eenrol-page .eenrol-cta .ssdc-cta-banner-container,
	.eenrol-page .eenrol-cta .container {
		max-width: none !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.eenrol-page .eenrol-cta .ssdc-cta-banner,
	.eenrol-page .eenrol-cta .ssdc-faq-banner {
		border-radius: 0 !important;
		margin: 0 !important;
		padding: 40px 20px !important;
		box-shadow: none !important;
		width: 100% !important;
		max-width: 100% !important;
		min-height: 0 !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
	}

	.eenrol-page .eenrol-cta .ssdc-cta-banner__copy,
	.eenrol-page .eenrol-cta .ssdc-faq-banner__copy {
		align-self: center !important;
		height: auto !important;
		flex: 0 1 auto !important;
	}

	.eenrol-page {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
}

@media (max-width: 640px) {
	.eenrol-hero__title {
		font-size: clamp(26px, 7vw, 34px);
	}

	.eenrol-card__title {
		font-size: 20px;
	}
}
