/* ==========================================================================
   SevernLearn × Masteriyo LMS
   Loaded after Masteriyo's public.css and its inline colour settings.
   ========================================================================== */

/* ---------- Colour variables: re-point Masteriyo to the SevernLearn palette */
body.sl-theme {
	--masteriyo-color-primary: #b01f00;
	--masteriyo-color-primary-light: #d0361a;
	--masteriyo-color-primary-lightest: #fbf8f2;
	--masteriyo-color-primary-dark: #8f1900;
	--masteriyo-color-primary-a10: rgb(176 31 0 / 8%);
	--masteriyo-color-primary-a20: rgb(176 31 0 / 16%);
	--masteriyo-color-primary-a80: rgb(176 31 0 / 80%);
	--masteriyo-button-primary: #b01f00;
	--masteriyo-button-primary-hover: #8f1900;
	--masteriyo-color-btn-blue-hover: #8f1900;
	--masteriyo-color-btn-blue-active: #8f1900;
	--masteriyo-color-btn-blue-dark: #0e1a2f;
	--masteriyo-color-blue-dark: #0e1a2f;
	--masteriyo-color-heading: #0e1a2f;
	--masteriyo-color-text: #515c6e;
	--masteriyo-text-color: #142037;
	--masteriyo-color-text-light: #7a8392;
	--masteriyo-color-grey-dark: #142037;
	--masteriyo-color-border: #e4ded2;
	--masteriyo-color-placeholder: #9aa1ad;
	--masteriyo-color-background-grey: #f7f4ee;
	--masteriyo-color-accent: #b8975a;
	--masteriyo-color-golden: #b8975a;
}

body.sl-theme.masteriyo,
body.sl-theme.single-mto-course,
body.sl-theme.post-type-archive-mto-course,
body.sl-theme.tax-course_cat { background: var(--sl-paper); }

body.sl-theme .masteriyo-container,
body.sl-theme .masteriyo-w-100.masteriyo-container {
	max-width: var(--sl-wrap);
	padding-left: var(--sl-gutter);
	padding-right: var(--sl-gutter);
	margin: 0 auto;
	padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
	font-family: var(--sl-font-body);
	color: var(--sl-text);
}
body.sl-theme .masteriyo-container * { font-family: inherit; }
body.sl-theme .masteriyo-container h1,
body.sl-theme .masteriyo-container h2.masteriyo-related-post__title { font-family: var(--sl-font-display); }

/* ---------- Buttons */
body.sl-theme .masteriyo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 46px; padding: .7rem 1.35rem;
	border-radius: 999px !important;
	font-family: var(--sl-font-body) !important; font-size: var(--sl-text-sm) !important; font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: .005em; text-transform: none;
	transition: background-color .25s var(--sl-ease), transform .25s var(--sl-ease), box-shadow .25s var(--sl-ease), border-color .25s var(--sl-ease), color .25s var(--sl-ease);
}
body.sl-theme .masteriyo-btn.masteriyo-btn-primary,
body.sl-theme .masteriyo-enroll-btn,
body.sl-theme .masteriyo-single-course--btn {
	background: var(--sl-red) !important; border: 0 !important; color: #fff !important; opacity: 1 !important;
	box-shadow: 0 10px 22px -14px rgba(176, 31, 0, .8);
}
body.sl-theme .masteriyo-btn.masteriyo-btn-primary:hover,
body.sl-theme .masteriyo-enroll-btn:hover,
body.sl-theme .masteriyo-single-course--btn:hover { background: var(--sl-red-d) !important; color: #fff !important; transform: translateY(-1px); }
body.sl-theme .masteriyo-btn.masteriyo-btn-outline,
body.sl-theme .masteriyo-btn-default { background: transparent !important; color: var(--sl-ink) !important; border: 1.5px solid var(--sl-ink) !important; }
body.sl-theme .masteriyo-btn.masteriyo-btn-outline:hover,
body.sl-theme .masteriyo-btn-default:hover { background: var(--sl-ink) !important; color: #fff !important; }
/* Neutralise the per-site inline button sizing (20px / 2px radius) */
body.sl-theme.masteriyo-courses-page .masteriyo-single-course--btn,
body.sl-theme .masteriyo-course-list-display-section .masteriyo-single-course--btn,
body.sl-theme .masteriyo-course-list-display-section .masteriyo-course--btn { font-size: var(--sl-text-sm) !important; border-radius: 999px !important; }
body.sl-theme .masteriyo-link-primary { color: var(--sl-red); font-weight: 600; }
body.sl-theme .masteriyo-link-primary:hover { color: var(--sl-red-d); }

/* ---------- Inputs */
body.sl-theme .masteriyo-input,
body.sl-theme .masteriyo-container input[type="text"],
body.sl-theme .masteriyo-container input[type="email"],
body.sl-theme .masteriyo-container input[type="password"],
body.sl-theme .masteriyo-container input[type="tel"],
body.sl-theme .masteriyo-container input[type="number"],
body.sl-theme .masteriyo-container select,
body.sl-theme .masteriyo-container textarea {
	width: 100%; min-height: 48px; padding: .7rem 1rem;
	border: 1px solid var(--sl-line-2); border-radius: 12px; background: #fff;
	font-size: var(--sl-text-base); color: var(--sl-text); box-shadow: none;
	transition: border-color .2s var(--sl-ease), box-shadow .2s var(--sl-ease), background-color .2s;
}
body.sl-theme .masteriyo-input:hover { border-color: var(--sl-faint); }
body.sl-theme .masteriyo-input:focus,
body.sl-theme .masteriyo-container input:focus,
body.sl-theme .masteriyo-container select:focus,
body.sl-theme .masteriyo-container textarea:focus { outline: none; border-color: var(--sl-ink); background: #fff; box-shadow: 0 0 0 4px rgba(184, 151, 90, .25); }
body.sl-theme .masteriyo-container input[type="checkbox"],
body.sl-theme .masteriyo-container input[type="radio"] { accent-color: var(--sl-red); width: 17px; height: 17px; min-height: 0; }
body.sl-theme .masteriyo-label { font-size: var(--sl-text-sm); font-weight: 600; color: var(--sl-ink); margin-bottom: .45rem; display: block; }

/* ---------- Category tags */
body.sl-theme .masteriyo-tag,
body.sl-theme .masteriyo-course-category--item {
	display: inline-flex; align-items: center;
	padding: .28rem .7rem !important; border: 0 !important; border-radius: 999px !important;
	background: var(--sl-gold-tint) !important; color: var(--sl-ink) !important;
	font-size: .72rem !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: .02em !important; text-transform: none !important; text-decoration: none !important;
	transition: background-color .2s;
}
body.sl-theme a.masteriyo-tag:hover { background: var(--sl-gold-soft) !important; }
body.sl-theme .masteriyo-course-category { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ==========================================================================
   Courses archive
   ========================================================================== */
body.sl-theme.masteriyo-courses-page .masteriyo-container,
body.sl-theme.post-type-archive-mto-course .masteriyo-container,
body.sl-theme.tax-course_cat .masteriyo-container { display: flex; flex-direction: column; padding-top: 0; }

/* Page header band */
body.sl-theme .masteriyo-courses-header {
	order: -1; position: relative;
	margin: 0 0 clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	padding: clamp(2.5rem, 1.8rem + 3vw, 4.25rem) 0 clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	border-image: linear-gradient(180deg, #fff, #fff 60%, var(--sl-paper)) fill 0 / 0 / 0 100vmax;
}
body.sl-theme .masteriyo-courses-header__title,
body.sl-theme .masteriyo-courses-header .page-title {
	margin: 0 !important; font-family: var(--sl-font-display) !important; font-size: var(--sl-text-2xl) !important; font-weight: 600 !important; letter-spacing: -.015em; color: var(--sl-ink) !important; line-height: 1.1 !important;
}

/* Search + view-mode bar */
body.sl-theme .masteriyo-search-section {
	flex-direction: row; align-items: center; flex-wrap: wrap; gap: .75rem 1rem;
	margin: 0 0 1.75rem; padding: .6rem; border: 1px solid var(--sl-line); border-radius: 999px; background: #fff; box-shadow: var(--sl-shadow-sm);
}
body.sl-theme .masteriyo-search-section .masteriyo-search { flex: 1 1 320px; width: auto; }
body.sl-theme .masteriyo-course-search { border-radius: 999px; overflow: visible; gap: .5rem; }
body.sl-theme .masteriyo-course-search .search-field,
body.sl-theme .masteriyo-course-search .masteriyo-input { min-height: 46px; border: 0 !important; background: var(--sl-paper) !important; border-radius: 999px !important; padding-left: 2.9rem !important; box-shadow: none !important; }
body.sl-theme .masteriyo-course-search .search-field:focus { box-shadow: 0 0 0 3px rgba(184, 151, 90, .3) !important; background: #fff !important; }
body.sl-theme .masteriyo-course-search__icon { left: 1.05rem; }
body.sl-theme .masteriyo-course-search__icon svg { fill: var(--sl-faint); }
body.sl-theme .masteriyo-course-search .masteriyo-btn { flex-shrink: 0; background: var(--sl-ink) !important; box-shadow: none; }
body.sl-theme .masteriyo-course-search .masteriyo-btn:hover { background: var(--sl-ink-3) !important; }
body.sl-theme .masteriyo-courses-view-mode-section { display: flex; align-items: center; gap: .6rem; padding-right: .4rem; font-size: var(--sl-text-sm); color: var(--sl-muted); }
body.sl-theme .masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item button { width: 40px; height: 40px; border-radius: 999px; color: var(--sl-faint); border: 1px solid var(--sl-line); background: #fff; }
body.sl-theme .masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item.active button,
body.sl-theme .masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item button:hover { color: #fff; background: var(--sl-ink); border-color: var(--sl-ink); }
body.sl-theme .masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item button svg { width: 18px; height: 18px; }
body.sl-theme .masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item button svg path { fill: currentColor; }
body.sl-theme .masteriyo-toggle-course-filters-sidebar { border-radius: 999px; border: 1px solid var(--sl-line); background: #fff; color: var(--sl-ink); padding: .55rem 1rem; font-weight: 600; font-size: var(--sl-text-sm); }

/* Filters sidebar */
body.sl-theme .masteriyo-course-list-display-section { gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
body.sl-theme .masteriyo-courses-filters {
	align-self: flex-start; padding: 1.5rem 1.35rem; background: #fff; border: 1px solid var(--sl-line) !important; border-radius: var(--sl-r); box-shadow: var(--sl-shadow-sm);
	position: sticky; top: calc(var(--sl-header-h) + 1rem);
}
@media (min-width: 992px) { body.sl-theme .masteriyo-courses-filters { border-right: 1px solid var(--sl-line) !important; } }
body.sl-theme .masteriyo-filter-section { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--sl-line); }
body.sl-theme .masteriyo-filter-section:last-of-type { border-bottom: 0; }
body.sl-theme .masteriyo-filter-section--heading h5 { margin: 0; font-family: var(--sl-font-body); font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-ink) !important; }
body.sl-theme .masteriyo-filter-section--heading svg { fill: var(--sl-muted); }
body.sl-theme .masteriyo-category-filter,
body.sl-theme .masteriyo-filter-wrapper label { font-size: var(--sl-text-sm); color: var(--sl-text); }
body.sl-theme .masteriyo-category-filter { display: flex; align-items: center; gap: .55rem; padding: .22rem 0; }
body.sl-theme .masteriyo-see-more-categories,
body.sl-theme .masteriyo-filter-section .masteriyo-see-more { color: var(--sl-red); font-style: normal; font-weight: 600; font-size: var(--sl-text-sm); }
body.sl-theme .masteriyo-price-type-filter button,
body.sl-theme .masteriyo-filter-section .masteriyo-price-type-filter label,
body.sl-theme .masteriyo-price-type-filter .masteriyo-btn { border-radius: 999px !important; }
body.sl-theme .masteriyo-clear-filters { display: flex; justify-content: center; min-height: 44px; align-items: center; border-radius: 999px !important; border: 1.5px solid var(--sl-ink) !important; color: var(--sl-ink) !important; font-weight: 600; text-decoration: none; }
body.sl-theme .masteriyo-clear-filters:hover { background: var(--sl-ink); color: #fff !important; }

/* Course cards – shared */
body.sl-theme .masteriyo-courses-wrapper { gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); }
body.sl-theme .masteriyo-courses-wrapper .masteriyo-col,
body.sl-theme .masteriyo-related-post .masteriyo-col { padding: 0; }
body.sl-theme .masteriyo-course--card {
	overflow: hidden; height: 100%;
	background: #fff !important; border: 1px solid var(--sl-line) !important; border-radius: var(--sl-r) !important; box-shadow: var(--sl-shadow-sm) !important;
	transition: transform .4s var(--sl-ease), box-shadow .4s var(--sl-ease), border-color .4s var(--sl-ease);
}
body.sl-theme .masteriyo-course--card:hover { transform: translateY(-4px); box-shadow: var(--sl-shadow) !important; border-color: var(--sl-line-2) !important; }
body.sl-theme .masteriyo-course--card .masteriyo-course--img-wrap { overflow: hidden; border-radius: 0; background: var(--sl-paper-2); }
body.sl-theme .masteriyo-course--card .masteriyo-feature-img img { transition: transform .8s var(--sl-ease); border-radius: 0 !important; }
body.sl-theme .masteriyo-course--card:hover .masteriyo-feature-img img { transform: scale(1.04); }
body.sl-theme .masteriyo-course--content__title,
body.sl-theme .masteriyo-course--content__title a {
	font-family: var(--sl-font-body) !important; font-size: var(--sl-text-lg) !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--sl-ink) !important; text-decoration: none !important; letter-spacing: -.005em;
}
body.sl-theme .masteriyo-course--content__title { margin: .7rem 0 .2rem !important; }
body.sl-theme .masteriyo-course--content__title a:hover { color: var(--sl-red) !important; }
body.sl-theme .masteriyo-course-highlights { color: var(--sl-muted); font-size: var(--sl-text-sm); }
body.sl-theme .masteriyo-course-highlights--item,
body.sl-theme .masteriyo-course-highlights li { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .35rem; line-height: 1.45; color: var(--sl-muted); }
body.sl-theme .masteriyo-course-highlights--item p { margin: 0; }
body.sl-theme .masteriyo-course-highlights--item::before,
body.sl-theme .masteriyo-course-highlights li::before { filter: none; }
body.sl-theme .masteriyo-course-highlights svg { fill: var(--sl-gold) !important; color: var(--sl-gold); }

/* Price */
body.sl-theme .masteriyo-course-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .6rem; }
body.sl-theme .masteriyo-course-price .current-amount,
body.sl-theme .masteriyo-course-price .current-amount .masteriyo-price-amount { font-family: var(--sl-font-display); font-size: 1.45rem; font-weight: 600; color: var(--sl-ink); line-height: 1.1; font-variant-numeric: lining-nums; }
body.sl-theme .masteriyo-course-price .old-amount,
body.sl-theme .masteriyo-course-price del { font-size: var(--sl-text-sm); color: var(--sl-faint); text-decoration-color: var(--sl-red); text-decoration-thickness: 1.5px; }
body.sl-theme .masteriyo-course-price .old-amount .masteriyo-price-amount { font-size: var(--sl-text-sm); color: var(--sl-faint); font-weight: 500; }
body.sl-theme .masteriyo-course-card-footer,
body.sl-theme .masteriyo-course-pricing--wrapper { gap: .9rem; }

/* Grid view card */
body.sl-theme .masteriyo-courses-wrapper.grid-view .masteriyo-course--content,
body.sl-theme .masteriyo-related-post .masteriyo-course--content { padding: 1.2rem 1.35rem 1.35rem !important; }
body.sl-theme .masteriyo-courses-wrapper.grid-view .masteriyo-course-card-footer,
body.sl-theme .masteriyo-related-post .masteriyo-course-card-footer { padding-top: 1rem; margin-top: .75rem; border-top: 1px solid var(--sl-line) !important; }

/* List view card */
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card { padding: .75rem !important; gap: 1.5rem; }
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course--img-wrap { border-radius: 12px; }
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-feature-img img { border-radius: 12px !important; aspect-ratio: 16 / 10; height: auto !important; object-fit: cover; }
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-course--content { padding: .6rem .5rem .5rem 0 !important; }
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-course-archive--aside { padding-left: 1.5rem; border-left: 1px solid var(--sl-line); }
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-course-archive--aside .masteriyo-course-card-footer { flex-direction: column; align-items: stretch; }
body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-course-archive--aside .masteriyo-course-price { justify-content: flex-start; }

/* Placeholder thumbnails */
body.sl-theme .masteriyo-course--img-wrap .masteriyo-feature-img svg,
body.sl-theme .masteriyo-course--img-wrap .masteriyo-placeholder-img { background: var(--sl-paper-2) !important; }

/* Pagination */
body.sl-theme .masteriyo-container ul.page-numbers,
body.sl-theme .masteriyo-course-list-display-section ul.page-numbers { background: transparent; padding: 0; gap: .4rem; }
body.sl-theme .masteriyo-container ul.page-numbers li { width: auto; height: auto; }
body.sl-theme .masteriyo-container ul.page-numbers li .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--sl-line); background: #fff; color: var(--sl-ink); font-size: var(--sl-text-sm); font-weight: 600; text-decoration: none; }
body.sl-theme .masteriyo-container ul.page-numbers li .page-numbers.current,
body.sl-theme .masteriyo-container ul.page-numbers li .page-numbers:hover { background: var(--sl-ink); border-color: var(--sl-ink); color: #fff; }
body.sl-theme .masteriyo-container ul.page-numbers li .page-numbers svg { fill: currentColor; }

/* ==========================================================================
   Single course
   ========================================================================== */
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] { gap: clamp(1.25rem, .8rem + 2vw, 2.5rem); }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-main-content-area .masteriyo-single-course--main {
	background: #fff; border: 1px solid var(--sl-line) !important; border-radius: var(--sl-r-lg) !important; overflow: hidden; box-shadow: var(--sl-shadow-sm);
}
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-main-content-area .masteriyo-course--content .masteriyo-course--img-wrap .masteriyo-feature-img { border-bottom: 0; }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-main-content-area .masteriyo-course--content .masteriyo-course--img-wrap img { border-radius: 0 !important; width: 100%; }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-main-content-area .masteriyo-course-category { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem) clamp(1.25rem, 1rem + 1.4vw, 2.25rem) 0; margin: 0; }
body.sl-theme .masteriyo-single-course--title,
body.sl-theme .masteriyo-course-title.masteriyo-single-course--title {
	font-family: var(--sl-font-display) !important; font-size: var(--sl-text-2xl) !important; font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: -.02em !important; color: var(--sl-ink) !important;
}
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-main-content-area .masteriyo-single-course--title { padding: .85rem clamp(1.25rem, 1rem + 1.4vw, 2.25rem) 0; margin: 0 0 1.5rem; }

/* Tabs */
body.sl-theme .masteriyo-course-curriculum-tabs,
body.sl-theme .masteriyo-stab.tab-menu { display: flex; gap: .35rem; padding: .4rem; margin: 0 clamp(1.25rem, 1rem + 1.4vw, 2.25rem) 0; background: var(--sl-paper); border: 1px solid var(--sl-line) !important; border-radius: 999px; width: fit-content; }
body.sl-theme .masteriyo-course-curriculum-tabs .masteriyo-tab { padding: .55rem 1.25rem; border: 0 !important; border-radius: 999px; font-size: var(--sl-text-sm); font-weight: 600; color: var(--sl-muted); line-height: 1.3; }
body.sl-theme .masteriyo-course-curriculum-tabs .masteriyo-tab:hover { color: var(--sl-ink); }
body.sl-theme .masteriyo-course-curriculum-tabs .masteriyo-tab.active-tab { background: var(--sl-ink); color: #fff; box-shadow: var(--sl-shadow-sm); }
body.sl-theme .masteriyo-single-course--main__content .tab-content { padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); }
body.sl-theme .masteriyo-single-course--main__content .tab-content.course-overview { color: var(--sl-muted); font-size: var(--sl-text-base); line-height: 1.7; }
body.sl-theme .masteriyo-single-course--main__content .tab-content.course-overview strong { color: var(--sl-ink); }
body.sl-theme .masteriyo-single-course--main__content .tab-content.course-overview h2,
body.sl-theme .masteriyo-single-course--main__content .tab-content.course-overview h3,
body.sl-theme .masteriyo-single-course--main__content .tab-content.course-overview h4 { font-family: var(--sl-font-body); color: var(--sl-ink); font-size: var(--sl-text-lg); margin: 1.8rem 0 .5rem; padding-top: 1.4rem; border-top: 1px solid var(--sl-line); }
body.sl-theme .masteriyo-single-course--main__content .tab-content.course-overview > *:first-child { margin-top: 0; }

/* Curriculum accordion */
body.sl-theme .masteriyo-stab--shortinfo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
body.sl-theme .masteriyo-shortinfo-wrap { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
body.sl-theme .masteriyo-shortinfo-wrap li { list-style: none; margin: 0; padding: .3rem .75rem; border-radius: 999px; background: var(--sl-paper); border: 1px solid var(--sl-line); font-size: var(--sl-text-xs); font-weight: 600; color: var(--sl-ink); }
body.sl-theme .masteriyo-shortinfo-wrap li::before { display: none !important; }
body.sl-theme .masteriyo-expand-collapse-all { cursor: pointer; font-size: var(--sl-text-sm); }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-course--accordion .masteriyo-stab--citems { margin-bottom: .6rem; border: 1px solid var(--sl-line) !important; border-radius: 14px !important; overflow: hidden; background: #fff; transition: border-color .2s; }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-course--accordion .masteriyo-stab--citems.active { border-color: var(--sl-line-2) !important; box-shadow: var(--sl-shadow-sm); }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-main-content-area .masteriyo-course--content .masteriyo-course--accordion .masteriyo-stab--citems .masteriyo-cheader { padding: 1rem 1.25rem; background: #fff; cursor: pointer; }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-course--accordion .masteriyo-stab--citems.active .masteriyo-cheader { background: var(--sl-paper); border-bottom: 1px solid var(--sl-line); }
body.sl-theme .masteriyo-ctitle { font-family: var(--sl-font-body) !important; font-size: var(--sl-text-base) !important; font-weight: 600 !important; color: var(--sl-ink) !important; }
body.sl-theme .masteriyo-ltc,
body.sl-theme .masteriyo-ltc span { font-size: var(--sl-text-xs); color: var(--sl-muted); font-weight: 500; }
body.sl-theme .masteriyo-icon-svg svg { fill: var(--sl-ink) !important; }
body.sl-theme .masteriyo-lesson-list { margin: 0; padding: .35rem 0; list-style: none; }
body.sl-theme .masteriyo-lesson-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem !important; margin: 0 !important; border-bottom: 1px solid var(--sl-line) !important; font-size: var(--sl-text-sm); }
body.sl-theme .masteriyo-lesson-item:last-child { border-bottom: 0 !important; }
body.sl-theme .masteriyo-lesson-item svg { fill: var(--sl-gold) !important; width: 18px; height: 18px; flex-shrink: 0; }
body.sl-theme .masteriyo-lesson-item a { color: var(--sl-text); text-decoration: none; flex: 1; }
body.sl-theme .masteriyo-lesson-item a:hover { color: var(--sl-red); }

/* Sidebar */
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-right-sidebar-area .masteriyo-single-course--aside {
	padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border: 1px solid var(--sl-line) !important; border-radius: var(--sl-r-lg) !important; box-shadow: var(--sl-shadow) !important;
	top: calc(var(--sl-header-h) + 1.5rem); overflow: hidden;
}
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-right-sidebar-area .masteriyo-single-course--aside::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sl-gold); }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-right-sidebar-area .masteriyo-single-course--aside > div { border-bottom-color: var(--sl-line) !important; margin-bottom: 1.4rem; padding-bottom: 1.4rem; }
body.sl-theme .masteriyo-single-course--wrapper[data-layout=default] .masteriyo-right-sidebar-area .masteriyo-single-course--aside > div:empty { display: none; }
body.sl-theme .masteriyo-single-course--aside .masteriyo-time-btn { display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem; }
body.sl-theme .masteriyo-single-course--aside .masteriyo-course-price { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; }
body.sl-theme .masteriyo-single-course--aside .masteriyo-course-price .current-amount,
body.sl-theme .masteriyo-single-course--aside .masteriyo-course-price .current-amount .masteriyo-price-amount { font-size: 2.4rem; letter-spacing: -.02em; }
body.sl-theme .masteriyo-single-course--aside .masteriyo-single-course--btn,
body.sl-theme .masteriyo-single-course--aside .masteriyo-enroll-btn { width: 100%; min-height: 54px; font-size: var(--sl-text-base) !important; }
body.sl-theme .masteriyo-single-course--aside h3,
body.sl-theme .masteriyo-single-course--aside h4,
body.sl-theme .masteriyo-single-course--aside .masteriyo-course-highlights > h3,
body.sl-theme .masteriyo-single-course--aside .masteriyo-single-course-includes-title { font-family: var(--sl-font-body); font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-ink) !important; margin: 0 0 .9rem !important; }
body.sl-theme .masteriyo-single-course-stats li,
body.sl-theme .masteriyo-course-statistics li { font-size: var(--sl-text-sm); color: var(--sl-muted); }
body.sl-theme .masteriyo-single-course-stats svg { fill: var(--sl-gold) !important; }

/* Related courses */
body.sl-theme .masteriyo-related-post { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
body.sl-theme .masteriyo-related-post__title { font-family: var(--sl-font-display) !important; font-size: var(--sl-text-xl) !important; font-weight: 600 !important; color: var(--sl-ink) !important; margin-bottom: 1.25rem !important; }
body.sl-theme .masteriyo-related-post .masteriyo-item--wrap { gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); }
body.sl-theme .masteriyo-related-post .masteriyo-course--card .masteriyo-feature-img img { aspect-ratio: 16 / 9; object-fit: cover; height: auto; }

/* Modals */
body.sl-theme .masteriyo--modal { border-radius: var(--sl-r-lg); }

/* ==========================================================================
   Account – sign in / register
   ========================================================================== */
body.sl-theme .masteriyo-login-form-wrapper {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	max-width: 980px; margin: 0 auto; overflow: hidden;
	background: #fff; border: 1px solid var(--sl-line); border-radius: var(--sl-r-lg); box-shadow: var(--sl-shadow);
}
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-login { width: auto; padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem); }
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-title { font-family: var(--sl-font-display) !important; font-size: var(--sl-text-xl) !important; font-weight: 600 !important; line-height: 1.15 !important; color: var(--sl-ink) !important; margin: 0 0 1.5rem !important; }
body.sl-theme .masteriyo-login--form > div { margin-bottom: 1.1rem; }
body.sl-theme .masteriyo-remember-forgot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: var(--sl-text-sm); }
body.sl-theme .masteriyo-remember-me { display: flex; align-items: center; gap: .5rem; }
body.sl-theme .masteriyo-remember-me label { margin: 0; color: var(--sl-muted); }
body.sl-theme .masteriyo-login-btn { width: 100%; min-height: 52px; font-size: var(--sl-text-base) !important; }
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-signup {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6rem;
	width: auto; padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
	color: #d7dce5; background: radial-gradient(420px 240px at 100% 0%, rgba(184, 151, 90, .12), transparent 70%), linear-gradient(160deg, var(--sl-ink), var(--sl-ink-2));
	border: 0 !important;
}
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-signup .masteriyo-title { color: #fff !important; margin-bottom: .25rem !important; }
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-signup > span { font-size: var(--sl-text-base); color: #c3cad6; margin-bottom: .75rem; }
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-signup .masteriyo-btn { background: var(--sl-gold-soft) !important; color: var(--sl-ink) !important; box-shadow: none; }
body.sl-theme .masteriyo-login-form-wrapper .masteriyo-signup .masteriyo-btn:hover { background: #fff !important; }
body.sl-theme .masteriyo-alert { border-radius: 12px; font-size: var(--sl-text-sm); }
@media (max-width: 820px) { body.sl-theme .masteriyo-login-form-wrapper { grid-template-columns: 1fr; } }

/* Signup / reset password forms */
body.sl-theme .masteriyo-signup-form-wrapper,
body.sl-theme .masteriyo-reset-password,
body.sl-theme .masteriyo-reset-password-form,
body.sl-theme .masteriyo-registration-form-wrapper,
body.sl-theme .masteriyo-signup-wrapper {
	max-width: 720px; margin: 0 auto; padding: clamp(1.5rem, 1.1rem + 2vw, 3rem) !important;
	background: #fff; border: 1px solid var(--sl-line) !important; border-radius: var(--sl-r-lg) !important; box-shadow: var(--sl-shadow);
}
body.sl-theme .masteriyo-signup-form-wrapper .masteriyo-title,
body.sl-theme .masteriyo-reset-password .masteriyo-title { font-family: var(--sl-font-display) !important; font-size: var(--sl-text-xl) !important; font-weight: 600 !important; color: var(--sl-ink) !important; }

/* ==========================================================================
   Checkout / payment
   ========================================================================== */
body.sl-theme .masteriyo-checkout-wrapper,
body.sl-theme .masteriyo-checkout { gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
body.sl-theme .masteriyo-checkout-main,
body.sl-theme .masteriyo-checkout-summary,
body.sl-theme .masteriyo-checkout--form,
body.sl-theme #masteriyo-checkout-summary {
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) !important; background: #fff !important;
	border: 1px solid var(--sl-line) !important; border-radius: var(--sl-r-lg) !important; box-shadow: var(--sl-shadow-sm);
}
body.sl-theme .masteriyo-checkout-summary-heading,
body.sl-theme .masteriyo-checkout-main h2,
body.sl-theme .masteriyo-checkout-main h3,
body.sl-theme .masteriyo-checkout-summary h2,
body.sl-theme .masteriyo-checkout-summary h3 { font-family: var(--sl-font-display) !important; font-weight: 600 !important; color: var(--sl-ink) !important; }
body.sl-theme .masteriyo-checkout-summary-order-details tr,
body.sl-theme .masteriyo-checkout-summary table td,
body.sl-theme .masteriyo-checkout-summary table th { border-color: var(--sl-line) !important; }
body.sl-theme .masteriyo-checkout-summary-order-details .masteriyo-checkout-summary-order-details__total,
body.sl-theme .masteriyo-checkout-summary .total { font-weight: 700; color: var(--sl-ink); }
body.sl-theme #masteriyo-checkout-submit,
body.sl-theme .masteriyo-checkout-submit,
body.sl-theme .masteriyo-checkout--form button[type=submit] { width: 100%; min-height: 54px; }
body.sl-theme .masteriyo-payments,
body.sl-theme .masteriyo-checkout-summary-payment-method { border-radius: 14px; }
body.sl-theme .masteriyo-payment-method,
body.sl-theme .masteriyo-checkout-summary-payment-method li { border-radius: 12px; }

/* ==========================================================================
   Notices
   ========================================================================== */
body.sl-theme .masteriyo-notify-message,
body.sl-theme .masteriyo-notice { border-radius: 12px; }
body.sl-theme .masteriyo-success-msg { background: #eef7f0; border-color: #b9dcc2; color: #1f5130; }
body.sl-theme .masteriyo-danger-msg { background: var(--sl-red-tint); border-color: #efc3b8; color: var(--sl-red-d); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	body.sl-theme .masteriyo-courses-filters { position: fixed; top: 0; border-radius: 0; z-index: 200; }
	body.sl-theme .masteriyo-courses-wrapper.list-view .masteriyo-course-archive--aside { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--sl-line); }
}
@media (max-width: 767px) {
	body.sl-theme .masteriyo-search-section { border-radius: var(--sl-r); }
	body.sl-theme .masteriyo-courses-view-mode-section { display: none; }
	body.sl-theme .masteriyo-course-curriculum-tabs { margin-left: 1.25rem; }
}

/* Aside refinements */
body.sl-theme .masteriyo-single-course-stats:not(:has(*)) { display: none !important; }
body.sl-theme .masteriyo-single-course--aside .masteriyo-aside-heading { font-family: var(--sl-font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-gold, #b8975a); margin: 0 0 .75rem; font-weight: 600; }
body.sl-theme .masteriyo-single-course--aside { overflow: hidden; }
body.sl-theme .masteriyo-course-highlights--item p { margin: 0; }

body.sl-theme .masteriyo-alert.masteriyo-info-msg { background: #fff; border: 1px solid var(--sl-line); border-left: 4px solid var(--sl-gold, #b8975a); color: var(--sl-ink); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: 0 8px 24px rgba(17,27,46,.05); }
body.sl-theme .masteriyo-alert.masteriyo-info-msg a { color: var(--sl-red, #b01f00); font-weight: 600; }
@media (max-width: 767px) {
	body.sl-theme .masteriyo-stab.tab-menu { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; }
	body.sl-theme .masteriyo-stab.tab-menu .masteriyo-tab { white-space: nowrap; flex: 0 0 auto; width: auto !important; }
}

@media (max-width: 767px) {
	body.sl-theme .masteriyo-stab--tcurriculum { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; border: 0 !important; }
	body.sl-theme .masteriyo-stab--shortinfo { display: flex !important; flex-wrap: wrap; gap: .4rem; align-items: center; }
	body.sl-theme .masteriyo-stab--shortinfo > * { margin: 0 !important; }
}
