/* ==========================================================================
   Home page UX enhancements (all screen sizes).
   Companion to home-responsive.css, which only handles mobile/tablet
   breakpoints -- these rules apply everywhere. Reuses the same design
   tokens already established on the online-course listing page
   (online-course-enhancements.css): primary blue #2D368F, accent tint
   #EEF0FB, border #CBD2D9, pill radius 23px, card radius 12px, and the
   rgba(15,20,60,*) shadow family.
   ========================================================================== */

.course-enrollment-closed-badge {
	color: #8a8a8a;
	font-size: 14px;
	font-weight: 600;
}

/* ---------- Hero sizing ----------
   Banner <img> keeps the full artwork (no cover crop). Overlay title,
   description, and CTAs sit on top and stay put while slides rotate. */

.home-page {
	--lms-navy: #2D368F;
	--lms-ink: #0f172a;
	--lms-muted: #64748b;
	--lms-line: #e2e8f0;
	--lms-radius: 12px;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.home-page .online-course-section {
	padding: 32px 0 0 !important;
	margin-top: 0 !important;
}

.home-page .online-course-section.home-schools {
	padding-bottom: 40px !important;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.home-hero-wrap {
	position: relative;
	overflow: hidden;
	height: auto;
	min-height: 0;
	padding: 0 !important;
	background: #0b1a4a;
}

.home-hero-carousel,
.home-hero-carousel .owl-stage-outer,
.home-hero-carousel .owl-stage,
.home-hero-carousel .owl-item,
.home-hero-carousel .item {
	height: auto;
	min-height: 0;
}

.home-hero-slide-link {
	display: block;
	line-height: 0;
	color: inherit;
	text-decoration: none;
}

.home-hero-slide-link:hover,
.home-hero-slide-link:focus {
	color: inherit;
	text-decoration: none;
}

.home-hero-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.home-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 36px 0 56px;
	pointer-events: none;
	text-align: left;
}

.home-hero-overlay .container {
	width: 100%;
}

.home-hero-overlay .home-banner-row {
	margin-left: 72px;
	text-align: left;
}

.home-hero-title {
	margin: 0;
	color: #fff;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.home-hero-title__mark {
	color: #6BB6FF;
	font-size: 1.18em;
	font-weight: 700;
}

.home-hero-title__rest {
	color: #fff;
}

.home-hero-desc {
	max-width: 560px;
	margin: 12px 0 0;
	color: #fff;
	font-size: 15px;
	line-height: 1.65;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.home-hero-overlay .home-hero-cta {
	pointer-events: auto;
	justify-content: flex-start;
}

.home-hero-cta {
	margin-top: 22px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
}

.home-hero-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 24px;
	border-radius: 23px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.home-hero-cta__btn--solid {
	background: #2D368F;
	color: #fff;
	box-shadow: 0 4px 14px rgba(15, 20, 60, 0.25);
}

.home-hero-cta__btn--solid:hover,
.home-hero-cta__btn--solid:focus {
	background: #232a70;
	color: #fff;
	transform: translateY(-1px);
}

.home-hero-cta__btn--outline {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.home-hero-cta__btn--outline:hover,
.home-hero-cta__btn--outline:focus {
	background: #fff;
	color: #2D368F;
	transform: translateY(-1px);
}

.home-hero-carousel .owl-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 4;
	margin: 0 !important;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.home-hero-carousel .owl-dots .owl-dot {
	pointer-events: auto;
	line-height: 0;
}

.home-hero-carousel .owl-dots .owl-dot span {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.home-hero-carousel .owl-dots .owl-dot.active span {
	width: 22px;
	border-radius: 4px;
	background: #2D368F;
}

@media screen and (max-width: 992px) {
	.home-hero-overlay {
		padding: 18px 0 48px;
	}

	.home-hero-overlay .home-banner-row {
		margin-left: 0;
	}

	.home-hero-title {
		font-size: 28px;
	}
}

/* ---------- Partner schools strip ---------- */

.home-partners-strip {
	margin-top: 0;
	padding: 16px 0;
	background: #F7F8FC;
}

.home-partners-strip__label {
	text-align: center;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6B7280;
}

.home-partners-strip .item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-partners-strip__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	padding: 6px 14px;
	filter: grayscale(0.15);
	opacity: 0.9;
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.home-partners-strip__logo:hover {
	opacity: 1;
	filter: none;
}

.home-partners-strip__logo img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	object-fit: contain;
}

.home-partners-strip .partners-carousel-rail {
	position: relative;
}

/* ---------- Section titles / more ---------- */

.home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
}

.home-section-head__copy {
	min-width: 0;
	flex: 1 1 auto;
}

.home-section-head__more {
	flex: none;
	min-height: 36px;
	padding: 0 14px;
	font-size: 13px;
}

.home-section-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--lms-ink);
	line-height: 1.25;
	text-align: left;
}

.home-section-subtitle {
	color: #6B7280;
	font-size: 14px;
	max-width: 560px;
	margin: 4px 0 0;
	line-height: 1.5;
	text-align: left;
}

.home-section-more {
	display: none;
}

.home-empty-state {
	text-align: center;
	padding: 24px 16px;
	color: #6B7280;
	font-size: 15px;
	background: #F7F8FC;
	border-radius: 12px;
	margin: 0;
}

/* ---------- Category chips ---------- */

.home-cat-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.home-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 280px;
	min-height: 52px;
	padding: 6px 14px 6px 6px;
	background: #fff;
	border: 1px solid var(--lms-line, #e2e8f0);
	border-radius: 12px;
	color: var(--lms-ink, #0f172a);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-cat-chip:hover,
.home-cat-chip:focus {
	border-color: #c9d0e8;
	color: var(--lms-navy, #2D368F);
	text-decoration: none;
}

.home-cat-chip__logo {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #eef0fb;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.home-cat-chip__logo img,
.home-cat-chip img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	display: block;
}

.home-cat-chip__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Instructors ---------- */

.home-instructor-rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.home-page .lms-instructor-card {
	margin: 0;
	min-height: 0;
	padding: 14px;
}

.home-page .lms-instructor-card__bio,
.home-page .lms-instructor-card__org {
	display: none;
}

.home-page .lms-instructor-card__qualification {
	-webkit-line-clamp: 1;
	margin-bottom: 12px;
}

/* ---------- Training school cards ---------- */

.home-school-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 0;
}

.home-school-grid .lms-org-card {
	height: 100%;
}

.home-school-grid .lms-org-card__name {
	font-size: 16px;
}

.home-school-grid .lms-org-card__location {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media screen and (max-width: 1024px) {
	.home-school-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-instructor-rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Become + About band ---------- */

.home-cta-band {
	background: #eef0fb;
	padding: 28px 0 !important;
	margin: 0;
}

.home-cta-band .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.home-cta-band__copy {
	min-width: 0;
	flex: 1 1 auto;
}

.home-cta-band__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--lms-ink);
	letter-spacing: -0.02em;
}

.home-cta-band__desc {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--lms-muted);
	max-width: 520px;
}

.home-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: none;
}

/* ---------- Navy owl chevrons ---------- */

.home-page .course-card-carousel,
.home-partners-strip .recommend-company-carousel {
	position: relative;
}

.home-page .owl-nav {
	margin: 0;
}

.home-page .owl-nav .owl-prev,
.home-page .owl-nav .owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px !important;
	height: 36px !important;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #2D368F !important;
	color: #fff !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
	font-size: 20px;
	line-height: 1;
}

.home-page .owl-nav .owl-prev {
	left: -6px;
}

.home-page .owl-nav .owl-next {
	right: -6px;
}

.home-page .owl-nav .owl-prev:hover,
.home-page .owl-nav .owl-next:hover,
.home-page .owl-nav .owl-prev:focus,
.home-page .owl-nav .owl-next:focus {
	background: #232a70 !important;
	color: #fff !important;
}

.home-page .owl-nav i {
	font-size: 20px;
	line-height: 1;
}

.home-page .owl-nav .disabled {
	opacity: 0.35;
}

/* ---------- Horizontal rails (categories, instructors on phones) ----------
   overflow-x:auto is what makes them scrollable; hiding the scrollbar
   itself just keeps the swipe-to-browse gesture from looking like a
   half-finished desktop table. */

.opening-course-grid,
.instructor-rail {
	scrollbar-width: none;
}

.opening-course-grid::-webkit-scrollbar,
.instructor-rail::-webkit-scrollbar {
	display: none;
}

/* ---------- Empty states ---------- */

.home-empty-state {
	text-align: center;
	padding: 24px 16px;
	color: #6B7280;
	font-size: 15px;
	background: #F7F8FC;
	border-radius: 12px;
	margin: 0;
}

/* ---------- Online classes course card --------------------------------
   Same "lms-course-card" component used on onlineCourse.html /
   onlineCourseDetail.html / the instructor profile course list
   (online-course-enhancements.css / instructor-premium.css), reproduced
   here with hard-coded fallback values so this page doesn't need to load
   the whole catalog stylesheet or wrap in .lms-catalog just for one card
   component. Keep this in sync with those two if the card design changes. */

.lms-course-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--lms-line, #e2e8f0);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: auto;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lms-course-card:not(.enrollment-closed):hover {
	border-color: #c9d0e8;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.lms-course-card.enrollment-closed {
	opacity: 1;
	background: #fbfcfe;
}

.lms-course-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	background: #eef0fb;
	height: 160px;
	max-height: none;
}

.lms-course-card__media img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center;
	display: block;
}

.home-page .course-card-carousel .item {
	padding: 0;
}

.home-page .course-card-carousel .owl-item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center;
}

.lms-course-card__placeholder {
	display: none;
	position: absolute;
	inset: 0;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	padding: 14px 16px;
	background: #2D368F;
	color: #fff;
}

.lms-course-card__media.is-placeholder .lms-course-card__placeholder {
	display: flex;
}

.lms-course-card__placeholder-cat {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.85;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lms-course-card__placeholder-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lms-course-card__price {
	position: static;
	flex: 0 0 auto;
	margin-top: 2px;
	max-width: 46%;
	background: #fff;
	color: var(--lms-navy, #2D368F);
	border: 1px solid #c9d0e8;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lms-course-card__price.is-free {
	background: #ecfdf3;
	border-color: #bbf7d0;
	color: #166534;
}

.lms-course-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.lms-course-card__category {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--lms-navy, #2D368F);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lms-course-card__heading {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
}

.lms-course-card__heading .lms-course-card__title {
	flex: 1 1 auto;
	margin: 0;
	min-width: 0;
}

.lms-course-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

.lms-course-card__title a {
	color: var(--lms-ink, #0f172a);
}

.lms-course-card__title a:hover {
	color: var(--lms-navy, #2D368F);
}

.lms-course-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--lms-muted, #64748b);
	margin-bottom: 0;
	line-height: 1.4;
}

.lms-course-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lms-course-card__meta-item i {
	flex-shrink: 0;
	font-size: 14px;
	color: #94a3b8;
}

.lms-course-card__meta a {
	color: #475569;
}

.lms-course-card__meta a:hover {
	color: var(--lms-navy, #2D368F);
}

.lms-course-card__actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--lms-line, #e2e8f0);
}

.home-page .lms-course-card__actions .lms-btn {
	min-height: 36px;
	padding: 0 14px;
	font-size: 13px;
	border-radius: 8px;
	box-shadow: none;
	flex: 0 0 auto;
}

.lms-course-card__details {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--lms-navy, #2D368F);
	text-decoration: none;
	line-height: 1.3;
}

.lms-course-card__details:hover,
.lms-course-card__details:focus {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lms-btn--primary {
	background: var(--lms-navy, #2D368F);
	color: #fff;
	box-shadow: 0 8px 18px rgba(45, 54, 143, 0.28);
}

.lms-btn--primary:hover,
.lms-btn--primary:focus {
	background: #232a70;
	color: #fff;
	transform: translateY(-1px);
}

.lms-btn--ghost {
	background: #fff;
	border-color: #e2e8f0;
	color: var(--lms-navy, #2D368F);
}

.lms-btn--ghost:hover,
.lms-btn--ghost:focus {
	border-color: var(--lms-navy, #2D368F);
	background: #eef0fb;
	color: var(--lms-navy, #2D368F);
}

@media (prefers-reduced-motion: reduce) {
	.home-page * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
