/* ═══════════════════════════════════════════════════════════
   OM Moodle Bridge — Course Detail Page Styles
   Loaded only on /course/{id}/ pages (body.om-course-detail).
═══════════════════════════════════════════════════════════ */
.om-course-detail header.navigationWrapper{position: fixed;top: 0;left: 0;width: 100%;}
.om-course-detail header.navigationWrapper .logo a,.om-course-detail header.navigationWrapper .desktopNavList>li>a,.om-course-detail header.navigationWrapper .mobileMenuButton{color: #fff;}
.om-course-detail header.navigationWrapper .desktopNavList .menu-item-has-children>a:after{filter: brightness(0) invert(1);}
.om-course-detail header.navigationWrapper.scrolled .logo a,.om-course-detail header.navigationWrapper.scrolled .desktopNavList>li>a,.om-course-detail header.navigationWrapper.scrolled .mobileMenuButton{color: #333f5b;}
.om-course-detail header.navigationWrapper.scrolled .desktopNavList .menu-item-has-children>a:after{filter: unset;}

.om-course-detail .om-course-detail-page .about-hero .about-hero-btndiv .om-btn-text{display: contents;}
.om-course-detail .course-preview-instructorctn-subtitle{margin: 0;}
.om-course-detail .course-preview-instructorctn-info p{font-family: 'Avenir Next', sans-serif;}
.om-course-detail .course-instructor-sharecourse h3{font-size: 26px;}
.om-course-detail .container{max-width: min(1680px, 100vw);padding: clamp(16px, 2vw, 24px) clamp(20px, 4vw, 120px);}

@media (min-width: 768px) and (max-width: 1023px) {
  .om-course-detail  .course-preview-left .course-preview-youlearntitle,.om-course-detail  .course-preview-modulewrap ul li h2,.om-course-detail  .course-preview-left .course-preview-shortctn h2 {font-size: clamp(24px, 3.5vw, 28px);line-height: 120%;}
}

@media (max-width:991px){
 .om-course-detail .course-instructor-sharecourse h3{font-size: 24px;}
}
@media (max-width: 767px) {
   .om-course-detail .course-preview-left .course-preview-youlearntitle,.om-course-detail .course-preview-modulewrap ul li h2,.om-course-detail .course-preview-left .course-preview-shortctn h2,.om-course-detail .course-preview-instructorctn-title,.om-course-detail .course-instructor-sharecourse h3 {font-size: 20px;line-height: 120%;}
   .om-course-detail .course-preview-left .course-preview-youlearntitle,.om-course-detail .course-preview-content,.om-course-detail .course-preview-left .course-preview-shortctn h2 {margin-top: 40px;}
}

.om-course-detail .om-course-detail-page .course-preview-section .container,.om-course-detail .investment-testimonials-section .container,.om-course-detail .spacing-large.cta-section .container{max-width: min(1680px, 100vw);padding: clamp(16px, 2vw, 24px) clamp(20px, 4vw, 120px);}

.om-course-detail .course-preview-modulewrap > ul > li > h2{margin: 0;margin-bottom: 8px;}

@media (min-width: 768px) and (max-width: 1023px) {
   .om-course-detail .course-preview-modulewrap .toggle-btn {margin-bottom: 20px;margin-top: 0px;}
}

@media (max-width: 1367px) {
   .om-course-detail .about-hero.heroSection {
        padding-top: 160px;
        padding-bottom: 160px;
    }
}
/* ── Shared button ── */
.button {
	position: relative;
	border-radius: 24px;
	background-color: #3495ff;
	height: 64px;
	display: flex;
	align-items: center;
	padding: 24px 48px;
	box-sizing: border-box;
	gap: 10px;
	text-align: left;
	font-size: 16px;
	color: #fff;
	font-family: 'PP Neue Montreal';
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

@media (min-width: 1280px) {
	.button { height: 64px; padding: 24px 48px; font-size: 16px; }
}

/* ── Hero Section ── */
.about-hero.heroSection {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 210px;
	padding-bottom: 200px;
	gap: 64px;
	overflow: hidden;
	background: #ffffff;
}
.about-hero.heroSection:before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	height: 100%; width: 100%;
	background: linear-gradient(180deg, #1B2231 0%, rgba(27, 34, 49, 0) 100%);
}
.about-hero .ellipseDivBlue {
	width: 50%; height: 110px;
	position: absolute; bottom: -10px; left: 5%;
	filter: blur(150px); border-radius: 50%;
	background-color: #3495ff; z-index: 0; pointer-events: none;
}
.about-hero .ellipseDivOrange {
	width: 50%; height: 110px;
	position: absolute; bottom: -10px; right: 5%;
	filter: blur(150px); border-radius: 50%;
	background-color: #f37f54; z-index: 0; pointer-events: none;
}
.about-hero .ellipseDivLightOrange {
	width: 20%; height: 150px;
	position: absolute; bottom: -10px; right: 50%;
	filter: blur(130px); border-radius: 50%;
	background-color: #f8d194; z-index: 0; pointer-events: none;
}
.about-hero .wrapper {
	position: relative; z-index: 1;
	text-align: center; max-width: 930px;
	margin-inline: auto; padding: 0 64px;
}
.about-hero .about-hero-btndiv { display: flex; justify-content: center; }
.about-hero .heading {
	font-family: "P22 Mackinac Pro", serif;
	font-size: 80px; font-weight: 500;
	line-height: 110%; letter-spacing: -4px;
	text-transform: capitalize; color: #ffffff;
	margin: 64px 0;
}
.about-hero .subtext {
	font-family: "Avenir Next";
	font-size: 20px; font-weight: 500;
	line-height: 150%; letter-spacing: -0.6px;
	color: #6d717b; max-width: 480px;
	margin: 0 auto; display: none;
}

@media (max-width: 1024px) {
	.about-hero .heading { font-size: 64px; margin: 40px 0; }
	.about-hero .subtext { font-size: 18px; }
	.about-hero .aboutEyebrow { display: block; }
}
@media (max-width: 768px) {
	.about-hero.heroSection { padding-bottom: 80px; gap: 40px; }
	.about-hero .heading { font-size: 42px; letter-spacing: -2px; margin: 30px 0; }
	.about-hero .subtext { font-size: 16px; line-height: 150%; }
	.about-hero .ellipseDivBlue { left: 0; }
	.about-hero .ellipseDivOrange { right: 0; }
	.about-hero .wrapper { padding: 0 30px; }
}

/* ── Page shell ── */
.om-course-detail-page { min-height: 60vh; }

/* Error state */
.om-detail-error { padding: 60px 24px; text-align: center; }
.om-detail-error h2 { font-size: 24px; margin-bottom: 12px; }
.om-detail-error a  { color: #2563eb; text-decoration: underline; }

/* ── Course Preview Section ── */
.course-preview-taglist {
	padding: clamp(16px, 2vw, 28px) 0 clamp(30px, 3vw, 52px);
	border-bottom: 1px solid rgba(0,0,0,.1);
}
.course-preview-taglist .eyebrow { font-weight: 500; text-transform: capitalize; }

.course-preview-section {
	margin-top: -100px;
	background: #FCF9F8;
	border-radius: 64px 64px 0 0;
}
.course-preview-section:after {
	content: "";
	position: absolute;
	width: 426px; height: 426px;
	margin-top: -200px; right: -20%; top: 50%;
	background: #F8D194;
	filter: blur(165px);
	transform: rotate(180deg);
}

.course-preview-content {
	margin-top: 80px;
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	gap: 100px;
	width: 100%;
	position: relative;
	z-index: 1;
}

.course-preview-left .course-preview-title {
	letter-spacing: -.03em; font-weight: 500;
	margin: 0 0 20px; font-size: 38px; line-height: 130%;
}
.course-preview-left .course-preview-shortctn p,
.course-preview-left .course-preview-shortctn ul li,
.course-preview-youlearnlist li,
.course-preview-modulewrap p {
	letter-spacing: -.02em; line-height: 150%;
	font-weight: 500; color: #6d717b; font-size: 20px;
}
.course-preview-left .course-preview-shortctn h2 {
	margin-top: 60px; font-size: 32px; margin-bottom: 20px;
}
.course-preview-instructorctn-info { margin-top: 20px; }
.course-preview-instructorctn-info p {
	letter-spacing: -.02em; line-height: 150%;
	font-weight: 500; color: #6d717b; font-size: 18px;
}

/* ── Module Accordion ── */
.course-preview-modulewrap { margin-top: 60px; }
.course-preview-modulewrap ul { margin: 0; padding: 0; list-style: none; }
.course-preview-modulewrap > ul > li {
	margin-bottom: 60px; position: relative; padding-left: 82px;
}
.course-preview-modulewrap > ul > li > h2 { font-size: 32px; }
.course-preview-modulewrap > ul > li:before {
	content: ""; height: 64px; width: 64px;
	position: absolute; top: 0; left: 0;
	background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHJ4PSIzMiIgZmlsbD0iIzM0OTVGRiIvPjxwYXRoIGQ9Ik0yMS4zMzQgMzJINDIuNjY3M000Mi42NjczIDMyTDM0LjY2NzMgMjRNNDIuNjY3MyAzMkwzNC42NjczIDQwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+");
}

.course-preview-modulewrap .module-content {
	max-height: 0; overflow: hidden;
	transition: max-height .4s ease-out, padding .3s ease;
}
.course-preview-modulewrap ul li.active .module-content { max-height: 2000px; }
.course-preview-modulewrap .module-content ul { margin: 0; padding: 0; list-style: none; }
.course-preview-modulewrap .module-content li {
	padding: 16px 0 16px 36px;
	border-bottom: 1px solid #E3E3E5;
	margin: 0; position: relative;
}
.course-preview-modulewrap .module-content li:last-child { border: none; }
.course-preview-modulewrap .module-content li a { text-decoration: none; }
.course-preview-modulewrap .module-content li a:before,
.course-preview-modulewrap .module-content li:before {
	content: ""; height: 24px; width: 24px;
	position: absolute; top: 20px; left: 0;
	background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0iI0VCRjRGRiIvPjxwYXRoIGQ9Ik0xMiAxOC42NjY2QzE1LjY4MiAxOC42NjY2IDE4LjY2NjcgMTUuNjgxOSAxOC42NjY3IDExLjk5OTlDMTguNjY2NyA4LjMxNzkyIDE1LjY4MiA1LjMzMzI1IDEyIDUuMzMzMjUiIHN0cm9rZT0iIzM0OTVGRiIgc3Ryb2tlLXdpZHRoPSIwLjg0Mzc1IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNMTIuMDAwNyAxOC42NjY2QzguMzE4NjUgMTguNjY2NiA1LjMzMzk4IDE1LjY4MTkgNS4zMzM5OCAxMS45OTk5QzUuMzMzOTggOC4zMTc5MiA4LjMxODY1IDUuMzMzMjUgMTIuMDAwNyA1LjMzMzI1IiBzdHJva2U9IiMzNDk1RkYiIHN0cm9rZS13aWR0aD0iMC44NDM3NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIyLjI1IDEuNjkiLz48cGF0aCBkPSJNMTQuMjc2IDExLjI5NEMxNC43OTY3IDExLjYwMiAxNC43OTY3IDEyLjM5OCAxNC4yNzYgMTIuNzA2TDExLjEyOTMgMTQuNTY0QzEwLjYyMjcgMTQuODYyNiAxMCAxNC40NzMzIDEwIDEzLjg1NzNWMTAuMTQyNkMxMCA5LjUyNjY0IDEwLjYyMjcgOS4xMzc5NyAxMS4xMjkzIDkuNDM2NjRMMTQuMjc2IDExLjI5NFoiIHN0cm9rZT0iIzM0OTVGRiIgc3Ryb2tlLXdpZHRoPSIwLjg0Mzc1Ii8+PC9zdmc+");
}
.course-preview-modulewrap .module-content li h4 {
	font-family: sans-serif; margin: 0 0 10px;
	color: #6D717B; font-size: 20px; line-height: 150%; font-weight: 500;
}
.course-preview-modulewrap .module-content li p {
	font-weight: 500; font-size: 16px; line-height: 150%; margin: 0;
}
.course-preview-modulewrap .toggle-btn {
	margin-bottom: 40px; margin-top: 20px;
	font-weight: 500; font-size: 18px; line-height: 150%;
	color: #3495FF; border: none; background: transparent;
	cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.course-preview-modulewrap .toggle-btn .chevron { transition: transform .3s ease; }
.course-preview-modulewrap ul li.active .toggle-btn .chevron { transform: rotate(180deg); }

/* ── Instructor / Right Column ── */
.course-preview-right {
	background: #FEF1EC; border-radius: 24px; padding: 30px;
	display: flex; flex-wrap: wrap;
	justify-content: space-between; align-self: baseline;
}
.course-preview-instructorctn { width: calc(100% - 110px); padding-right: 30px; }
.course-preview-instructorimg img {
	width: 110px; height: 110px; border-radius: 100%;
	object-fit: cover; object-position: center;
}
.course-preview-instructorctn-title {
	position: relative; font-size: 32px;
	letter-spacing: -.02em; line-height: 120%;
	font-weight: 500; color: #333F5B; z-index: 1; margin: 0;
}
.course-preview-instructorctn-subtitle {
	text-transform: capitalize; font-weight: 500;
	font-size: 24px; line-height: 1.5; letter-spacing: -.72px; color: #3495ff;
}

/* ── Share Course ── */
.course-instructor-sharecourse {
	display: flex; flex-wrap: wrap; align-items: center;
	width: 100%; margin-top: 15px;
}
.course-instructor-sharecourse h3 { margin: 0 30px 0 0; }
.course-instructor-sharecourse ul {
	margin: 0; padding: 0; list-style: none;
	display: flex; gap: 24px;
}
.course-instructor-sharecourse ul li a:hover svg path,
.course-instructor-sharecourse ul li button:hover svg path { fill: #3495FF; }

/* ── Responsive ── */
@media (max-width: 1367px) {
	.course-preview-content { margin-top: 60px; grid-template-columns: 1fr; gap: 30px; }
	.course-preview-section { margin-top: -70px; }
}
@media (min-width: 1024px) and (max-width: 1600px) {
	.course-preview-left .course-preview-shortctn p,
	.course-preview-left .course-preview-shortctn ul li,
	.course-preview-instructorctn-info p,
	.course-preview-modulewrap p { font-size: 18px; }
}
@media (max-width: 767px) {
	.course-preview-left .course-preview-title { font-size: 22px; line-height: 120%; }
	.course-preview-left .course-preview-shortctn p,
	.course-preview-instructorctn-info p,
	.course-preview-modulewrap p { font-size: 15px; }
	.course-preview-instructorctn { width: 100%; padding-right: 0; }
	.course-preview-instructorimg { order: -1; margin-bottom: 15px; }
	.course-preview-right { padding: 24px; }
	.course-preview-modulewrap > ul > li { padding-left: 40px; margin-bottom: 30px; }
	.course-preview-modulewrap > ul > li:before { height: 32px; width: 32px; background-size: cover; }
	.course-preview-modulewrap .module-content li { padding: 12px 0 12px 35px; }
	.course-preview-modulewrap .module-content li h4 { font-size: 16px; }
	.course-preview-modulewrap .module-content li p { font-size: 14px; }
	.course-preview-modulewrap .toggle-btn { margin-bottom: 10px; margin-top: 0; }
	.course-preview-modulewrap { margin-top: 40px; }
	.course-preview-instructorimg img { height: 90px; width: 90px; }
	.course-instructor-sharecourse ul { gap: 16px; }
	.course-preview-section { margin-top: -40px; border-radius: 40px 40px 0 0; }
	.course-preview-instructorctn-title,
	.course-instructor-sharecourse h3 { font-size: 20px; line-height: 120%; }
	.course-preview-instructorctn-subtitle { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   SCORM Nested Section Styles (course ID 35)
═══════════════════════════════════════════════════════════ */

/* Duration badge shown inline with section title */
.scorm-duration {
	font-size: 13px;
	font-weight: 600;
	color: #3495FF;
	background: #EBF4FF;
	padding: 2px 10px;
	border-radius: 20px;
	vertical-align: middle;
	margin-left: 12px;
	white-space: nowrap;
	display: inline-block;
	line-height: 1.6;
}

/* Top-level SCORM section title (depth-0) matches existing h2 style */
.course-preview-modulewrap > ul > li.scorm-depth-0 > .scorm-section-title {
	font-size: 32px;
	font-weight: 500;
	margin: 0 0 8px;
	letter-spacing: -0.02em;
	line-height: 130%;
}

/* Child section <li> items — remove play-icon, reset padding */
.course-preview-modulewrap .module-content li.scorm-child-section {
	padding: 0;
	border-bottom: 1px solid #E3E3E5;
	margin-bottom: 2px;
}
.course-preview-modulewrap .module-content li.scorm-child-section:last-child {
	border-bottom: none;
}
.course-preview-modulewrap .module-content li.scorm-child-section::before {
	display: none;
}

/* Child section headings */
.course-preview-modulewrap .module-content .scorm-section-title {
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 0;
	padding: 14px 0 0;
}
.course-preview-modulewrap .module-content .scorm-depth-1 > .scorm-section-title { font-size: 22px; }
.course-preview-modulewrap .module-content .scorm-depth-2 > .scorm-section-title { font-size: 19px; }
.course-preview-modulewrap .module-content .scorm-depth-3 > .scorm-section-title { font-size: 17px; }
.course-preview-modulewrap .module-content .scorm-depth-4 > .scorm-section-title,
.course-preview-modulewrap .module-content .scorm-depth-5 > .scorm-section-title { font-size: 15px; }

/* Child section toggle button — compact vs. top-level */
.course-preview-modulewrap .module-content .toggle-btn {
	margin-top: 6px;
	margin-bottom: 8px;
	font-size: 15px;
}

/* Indent child section's inner module-content for visual hierarchy */
.course-preview-modulewrap .module-content .scorm-child-section > .module-content {
	padding-left: 16px;
	border-left: 2px solid #EBF4FF;
	margin-left: 4px;
}

/* Slides-after list gets a subtle top divider */
.course-preview-modulewrap .module-content ul.scorm-slides-after {
	border-top: 1px dashed #E3E3E5;
	margin-top: 8px;
	padding-top: 4px;
}

/* Increase accordion max-height for deeply nested SCORM content */
.course-preview-modulewrap ul li.scorm-depth-0.active > .module-content { max-height: 30000px; }
.course-preview-modulewrap ul li.scorm-depth-1.active > .module-content { max-height: 20000px; }
.course-preview-modulewrap ul li.scorm-depth-2.active > .module-content { max-height: 10000px; }
.course-preview-modulewrap ul li.scorm-depth-3.active > .module-content,
.course-preview-modulewrap ul li.scorm-depth-4.active > .module-content,
.course-preview-modulewrap ul li.scorm-depth-5.active > .module-content { max-height: 5000px; }

/* KEY FIX: the base rule uses a descendant selector which would open ALL nested
   .module-content elements when any ancestor li is active. Override it so that a
   child section's content stays collapsed until that child is clicked. */
.course-preview-modulewrap ul li.active li:not(.active) > .module-content {
	max-height: 0 !important;
	overflow: hidden;
}

/* Fix chevron: parent active should NOT rotate children's chevrons unless they're also active */
.course-preview-modulewrap ul li.active li:not(.active) > .toggle-btn .chevron { transform: none; }
.course-preview-modulewrap ul li.active li.active > .toggle-btn .chevron    { transform: rotate(180deg); }

@media (max-width: 767px) {
	.course-preview-modulewrap > ul > li.scorm-depth-0 > .scorm-section-title { font-size: 22px; }
	.course-preview-modulewrap .module-content .scorm-depth-1 > .scorm-section-title { font-size: 18px; }
	.scorm-duration { font-size: 11px; padding: 1px 7px; }
}
