/* DigiClass Learner Hub
 * Brand palette:
 * #002d51 - deep navy
 * #0B548F - primary blue
 * #F5F5F5 - soft background
 * #FFFFFF - white
 */

.digiclass-login-page,
.digiclass-learner-dashboard-page {
	background: #F5F5F5;
}

.digiclass-login-page .entry-title,
.digiclass-learner-dashboard-page .entry-title {
	display: none !important;
}

.dclh-login-shell,
.dclh-dashboard-shell {
	font-family: inherit;
	color: #002d51;
}

.dclh-login-shell *,
.dclh-dashboard-shell * {
	box-sizing: border-box;
}

.dclh-login-shell {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 20px;
	background: #F5F5F5;
}

.dclh-login-card {
	width: min(100%, 480px);
	background: #FFFFFF;
	border-radius: 24px;
	padding: 38px 42px 42px;
	box-shadow: 0 18px 55px rgba(0, 45, 81, 0.10);
}

.dclh-login-heading h1,
.dclh-dashboard-shell h1,
.dclh-dashboard-shell h2,
.dclh-dashboard-shell h3 {
	margin-top: 0;
}

.dclh-login-heading h1 {
	color: #002d51;
	font-size: clamp(30px, 5vw, 42px);
	line-height: 1.1;
	margin-bottom: 10px;
}

.dclh-login-heading p {
	margin: 0 0 30px;
	color: rgba(0, 45, 81, 0.68);
}

.dclh-alert {
	border-radius: 12px;
	padding: 13px 15px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.dclh-alert-error {
	background: #F5F5F5;
	border-left: 4px solid #0B548F;
	color: #002d51;
}

.dclh-field {
	margin-bottom: 20px;
}

.dclh-field label,
.dclh-label-row label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #002d51;
	margin-bottom: 8px;
}

.dclh-label-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: baseline;
}

.dclh-label-row a,
.dclh-login-footer a,
.dclh-text-link {
	color: #0B548F;
	text-decoration: none;
	font-weight: 700;
}

.dclh-label-row a:hover,
.dclh-login-footer a:hover,
.dclh-text-link:hover {
	text-decoration: underline;
}

.dclh-field input[type="text"],
.dclh-field input[type="password"] {
	width: 100%;
	height: 52px;
	border: 1px solid rgba(0, 45, 81, 0.18);
	border-radius: 12px;
	padding: 0 15px;
	background: #FFFFFF;
	color: #002d51;
	outline: none;
	font: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.dclh-field input[type="text"]:focus,
.dclh-field input[type="password"]:focus {
	border-color: #0B548F;
	box-shadow: 0 0 0 3px rgba(11, 84, 143, 0.10);
}

.dclh-remember {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 2px 0 24px;
	font-size: 14px;
	color: rgba(0, 45, 81, 0.75);
	cursor: pointer;
}

.dclh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 999px;
	padding: 12px 22px;
	border: 2px solid transparent;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.dclh-button:hover {
	transform: translateY(-1px);
}

.dclh-button-primary {
	background: #0B548F;
	border-color: #0B548F;
	color: #FFFFFF !important;
}

.dclh-button-primary:hover {
	background: #002d51;
	border-color: #002d51;
}

.dclh-button-secondary {
	background: #FFFFFF;
	border-color: #0B548F;
	color: #0B548F !important;
}

.dclh-button-secondary:hover {
	background: #0B548F;
	color: #FFFFFF !important;
}

.dclh-button-full {
	width: 100%;
}

.dclh-login-footer {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 25px;
	font-size: 14px;
	color: rgba(0, 45, 81, 0.70);
}

/* Dashboard */
.dclh-dashboard-shell {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 48px 0 80px;
}

.dclh-dashboard-hero-card {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	background: #002d51;
	border-radius: 28px;
	padding: 34px 36px;
	margin-bottom: 22px;
	box-shadow: 0 18px 45px rgba(0, 45, 81, 0.14);
}

.dclh-dashboard-hero-card::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -90px;
	width: 260px;
	height: 260px;
	border: 46px solid rgba(255, 255, 255, 0.045);
	border-radius: 50%;
	pointer-events: none;
}

.dclh-dashboard-profile {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.dclh-dashboard-avatar {
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	display: grid;
	place-items: center;
	border-radius: 24px;
	background: #0B548F;
	color: #FFFFFF;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: .03em;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.dclh-dashboard-intro {
	min-width: 0;
}

.dclh-dashboard-status-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 7px;
}

.dclh-dashboard-status {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .70);
}

.dclh-membership-pill {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .13);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
}

.dclh-dashboard-hero-card h1 {
	color: #FFFFFF;
	font-size: clamp(30px, 4.5vw, 46px);
	line-height: 1.07;
	letter-spacing: -0.035em;
	margin: 0 0 9px;
}

.dclh-dashboard-hero-card p {
	max-width: 650px;
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .76);
}

.dclh-dashboard-account-actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.dclh-dashboard-account-actions .dclh-account-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 44px !important;
	padding: 10px 16px !important;
	border-radius: 999px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease !important;
}

.dclh-dashboard-account-actions .dclh-account-link svg {
	width: 17px !important;
	height: 17px !important;
	flex: 0 0 17px;
	fill: currentColor !important;
}

.dclh-dashboard-account-actions .dclh-account-link-primary {
	background: #FFFFFF !important;
	border: 1px solid #FFFFFF !important;
	color: #002d51 !important;
}

.dclh-dashboard-account-actions .dclh-account-link-primary:hover {
	background: #F5F5F5 !important;
	border-color: #F5F5F5 !important;
	color: #002d51 !important;
	transform: translateY(-1px);
}

.dclh-dashboard-account-actions .dclh-account-link-logout {
	background: rgba(255, 255, 255, .08) !important;
	border: 1px solid rgba(255, 255, 255, .35) !important;
	color: #FFFFFF !important;
}

.dclh-dashboard-account-actions .dclh-account-link-logout:hover {
	background: rgba(255, 255, 255, .16) !important;
	border-color: rgba(255, 255, 255, .55) !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

.dclh-eyebrow,
.dclh-path-kicker {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #0B548F;
	margin-bottom: 8px;
}

.dclh-path-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 50px;
}

.dclh-path-grid-single {
	grid-template-columns: 1fr;
}

.dclh-path-grid-single .dclh-path-card {
	min-height: 150px;
}

.dclh-path-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 176px;
	padding: 28px 66px 28px 28px;
	border-radius: 24px;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 45, 81, 0.07);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dclh-path-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 42px rgba(0, 45, 81, 0.11);
}

.dclh-path-card-primary {
	background: #0B548F;
	color: #FFFFFF;
}

.dclh-path-card-light {
	background: #FFFFFF;
	border: 1px solid rgba(0, 45, 81, .08);
	color: #002d51;
}

.dclh-path-card-primary .dclh-path-kicker {
	color: rgba(255, 255, 255, .72);
}

.dclh-path-card h2 {
	font-size: clamp(23px, 3vw, 31px);
	margin: 0 0 7px;
	letter-spacing: -0.025em;
}

.dclh-path-card-primary h2,
.dclh-path-card-primary p {
	color: #FFFFFF;
}

.dclh-path-card-light h2 {
	color: #002d51;
}

.dclh-path-card p {
	margin: 0;
	line-height: 1.55;
	opacity: .78;
}

.dclh-path-icon,
.dclh-empty-icon,
.dclh-partner-cta-icon {
	display: grid;
	place-items: center;
}

.dclh-path-icon {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .13);
	color: #FFFFFF;
}

.dclh-path-card-light .dclh-path-icon {
	background: #F5F5F5;
	color: #0B548F;
}

.dclh-path-icon svg,
.dclh-empty-icon svg,
.dclh-partner-cta-icon svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.dclh-card-arrow {
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 27px;
	font-weight: 400;
	line-height: 1;
	transition: transform .2s ease;
}

.dclh-path-card:hover .dclh-card-arrow {
	transform: translate(4px, -50%);
}

.dclh-dashboard-section {
	scroll-margin-top: 30px;
}

.dclh-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.dclh-section-heading h2 {
	color: #002d51;
	font-size: clamp(27px, 4vw, 36px);
	letter-spacing: -0.03em;
	margin: 0;
}

.dclh-section-heading .dclh-text-link {
	font-size: 14px;
	white-space: nowrap;
}

.dclh-course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.dclh-course-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid rgba(0, 45, 81, .07);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 45, 81, 0.06);
	transition: transform .2s ease, box-shadow .2s ease;
}

.dclh-course-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(0, 45, 81, 0.09);
}

.dclh-course-image {
	display: block;
	aspect-ratio: 16 / 9;
	background: #002d51;
	overflow: hidden;
	text-decoration: none !important;
}

.dclh-course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.dclh-course-card:hover .dclh-course-image img {
	transform: scale(1.025);
}

.dclh-course-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #FFFFFF;
	font-weight: 800;
	font-size: 22px;
}

.dclh-course-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 21px;
}

.dclh-course-body h3 {
	font-size: 19px;
	line-height: 1.4;
	margin: 0 0 18px;
}

.dclh-course-body h3 a {
	color: #002d51;
	text-decoration: none;
}

.dclh-progress-meta {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 700;
	color: rgba(0, 45, 81, .65);
	margin-top: auto;
	margin-bottom: 8px;
}

.dclh-progress-track {
	height: 7px;
	border-radius: 999px;
	background: #F5F5F5;
	overflow: hidden;
	margin-bottom: 18px;
}

.dclh-progress-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #0B548F;
}

.dclh-empty-state {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	background: #FFFFFF;
	border: 1px solid rgba(0, 45, 81, .07);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(0, 45, 81, 0.05);
}

.dclh-empty-state-simple {
	grid-template-columns: auto minmax(0, 1fr);
}

.dclh-empty-icon {
	width: 60px;
	height: 60px;
	border-radius: 17px;
	background: #F5F5F5;
	color: #0B548F;
}

.dclh-empty-copy h3 {
	color: #002d51;
	font-size: 21px;
	margin: 0 0 6px;
}

.dclh-empty-copy p {
	margin: 0;
	max-width: 650px;
	line-height: 1.6;
	color: rgba(0, 45, 81, .68);
}

.dclh-partner-cta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	margin-top: 48px;
	padding: 30px 32px;
	border-radius: 24px;
	background: #FFFFFF;
	border: 1px solid rgba(0, 45, 81, .08);
	box-shadow: 0 10px 30px rgba(0, 45, 81, 0.05);
}

.dclh-partner-cta-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: #F5F5F5;
	color: #0B548F;
}

.dclh-partner-cta-copy h2 {
	color: #002d51;
	font-size: clamp(22px, 3vw, 29px);
	letter-spacing: -0.02em;
	margin: 0 0 6px;
}

.dclh-partner-cta-copy p {
	margin: 0;
	line-height: 1.6;
	color: rgba(0, 45, 81, .68);
}

@media (max-width: 980px) {
	.dclh-dashboard-hero-card {
		align-items: flex-start;
		flex-direction: column;
	}

	.dclh-dashboard-account-actions {
		justify-content: flex-start;
	}

	.dclh-course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.dclh-path-grid,
	.dclh-course-grid {
		grid-template-columns: 1fr;
	}

	.dclh-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.dclh-empty-state,
	.dclh-partner-cta {
		grid-template-columns: 1fr;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.dclh-login-shell {
		padding: 34px 16px;
	}

	.dclh-login-card {
		padding: 28px 22px;
		border-radius: 18px;
	}

	.dclh-dashboard-shell {
		width: min(100% - 28px, 1180px);
		padding: 30px 0 58px;
	}

	.dclh-dashboard-hero-card {
		padding: 25px 22px;
		border-radius: 21px;
		gap: 22px;
	}

	.dclh-dashboard-profile {
		align-items: flex-start;
		gap: 15px;
	}

	.dclh-dashboard-avatar {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
		border-radius: 16px;
		font-size: 19px;
	}

	.dclh-dashboard-hero-card h1 {
		font-size: 30px;
	}

	.dclh-dashboard-account-actions {
		width: 100%;
	}

	.dclh-dashboard-account-actions a {
		flex: 1 1 auto;
		justify-content: center;
	}

	.dclh-path-card {
		align-items: flex-start;
		min-height: 0;
		padding: 22px 54px 22px 20px;
		border-radius: 19px;
	}

	.dclh-path-icon {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
		border-radius: 15px;
	}

	.dclh-path-icon svg {
		width: 23px;
		height: 23px;
	}

	.dclh-card-arrow {
		right: 20px;
	}

	.dclh-empty-state,
	.dclh-partner-cta {
		padding: 23px 20px;
		border-radius: 19px;
	}

	.dclh-label-row {
		align-items: flex-start;
	}
}

/* Protect the custom login submit button from later Elementor/theme button rules. */
.digiclass-login-page .dclh-login-card .dclh-login-form button.dclh-button.dclh-button-primary.dclh-button-full {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-width: 100% !important;
	min-height: 52px !important;
	height: auto !important;
	padding: 13px 22px !important;
	margin: 0 !important;
	border: 2px solid #0B548F !important;
	border-radius: 999px !important;
	background: #0B548F !important;
	background-color: #0B548F !important;
	color: #FFFFFF !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-indent: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.digiclass-login-page .dclh-login-card .dclh-login-form button.dclh-button.dclh-button-primary.dclh-button-full:hover,
.digiclass-login-page .dclh-login-card .dclh-login-form button.dclh-button.dclh-button-primary.dclh-button-full:focus {
	background: #002d51 !important;
	background-color: #002d51 !important;
	border-color: #002d51 !important;
	color: #FFFFFF !important;
}

/* ================================================================
   Tutor LMS visual integration
   ================================================================ */

body.tutor-lms {
	--tutor-color-primary: #0B548F;
	--tutor-color-primary-rgb: 11, 84, 143;
	--tutor-color-primary-hover: #002d51;
	--tutor-color-primary-hover-rgb: 0, 45, 81;
}

/* Branded fallback artwork for lessons without featured images. */
.dclh-branded-course-art {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	background: #002d51;
	color: #FFFFFF;
}

.dclh-branded-course-art::before {
	content: "";
	position: absolute;
	right: -9%;
	top: -28%;
	width: 48%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 28px solid rgba(255, 255, 255, .04);
	pointer-events: none;
}

.dclh-branded-course-logo {
	position: absolute;
	top: 24px;
	right: 26px;
	z-index: 2;
	display: block;
	width: min(25%, 170px) !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
}

.dclh-branded-course-copy {
	position: relative;
	z-index: 2;
	width: min(78%, 720px);
	padding: 38px 40px;
}

.dclh-branded-course-copy h2 {
	margin: 0 0 12px !important;
	color: #FFFFFF !important;
	font-size: clamp(30px, 4.8vw, 54px) !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.035em !important;
}

.dclh-branded-course-copy p {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 !important;
	color: rgba(255, 255, 255, .92) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
}

.dclh-branded-course-copy p span {
	color: rgba(255, 255, 255, .6) !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: .11em !important;
	text-transform: uppercase !important;
}

.tutor-course-thumbnail.dclh-tutor-course-thumbnail {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
	background: #002d51;
}

.tutor-course-thumbnail.dclh-tutor-course-thumbnail .dclh-branded-course-art {
	min-height: 100%;
}

/* Compact version inside the custom learner dashboard cards. */
.dclh-branded-course-art--card .dclh-branded-course-logo {
	top: 16px;
	right: 17px;
	width: min(33%, 115px) !important;
}

.dclh-branded-course-art--card .dclh-branded-course-copy {
	width: 86%;
	padding: 19px 20px;
}

.dclh-branded-course-art--card .dclh-branded-course-copy h2 {
	margin-bottom: 7px !important;
	font-size: clamp(17px, 2.2vw, 22px) !important;
	line-height: 1.16 !important;
}

.dclh-branded-course-art--card .dclh-branded-course-copy p {
	gap: 2px;
	font-size: 12px !important;
}

.dclh-branded-course-art--card .dclh-branded-course-copy p span {
	font-size: 8px !important;
}

.dclh-course-card-branded .dclh-course-body {
	padding-top: 18px;
}

/* Consistent DigiClass button shape/typography across Tutor LMS. */
body.tutor-lms .tutor-btn:not(.tutor-btn-icon):not(.tutor-iconic-btn):not(.tutor-btn-link):not(.tutor-btn-danger),
body.tutor-lms button[name="complete_course_btn"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 46px !important;
	padding: 11px 22px !important;
	border-width: 2px !important;
	border-style: solid !important;
	border-radius: 999px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}

/* Outline / ghost buttons remain secondary but use DigiClass styling. */
body.tutor-lms .tutor-btn.tutor-btn-outline-primary:not(.start-continue-retake-button),
body.tutor-lms .tutor-btn.tutor-btn-outline-secondary,
body.tutor-lms .tutor-btn.tutor-btn-ghost:not(.tutor-btn-icon) {
	background: #FFFFFF !important;
	border-color: #0B548F !important;
	color: #0B548F !important;
}

body.tutor-lms .tutor-btn.tutor-btn-outline-primary:not(.start-continue-retake-button):hover,
body.tutor-lms .tutor-btn.tutor-btn-outline-secondary:hover,
body.tutor-lms .tutor-btn.tutor-btn-ghost:not(.tutor-btn-icon):hover {
	background: #0B548F !important;
	border-color: #0B548F !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

/* Primary learning actions. */
body.tutor-lms .tutor-btn.tutor-btn-primary,
body.tutor-lms .tutor-btn.start-continue-retake-button,
body.tutor-lms .tutor-course-retake-button,
body.tutor-lms button[name="complete_course_btn"] {
	background: #0B548F !important;
	border-color: #0B548F !important;
	color: #FFFFFF !important;
}

body.tutor-lms .tutor-btn.tutor-btn-primary:hover,
body.tutor-lms .tutor-btn.start-continue-retake-button:hover,
body.tutor-lms .tutor-course-retake-button:hover,
body.tutor-lms button[name="complete_course_btn"]:hover {
	background: #002d51 !important;
	border-color: #002d51 !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

/* Main lesson action in Tutor's right-hand course card should read as a full CTA. */
body.tutor-lms .tutor-single-course-sidebar .tutor-btn-block,
body.tutor-lms .tutor-single-course-sidebar .start-continue-retake-button,
body.tutor-lms .tutor-single-course-sidebar button[name="complete_course_btn"] {
	width: 100% !important;
}

@media (max-width: 760px) {
	.dclh-branded-course-logo {
		top: 17px;
		right: 18px;
		width: min(34%, 130px) !important;
	}

	.dclh-branded-course-copy {
		width: 88%;
		padding: 25px 23px;
	}

	.dclh-branded-course-copy h2 {
		font-size: clamp(24px, 8vw, 38px) !important;
	}

	.dclh-branded-course-copy p {
		font-size: 14px !important;
	}
}

/* ================================================================
   Tutor LMS archive card cleanup (v0.4.1)
   ================================================================ */

.tutor-course-card .tutor-course-thumbnail.dclh-tutor-course-thumbnail-card {
	background: #002d51;
	overflow: hidden;
}

.tutor-course-card .tutor-course-thumbnail.dclh-tutor-course-thumbnail-card .tutor-ratio {
	background: #002d51;
}

.tutor-course-card .dclh-tutor-partner-only {
	display: flex;
	align-items: center;
	min-height: 38px;
	font-size: 14px;
	line-height: 1.35;
}

.tutor-course-card .dclh-tutor-partner-only a {
	color: #0B548F !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.tutor-course-card .dclh-tutor-partner-only a:hover {
	color: #002d51 !important;
	text-decoration: underline !important;
}


/* ================================================================
   Tutor LMS learner cleanup (v0.4.2)
   ================================================================ */

/* Reviews/ratings and wishlist are not part of the DigiClass learner journey. */
body.tutor-lms .tutor-course-details-ratings,
body.tutor-lms .tutor-course-card .tutor-ratings,
body.tutor-lms .tutor-course-list .tutor-ratings,
body.tutor-lms .tutor-frontend-dashboard-course-progress .tutor-ratings,
body.tutor-lms .tutor-dashboard-menu-reviews,
body.tutor-lms .tutor-dashboard-menu-wishlist,
body.tutor-lms .tutor-course-wishlist-btn {
	display: none !important;
}

/* Once Tutor course meta is disabled, its footer can otherwise remain as an
   empty white strip because Last Updated is already hidden on DigiClass. */
body.digiclass-tutor-lesson-page .tutor-single-course-sidebar .tutor-sidebar-card > .tutor-card-footer {
	display: none !important;
}

/* Refine Tutor's marketplace-style free-enrol card into a simple access card. */
body.digiclass-tutor-lesson-page .tutor-sidebar-card.dclh-access-card .tutor-card-body {
	padding-top: 34px !important;
	padding-bottom: 34px !important;
}

body.digiclass-tutor-lesson-page .tutor-sidebar-card .dclh-access-heading {
	color: #002d51 !important;
	font-size: 27px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}

body.digiclass-tutor-lesson-page .tutor-sidebar-card .dclh-access-note {
	margin-top: 20px !important;
	color: rgba(0, 45, 81, .62) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

body.digiclass-tutor-lesson-page .tutor-sidebar-card .tutor-enroll-course-button {
	margin-top: 24px !important;
}

/* ================================================================
   Dynamic homepage lesson slider (v0.5.1)
   Shortcode: [digiclass_lesson_slider]
   ================================================================ */

.dclh-lesson-slider,
.dclh-lesson-slider * {
	box-sizing: border-box;
}

.dclh-lesson-slider {
	position: relative;
	width: 100%;
	outline: none;
	font-family: inherit;
}

.dclh-lesson-slider-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 6px 4px 18px;
}

.dclh-lesson-slider-track {
	display: flex;
	align-items: stretch;
	gap: 24px;
	will-change: transform;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.dclh-lesson-slider-slide {
	flex: 0 0 calc((100% - 48px) / 3);
	min-width: 0;
	display: flex;
}

.dclh-home-lesson-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	padding: 22px;
	border: 1px solid rgba(0, 45, 81, .04);
	border-radius: 26px;
	background: #0B548F;
	box-shadow: 0 14px 32px rgba(0, 45, 81, .14);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease;
}

.dclh-home-lesson-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 38px rgba(0, 45, 81, .18);
}

.dclh-home-lesson-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 8.6;
	margin-bottom: 24px;
	border-radius: 18px;
	background: #FFFFFF;
	overflow: hidden;
	box-shadow: 0 7px 18px rgba(0, 45, 81, .14);
	text-decoration: none !important;
}

.dclh-home-lesson-media > img:not(.dclh-home-lesson-partner-logo) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dclh-home-lesson-media.is-partner-logo {
	padding: 28px 34px;
}

.dclh-home-lesson-partner-logo {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 76% !important;
	max-height: 105px !important;
	object-fit: contain !important;
}

.dclh-home-lesson-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	color: #FFFFFF;
}

.dclh-home-lesson-partner {
	margin-bottom: 9px;
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.dclh-home-lesson-card h3 {
	margin: 0 0 30px !important;
	font-size: clamp(23px, 2vw, 30px) !important;
	font-weight: 700 !important;
	line-height: 1.14 !important;
	letter-spacing: -.025em !important;
}

.dclh-home-lesson-card h3 a,
.dclh-home-lesson-card h3 a:hover {
	color: #FFFFFF !important;
	text-decoration: none !important;
}

.dclh-home-lesson-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin-top: auto;
	padding: 12px 22px;
	border: 2px solid #FFFFFF;
	border-radius: 999px;
	background: #FFFFFF;
	color: #0B548F !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.dclh-home-lesson-button:hover,
.dclh-home-lesson-button:focus-visible {
	transform: translateY(-1px);
	background: #002d51;
	border-color: #002d51;
	color: #FFFFFF !important;
}

.dclh-lesson-slider-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin-top: 2px;
}

.dclh-lesson-slider-dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 34px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #F5F5F5;
}

button.dclh-lesson-slider-dot {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 8px !important;
	height: 8px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(11, 84, 143, .26) !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	transition: width .2s ease, border-radius .2s ease, background .2s ease, transform .2s ease;
}

button.dclh-lesson-slider-dot:hover {
	transform: scale(1.16);
	background: rgba(11, 84, 143, .55) !important;
}

button.dclh-lesson-slider-dot.is-active {
	width: 26px !important;
	border-radius: 999px !important;
	background: #0B548F !important;
}

.dclh-lesson-slider-arrows {
	position: absolute;
	top: 46%;
	left: 14px;
	right: 14px;
	z-index: 5;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	transform: translateY(-50%);
}

button.dclh-lesson-slider-arrow {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-grid !important;
	place-items: center;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid #FFFFFF !important;
	border-radius: 50% !important;
	background: #002d51 !important;
	color: #FFFFFF !important;
	box-shadow: 0 8px 22px rgba(0, 45, 81, .28) !important;
	outline: none;
	cursor: pointer;
	pointer-events: auto;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

button.dclh-lesson-slider-arrow:hover,
button.dclh-lesson-slider-arrow:focus-visible {
	background: #0B548F !important;
	transform: scale(1.06);
	box-shadow: 0 10px 26px rgba(0, 45, 81, .34) !important;
}

button.dclh-lesson-slider-arrow:focus-visible {
	outline: 3px solid rgba(11, 84, 143, .24);
	outline-offset: 3px;
}

.dclh-lesson-slider-arrow svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.dclh-lesson-slider-arrow[hidden],
.dclh-lesson-slider-dots[hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.dclh-lesson-slider-slide {
		flex-basis: 100%;
	}

	.dclh-home-lesson-card {
		padding: 22px;
	}

	.dclh-home-lesson-card h3 {
		font-size: clamp(24px, 5vw, 31px) !important;
	}

	.dclh-lesson-slider-arrows {
		left: 12px;
		right: 12px;
	}
}

@media (max-width: 767px) {
	.dclh-lesson-slider-track {
		gap: 16px;
	}

	.dclh-home-lesson-card {
		padding: 17px;
		border-radius: 21px;
	}

	.dclh-home-lesson-media {
		margin-bottom: 20px;
		border-radius: 15px;
	}

	.dclh-home-lesson-media.is-partner-logo {
		padding: 22px 28px;
	}

	.dclh-home-lesson-card h3 {
		margin-bottom: 24px !important;
	}

	button.dclh-lesson-slider-arrow {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
		min-height: 42px !important;
	}

	.dclh-lesson-slider-arrows {
		top: 44%;
		left: 8px;
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dclh-lesson-slider-track,
	.dclh-home-lesson-card,
	.dclh-home-lesson-button,
	.dclh-lesson-slider-arrow,
	.dclh-lesson-slider-dot {
		transition: none !important;
	}
}


/* Branded password recovery states */
.dclh-alert-success {
	background: rgba(11, 84, 143, 0.08);
	border-left: 4px solid #0B548F;
	color: #002d51;
}

.dclh-login-footer-stacked {
	flex-direction: column;
	align-items: center;
	text-align: center;
}
