/* Course page refinements */
body.mscx-course-page .tutor-course-top-info { min-height: 430px; padding-block: 58px 132px; }
body.mscx-course-page .mscx-hero-facts { margin-block: 22px 24px; }
body.mscx-course-page .mscx-section-nav { position: relative; z-index: 4; margin-block-start: 8px; }
body.mscx-course-page .tutor-single-course-main-content { gap: 20px; }
body.mscx-course-page .tutor-single-course-main-content .tutor-single-course-segment,
body.mscx-course-page .mr-course-section,
body.mscx-course-page .mscx-related { padding: clamp(18px, 2.4vw, 26px); }
body.mscx-course-page .tutor-segment-title { margin-bottom: 16px; font-size: clamp(21px, 2.5vw, 28px); }

body.mscx-course-page .mscx-share-panel { min-width: 238px; padding: 13px; }
body.mscx-course-page .mscx-share-panel .tutor-social-share-wrap {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
}
body.mscx-course-page .mscx-share-panel .tutor_share {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	width: auto !important;
	height: 38px !important;
	padding: 6px 9px !important;
	border: 1px solid #D8E7F7 !important;
	border-radius: 9px !important;
	background: #F7FAFF !important;
	color: #0A192F !important;
	font-size: 11px;
	font-weight: 700;
}
body.mscx-course-page .mscx-share-panel .tutor_share i { flex: 0 0 16px; color: #1D8CF8 !important; }
body.mscx-course-page .mscx-share-panel .mscx-copy-link { grid-column: 1/-1; width: 100% !important; min-height: 38px !important; }

body.mscx-course-page .mscx-materials-enhanced {
	padding: 16px !important;
	border: 1px solid #D8E7F7;
	border-radius: 12px;
	background: #FBFDFF;
}
body.mscx-course-page .mscx-materials-enhanced h2,
body.mscx-course-page .mscx-materials-enhanced .tutor-segment-title { font-size: 19px !important; margin: 0 0 12px !important; }
body.mscx-course-page .mscx-materials-enhanced ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.mscx-course-page .mscx-materials-enhanced li { margin: 0 !important; padding: 8px 12px 8px 34px !important; border-radius: 9px; background: #EAF4FF; }

body.mscx-course-page .tutor-course-topic { background: #fff; }
body.mscx-course-page .tutor-course-lesson { background: #fff; transition: background-color .2s ease, transform .2s ease; }
body.mscx-course-page .tutor-course-lesson:hover { background: #F7FBFF; transform: translateX(-2px); }
body.mscx-course-page .tutor-course-lesson h5 { min-height: 58px; padding: 8px 14px; }
body.mscx-course-page .tutor-course-lesson img { width: 68px; height: 44px; border-radius: 7px; object-fit: cover; }
body.mscx-course-page .tutor-course-lesson .tutor-lesson-duration { min-width: 0 !important; max-width: 150px !important; padding: 5px 9px !important; }
body.mscx-course-page .mscx-curriculum-overview { margin-bottom: 14px; }
body.mscx-course-page .mscx-curriculum-overview > div { min-height: 62px; padding: 10px 12px; }

body.mscx-course-page .single-instructor-wrap { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; }
body.mscx-course-page .instructor-avatar img { width: 104px; height: 104px; }
body.mscx-course-page .instructor-meta { margin-block: 9px; }
body.mscx-course-page .instructor-profile-url { margin-top: 6px; min-height: 38px; }
body.mscx-course-page .tutor-course-reviews-average { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
body.mscx-course-page .tutor-course-reviews-wrap .tutor-review-list-item { padding-block: 14px; }
body.mscx-course-page .tutor-course-reviews-wrap .tutor-review-list-item img,
body.mscx-course-page .tutor-course-reviews-wrap .tutor-avatar img { display: block !important; width: 46px !important; height: 46px !important; border-radius: 50%; object-fit: cover; }

body.mscx-course-page .tutor-course-progress-wrapper,
body.mscx-course-page .tutor-course-progress { padding: 18px 22px !important; border-radius: 14px; background: #fff; }
body.mscx-course-page .tutor-progress-bar { height: 8px !important; border-radius: 999px; background: #EAF4FF !important; }
body.mscx-course-page .tutor-progress-value { border-radius: 999px; background: #1D8CF8 !important; }

/* Lesson page refinements */
body.mscx-lesson-page .tutor-single-lesson-wrap { gap: 18px; padding-top: 14px; }
body.mscx-lesson-page .tutor-lesson-sidebar-wrap { flex-basis: 306px; width: 306px; }
body.mscx-lesson-page .tutor-single-page-top-bar { min-height: 56px; margin-bottom: 12px; }
body.mscx-lesson-page .tutor-video-player-wrapper,
body.mscx-lesson-page .tutor-lesson-video-wrap { max-width: 1040px; margin-inline: auto; border-radius: 14px; }
body.mscx-lesson-page .tutor-lessons-under-topic .tutor-single-lesson-items a { min-height: 48px; }
body.mscx-lesson-page .tutor-lesson-sidebar-wrap.mscx-needs-attention { animation: mscx-attention .55s ease 2; }
@keyframes mscx-attention { 50% { transform: translateX(-5px); } }

@media (max-width: 991px) {
	body.mscx-course-page .tutor-course-top-info { min-height: 0 !important; padding-block: 44px 108px !important; }
	body.mscx-course-page .tutor-full-width-course-body > .container { margin-block-start: -70px; }
	body.mscx-course-page .mscx-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.mscx-course-page .mscx-section-nav { margin-top: 0; }
}

@media (max-width: 767px) {
	body.mscx-course-page .tutor-course-top-info { padding-block: 30px 58px !important; background-position: center !important; }
	body.mscx-course-page .tutor-course-header-h1 { font-size: clamp(30px, 10vw, 44px); margin-block: 12px; }
	body.mscx-course-page .tutor-full-width-course-body > .container { margin-block-start: 0 !important; }
	body.mscx-course-page .tutor-single-course-sidebar { position: static !important; margin-top: -36px; }
	body.mscx-course-page .mscx-hero-facts { gap: 7px; margin-block: 16px 12px; }
	body.mscx-course-page .mscx-fact { padding: 9px; }
	body.mscx-course-page .mscx-fact > .dashicons { width: 30px; height: 30px; flex-basis: 30px; }
	body.mscx-course-page .mscx-section-nav { margin-top: 12px; border-radius: 12px; }
	body.mscx-course-page .tutor-single-course-main-content { gap: 14px; }
	body.mscx-course-page .tutor-single-course-main-content .tutor-single-course-segment { padding: 16px; }
	body.mscx-course-page .tutor-course-benefits-items { grid-template-columns: 1fr; gap: 8px; }
	body.mscx-course-page .tutor-course-lesson h5 { align-items: center; flex-wrap: wrap; }
	body.mscx-course-page .single-instructor-wrap { grid-template-columns: 82px minmax(0,1fr); }
	body.mscx-course-page .instructor-avatar img { width: 82px; height: 82px; }
	body.mscx-course-page .tutor-course-reviews-average { grid-template-columns: 1fr; }
	body.mscx-course-page .mscx-share-panel { inset-inline: 0 auto; max-width: min(280px, calc(100vw - 40px)); }
	body.mscx-lesson-page .tutor-single-lesson-wrap { padding-top: 8px; }
}

@media (max-width: 430px) {
	body.mscx-course-page .mscx-hero-facts { grid-template-columns: 1fr 1fr; }
	body.mscx-course-page .mscx-fact__label { font-size: 10px; }
	body.mscx-course-page .mscx-fact strong { font-size: 12px; }
	body.mscx-course-page .tutor-course-lesson img { width: 56px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	body.mscx-lesson-page .tutor-lesson-sidebar-wrap.mscx-needs-attention { animation: none; }
}
