/* Lessons page. */
html body.mskc-lessons-page { margin: 0; background: #F8F3EC !important; color: #2B1C1F; font-family: 'Poppins', 'Cairo', system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
html[lang="ar"] body.mskc-lessons-page { font-family: 'Cairo', 'Poppins', system-ui, sans-serif; }
.mskl *, .mskl *::before, .mskl *::after { box-sizing: border-box; }
.mskl h1, .mskl h2, .mskl p, .mskl ul { margin: 0; font-family: inherit; font-style: normal; text-transform: none; color: inherit; }
.mskl h3, .mskl h4 { text-transform: none; font-style: normal; letter-spacing: normal; }
.mskl [lang="en"] { font-family: 'Poppins', system-ui, sans-serif; }
.mskl a { color: #5E1A2A; }
.mskl :focus-visible { outline: 3px solid #C9A06A; outline-offset: 2px; }
.mskl-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }

/* Hero */
.mskl-hero { background: #5E1A2A; color: #fff; position: relative; isolation: isolate; overflow: hidden; padding: 30px 0 34px; }
.mskl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.6px); background-size: 24px 24px; }
.mskl-hero-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mskl-hero-tx { display: flex; flex-direction: column; gap: 8px; max-width: 700px; }
.mskl-hero h1 { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; color: #fff; }
html[lang="ar"] .mskl-hero h1 { letter-spacing: 0; font-weight: 900; line-height: 1.3; }
.mskl-hero p { color: #F3E3E6; font-size: 17px; }
.mskl-stats { margin: 0; display: flex; gap: 10px; }
.mskl-stats > div { background: #3F1019; border-radius: 14px; padding: 10px 18px; text-align: center; }
.mskl-stats dt { font-size: 26px; font-weight: 800; color: #C9A06A; line-height: 1.2; font-family: 'Poppins', sans-serif; }
.mskl-stats dd { margin: 0; font-size: 13px; color: #F3E3E6; }

/* Tools */
.mskl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 28px; }
.mskl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mskl-chip { border: 1px solid #E0D6C6; background: #fff; color: #2B1C1F; font: inherit; font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; cursor: pointer; line-height: 1.4; }
.mskl-chip span { opacity: .65; font-weight: 600; }
.mskl-chip:hover { border-color: #5E1A2A; }
.mskl-chip.is-on { background: #5E1A2A; border-color: #5E1A2A; color: #fff; }
.mskl-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E0D6C6; border-radius: 12px; padding: 0 12px; width: 300px; max-width: 100%; color: #6A5A5C; }
.mskl-search:focus-within { border-color: #C9A06A; box-shadow: 0 0 0 3px rgba(201, 160, 106, .3); }
.mskl-search input { border: 0 !important; outline: 0; background: transparent !important; font: inherit; font-size: 15px; padding: 10px 0 !important; flex: 1; min-width: 0; color: #2B1C1F; box-shadow: none !important; }

/* Stage */
.mskl-stage { padding-top: 22px; }
.mskl-player { background: #fff; border: 1px solid #E0D6C6; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; scroll-margin-top: 90px; }
.mskl-player[hidden] { display: none; }
.mskl-video { position: relative; background: #000; align-self: stretch; min-height: 340px; }
.mskl .mskl-video video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; display: block; background: #000; border-radius: 0; box-shadow: none; }
.mskl-now { position: absolute; top: 14px; inset-inline-start: 14px; background: #C9A06A; color: #3F1019; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 2px 12px; pointer-events: none; transition: opacity .3s; }
.mskl-video.is-playing .mskl-now { opacity: 0; }
.mskl-info { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mskl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mskl-topic { font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 2px 12px; }
.mskl-len { color: #6A5A5C; font-size: 13.5px; }
.mskl-info h2 { font-size: 28px; font-weight: 800; line-height: 1.2; }
html[dir="rtl"] .mskl-info h2, html[dir="rtl"] .mskl-card-bd b { text-align: right; }
.mskl-intro { color: #6A5A5C; font-size: 15px; }
.mskl-audio { background: #F8F3EC; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mskl-audio-lbl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #1F5A3E; }
.mskl-audio audio { width: 100%; height: 40px; }
.mskl-terms { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mskl-terms li { border: 1px solid #E0D6C6; border-radius: 12px; padding: 10px; margin: 0; }
.mskl-terms b { display: block; font-size: 14px; color: #5E1A2A; }
.mskl-terms span { display: block; font-size: 12.5px; color: #6A5A5C; line-height: 1.45; }
.mskl-notes { border-top: 1px solid #E0D6C6; padding-top: 10px; }
.mskl-notes summary { cursor: pointer; font-weight: 700; color: #5E1A2A; font-size: 14px; }
.mskl-notes > div { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; font-size: 15px; line-height: 1.7; }
.mskl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.mskl-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; line-height: 1.35; }
.mskl-btn-quiz { background: #2C7552; color: #fff !important; }
.mskl-btn-quiz:hover { background: #24654A; }
.mskl-btn-ghost { color: #5E1A2A !important; border: 1.5px solid #E0D6C6; padding: 9px 14px; }
.mskl-btn-ghost:hover { background: #F8F3EC; }

/* Grid */
.mskl-list { padding-top: 30px; padding-bottom: 64px; }
.mskl-list > h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.mskl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mskl-card { background: #fff; border: 1px solid #E0D6C6; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: #2B1C1F !important; transition: box-shadow .2s, transform .2s, border-color .2s; }
.mskl-card:hover { box-shadow: 0 12px 30px rgba(43, 28, 31, .12); transform: translateY(-2px); }
.mskl-card.is-on { border: 2px solid #C9A06A; }
.mskl-card[hidden] { display: none; }
.mskl-thumb { position: relative; aspect-ratio: 16 / 9; background: #3F1019; overflow: hidden; display: block; flex: none; }
.mskl .mskl-thumb img, .mskl .mskl-thumb video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0; box-shadow: none; pointer-events: none; }
.mskl-num { position: absolute; top: 10px; inset-inline-start: 10px; background: #fff; color: #5E1A2A; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 1px 9px; font-family: 'Poppins', sans-serif; }
.mskl-thumb .mskl-topic { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 12px; padding: 1px 10px; }
.mskl-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(94, 26, 42, .88); display: flex; align-items: center; justify-content: center; }
.mskl-card-bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mskl-card-bd b { font-size: 17px; line-height: 1.3; }
.mskl-card-bd > span:not(.mskl-feat) { font-size: 13.5px; color: #6A5A5C; line-height: 1.5; }
.mskl-feat { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 600; color: #6A5A5C; }
.mskl-hasquiz { color: #2C7552; }
.mskl-empty { text-align: center; color: #6A5A5C; padding: 30px 0; }
.mskl-more { margin-top: 22px; text-align: center; }
.mskl-more a { font-weight: 700; text-decoration: none; }
.mskl-more a:hover { text-decoration: underline; }

@media (max-width: 960px) {
	.mskl-player { grid-template-columns: 1fr; }
	.mskl-video { aspect-ratio: 16 / 9; min-height: 0; }
	.mskl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.mskl-wrap { padding-inline: 16px; }
	.mskl-hero { padding: 20px 0 22px; }
	.mskl-hero h1 { font-size: 32px; }
	.mskl-hero p { font-size: 15.5px; }
	.mskl-stats { display: none; }
	.mskl-tools { padding-top: 16px; }
	.mskl-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none; }
	.mskl-chips::-webkit-scrollbar { display: none; }
	.mskl-chip { flex: none; }
	.mskl-search { width: 100%; }
	.mskl-stage { padding-top: 14px; }
	.mskl-player { border-radius: 16px; }
	.mskl-info { padding: 16px; }
	.mskl-info h2 { font-size: 22px; }
	.mskl-grid { grid-template-columns: 1fr; gap: 10px; }
	.mskl-card { display: grid; grid-template-columns: 120px 1fr; }
	.mskl-thumb { aspect-ratio: auto; min-height: 92px; }
	.mskl-thumb .mskl-topic, .mskl-play { display: none; }
	.mskl-card-bd { padding: 10px 12px; gap: 2px; }
	.mskl-card-bd b { font-size: 15px; }
	.mskl-card-bd > span:not(.mskl-feat) { display: none; }
	.mskl-feat { font-size: 12px; gap: 8px; }
	.mskl-list { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.mskl * { transition: none !important; }
}
