/* Reusable LifterLMS single-course hero. */
.magpie-course-template,
.magpie-course-template__content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.magpie-single-course-content {
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
}

.magpie-single-course-content > .llms-meta-info,
.magpie-single-course-content > .llms-instructor-info {
	display: none;
}

.magpie-single-course-progress {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid #d4d4d4;
	border-top: 6px solid var(--e-global-color-49fd7f9, #ffd628);
	border-radius: 4px;
	background: #f7f7f7;
}

.magpie-single-course-progress .llms-course-progress {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px 28px;
	max-width: none;
	margin: 0;
	text-align: left;
}

.magpie-single-course-progress .llms-progress {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	height: auto;
	margin: 0;
}

.magpie-single-course-progress .llms-progress-bar {
	order: 1;
	overflow: hidden;
	height: 10px;
	top: auto;
	border-radius: 999px;
	background: #dedede;
}

.magpie-single-course-progress .progress-bar-complete {
	height: 100%;
	border-radius: inherit;
	background: #4d72d7;
}

.magpie-single-course-progress .progress__indicator {
	order: 2;
	height: auto;
	margin: 0;
	color: #1e1b10;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.magpie-single-course-progress .llms-course-continue-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 48px;
	box-sizing: border-box;
	padding: 0 22px;
	border: 1px solid #4d4d4d;
	border-radius: 2px;
	background: #4d4d4d;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease;
}

.magpie-single-course-progress .llms-course-continue-button:hover,
.magpie-single-course-progress .llms-course-continue-button:focus-visible {
	border-color: #1e1b10;
	background: #1e1b10;
	color: #fff !important;
}

.magpie-single-course-progress .llms-course-continue-button:focus-visible {
	outline: 3px solid #4d72d7;
	outline-offset: 3px;
}

.magpie-single-course-progress .llms-course-complete-text {
	margin: 0;
	font-weight: 700;
}

/* The custom Course Plan above replaces LifterLMS's default syllabus output. */
.magpie-single-course-content .llms-syllabus-wrapper {
	display: none;
}

.magpie-single-course-hero {
	box-sizing: border-box;
	margin: 0 0 64px;
	padding: clamp(24px, 4vw, 64px);
	background: #f7f7f7;
}

.magpie-single-course-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
	align-items: center;
	gap: clamp(40px, 8vw, 144px);
	max-width: 1440px;
	margin: 0 auto;
}

.magpie-single-course-hero__content {
	padding: clamp(8px, 3vw, 48px) 0;
}

.magpie-single-course-hero__breadcrumbs,
.magpie-single-course-hero__meta,
.magpie-single-course-hero__categories {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	color: #1e1b10;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.4;
	text-transform: uppercase;
}

.magpie-single-course-hero__breadcrumbs a,
.magpie-single-course-hero__categories a {
	color: inherit;
	text-decoration: none !important;
}

.magpie-single-course-hero__breadcrumbs a:hover,
.magpie-single-course-hero__breadcrumbs a:focus-visible,
.magpie-single-course-hero__categories a:hover,
.magpie-single-course-hero__categories a:focus-visible {
	color: #8e7610;
	text-decoration: none !important;
}

.magpie-single-course-hero__categories {
	margin-bottom: 14px;
	color: #536466;
}

.magpie-single-course-hero__meta {
	gap: 18px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.magpie-single-course-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.magpie-single-course-hero__meta-item svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.magpie-single-course-hero__title {
	max-width: 720px;
	margin: 0 0 18px;
	color: #1e1b10;
	font-size: clamp(38px, 4vw, 58px);
	line-height: 1.08;
}

.magpie-single-course-hero__intro {
	max-width: 660px;
	margin: 0 0 24px;
	color: #2c2a18;
	font-size: 17px;
	line-height: 1.6;
}

.magpie-single-course-hero__intro p {
	margin: 0;
}

.magpie-single-course-hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid #666;
	border-radius: 2px;
	background: #666;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.magpie-single-course-hero__cta:hover,
.magpie-single-course-hero__cta:focus-visible {
	border-color: #4d4d4d;
	background: #4d4d4d;
	color: #fff !important;
	text-decoration: none !important;
}

.magpie-single-course-hero__media {
	position: relative;
	isolation: isolate;
	aspect-ratio: 5 / 4;
	background: #e5eceb;
}

.magpie-single-course-hero__media::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--e-global-color-49fd7f9, #ffd628);
	content: "";
	transform: translate(-20px, 20px);
}

.magpie-single-course-hero__image,
.magpie-single-course-hero__placeholder {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

.magpie-single-course-hero__placeholder {
	background: linear-gradient(135deg, #dcebea, #f5f8f7);
}

.magpie-single-course-details {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
}

.magpie-single-course-details__inner {
	display: grid;
	grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}

.magpie-single-course-details h2,
.magpie-single-course-details h3 {
	margin: 0;
	color: #1e1b10;
	font-weight: 700;
}

.magpie-single-course-details h2 {
	font-size: clamp(24px, 2vw, 32px);
	line-height: 1.2;
}

.magpie-single-course-details h3 {
	font-size: 18px;
	line-height: 1.25;
}

.magpie-single-course-details__copy {
	margin-top: 20px;
	color: #2c2a18;
	font-size: 16px;
	line-height: 1.55;
}

.magpie-single-course-details__copy > :first-child { margin-top: 0; }
.magpie-single-course-details__copy > :last-child { margin-bottom: 0; }

.magpie-single-course-details__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.magpie-single-course-details__card {
	min-height: 230px;
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	background: #fff;
}

.magpie-single-course-details__icon {
	display: block;
	width: 28px;
	height: 28px;
	margin-bottom: 20px;
	color: #151515;
}

.magpie-single-course-details__duration {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 18px 0 0;
	color: #2c2a18;
	font-size: 15px;
	line-height: 1.4;
}

.magpie-single-course-details__duration svg {
	width: 17px;
	height: 17px;
	flex: none;
}

.magpie-single-course-details__copy--assessment {
	margin-top: 16px;
}

.magpie-single-course-cta-banner {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1440px;
	margin: 0 auto 64px;
	padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 72px);
	background: var(--e-global-color-49fd7f9);
}

.magpie-single-course-cta-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1140px;
	margin: 0 auto;
}

.magpie-single-course-cta-banner__title {
	margin: 0;
	color: #1e1b10;
	font-size: clamp(24px, 2.3vw, 34px);
	font-weight: 500;
	line-height: 1.2;
}

.magpie-single-course-cta-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 170px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid #4d4d4d;
	border-radius: 2px;
	background: #4d4d4d;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.magpie-single-course-cta-banner__button:hover,
.magpie-single-course-cta-banner__button:focus-visible {
	border-color: #1e1b10;
	background: #1e1b10;
	color: #fff !important;
	text-decoration: none !important;
}

.magpie-single-course-overview {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
	gap: clamp(36px, 6vw, 88px);
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
}

.magpie-single-course-overview__description {
	box-sizing: border-box;
	min-height: 260px;
	padding: clamp(24px, 3vw, 38px);
	border: 1px solid #d4d4d4;
	background: #f7f7f7;
}

.magpie-single-course-overview h2 {
	margin: 0;
	color: #1e1b10;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.magpie-single-course-overview__description h2::after {
	display: block;
	width: 100%;
	height: 5px;
	margin-top: 18px;
	background: #c7c7c7;
	content: "";
}

.magpie-single-course-overview__copy {
	margin-top: 24px;
	color: #2c2a18;
	font-size: 16px;
	line-height: 1.6;
}

.magpie-single-course-overview__copy > :first-child { margin-top: 0; }
.magpie-single-course-overview__copy > :last-child { margin-bottom: 0; }

.magpie-single-course-overview__instructor {
	box-sizing: border-box;
	padding: 0 clamp(12px, 2vw, 28px);
	text-align: center;
}

.magpie-single-course-overview__instructor-rule {
	display: flex;
	position: relative;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 14px;
}

.magpie-single-course-overview__instructor-rule::before {
	position: absolute;
	top: 48px;
	right: 0;
	left: 0;
	height: 4px;
	background: #4d72d7;
	content: "";
}

.magpie-single-course-overview__instructor-rule > span {
	display: none;
}

.magpie-single-course-overview__author {
	display: block;
	position: relative;
	z-index: 1;
	background: #fff;
}

.magpie-single-course-overview__author .llms-author {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 3px;
	min-width: 100px;
	color: #151515;
	font-size: 15px;
	line-height: 1.3;
}

.magpie-single-course-overview__author .llms-author .avatar {
	display: block;
	width: 100px !important;
	height: 100px !important;
	margin-bottom: 10px;
	box-sizing: border-box;
	border: 4px solid #4d72d7;
	border-radius: 50%;
	background: #ededed;
	object-fit: cover;
}

.magpie-single-course-overview__author .llms-author-info.name {
	font-weight: 700;
}

.magpie-single-course-overview__author .llms-author-info.label {
	color: #151515;
}

.magpie-single-course-overview__author .llms-author-info.bio {
	max-width: 280px;
	margin: 10px 0 0;
	color: #4f4d45;
	font-size: 14px;
	line-height: 1.5;
}

.magpie-single-course-overview__author--empty {
	width: 100px;
	height: 100px;
	box-sizing: border-box;
	border: 4px solid #4d72d7;
	border-radius: 50%;
	background: #ededed;
}

.magpie-single-course-plan {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
}

.magpie-single-course-plan__title {
	margin: 0 0 16px;
	color: #1e1b10;
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 700;
	line-height: 1.2;
}

.magpie-single-course-plan__sections {
	display: grid;
	gap: 16px;
}

.magpie-single-course-plan__section {
	overflow: visible;
	border: 1px solid #d4d4d4;
	background: #f7f7f7;
}

.magpie-single-course-plan__section-title {
	margin: 0;
	padding: 13px 16px;
	background: var(--e-global-color-49fd7f9);
	color: #1e1b10;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.magpie-single-course-plan__lessons {
	margin: 0;
	padding: 10px 16px 14px;
	list-style: none;
}

.magpie-single-course-plan__lesson {
	position: relative;
	padding: 8px 0;
	border-bottom: 1px solid #d4d4d4;
	color: #2c2a18;
	font-size: 16px;
	line-height: 1.5;
}

.magpie-single-course-plan__lesson:last-child {
	border-bottom: 0;
}

.magpie-single-course-plan__lesson-link,
.magpie-single-course-plan__lesson-label {
	display: inline-block;
	color: #8e7610 !important;
}

.magpie-single-course-plan__lesson-link {
	color: #8e7610;
	text-decoration: none !important;
}

.magpie-single-course-plan__lesson-link:hover,
.magpie-single-course-plan__lesson-link:focus-visible,
.magpie-single-course-plan__lesson-link:visited,
.magpie-single-course-plan__lesson-link:active {
	color: #8e7610 !important;
}

/* Elementor's kit colour uses a more specific important rule. */
body[class*="elementor-kit-"] .magpie-single-course-plan__lesson-link,
body[class*="elementor-kit-"] .magpie-single-course-plan__lesson-label,
body[class*="elementor-kit-"] .magpie-single-course-plan__lesson-link:hover,
body[class*="elementor-kit-"] .magpie-single-course-plan__lesson-link:focus-visible,
body[class*="elementor-kit-"] .magpie-single-course-plan__lesson-link:visited,
body[class*="elementor-kit-"] .magpie-single-course-plan__lesson-link:active {
	color: #8e7610 !important;
}

.magpie-single-course-plan__lesson-link:hover {
	text-decoration: underline !important;
}

.magpie-single-course-plan__lesson-link:focus-visible,
.magpie-single-course-plan__lesson-label:focus-visible {
	border-radius: 2px;
	outline: 3px solid #4d72d7;
	outline-offset: 3px;
}

.magpie-single-course-plan__lesson--locked:hover,
.magpie-single-course-plan__lesson--locked:focus-within {
	z-index: 2;
}

.magpie-single-course-plan__lesson-label {
	cursor: help;
}

.magpie-single-course-plan__tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	z-index: 10;
	width: max-content;
	max-width: min(600px, calc(100vw - 64px));
	box-sizing: border-box;
	padding: 14px 16px;
	border-radius: 6px;
	background: #000;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	visibility: hidden;
}

.magpie-single-course-plan__tooltip::after {
	position: absolute;
	top: 100%;
	left: 24px;
	width: 0;
	height: 0;
	border-top: 10px solid #000;
	border-right: 10px solid transparent;
	border-left: 10px solid transparent;
	content: "";
}

.magpie-single-course-plan__lesson--locked:hover .magpie-single-course-plan__tooltip,
.magpie-single-course-plan__lesson-label:focus + .magpie-single-course-plan__tooltip {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.magpie-single-course-faq {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
	border-top: 1px solid #d4d4d4;
}

.magpie-single-course-faq__item {
	border-right: 1px solid #d4d4d4;
	border-bottom: 1px solid #d4d4d4;
	border-left: 1px solid #d4d4d4;
	background: #f7f7f7;
}

.magpie-single-course-faq__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 16px;
	cursor: pointer;
	color: #1e1b10;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
}

.magpie-single-course-faq__summary::-webkit-details-marker {
	display: none;
}

.magpie-single-course-faq__summary:focus-visible {
	outline: 3px solid #4d72d7;
	outline-offset: -3px;
}

.magpie-single-course-faq__icon {
	width: 20px;
	height: 20px;
	flex: none;
	transition: transform .2s ease;
}

.magpie-single-course-faq__item[open] .magpie-single-course-faq__icon {
	transform: rotate(180deg);
}

.magpie-single-course-faq__content {
	padding: 0 16px 20px;
	color: #2c2a18;
	font-size: 16px;
	line-height: 1.6;
}

.magpie-single-course-faq__content > :first-child { margin-top: 0; }
.magpie-single-course-faq__content > :last-child { margin-bottom: 0; }

.magpie-single-course-related {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1140px;
	margin: 0 auto 64px;
}

.magpie-single-course-related__title {
	margin: 0 0 16px;
	color: #1e1b10;
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 700;
	line-height: 1.2;
}

.magpie-single-course-related__loop.llms-loop {
	max-width: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.magpie-single-course-details {
		margin-bottom: 40px;
	}

	.magpie-single-course-details__inner,
	.magpie-single-course-details__cards {
		grid-template-columns: 1fr;
	}

	.magpie-single-course-details__copy {
		margin-top: 14px;
	}

	.magpie-single-course-details__card {
		min-height: 0;
	}

	.magpie-single-course-cta-banner {
		margin-bottom: 40px;
	}

	.magpie-single-course-cta-banner__inner {
		align-items: stretch;
		flex-direction: column;
	}

	.magpie-single-course-cta-banner__button {
		width: 100%;
	}

	.magpie-single-course-overview {
		grid-template-columns: 1fr;
		gap: 40px;
		margin-bottom: 40px;
	}

	.magpie-single-course-overview__description {
		min-height: 0;
	}

	.magpie-single-course-overview__instructor {
		padding: 0;
	}

	.magpie-single-course-plan {
		margin-bottom: 40px;
	}

	.magpie-single-course-faq {
		margin-bottom: 40px;
	}

	.magpie-single-course-related {
		margin-bottom: 40px;
	}

	.magpie-single-course-faq__summary {
		font-size: 16px;
	}

	.magpie-single-course-content {
		margin-bottom: 40px;
	}

	.magpie-single-course-progress {
		margin-bottom: 40px;
	}

	.magpie-single-course-progress .llms-course-progress {
		grid-template-columns: 1fr;
	}

	.magpie-single-course-progress .llms-course-continue-button {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.magpie-single-course-hero {
		margin-bottom: 40px;
		padding: 0;
	}

	.magpie-single-course-hero__inner {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.magpie-single-course-hero__content {
		padding: 48px 20px 40px;
	}

	.magpie-single-course-hero__title {
		font-size: 40px;
	}

	.magpie-single-course-hero__media {
		aspect-ratio: 16 / 10;
	}
}
