/* ==========================================================================
   YM Courses — עיצוב צד קדמי
   ========================================================================== */

.ymc-wrap,
.ymc-auth,
.ymc-account {
	--ymc-accent: #2E4FD4;
	--ymc-accent-dark: #1f39a8;
	--ymc-ink: #14172a;
	--ymc-muted: #6b7080;
	--ymc-line: #e3e6f0;
	--ymc-bg: #f6f7fb;
	--ymc-page-bg: #ffffff;
	--ymc-btn-text: #ffffff;
	--ymc-bar-bg: #ffffff;
	--ymc-bar-text: #14172a;
	--ymc-ok: #1a7f37;
	--ymc-radius: 12px;
}

.ymc-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 34px 18px 60px;
	color: var(--ymc-ink);
	font-size: 16px;
	line-height: 1.7;
	font-family: inherit;
}

body.ymc-standalone .ymc-wrap { padding-top: 26px; }

.ymc-wrap *,
.ymc-auth *,
.ymc-account * {
	box-sizing: border-box;
}

/* כפתורים ------------------------------------------------------------- */

.ymc-btn {
	display: inline-block;
	background: var(--ymc-accent);
	color: var(--ymc-btn-text) !important;
	text-decoration: none !important;
	border: 0;
	border-radius: 8px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s ease;
}

.ymc-btn:hover { background: var(--ymc-accent-dark); }
.ymc-btn--lg { padding: 15px 34px; font-size: 16px; }
.ymc-btn--block { display: block; width: 100%; text-align: center; }

.ymc-link { color: var(--ymc-accent); text-decoration: none; font-size: 14px; }

/* התקדמות ------------------------------------------------------------- */

.ymc-progress { margin: 16px 0; }

.ymc-progress__bar {
	height: 9px;
	background: var(--ymc-line);
	border-radius: 99px;
	overflow: hidden;
}

.ymc-progress__bar span {
	display: block;
	height: 100%;
	background: var(--ymc-accent);
	border-radius: 99px;
	transition: width .3s ease;
}

.ymc-progress__label {
	margin-top: 7px;
	font-size: 13px;
	color: var(--ymc-muted);
}

/* עמוד קורס ----------------------------------------------------------- */

.ymc-course__hero {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 34px;
	align-items: center;
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 34px;
	margin-bottom: 28px;
}

.ymc-course__title {
	margin: 0 0 10px;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 800;
}

.ymc-course__subtitle {
	margin: 0 0 14px;
	font-size: 17px;
	color: var(--ymc-muted);
}

.ymc-course__facts {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--ymc-muted);
}

.ymc-course__facts span {
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: 99px;
	padding: 4px 13px;
}

.ymc-course__hero-media img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.ymc-course__content { margin: 26px 0; }

.ymc-notice {
	background: #fff6e5;
	border: 1px solid #f0d9a8;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: 15px;
}

.ymc-notice strong { display: block; margin-bottom: 4px; }

/* רשימת שיעורים ------------------------------------------------------- */

.ymc-lessons__title,
.ymc-materials__title {
	font-size: 21px;
	font-weight: 800;
	margin: 0 0 14px;
}

.ymc-lessons__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	overflow: hidden;
}

.ymc-lesson-row + .ymc-lesson-row { border-top: 1px solid var(--ymc-line); }

.ymc-lesson-row__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 20px;
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	transition: background .15s ease;
}

a.ymc-lesson-row__link:hover { background: var(--ymc-bg); }

.ymc-lesson-row.is-locked .ymc-lesson-row__link {
	background: #fafbfd;
	color: var(--ymc-muted);
	cursor: not-allowed;
}

.ymc-lesson-row__num {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	font-size: 13px;
	font-weight: 700;
}

.ymc-lesson-row.is-done .ymc-lesson-row__num {
	background: var(--ymc-ok);
	border-color: var(--ymc-ok);
	color: #fff;
}

.ymc-lesson-row__main {
	flex: 1 1 auto;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.ymc-lesson-row__name { font-weight: 600; }

.ymc-lesson-row__time {
	font-size: 13px;
	color: var(--ymc-muted);
}

.ymc-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	border-radius: 99px;
	padding: 3px 11px;
	white-space: nowrap;
}

.ymc-badge--free { background: #e8f3ff; color: #0b57a4; }
.ymc-badge--done { background: #e6f5ea; color: var(--ymc-ok); }
.ymc-badge--lock { background: #f0f1f5; color: var(--ymc-muted); }

/* עמוד שיעור ---------------------------------------------------------- */

.ymc-lesson {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
	align-items: start;
}

.ymc-back {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--ymc-accent);
	text-decoration: none;
}

.ymc-lesson__title {
	margin: 0 0 18px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
}

.ymc-video {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: var(--ymc-radius);
	overflow: hidden;
	margin-bottom: 22px;
}

.ymc-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ymc-lesson__content { margin-bottom: 24px; }

.ymc-materials {
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 20px 24px;
	margin-bottom: 24px;
}

.ymc-materials__list { list-style: none; margin: 0; padding: 0; }
.ymc-materials__list li + li { margin-top: 9px; }

.ymc-materials__list a {
	color: var(--ymc-accent);
	text-decoration: none;
	font-weight: 600;
}

.ymc-materials__list a:hover { text-decoration: underline; }

.ymc-complete { margin-bottom: 26px; }

.ymc-btn--complete.is-done {
	background: var(--ymc-ok);
}

.ymc-locked {
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 44px 26px;
	text-align: center;
	margin-bottom: 26px;
}

.ymc-locked__icon { font-size: 34px; margin-bottom: 8px; }
.ymc-locked h2 { margin: 0 0 8px; font-size: 21px; }
.ymc-locked p { margin: 0 0 18px; color: var(--ymc-muted); }

/* ניווט בין שיעורים ---------------------------------------------------- */

.ymc-nav {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding-top: 22px;
	border-top: 1px solid var(--ymc-line);
}

.ymc-nav__item {
	display: block;
	max-width: 47%;
	padding: 12px 18px;
	border: 1px solid var(--ymc-line);
	border-radius: 10px;
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	transition: border-color .15s ease;
}

.ymc-nav__item:hover { border-color: var(--ymc-accent); }
.ymc-nav__next { margin-inline-start: auto; text-align: left; }

.ymc-nav__label {
	display: block;
	font-size: 12px;
	color: var(--ymc-muted);
	margin-bottom: 3px;
}

.ymc-nav__name { display: block; font-weight: 700; font-size: 14px; }

/* סרגל צד -------------------------------------------------------------- */

.ymc-sidebar {
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	overflow: hidden;
	background: #fff;
	position: sticky;
	top: 24px;
}

.ymc-sidebar__head {
	padding: 18px 20px;
	background: var(--ymc-bg);
	border-bottom: 1px solid var(--ymc-line);
}

.ymc-sidebar__title { margin: 0; font-size: 16px; font-weight: 800; }
.ymc-sidebar__head .ymc-progress { margin: 12px 0 0; }

.ymc-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 62vh;
	overflow-y: auto;
}

.ymc-side-row + .ymc-side-row { border-top: 1px solid var(--ymc-line); }

.ymc-side-row a,
.ymc-side-row__locked {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 18px;
	font-size: 14px;
	text-decoration: none !important;
	color: inherit;
}

.ymc-side-row a:hover { background: var(--ymc-bg); }
.ymc-side-row.is-current { background: #eef1fd; }
.ymc-side-row.is-current .ymc-side-row__name { font-weight: 800; color: var(--ymc-accent); }
.ymc-side-row.is-locked .ymc-side-row__locked { color: var(--ymc-muted); }

.ymc-side-row__num {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	font-size: 12px;
	font-weight: 700;
}

.ymc-side-row.is-done .ymc-side-row__num {
	background: var(--ymc-ok);
	border-color: var(--ymc-ok);
	color: #fff;
}

/* התחברות ואזור אישי --------------------------------------------------- */

.ymc-auth {
	max-width: 440px;
	margin: 40px auto;
	padding: 0 16px;
}

.ymc-auth__card {
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: 14px;
	padding: 34px 30px;
	box-shadow: 0 12px 34px rgba(20, 23, 42, .07);
}

.ymc-auth__title { margin: 0 0 6px; font-size: 23px; font-weight: 800; text-align: center; }
.ymc-auth__sub { margin: 0 0 22px; font-size: 14px; color: var(--ymc-muted); text-align: center; }

.ymc-auth__error {
	background: #fdecec;
	border: 1px solid #f2c2c2;
	color: #a4232a;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 16px;
}

.ymc-auth__card label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 14px;
}

.ymc-auth__card input[type="text"],
.ymc-auth__card input[type="password"],
.ymc-auth__card input[type="email"] {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1px solid var(--ymc-line);
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}

.ymc-auth__card input:focus {
	outline: none;
	border-color: var(--ymc-accent);
	box-shadow: 0 0 0 3px rgba(46, 79, 212, .12);
}

.ymc-auth__card .login-remember label {
	font-weight: 400;
	font-size: 13px;
	color: var(--ymc-muted);
}

.ymc-auth__card input[type="submit"] {
	width: 100%;
	background: var(--ymc-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 13px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.ymc-auth__card input[type="submit"]:hover { background: var(--ymc-accent-dark); }

.ymc-auth__foot {
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
}

.ymc-auth__foot a { color: var(--ymc-accent); text-decoration: none; }

.ymc-account {
	max-width: 1080px;
	margin: 0 auto;
	padding: 30px 16px 50px;
}

.ymc-account__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
}

.ymc-account__title { margin: 0; font-size: 26px; font-weight: 800; }

.ymc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}

.ymc-card {
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ymc-card.is-expired { opacity: .62; }

.ymc-card__media img {
	width: 100%;
	height: 168px;
	object-fit: cover;
	display: block;
}

.ymc-card__body { padding: 18px 20px 22px; }

.ymc-card__title { margin: 0 0 10px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.ymc-card__title a { color: inherit; text-decoration: none; }

.ymc-card__meta,
.ymc-card__expired {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--ymc-muted);
}

.ymc-card__expired { color: #b32d2e; font-weight: 600; }

.ymc-empty {
	background: var(--ymc-bg);
	border: 1px dashed var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 34px;
	text-align: center;
	color: var(--ymc-muted);
}

/* מובייל --------------------------------------------------------------- */

@media (max-width: 900px) {
	.ymc-lesson { grid-template-columns: 1fr; }
	.ymc-sidebar { position: static; order: 2; }
	.ymc-course__hero { grid-template-columns: 1fr; padding: 24px; }
	.ymc-course__hero-media { order: -1; }
	.ymc-course__title { font-size: 26px; }
}

@media (max-width: 560px) {
	.ymc-wrap { padding: 22px 14px 44px; }
	.ymc-lesson-row__link { padding: 13px 14px; flex-wrap: wrap; }
	.ymc-nav { flex-direction: column; }
	.ymc-nav__item { max-width: 100%; }
	.ymc-nav__next { text-align: right; }
	.ymc-account__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   סרגל ניווט עליון (מצב ללא הדר ופוטר)
   ========================================================================== */

body.ymc-standalone {
	margin: 0;
	background: var(--ymc-page-bg, #fff);
	color: var(--ymc-ink, #14172a);
}

.ymc-topbar {
	background: var(--ymc-bar-bg, #fff);
	color: var(--ymc-bar-text, #14172a);
	border-bottom: 1px solid var(--ymc-line, #e3e6f0);
	position: sticky;
	top: 0;
	z-index: 40;
}

.ymc-topbar__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 11px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.ymc-topbar__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none !important;
	color: var(--ymc-bar-text, #14172a);
	font-weight: 800;
	font-size: 16px;
}

.ymc-topbar__brand img {
	max-height: 38px;
	width: auto;
	display: block;
}

.ymc-topbar__side {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ymc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	border: 1px solid var(--ymc-line, #e3e6f0);
	border-radius: 99px;
	text-decoration: none !important;
	color: var(--ymc-bar-text, #14172a);
	font-size: 14px;
	font-weight: 700;
	background: transparent;
	transition: border-color .15s ease, color .15s ease;
}

.ymc-chip:hover {
	border-color: var(--ymc-accent, #2E4FD4);
	color: var(--ymc-accent, #2E4FD4);
}

.ymc-chip__icon {
	display: inline-flex;
	align-items: center;
	color: var(--ymc-accent, #2E4FD4);
}

.ymc-topbar__logout {
	font-size: 13px;
	color: var(--ymc-muted, #6b7080);
	text-decoration: none;
}

.ymc-topbar__logout:hover { text-decoration: underline; }

.ymc-plain {
	max-width: 1180px;
	margin: 0 auto;
	padding: 26px 0 60px;
}

body.ymc-standalone .ymc-auth { margin-top: 46px; }

/* הודעות בטפסי הזדהות */

.ymc-auth__msg {
	border-radius: 8px;
	padding: 11px 15px;
	font-size: 14px;
	margin-bottom: 16px;
	line-height: 1.6;
}

.ymc-auth__msg--ok  { background: #e8f6ec; border: 1px solid #b9e2c5; color: #14682d; }
.ymc-auth__msg--err { background: #fdecec; border: 1px solid #f2c2c2; color: #a4232a; }

.ymc-auth__card form { margin: 0; }

.ymc-auth__card .ymc-btn--block { margin-top: 6px; }

@media (max-width: 560px) {
	.ymc-topbar__inner { padding: 9px 14px; }
	.ymc-chip__text { display: none; }
	.ymc-chip { padding: 8px 11px; }
	.ymc-topbar__brand { font-size: 15px; }
	.ymc-plain { padding: 18px 0 44px; }
}

/* ==========================================================================
   האזור האישי — כותרת, לשוניות, פרופיל
   ========================================================================== */

.ymc-account__hero {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 22px;
}

.ymc-account__mail {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--ymc-muted);
	text-align: right;
}

.ymc-avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 21px;
	color: var(--ymc-accent);
	text-transform: uppercase;
}

.ymc-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ymc-avatar--lg { width: 78px; height: 78px; font-size: 25px; }

/* לשוניות */

.ymc-tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	border-bottom: 1px solid var(--ymc-line);
	margin-bottom: 26px;
	flex-wrap: wrap;
}

.ymc-tabs__item {
	display: inline-block;
	padding: 11px 20px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ymc-muted);
	text-decoration: none !important;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	transition: color .15s ease, border-color .15s ease;
}

.ymc-tabs__item:hover { color: var(--ymc-ink); }

.ymc-tabs__item.is-active {
	color: var(--ymc-accent);
	border-bottom-color: var(--ymc-accent);
}

.ymc-tabs__item--out {
	margin-inline-start: auto;
	font-weight: 400;
	font-size: 13px;
}

/* פאנלים וטפסים */

.ymc-panel {
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 22px 24px 26px;
	margin-bottom: 20px;
}

.ymc-panel__title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 800;
}

.ymc-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ymc-field { display: block; }
.ymc-field--full { grid-column: 1 / -1; }

.ymc-field > span {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

html body .ymc-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--ymc-line);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--ymc-ink);
	box-sizing: border-box;
}

html body .ymc-field input:focus {
	outline: none;
	border-color: var(--ymc-accent);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.ymc-hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--ymc-muted);
	line-height: 1.6;
}

/* העלאת תמונה */

.ymc-avatar-edit {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ymc-avatar-edit .ymc-avatar { width: 86px; height: 86px; font-size: 27px; }

.ymc-file {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	cursor: pointer;
}

.ymc-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.ymc-file__btn {
	display: inline-block;
	padding: 9px 20px;
	border: 1px solid var(--ymc-accent);
	color: var(--ymc-accent);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	transition: background .15s ease, color .15s ease;
}

.ymc-file:hover .ymc-file__btn {
	background: var(--ymc-accent);
	color: var(--ymc-btn-text);
}

.ymc-file__name {
	font-size: 13px;
	color: var(--ymc-muted);
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ymc-check {
	display: block;
	margin-top: 12px;
	font-size: 14px;
	color: var(--ymc-muted);
}

.ymc-profile__actions { padding-bottom: 10px; }

@media (max-width: 620px) {
	.ymc-fields { grid-template-columns: 1fr; }
	.ymc-account__hero { gap: 14px; }
	.ymc-avatar--lg { width: 62px; height: 62px; font-size: 21px; }
	.ymc-account__title { font-size: 21px; }
	.ymc-tabs__item { padding: 10px 14px; font-size: 14px; }
	.ymc-tabs__item--out { margin-inline-start: 0; }
}

.ymc-chip__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   מגירת תוכן הקורס
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

html body .ymc-drawer-toggle,
html body .ymc-drawer-overlay,
html body .ymc-sidebar__close {
	display: none !important;
}

/* מסך רחב — סרגל צד קבוע, הווידאו במרכז */

@media (min-width: 901px) {
	html body .ymc-lesson {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
		gap: 30px;
	}

	html body .ymc-lesson__main {
		min-width: 0;
		grid-column: 1;
	}

	html body .ymc-sidebar {
		grid-column: 2;
	}

	.ymc-sidebar__list {
		max-height: calc(100vh - 190px);
	}
}

/* מובייל וטאבלט — מגירה נשלפת מהצד */

@media (max-width: 900px) {

	html body .ymc-lesson {
		display: block !important;
	}

	html body .ymc-drawer-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		position: fixed;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		width: 34px;
		height: 62px;
		padding: 0;
		border: 1px solid var(--ymc-line);
		border-right: 0;
		border-radius: 10px 0 0 10px;
		background: var(--ymc-accent);
		color: var(--ymc-btn-text);
		cursor: pointer;
		z-index: 61;
		box-shadow: -3px 0 14px rgba(0, 0, 0, .16);
		transition: right .28s ease;
	}

	.ymc-drawer-toggle__arrow {
		display: inline-flex;
		transition: transform .28s ease;
	}

	.ymc-drawer-toggle.is-open {
		right: min(340px, 86vw);
	}

	.ymc-drawer-toggle.is-open .ymc-drawer-toggle__arrow {
		transform: rotate(180deg);
	}

	html body .ymc-drawer-overlay {
		display: block !important;
		position: fixed;
		inset: 0;
		background: rgba(10, 12, 24, .45);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s ease;
		z-index: 55;
	}

	.ymc-drawer-overlay.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	.ymc-sidebar {
		position: fixed;
		top: 0;
		right: 0;
		width: min(340px, 86vw);
		height: 100%;
		max-height: none;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: -8px 0 30px rgba(10, 12, 24, .2);
		transform: translateX(100%);
		transition: transform .28s ease;
		z-index: 60;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

	.ymc-sidebar.is-open {
		transform: translateX(0);
	}

	.ymc-sidebar__head {
		position: relative;
		padding-top: 46px;
		flex: 0 0 auto;
	}

	html body .ymc-sidebar__close {
		display: block !important;
		position: absolute;
		top: 8px;
		left: 12px;
		width: 34px;
		height: 34px;
		padding: 0;
		border: 0;
		background: transparent;
		font-size: 27px;
		line-height: 1;
		color: var(--ymc-muted);
		cursor: pointer;
	}

	.ymc-sidebar__list {
		flex: 1 1 auto;
		max-height: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ymc-drawer-open {
		overflow: hidden;
	}
}


/* ==========================================================================
   שריון פריסה מול תבניות שדורסות grid ו-flex
   ========================================================================== */

html body .ymc-course__hero {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 34px;
	align-items: center;
}

html body .ymc-lessons__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .ymc-lesson-row__link {
	display: flex !important;
	align-items: center;
	gap: 14px;
}

html body .ymc-sidebar__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .ymc-side-row a,
html body .ymc-side-row__locked {
	display: flex !important;
	align-items: center;
	gap: 11px;
}

html body .ymc-nav {
	display: flex !important;
	justify-content: space-between;
	gap: 14px;
}

html body .ymc-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}

html body .ymc-video {
	position: relative !important;
	padding-top: 56.25% !important;
	height: auto !important;
}

html body .ymc-video iframe {
	position: absolute !important;
	top: 0;
	right: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 900px) {
	html body .ymc-course__hero {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   בלוק רכישה בעמוד הקורס
   ========================================================================== */

.ymc-buy {
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 24px 26px 26px;
	margin-bottom: 28px;
}

.ymc-buy__title {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 800;
}

.ymc-buy__items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ymc-buy__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: 10px;
	padding: 16px 20px;
	flex-wrap: wrap;
}

.ymc-buy__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ymc-buy__name {
	font-weight: 700;
	font-size: 16px;
}

.ymc-buy__price {
	font-size: 20px;
	font-weight: 800;
	color: var(--ymc-accent);
}

.ymc-buy__price del {
	font-size: 15px;
	font-weight: 500;
	color: var(--ymc-muted);
	margin-inline-end: 6px;
}

.ymc-buy__price ins {
	text-decoration: none;
}

.ymc-buy__note {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--ymc-muted);
}

.ymc-buy__note a {
	color: var(--ymc-accent);
	font-weight: 600;
}

@media (max-width: 560px) {
	.ymc-buy { padding: 20px 18px; }
	.ymc-buy__item { flex-direction: column; align-items: stretch; }
	.ymc-buy__item .ymc-btn { text-align: center; }
}

.ymc-chip--cart {
	border-color: var(--ymc-accent);
	color: var(--ymc-accent);
}

@media (max-width: 560px) {
	.ymc-chip--cart .ymc-chip__text { display: inline; font-size: 13px; }
}

/* ==========================================================================
   קטלוג הקורסים
   ========================================================================== */

.ymc-catalog-head {
	margin-bottom: 26px;
}

.ymc-catalog-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
}

.ymc-catalog-sub {
	margin: 0;
	font-size: 16px;
	color: var(--ymc-muted);
}

.ymc-catalog .ymc-card {
	transition: border-color .16s ease, transform .16s ease;
}

.ymc-catalog .ymc-card:hover {
	border-color: var(--ymc-accent);
	transform: translateY(-2px);
}

.ymc-card__media {
	position: relative;
	display: block;
}

.ymc-card__placeholder {
	display: block;
	width: 100%;
	height: 168px;
	background: var(--ymc-bg);
	border-bottom: 1px solid var(--ymc-line);
}

.ymc-card__flag {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--ymc-ok);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 99px;
}

.ymc-card__sub {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--ymc-muted);
	line-height: 1.55;
}

.ymc-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.ymc-card__price {
	font-size: 19px;
	font-weight: 800;
	color: var(--ymc-accent);
}

.ymc-card__price del {
	font-size: 14px;
	font-weight: 500;
	color: var(--ymc-muted);
	margin-inline-end: 5px;
}

.ymc-card__price ins { text-decoration: none; }

.ymc-topbar__catalog {
	font-size: 14px;
	font-weight: 700;
	color: var(--ymc-bar-text);
	text-decoration: none !important;
	white-space: nowrap;
}

.ymc-topbar__catalog:hover { color: var(--ymc-accent); }

@media (max-width: 560px) {
	.ymc-catalog-title { font-size: 23px; }
	.ymc-topbar__catalog { font-size: 13px; }
	.ymc-card__foot { flex-direction: column; align-items: stretch; }
	.ymc-card__foot .ymc-btn { text-align: center; }
}

/* תג גישה חופשית */

html body .ymc-badge--free {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	background: #e8f6ec;
	color: #14682d;
	border: 1px solid #bfe3ca;
	padding: 4px 11px;
	line-height: 1.5;
}

.ymc-badge__icon {
	flex: 0 0 auto;
	display: block;
}

/* ==========================================================================
   קורס חינם
   ========================================================================== */

.ymc-buy--free {
	text-align: center;
}

.ymc-free-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ymc-accent);
	color: var(--ymc-btn-text);
	font-size: 13px;
	font-weight: 800;
	padding: 6px 16px;
	border-radius: 99px;
	margin-bottom: 14px;
}

.ymc-buy--free .ymc-buy__title {
	margin: 0 0 6px;
	font-size: 24px;
}

.ymc-buy__lead {
	margin: 0 0 20px;
	font-size: 16px;
	color: var(--ymc-muted);
}

.ymc-buy--free .ymc-buy__note {
	margin-top: 14px;
}

.ymc-card__flag--free {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--ymc-accent);
}

.ymc-card__price--free {
	color: var(--ymc-ok);
}

/* ==========================================================================
   שאלה בשיעור
   ========================================================================== */

.ymc-ask {
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 20px 24px 22px;
	margin-bottom: 24px;
}

.ymc-ask__title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 800;
}

.ymc-ask__lead {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--ymc-muted);
}

html body #ymc-ask-text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ymc-line);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.6;
	background: #fff;
	color: var(--ymc-ink);
	resize: vertical;
	box-sizing: border-box;
}

html body #ymc-ask-text:focus {
	outline: none;
	border-color: var(--ymc-accent);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.ymc-ask__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.ymc-ask__msg { font-size: 14px; }
.ymc-ask__msg.is-ok { color: var(--ymc-ok); font-weight: 600; }
.ymc-ask__msg.is-err { color: #b32d2e; font-weight: 600; }

/* רשימת שאלות באזור האישי */

.ymc-qa-list { display: flex; flex-direction: column; gap: 16px; }

.ymc-qa-item {
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-inline-start: 4px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 18px 22px;
}

.ymc-qa-item.is-answered { border-inline-start-color: var(--ymc-ok); }
.ymc-qa-item.is-open { border-inline-start-color: #e0a400; }

.ymc-qa-item__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
	font-size: 13px;
}

.ymc-qa-item__lesson {
	color: var(--ymc-accent);
	text-decoration: none;
	font-weight: 700;
}

.ymc-qa-item__date { color: var(--ymc-muted); }

.ymc-qa-item__q {
	line-height: 1.7;
	margin-bottom: 12px;
}

.ymc-qa-item__a {
	background: var(--ymc-bg);
	border-radius: 8px;
	padding: 13px 16px;
	line-height: 1.7;
}

.ymc-qa-item__label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	color: var(--ymc-accent);
	margin-bottom: 5px;
}

.ymc-qa-item__pending {
	font-size: 13px;
	color: #a07400;
	font-weight: 600;
}

.ymc-tabs__badge {
	display: inline-block;
	min-width: 19px;
	height: 19px;
	line-height: 19px;
	text-align: center;
	border-radius: 99px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	margin-inline-start: 5px;
	padding: 0 5px;
}

/* ==========================================================================
   מסך סיום קורס
   ========================================================================== */

.ymc-done {
	position: relative;
	overflow: hidden;
	background: var(--ymc-bg);
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	margin-bottom: 28px;
}

.ymc-done__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 38px 26px 34px;
}

.ymc-done__badge {
	width: 66px;
	height: 66px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--ymc-accent);
	color: var(--ymc-btn-text);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ymc-done__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
}

.ymc-done__text {
	margin: 0 auto 20px;
	max-width: 480px;
	color: var(--ymc-muted);
	font-size: 16px;
}

.ymc-done__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
}

/* קונפטי */

.ymc-confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.ymc-confetti__bit {
	position: absolute;
	top: -14px;
	width: 8px;
	height: 14px;
	border-radius: 2px;
	opacity: 0;
	animation: ymc-fall 3.4s linear infinite;
}

.ymc-confetti__bit:nth-child(4n+1) { background: var(--ymc-accent); }
.ymc-confetti__bit:nth-child(4n+2) { background: #f5b301; }
.ymc-confetti__bit:nth-child(4n+3) { background: var(--ymc-ok); }
.ymc-confetti__bit:nth-child(4n+4) { background: #e0457b; }

.ymc-confetti__bit:nth-child(1)  { left: 3%;  animation-delay: 0s;    }
.ymc-confetti__bit:nth-child(2)  { left: 9%;  animation-delay: .5s;   }
.ymc-confetti__bit:nth-child(3)  { left: 15%; animation-delay: 1.1s;  }
.ymc-confetti__bit:nth-child(4)  { left: 21%; animation-delay: .2s;   }
.ymc-confetti__bit:nth-child(5)  { left: 27%; animation-delay: 1.6s;  }
.ymc-confetti__bit:nth-child(6)  { left: 33%; animation-delay: .8s;   }
.ymc-confetti__bit:nth-child(7)  { left: 39%; animation-delay: 2.1s;  }
.ymc-confetti__bit:nth-child(8)  { left: 45%; animation-delay: .35s;  }
.ymc-confetti__bit:nth-child(9)  { left: 51%; animation-delay: 1.35s; }
.ymc-confetti__bit:nth-child(10) { left: 57%; animation-delay: 2.5s;  }
.ymc-confetti__bit:nth-child(11) { left: 63%; animation-delay: .65s;  }
.ymc-confetti__bit:nth-child(12) { left: 69%; animation-delay: 1.85s; }
.ymc-confetti__bit:nth-child(13) { left: 75%; animation-delay: .1s;   }
.ymc-confetti__bit:nth-child(14) { left: 81%; animation-delay: 1.5s;  }
.ymc-confetti__bit:nth-child(15) { left: 87%; animation-delay: 2.3s;  }
.ymc-confetti__bit:nth-child(16) { left: 93%; animation-delay: .9s;   }
.ymc-confetti__bit:nth-child(17) { left: 6%;  animation-delay: 2.7s;  }
.ymc-confetti__bit:nth-child(18) { left: 24%; animation-delay: 1.2s;  }
.ymc-confetti__bit:nth-child(19) { left: 42%; animation-delay: 2.9s;  }
.ymc-confetti__bit:nth-child(20) { left: 60%; animation-delay: .45s;  }
.ymc-confetti__bit:nth-child(21) { left: 78%; animation-delay: 1.75s; }
.ymc-confetti__bit:nth-child(22) { left: 96%; animation-delay: 2.15s; }
.ymc-confetti__bit:nth-child(23) { left: 12%; animation-delay: 3.1s;  }
.ymc-confetti__bit:nth-child(24) { left: 66%; animation-delay: 3.3s;  }

@keyframes ymc-fall {
	0%   { transform: translateY(0) rotate(0deg);      opacity: 0; }
	10%  { opacity: 1; }
	100% { transform: translateY(420px) rotate(520deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ymc-confetti { display: none; }
}

/* חלונית חגיגה בסיום השיעור האחרון */

.ymc-toast {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 20px;
	width: min(330px, calc(100vw - 40px));
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(14, 18, 48, .2);
	overflow: hidden;
	z-index: 90;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .3s ease, transform .3s ease;
}

.ymc-toast.is-in { opacity: 1; transform: translateY(0); }

.ymc-toast__inner {
	position: relative;
	z-index: 2;
	padding: 24px 22px 22px;
	text-align: center;
}

.ymc-toast__emoji { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.ymc-toast__title { margin: 0 0 5px; font-size: 18px; font-weight: 800; }
.ymc-toast__text  { margin: 0 0 16px; font-size: 14px; color: var(--ymc-muted); }

.ymc-toast__close {
	position: absolute;
	top: 6px;
	inset-inline-start: 10px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: var(--ymc-muted);
	cursor: pointer;
}

.ymc-materials__list a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ymc-materials__icon { display: inline-flex; }

@media (max-width: 560px) {
	.ymc-done__title { font-size: 21px; }
	.ymc-done__inner { padding: 30px 18px 26px; }
	.ymc-qa-item__head { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   תעודות באזור האישי
   ========================================================================== */

.ymc-certs { display: flex; flex-direction: column; gap: 14px; }

.ymc-cert-row {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--ymc-line);
	border-radius: var(--ymc-radius);
	padding: 16px 20px;
	flex-wrap: wrap;
}

.ymc-cert-row__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ymc-bg);
	color: var(--ymc-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ymc-cert-row__info { flex: 1 1 200px; min-width: 0; }

.ymc-cert-row__title {
	margin: 0 0 3px;
	font-size: 16px;
	font-weight: 800;
}

.ymc-cert-row__meta {
	margin: 0;
	font-size: 13px;
	color: var(--ymc-muted);
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

@media (max-width: 560px) {
	.ymc-cert-row { flex-direction: column; align-items: stretch; text-align: center; }
	.ymc-cert-row__icon { margin: 0 auto; }
	.ymc-cert-row__meta { justify-content: center; }
}
