/* منصة برنامج مروة الشفيع: نفس هوية صفحة البيع (marwa-landing/site/assets/style.css) */
@font-face { font-family: 'Marwa'; src: url(fonts/Montserrat-Arabic-Regular-400.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Marwa'; src: url(fonts/Montserrat-Arabic-Medium-500.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Marwa'; src: url(fonts/Montserrat-Arabic-SemiBold-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Marwa'; src: url(fonts/Montserrat-Arabic-Bold-700.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Marwa'; src: url(fonts/Montserrat-Arabic-ExtraBold-800.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Marwa'; src: url(fonts/Montserrat-Arabic-Black-900.ttf) format('truetype'); font-weight: 900; font-display: swap; }

:root {
	--purple: #7478d1;
	--purple-dk: #5b5fc0;
	--lav: #f3f3fc;
	--lav-2: #e7e7f8;
	--navy: #17012c;
	--navy-2: #2f3350;
	--orange: #ff865b;
	--green: #22b07d;
	--text: #2f3350;
	--muted: #6b6f86;
	--r: 18px;
}

/* ===== الأساس ===== */
body.mc { margin: 0; font-family: 'Marwa', Tahoma, sans-serif; color: var(--text); background: #fff; line-height: 1.8; font-size: 17px; -webkit-font-smoothing: antialiased; direction: rtl; text-align: right; }
.mc *, .mc *::before, .mc *::after { box-sizing: border-box; }
.mc h1, .mc h2, .mc h3, .mc p, .mc ol, .mc ul { margin: 0; padding: 0; }
.mc img { max-width: 100%; display: block; }
.mc a { color: inherit; text-decoration: none; }
.mc-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mc-narrow { width: min(760px, 100% - 40px); }
.mc-i { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* أزرار */
.mc-btn, .mc .llms-button-action, .mc .llms-button-primary, .mc button.llms-field-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange) !important; color: #fff !important; font-family: inherit !important; font-weight: 700; font-size: 17px; line-height: 1.5; padding: 13px 28px; border: 0 !important; border-radius: 999px !important; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(255,134,91,.8); transition: transform .2s, background .2s; text-decoration: none !important; }
.mc-btn:hover, .mc .llms-button-action:hover, .mc .llms-button-primary:hover { transform: translateY(-2px); background: #ff7442 !important; }
.mc-btn .mc-i { width: 18px; height: 18px; }
.mc-btn-sm { padding: 8px 18px; font-size: 15px; }
.mc-btn-block { width: 100%; }
.mc-btn-light { background: #fff !important; color: var(--navy) !important; box-shadow: none; }
.mc-btn-light:hover { background: var(--lav) !important; }
.mc-btn-ghost-dark { background: transparent !important; color: var(--navy) !important; border: 2px solid var(--lav-2) !important; box-shadow: none; }
.mc-btn-ghost-dark:hover { border-color: var(--purple) !important; background: transparent !important; }

.mc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 16px; }
.mc-eyebrow .mc-i { width: 16px; height: 16px; fill: var(--orange); }
.mc-eyebrow.mc-dark { color: var(--purple-dk); background: #fff; }
.mc-sec-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; color: var(--navy); line-height: 1.35; margin: 14px 0 8px; }
.mc-sec-sub { color: var(--muted); font-size: 17px; margin-bottom: 30px; }

/* ===== الشريط العلوي ===== */
.mc-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--lav-2); }
.admin-bar .mc-top { top: 32px; }
.mc-top-in { display: flex; align-items: center; gap: 16px; height: 72px; }
.mc-brand img { height: 54px; width: auto; }
.mc-top-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple-dk); font-size: 15px; background: var(--lav); border-radius: 999px; padding: 4px 14px; }
.mc-top-label .mc-i { fill: var(--orange); }
.mc-user { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.mc-user > a:not(.mc-btn) { font-weight: 600; font-size: 15px; color: var(--navy-2); padding: 6px 12px; border-radius: 999px; }
.mc-user > a:not(.mc-btn):hover { background: var(--lav); color: var(--purple-dk); }
.mc-chip { width: 38px; height: 38px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; display: grid; place-items: center; margin-inline-start: 4px; }

/* ===== البطل (مثل صفحة البيع) ===== */
.mc-hero, .mc-lhead { position: relative; overflow: hidden; background: var(--purple); color: #fff; }
.mc-hero { padding: 64px 0 70px; }
.mc-blocks span { position: absolute; background: var(--navy-2); }
.mc-blocks span:nth-child(1) { width: 150px; height: 150px; left: 0; top: 0; }
.mc-blocks span:nth-child(2) { width: 150px; height: 150px; left: 150px; top: 150px; opacity: .85; }
.mc-blocks span:nth-child(3) { width: 110px; height: 110px; left: 0; bottom: 0; opacity: .6; }
.mc-hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.mc-prog, .mc-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; line-height: 1.35; margin: 20px 0 6px; color: #fff; }
.mc-prog em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 62%, var(--orange) 62%); padding: 0 4px; }
.mc-en { font-size: clamp(16px, 2vw, 21px); font-weight: 600; opacity: .95; text-align: right; }
.mc-en b { color: var(--navy); background: #fff; border-radius: 8px; padding: 0 8px; margin-inline-start: 4px; }
.mc-hello { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); font-weight: 700; padding-inline-start: 14px; border-inline-start: 4px solid var(--orange); line-height: 1.7; max-width: 560px; }

.mc-card { background: #fff; color: var(--text); border-radius: 22px; padding: 26px; border: 1px solid var(--lav-2); box-shadow: 0 30px 60px -30px rgba(23,1,44,.45); }
.mc-pc-top { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-weight: 600; }
.mc-pc-top b { font-size: 46px; font-weight: 900; color: var(--purple-dk); line-height: 1.1; }
.mc-bar { height: 12px; border-radius: 99px; background: var(--lav-2); overflow: hidden; margin: 10px 0 8px; }
.mc-bar u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--purple)); min-width: 0; transition: width .6s; }
.mc-bar-thin { height: 6px; margin: 0 0 14px; }
.mc-pc-meta { font-size: 14px; color: var(--muted); }
.mc-next { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--lav-2); }
.mc-next small { display: block; color: var(--orange); font-weight: 700; font-size: 14px; }
.mc-next b { display: block; color: var(--navy); font-weight: 800; font-size: 19px; line-height: 1.5; margin: 2px 0 14px; }
.mc-pending { text-align: center; }
.mc-pending > .mc-i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--lav); fill: var(--purple); margin: 0 auto 10px; display: block; }
.mc-pending b { font-size: 20px; color: var(--navy); }
.mc-pending p { color: var(--muted); font-size: 15.5px; margin: 6px 0 18px; }

/* ===== التنبيهات ===== */
.mc-notices:empty { display: none; }
.mc-notices { margin-top: 24px; }
.mc .llms-notice { border: 0 !important; border-inline-start: 5px solid var(--purple) !important; background: var(--lav) !important; color: var(--navy) !important; border-radius: 14px; padding: 14px 18px !important; margin: 0 0 18px !important; font-weight: 600; list-style: none; }
.mc .llms-notice.llms-error { border-color: #e0475b !important; background: #fdeef0 !important; }
.mc .llms-notice.llms-success { border-color: var(--green) !important; background: #eaf8f2 !important; }
.mc .llms-notice ul { list-style: none; }

/* ===== محتوى البرنامج ===== */
.mc-syllabus { background: var(--lav); padding: 80px 0; }
.mc-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mc-mod { background: #fff; border-radius: var(--r); padding: 22px; border: 1px solid var(--lav-2); }
.mc-mod.mod-now { border: 2px solid var(--orange); box-shadow: 0 20px 40px -26px rgba(255,134,91,.7); }
.mc-mod header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.mc-mod header i { font-style: normal; width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; font-size: 17px; }
.mc-mod.mod-done header i { background: var(--green); }
.mc-mod header small { display: block; color: var(--purple-dk); font-weight: 700; font-size: 13px; line-height: 1.4; }
.mc-mod h3 { color: var(--navy); font-size: 19px; font-weight: 800; line-height: 1.45; }
.mc-mod-count { margin-inline-start: auto; font-weight: 800; color: var(--navy-2); background: var(--lav); border-radius: 999px; padding: 2px 12px; font-size: 14px; direction: ltr; }

.mc-list { list-style: none; display: grid; gap: 8px; }
.mc-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--lav); color: var(--navy); border: 2px solid transparent; transition: border-color .2s, background .2s; }
a.mc-row:hover { border-color: var(--purple); background: #fff; }
.mc-row em { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lav-2); }
.mc-row em .mc-i { width: 14px; height: 14px; fill: var(--muted); }
.mc-row-t { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; font-size: 14.5px; color: var(--muted); }
.mc-row-t b { color: var(--navy); font-size: 15px; font-weight: 800; }
.mc-row small { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-inline-start: 8px; }
li.is-done .mc-row em { background: var(--green); }
li.is-done .mc-row em .mc-i { fill: #fff; }
li.is-now .mc-row { background: #fff; border-color: var(--orange); }
li.is-now .mc-row em { background: var(--orange); }
li.is-now .mc-row em .mc-i { fill: #fff; margin-inline-start: 2px; }
li.is-now .mc-row small { color: var(--orange); font-weight: 700; }
li.is-lock .mc-row { opacity: .6; cursor: not-allowed; }
li.is-here .mc-row { background: var(--navy); border-color: var(--navy); }
li.is-here .mc-row, li.is-here .mc-row-t, li.is-here .mc-row-t b, li.is-here .mc-row small { color: #fff; }
li:target .mc-row { animation: mc-flash 1.6s ease 2; }
@keyframes mc-flash { 50% { border-color: var(--orange); background: #fff1eb; } }

/* ===== الشهادة (شريط) ===== */
.mc-cert-sec { padding: 0 0 80px; background: var(--lav); }
.mc-certbar { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 22px; background: var(--navy); color: #fff; background-image: radial-gradient(circle at 12% 20%, rgba(116,120,209,.4), transparent 45%); }
.mc-certbar-icon { width: 64px; height: 64px; flex: none; border-radius: 18px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.mc-certbar-icon .mc-i { width: 36px; height: 36px; fill: var(--orange); }
.mc-certbar b { display: block; font-size: 22px; font-weight: 800; }
.mc-certbar span { color: #c9c8e4; font-size: 15.5px; }
.mc-certbar .mc-btn { margin-inline-start: auto; flex: none; }
.mc-certbar.is-earned .mc-certbar-icon { background: var(--orange); }
.mc-certbar.is-earned .mc-certbar-icon .mc-i { fill: #fff; }

/* ===== صفحة الدرس ===== */
.mc-lhead { padding: 34px 0 30px; }
.mc-lhead .mc-blocks span:nth-child(1) { width: 90px; height: 90px; }
.mc-lhead .mc-blocks span:nth-child(2) { width: 90px; height: 90px; left: 90px; top: 90px; }
.mc-lhead .mc-wrap { position: relative; }
.mc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; font-weight: 600; opacity: .92; }
.mc-crumbs a { text-decoration: underline !important; text-underline-offset: 4px; }
.mc-lhead h1 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; line-height: 1.4; margin: 8px 0 14px; }
.mc-lmeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mc-pill { background: rgba(23,1,44,.25); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 14px; }
.mc-bar-on-dark { width: min(320px, 50vw); margin: 0; background: rgba(255,255,255,.25); height: 10px; }
.mc-lmeta b { font-weight: 800; }

.mc-lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; padding: 34px 0 80px; }
.mc-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--navy-2); box-shadow: 0 30px 60px -30px rgba(23,1,44,.5); }
.mc-video iframe, .mc-video video, .mc-video .wp-video, .mc-video .mejs-container { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.mc-video-soon { background: var(--navy-2) url(img/hall.webp) center / cover; display: grid; place-items: center; }
.mc-video-soon > div { position: absolute; inset: 0; background: rgba(23,1,44,.6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.mc-video-soon .mc-i { width: 74px; height: 74px; padding: 20px; border-radius: 50%; background: var(--orange); fill: #fff; margin-bottom: 8px; }
.mc-video-soon b { font-size: 20px; }
.mc-video-soon span { color: #d9d8f0; font-size: 15px; }
.mc-lcontent { margin-top: 24px; font-size: 17px; }
.mc-lcontent p { margin-bottom: 12px; }

.mc-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 22px; border-radius: var(--r); background: var(--lav); }
.mc-actions:empty { display: none; }
.mc-complete { margin: 0; }
.mc-complete .mc-btn { font-size: 18px; padding: 14px 34px; }
.mc-hint { color: var(--muted); font-size: 15px; }
.mc-done-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green); font-size: 17px; }
.mc-done-badge .mc-i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); fill: #fff; }
.mc-actions .mc-done-badge + .mc-btn { margin-inline-start: auto; }

.mc-pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; }
.mc-pager > a, .mc-pager > span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--lav-2); color: var(--navy); font-weight: 700; }
.mc-pager > span:empty { border: 0; }
.mc-pager > a:hover { border-color: var(--purple); }
.mc-pager small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.mc-pager .mc-i { width: 22px; height: 22px; fill: var(--purple); }
.mc-pager .is-lock { opacity: .55; }
.mc-pager .is-lock .mc-i { width: 16px; height: 16px; fill: var(--muted); }

.mc-side { position: sticky; top: 96px; }
.mc-side-card { padding: 18px; max-height: calc(100vh - 120px); overflow: auto; }
.mc-side-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; border-bottom: 1px solid var(--lav-2); margin-bottom: 8px; }
.mc-side-head b { color: var(--navy); font-weight: 800; font-size: 17px; }
.mc-side-head span { font-weight: 800; color: var(--purple-dk); direction: ltr; }
.mc-side-mod { border-bottom: 1px solid var(--lav-2); }
.mc-side-mod summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.5; }
.mc-side-mod summary::-webkit-details-marker { display: none; }
.mc-side-mod summary i { font-style: normal; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.mc-side-mod summary small { margin-inline-start: auto; color: var(--muted); font-weight: 700; direction: ltr; }
.mc-side-mod .mc-list { padding: 0 0 12px; gap: 6px; }
.mc-side-mod .mc-row { padding: 8px 10px; gap: 10px; }
.mc-side-mod .mc-row em { width: 24px; height: 24px; }
.mc-side-mod .mc-row-t { font-size: 13px; }
.mc-side-mod .mc-row-t b { font-size: 13.5px; }
.mc-side-mod .mc-row small { display: none; }
.mc-side-cert { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff; }
.mc-side-cert > .mc-i { width: 32px; height: 32px; fill: var(--orange); }
.mc-side-cert span { font-size: 13.5px; color: #c9c8e4; display: flex; flex-direction: column; }
.mc-side-cert b { color: #fff; font-size: 15.5px; }
.mc-side-cert a { color: var(--orange); font-weight: 700; }

/* ===== الدخول والحساب ===== */
.mc-hero-sm { padding: 46px 0 90px; }
.mc-hero-sm .mc-wrap { position: relative; text-align: center; }
.mc-hero-sm h1 { margin: 16px 0 4px; }
.mc-hero-sm .mc-en { text-align: center; }
.mc-account-sec { background: var(--lav); padding: 0 0 80px; }
.mc-account-sec .mc-wrap { position: relative; top: -56px; margin-bottom: -56px; }
.mc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.mc-tabs a { background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; box-shadow: 0 10px 24px -18px rgba(23,1,44,.6); }
.mc-tabs a.is-on, .mc-tabs a:hover { background: var(--navy); color: #fff; }
.mc-account-card { padding: 34px; }
.mc-account-note { text-align: center; margin-top: 30px !important; color: var(--muted); font-size: 15px; margin-top: 22px; line-height: 1.9; }
.mc-account-note a { color: var(--purple-dk); font-weight: 700; text-decoration: underline !important; text-underline-offset: 4px; }

/* نماذج LifterLMS داخل البطاقة */
.mc-account-card h2, .mc-account-card h3, .mc-account-card h4, .mc .llms-form-heading { font-size: 21px; font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.mc .llms-student-dashboard { display: block !important; }
.mc .llms-form-fields { display: flex; flex-wrap: wrap; gap: 0 14px; }
.mc .llms-form-fields > * { flex: 1 1 100%; }
.mc .llms-form-fields > .llms-cols-6 { flex: 1 1 calc(50% - 7px); }
.mc .llms-form-fields .wp-block-columns { display: flex; gap: 14px; }
.mc .llms-form-fields .wp-block-column { flex: 1; min-width: 0; }
.mc .llms-visibility-toggle { display: none; }
.mc .llms-form-field .llms-field-input[readonly] { opacity: .8; }
.mc .llms-form-field { float: none !important; width: 100% !important; padding: 0 !important; margin: 0 0 16px !important; }

.mc .llms-form-field label:not(:empty) { display: block; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.mc .llms-form-field .llms-required { color: var(--orange); }
.mc .llms-form-field input.llms-field-input, .mc .llms-form-field select, .mc .llms-form-field textarea { width: 100%; font-family: inherit; font-size: 16px; color: var(--navy); background: var(--lav); border: 2px solid var(--lav-2); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, background .2s; }
.mc .llms-form-field input.llms-field-input:focus { border-color: var(--purple); background: #fff; }
.mc .llms-form-field.type-checkbox label, .mc .llms-form-field.type-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mc .llms-form-field.type-checkbox input { width: 18px; height: 18px; accent-color: var(--purple); }
.mc .llms-form-field.type-submit { margin-bottom: 0 !important; }
.mc .llms-form-field.type-submit button { width: 100%; }
.mc .llms-lost-password-link { text-align: center; margin-top: 12px; }
.mc .llms-lost-password-link a, .mc .llms-form-field a { color: var(--purple-dk); font-weight: 700; }
.mc .llms-person-login-form-wrapper .llms-form-field.llms-cols-6, .mc .llms-lost-password-form .llms-form-field { flex-basis: 100% !important; }
.mc .llms-field-html, .mc .llms-description { color: var(--muted); font-size: 14px; }
.mc .clear, .mc .llms-clear { clear: both; }
.mc .llms-sd-section-title, .mc .llms-sd-title { display: none; }

/* شهاداتي */
.mc .llms-certificates-loop { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr !important; }
.mc .llms-certificate { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.mc .llms-certificate > a { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; border-radius: 16px; padding: 18px 20px; }
.mc .llms-certificate h4 { color: #fff !important; margin: 0 !important; font-size: 17px; }
.mc .llms-certificate .llms-certificate-date { color: #c9c8e4; font-size: 14px; }
.mc .llms-sd-section-footer { display: none; }

/* ===== التذييل ===== */
.mc-foot { background: #0f0120; color: #b8b6d4; padding: 34px 0; font-size: 14px; }
.mc-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mc-foot-logo { height: 60px; width: auto; }
.mc-social { display: flex; gap: 18px; }
.mc-social a:hover { color: var(--orange); }

/* النوافذ المنبثقة من LifterLMS (اكتمل الدرس / الشهادة) */
.mc .llms-notification { font-family: 'Marwa', sans-serif !important; border-radius: 16px !important; border-top: 4px solid var(--orange) !important; direction: rtl; text-align: right; }
.mc .llms-notification-title { color: var(--navy) !important; font-weight: 800 !important; }

/* ===== الشهادة ===== */
.mc-cert { position: relative; text-align: center; color: var(--navy); font-family: 'Marwa', system-ui, sans-serif; padding: 6% 8% 5%; border: 3px solid var(--navy); outline: 1px solid var(--purple); outline-offset: -14px; min-height: 100%; box-sizing: border-box; }
.mc-cert-band { position: absolute; inset: 0 0 auto 0; height: 14px; background: linear-gradient(90deg, var(--navy) 0 60%, var(--purple) 60% 85%, var(--orange) 85%); }
.mc-cert-kicker { margin: 0 0 18px; color: var(--orange); font-weight: 800; font-size: 30px; line-height: 1.3; }
.mc-cert-lead { margin: 6px 0; font-size: 18px; line-height: 1.5; color: #4a4e7a; }
.mc-cert-name { margin: 4px 0 10px; font-size: 46px; line-height: 1.25; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--lav-2); display: inline-block; padding: 0 1em .2em; align-self: center; overflow-wrap: anywhere; }
.mc-cert-prog { margin: 8px 0 2px; font-size: 28px; line-height: 1.35; font-weight: 800; color: var(--purple); overflow-wrap: anywhere; }
.mc-cert-en { margin: 0 0 28px; font-size: 16px; font-weight: 600; letter-spacing: .03em; color: #4a4e7a; }
.mc-cert-foot { display: flex; justify-content: space-between; gap: 1em; border-top: 1px solid var(--lav-2); padding-top: 1.2em; font-size: 16px; }
.mc-cert-foot div { display: flex; flex-direction: column; gap: .2em; flex: 1; }
.mc-cert-foot span { font-size: 13px; color: #7b7fa8; }
.mc-cert-foot b { font-weight: 700; }
.mc-cert-sign b { font-size: 22px; color: var(--purple); }
.mc-cert h1, .mc-cert h2, .mc-cert p { letter-spacing: 0; white-space: normal; max-width: 100%; }
.llms-certificate-container .mc-cert { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.single-llms_my_certificate, .single-llms_certificate { font-family: 'Marwa', system-ui, sans-serif; background: var(--lav); }
.llms-print-certificate { font-family: 'Marwa', system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 16px; }
.llms-print-certificate form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.llms-print-certificate .llms-button-secondary { font-family: inherit !important; background: #fff !important; color: var(--navy) !important; border: 2px solid var(--lav-2) !important; border-radius: 999px !important; padding: 8px 18px !important; font-weight: 700; cursor: pointer; }
.llms-print-certificate .llms-button-secondary:hover { border-color: var(--purple) !important; }
.llms-cert-return-link { color: var(--purple-dk); font-weight: 700; margin-inline-end: auto; }

/* ===== الجوال ===== */
@media (max-width: 980px) {
	.mc-hero-in, .mc-lgrid { grid-template-columns: 1fr; }
	.mc-mods { grid-template-columns: 1fr; }
	.mc-side { position: static; }
	.mc-side-card { max-height: none; }
	.mc-top-label { display: none; }
}
@media (max-width: 640px) {
	body.mc { font-size: 16px; }
	.mc-wrap, .mc-narrow { width: calc(100% - 32px); }
	.mc-top-in { height: 62px; gap: 8px; }
	.mc-brand img { height: 42px; }
	.mc-user > a:not(.mc-btn) { padding: 6px 8px; font-size: 14px; }

	.mc-blocks span:nth-child(1), .mc-blocks span:nth-child(2) { width: 80px; height: 80px; }
	.mc-blocks span:nth-child(2) { left: 80px; top: 80px; }
	.mc-blocks span:nth-child(3) { display: none; }
	.mc-blocks { opacity: .45; }
	.mc-hero { padding: 40px 0 46px; }
	.mc-en { font-size: 14.5px; white-space: nowrap; }
	.mc-card { padding: 20px; }
	.mc-pc-top b { font-size: 38px; }
	.mc-syllabus { padding: 56px 0; }
	.mc-mod { padding: 16px; }
	.mc-row small { display: none; }
	.mc-certbar { flex-direction: column; text-align: center; }
	.mc-certbar .mc-btn { margin: 0; width: 100%; }
	.mc-actions { flex-direction: column; align-items: stretch; text-align: center; }
	.mc-complete .mc-btn, .mc-actions .mc-btn { width: 100%; }
	.mc-actions .mc-done-badge { justify-content: center; }
	.mc-pager > a, .mc-pager > span { padding: 8px 12px; }
	.mc-account-card { padding: 22px; }
	.mc .llms-form-fields > .llms-cols-6 { flex-basis: 100%; }
	.mc .llms-form-fields .wp-block-columns { flex-direction: column; gap: 0; }
	.mc-foot-in { flex-direction: column; text-align: center; }
	.mc-lgrid { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mc * { transition: none !important; animation: none !important; } }
@media print { .mc-top, .mc-foot { display: none; } }

/* النوافذ المنبثقة تحت الشريط العلوي لا فوقه */
.mc .llms-notifications { top: 84px !important; }
.admin-bar.mc .llms-notifications { top: 116px !important; }

/* ===== القائمة الجانبية (همبرغر) ===== */
.mc-burger { width: 44px; height: 44px; border: 2px solid var(--lav-2); background: #fff; border-radius: 12px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; margin-inline-start: 6px; padding: 0; }
.mc-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); }
.mc-burger:hover { border-color: var(--purple); }
.mc-drawer-bg { position: fixed; inset: 0; background: rgba(23,1,44,.45); z-index: 90; }
.mc-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: #fff; z-index: 91; box-shadow: -20px 0 50px -20px rgba(23,1,44,.5); padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 10px; }
.mc-drawer.is-open { transform: none; }
.mc-drawer[hidden], .mc-drawer-bg[hidden] { display: none; }
.mc-noscroll, .mc-noscroll body { overflow: hidden; }
.mc-drawer-head { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.mc-drawer-head b { display: block; color: var(--navy); font-weight: 800; line-height: 1.4; }
.mc-drawer-head small { color: var(--muted); font-size: 13px; }
.mc-drawer-head .mc-chip { display: grid; margin: 0; }
.mc-drawer-x { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--lav); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; }
.mc-drawer .mc-bar-thin { margin: 0 0 6px; }
.mc-drawer-nav { display: grid; gap: 4px; }
.mc-drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; color: var(--navy); font-weight: 700; font-size: 16px; }
.mc-drawer-nav a:hover { background: var(--lav); }
.mc-drawer-nav a .mc-i { width: 20px; height: 20px; fill: var(--purple); }
.mc-drawer-nav a.is-hl { background: #fff1eb; color: #c9471a; }
.mc-drawer-nav a.is-hl .mc-i { fill: var(--orange); }
.mc-drawer-nav a.is-out { margin-top: 8px; border-top: 1px solid var(--lav-2); border-radius: 0; color: var(--muted); }

/* ===== طلب الانضمام ===== */
.mc-apply h2 { font-size: 22px; }
.mc-apply-lead { color: var(--muted); margin-bottom: 18px !important; }
.mc-apply p { margin-bottom: 14px; }
.mc-apply label { display: block; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.mc-apply input:not([type=checkbox]), .mc-apply textarea, .mc-verify-form input { width: 100%; font-family: inherit; font-size: 16px; color: var(--navy); background: var(--lav); border: 2px solid var(--lav-2); border-radius: 12px; padding: 12px 14px; outline: none; }
.mc-apply input:focus, .mc-apply textarea:focus, .mc-verify-form input:focus { border-color: var(--purple); background: #fff; }
.mc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.mc-hint-s { display: block; color: var(--muted); font-size: 13px; margin-top: -6px; }
.mc-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; }
.mc-check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--purple); flex: none; }
.mc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0 !important; }
.mc-pending .mc-btn + .mc-btn, .mc-pending .mc-pay-note + .mc-btn { margin-top: 10px; }
.mc-pay-note { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ===== التحقق من الشهادة ===== */
.mc-verify-form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.mc-verify-row { display: flex; gap: 10px; }
.mc-verify-row .mc-btn { flex: none; }
.mc-verify-ok { display: flex; gap: 14px; margin-top: 22px; padding: 18px; border-radius: 16px; background: #eaf8f2; border: 1px solid #bfe9d6; }
.mc-verify-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.mc-verify-icon .mc-i { width: 24px; height: 24px; fill: #fff; }
.mc-verify-ok b { color: #157a55; font-size: 17px; }
.mc-verify-ok dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; }
.mc-verify-ok dt { color: var(--muted); font-size: 14px; }
.mc-verify-ok dd { margin: 0; font-weight: 700; color: var(--navy); }
.mc-verify-no { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: #fdeef0; color: #a3263a; font-weight: 600; }
.mc-cert-verify { margin: 14px 0 0; font-size: 12px; color: #7b7fa8; }

@media (max-width: 760px) {
	.mc-user > a { display: none; }
	.mc-grid2 { grid-template-columns: 1fr; }
	.mc-verify-row { flex-direction: column; }
}
.mc-apply { position: relative; }
@media (max-width: 640px) { .mc-hero-sm { padding-bottom: 104px; } .mc-hero-sm h1 { font-size: 30px; } }
