/* ==========================================================================
   MK Academy — Premium Homepage Widgets
   ========================================================================== */

html[data-mk-theme="light"] {
	--mk-home-card-border: #e5e7eb;
	--mk-home-card-bg: #fafafa;
	--mk-home-card-shadow-hover: 0 12px 32px rgba(35, 31, 32, 0.08);
	--mk-section-more: #9ca3af;
	--mk-section-more-hover: #6b7280;
	--mk-tag-icon: #d1d5db;
}

html[data-mk-theme="dark"] {
	--mk-home-card-border: #404040;
	--mk-home-card-bg: #1c1b1b;
	--mk-home-card-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.34);
	--mk-section-more: #a1a1aa;
	--mk-section-more-hover: #d4d4d8;
	--mk-tag-icon: #737373;
}

/* ── Hero Showcase Slider ──────────────────────────────────────────────── */
/* Homepage hero sits under fixed header — extra glass at top */
body.home .mk-site-header:not(.is-scrolled) .mk-site-header__shell {
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(24px) saturate(195%);
	-webkit-backdrop-filter: blur(24px) saturate(195%);
	border-bottom-color: rgba(255, 255, 255, 0.28);
	box-shadow: none;
}

html[data-mk-theme="dark"] body.home .mk-site-header:not(.is-scrolled) .mk-site-header__shell {
	background: rgba(23, 20, 20, 0.4);
	backdrop-filter: blur(24px) saturate(195%);
	-webkit-backdrop-filter: blur(24px) saturate(195%);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.home .mk-site-header.is-scrolled .mk-site-header__shell {
	background: rgba(255, 255, 255, 0.58);
	backdrop-filter: blur(26px) saturate(195%);
	-webkit-backdrop-filter: blur(26px) saturate(195%);
}

html[data-mk-theme="dark"] body.home .mk-site-header.is-scrolled .mk-site-header__shell {
	background: rgba(23, 20, 20, 0.58);
}

/* Homepage hero — bleed gradient under fixed header (all breakpoints) */
body.home .elementor-8 > .e-con:first-child,
body.home .elementor-8 > .e-con:first-child .elementor-widget-mk-hero-slider,
body.home .elementor-8 > .e-con:first-child .elementor-widget-mk-hero-slider .elementor-widget-container {
	overflow: visible !important;
}

.elementor-widget-mk-hero-slider,
.elementor-widget-mk-hero-slider .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.mk-hero-showcase {
	position: relative;
	overflow-x: clip;
	overflow-y: visible;
	width: 100%;
	max-width: 100%;
	--mk-hero-height-scale: 1.15;
	min-height: clamp(
		calc(280px * var(--mk-hero-height-scale)),
		calc(42vh * var(--mk-hero-height-scale)),
		calc(380px * var(--mk-hero-height-scale))
	);
	padding: 0;
	background: transparent;
	color: #1e2a4a;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	isolation: isolate;
	--mk-hero-content-gap: clamp(
		calc(1.25rem * var(--mk-hero-height-scale)),
		calc(3vh * var(--mk-hero-height-scale)),
		calc(2rem * var(--mk-hero-height-scale))
	);
	margin-top: calc(
		-1 * var(
			--mk-hero-header-overlap,
			calc(var(--mk-header-offset, var(--mk-header-height, 72px)) + var(--mk-top-banner-height, 0px))
		)
	);
}

/* Reveal animation on inner wrapper — not on root (transform breaks sizing in flex layouts) */
.mk-hero-showcase.mk-reveal {
	opacity: 1;
	transform: none;
}

.mk-hero-showcase.mk-reveal:not(.is-visible) .mk-hero-showcase__track {
	opacity: 0;
	transform: translateY(24px);
}

.mk-hero-showcase.mk-reveal.is-visible .mk-hero-showcase__track {
	opacity: 1;
	transform: translateY(0);
}

/* Full-bleed per-slide gradient background — driven by the slide's chosen color */
.mk-hero-showcase__bg-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	background:
		radial-gradient(120% 90% at 12% 105%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 28%, transparent 58%),
		linear-gradient(112deg, #f4f5f7 0%, #eef1f6 20%, var(--mk-hero-slide-color-soft, #dbe6ff) 52%, var(--mk-hero-slide-color, #438bff) 100%);
	transition: opacity 1.1s var(--mk-ease);
}

html[data-mk-theme="dark"] .mk-hero-showcase__bg-layer {
	background:
		radial-gradient(120% 90% at 12% 105%, rgba(18, 26, 44, 0.92) 0%, rgba(18, 26, 44, 0.48) 26%, transparent 58%),
		linear-gradient(112deg, #0f1728 0%, #13203a 24%, var(--mk-hero-slide-color-soft, #5d79bf) 58%, var(--mk-hero-slide-color, #438bff) 100%);
}

.mk-hero-showcase__bg-layer.is-active {
	opacity: 1;
	z-index: 1;
}

.mk-hero-showcase__inner {
	position: relative;
	z-index: 2;
	width: var(--mk-container);
	max-width: 100%;
	margin-inline: auto;
	height: 100%;
}

.mk-hero-showcase__track {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	min-height: clamp(
		calc(260px * var(--mk-hero-height-scale)),
		calc(40vh * var(--mk-hero-height-scale)),
		calc(360px * var(--mk-hero-height-scale))
	);
	transition: opacity 0.7s var(--mk-ease), transform 0.7s var(--mk-ease);
}

.mk-hero-showcase__slide {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.mk-hero-showcase__slide.is-active,
.mk-hero-showcase__slide.is-leaving {
	visibility: visible;
}

.mk-hero-showcase__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.mk-hero-showcase__slide.is-leaving {
	opacity: 1;
	z-index: 1;
}

.mk-hero-showcase__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: stretch;
	gap: clamp(
		calc(1.5rem * var(--mk-hero-height-scale)),
		calc(4vw * var(--mk-hero-height-scale)),
		calc(3rem * var(--mk-hero-height-scale))
	);
	width: 100%;
	min-width: 0;
	min-height: clamp(
		calc(260px * var(--mk-hero-height-scale)),
		calc(40vh * var(--mk-hero-height-scale)),
		calc(360px * var(--mk-hero-height-scale))
	);
	transition: transform 0.75s var(--mk-ease), opacity 0.75s var(--mk-ease), filter 0.75s var(--mk-ease);
}

.mk-hero-showcase__slide.is-leaving .mk-hero-showcase__layout {
	opacity: 0;
	transform: translateX(2rem) scale(0.98);
	filter: blur(4px);
}

.mk-hero-showcase[data-slide-direction="next"] .mk-hero-showcase__slide.is-entering .mk-hero-showcase__layout {
	animation: mk-hero-slide-enter-next 0.8s var(--mk-ease) both;
}

.mk-hero-showcase[data-slide-direction="prev"] .mk-hero-showcase__slide.is-entering .mk-hero-showcase__layout {
	animation: mk-hero-slide-enter-prev 0.8s var(--mk-ease) both;
}

[dir="rtl"] .mk-hero-showcase[data-slide-direction="next"] .mk-hero-showcase__slide.is-entering .mk-hero-showcase__layout {
	animation-name: mk-hero-slide-enter-prev;
}

[dir="rtl"] .mk-hero-showcase[data-slide-direction="prev"] .mk-hero-showcase__slide.is-entering .mk-hero-showcase__layout {
	animation-name: mk-hero-slide-enter-next;
}

[dir="rtl"] .mk-hero-showcase__slide.is-leaving .mk-hero-showcase__layout {
	transform: translateX(-2rem) scale(0.98);
}

/* Visual column — full-bleed PNG cutout + decorative shapes (right col in DOM, LEFT side in RTL) */
.mk-hero-showcase__visual {
	position: relative;
	grid-column: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	align-self: start;
	width: 100%;
	min-width: 0;
	overflow: visible;
	margin-top: calc(
		-1 * var(
			--mk-hero-header-overlap,
			calc(var(--mk-header-offset, var(--mk-header-height, 72px)) + var(--mk-top-banner-height, 0px))
		)
	);
	min-height: calc(
		100% + var(
			--mk-hero-header-overlap,
			calc(var(--mk-header-offset, var(--mk-header-height, 72px)) + var(--mk-top-banner-height, 0px))
		)
	);
}

.mk-hero-showcase__shape {
	position: absolute;
	pointer-events: none;
}

.mk-hero-showcase__shape--pill {
	left: 4%;
	bottom: 12%;
	width: 40%;
	height: 42%;
	z-index: 1;
	border-radius: 999px;
	background: var(--mk-hero-accent-color, #ef7a5c);
	opacity: 0.94;
	transform: rotate(12deg);
}

.mk-hero-showcase__image-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: clamp(
		calc(480px * var(--mk-hero-height-scale)),
		calc(86vh * var(--mk-hero-height-scale)),
		calc(720px * var(--mk-hero-height-scale))
	);
	margin-inline-end: clamp(-1rem, -2vw, -0.25rem);
}

.mk-hero-showcase__image {
	display: block;
	height: auto;
	width: auto;
	max-width: 100%;
	max-height: clamp(
		calc(480px * var(--mk-hero-height-scale)),
		calc(86vh * var(--mk-hero-height-scale)),
		calc(720px * var(--mk-hero-height-scale))
	);
	object-fit: contain;
	object-position: top center;
}

.mk-hero-showcase__image-fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	height: 100%;
	color: rgba(30, 42, 74, 0.5);
	font-size: 0.85rem;
	font-weight: 700;
	text-align: center;
	padding: 1.5rem;
}

/* Content column — عنوان + تگ‌ها + دکمه (first col in DOM, RIGHT side in RTL) */
.mk-hero-showcase__content {
	position: relative;
	z-index: 2;
	grid-column: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-width: 0;
	max-width: 620px;
	justify-self: end;
	text-align: right;
	padding-top: var(
		--mk-hero-content-offset,
		calc(
			var(--mk-header-offset, var(--mk-header-height, 72px)) +
			var(--mk-top-banner-height, 0px) +
			var(--mk-hero-content-gap, clamp(1.25rem, 3vh, 2rem))
		)
	);
}

.mk-hero-showcase__title {
	margin: 0 0 1.45rem;
	width: auto;
	max-width: 100%;
	font-size: clamp(2.05rem, 4.05vw, 4.25rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #1a2440;
	text-align: right;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mk-hero-showcase__title-underline {
	position: relative;
	display: inline;
}

.mk-hero-showcase__title-underline::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -0.14em;
	width: 100%;
	height: 0.32em;
	background-image: url("../images/hero-underline.svg");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	pointer-events: none;
}

.mk-hero-showcase__subtitle {
	margin: -0.55rem 0 1.2rem;
	width: auto;
	max-width: 42ch;
	font-size: clamp(0.95rem, 1.8vw, 1.15rem);
	font-weight: 400;
	line-height: 1.75;
	color: var(--mk-section-subtitle);
	text-align: right;
}

.mk-hero-showcase__footer {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.55rem;
	direction: rtl;
}

.mk-hero-showcase__tags {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	min-height: 0;
	border: 0;
	background: transparent;
	direction: rtl;
}

.mk-hero-showcase__tag {
	display: inline;
	color: #4f607d;
	font-size: 1.08rem;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.2;
}

.mk-hero-showcase__slide.is-entering .mk-hero-showcase__tag {
	animation: mk-hero-tag-in 0.55s var(--mk-ease) both;
	animation-delay: calc(280ms + var(--mk-tag-delay, 0ms));
}

.mk-hero-showcase__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 3.15rem;
	padding: 0.68rem 1.45rem;
	border-radius: 0.35rem;
	background: #1a1f2b;
	color: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.2);
	text-decoration: none;
	font-size: 1.18rem;
	font-weight: 800;
	white-space: nowrap;
	direction: rtl;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
	transition: transform 0.3s var(--mk-ease), box-shadow 0.3s var(--mk-ease), background 0.3s var(--mk-ease);
}

.mk-hero-showcase__cta:hover,
.mk-hero-showcase__cta:focus-visible {
	background: #101624;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.26);
	transform: translateY(-2px);
	color: #ffffff;
}

.mk-hero-showcase__cta-icon {
	flex-shrink: 0;
	width: 1.35rem;
	height: 1.35rem;
	transition: transform 0.3s var(--mk-ease);
}

.mk-hero-showcase__cta:hover .mk-hero-showcase__cta-icon {
	transform: translateX(3px);
}

/* Staggered content entrance — only on slide change */
.mk-hero-showcase__slide.is-entering [data-mk-hero-animate="item"] {
	animation: mk-hero-rise 0.65s var(--mk-ease) both;
}

.mk-hero-showcase__slide.is-entering [data-mk-hero-animate="item"]:nth-child(1) { animation-delay: 0.08s; }
.mk-hero-showcase__slide.is-entering [data-mk-hero-animate="item"]:nth-child(2) { animation-delay: 0.16s; }
.mk-hero-showcase__slide.is-entering [data-mk-hero-animate="item"]:nth-child(3) { animation-delay: 0.24s; }

.mk-hero-showcase__slide.is-entering [data-mk-hero-animate="visual"] {
	animation: mk-hero-visual-pop 0.85s var(--mk-ease) both;
	animation-delay: 0.1s;
}

/* Pagination — plain dots, bottom center */
.mk-hero-showcase__pagination {
	position: absolute;
	bottom: clamp(0.75rem, 2vh, 1.5rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mk-hero-showcase__dot {
	position: relative;
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(30, 42, 74, 0.25);
	cursor: pointer;
	overflow: hidden;
	transition: width 0.35s var(--mk-ease), background 0.35s;
}

.mk-hero-showcase__dot.is-active {
	width: 26px;
	background: #1e2430;
}

html[data-mk-theme="dark"] .mk-hero-showcase__title {
	color: #eef3ff;
}

html[data-mk-theme="dark"] .mk-hero-showcase__subtitle {
	color: var(--mk-section-subtitle);
}

html[data-mk-theme="dark"] .mk-hero-showcase__tag {
	color: #d8e2ff;
}

html[data-mk-theme="dark"] .mk-hero-showcase__cta {
	background: #0c1426;
	border-color: rgba(188, 206, 255, 0.24);
	box-shadow: 0 14px 32px rgba(2, 6, 23, 0.34);
}

html[data-mk-theme="dark"] .mk-hero-showcase__cta:hover,
html[data-mk-theme="dark"] .mk-hero-showcase__cta:focus-visible {
	background: #091122;
}

html[data-mk-theme="dark"] .mk-hero-showcase__dot {
	background: rgba(224, 234, 255, 0.42);
}

html[data-mk-theme="dark"] .mk-hero-showcase__dot.is-active {
	background: #e7eeff;
}

.mk-hero-showcase__dot-progress {
	position: absolute;
	inset: 0;
	width: 0;
	background: rgba(255, 255, 255, 0.55);
	border-radius: inherit;
}

.mk-hero-showcase--single .mk-hero-showcase__pagination {
	display: none;
}

@keyframes mk-hero-rise {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes mk-hero-slide-enter-next {
	from { opacity: 0; transform: translateX(-2.5rem) scale(0.98); filter: blur(4px); }
	to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes mk-hero-slide-enter-prev {
	from { opacity: 0; transform: translateX(2.5rem) scale(0.98); filter: blur(4px); }
	to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes mk-hero-visual-pop {
	from { opacity: 0; transform: scale(0.94) translateY(12px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes mk-hero-tag-in {
	from { opacity: 0; transform: translateY(12px) scale(0.92); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

[dir="rtl"] .mk-hero-showcase__slide.is-entering [data-mk-hero-animate="visual"] {
	animation-name: mk-hero-visual-pop;
}

@media (prefers-reduced-motion: reduce) {
	.mk-hero-showcase__bg-layer {
		transition: none !important;
	}

	.mk-hero-showcase__layout,
	.mk-hero-showcase__slide.is-leaving .mk-hero-showcase__layout {
		transition: none !important;
		transform: none !important;
		filter: none !important;
	}

	.mk-hero-showcase__slide.is-entering .mk-hero-showcase__layout,
	.mk-hero-showcase__slide.is-entering [data-mk-hero-animate] {
		animation: none !important;
	}
}

/* ── Courses ───────────────────────────────────────────────────────────── */
/* ── Courses slider ───────────────────────────────────────────────────── */
.mk-courses {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.25rem);
	direction: rtl;
	background: #383838;
	color: #ffffff;
	overflow: hidden;
	isolation: isolate;
}

.mk-courses::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

.mk-courses__shell {
	position: relative;
	z-index: 1;
	width: min(1200px, calc(100% - 3rem));
	margin-inline: auto;
}

.mk-courses__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.35rem);
}

.mk-courses__intro {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

.mk-courses__head .mk-section-head__title {
	margin: 0;
	color: #ffffff;
	font-size: var(--mk-section-title-size);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.mk-courses__head .mk-section-head__desc {
	margin: 0.5rem 0 0;
	max-width: 520px;
	color: rgba(255, 255, 255, 0.62);
	font-size: var(--mk-section-subtitle-size);
	font-weight: 400;
	line-height: 1.75;
}

.mk-courses__archive {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	flex: none;
	margin: 0 0 0.2rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(0.72rem, 1vw, 0.82rem);
	font-weight: 700;
	text-decoration: none;
	direction: ltr;
	unicode-bidi: isolate;
	transition: color 0.25s var(--mk-ease), transform 0.25s var(--mk-ease);
}

.mk-courses__archive-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
}

.mk-courses__archive:hover,
.mk-courses__archive:focus-visible {
	color: #ffffff;
	transform: translateX(-2px);
}

.mk-courses__carousel {
	position: relative;
}

.mk-courses__track {
	--mk-courses-gap: clamp(1rem, 2vw, 1.35rem);
	--mk-courses-visible: 4;
	display: flex;
	flex-direction: row;
	direction: rtl;
	gap: var(--mk-courses-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.35rem 0 1.35rem;
	margin: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.mk-courses__track::-webkit-scrollbar {
	display: none;
}

.mk-courses__track > .mk-course-card {
	flex: 0 0 calc((100% - ((var(--mk-courses-visible) - 1) * var(--mk-courses-gap))) / var(--mk-courses-visible));
	min-width: 15.75rem;
	max-width: 17.5rem;
	scroll-snap-align: start;
}

.mk-courses__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 1rem;
}

.mk-courses__dots:empty {
	display: none;
}

.mk-courses__dot {
	width: 0.45rem;
	height: 0.45rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.38);
	cursor: pointer;
	transition: width 0.35s var(--mk-ease), background 0.35s var(--mk-ease);
}

.mk-courses__dot.is-active {
	width: 1.45rem;
	background: #ffffff;
}

.mk-course-card {
	position: relative;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(10, 12, 18, 0.22);
	transition:
		transform 0.35s var(--mk-ease),
		box-shadow 0.35s var(--mk-ease);
}

.mk-course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 42px rgba(10, 12, 18, 0.3);
}

.mk-course-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.mk-course-card__media {
	line-height: 0;
	width: 100%;
	height: auto;
	background: #d7dce4;
	overflow: hidden;
}

.mk-course-card__media img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	min-height: 0;
	object-fit: contain;
	object-position: center top;
	vertical-align: top;
}

.mk-course-card__placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	min-height: 0;
	height: auto;
	background: linear-gradient(135deg, #d7dce4, #c5ccd8);
}

.mk-course-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0.95rem 0.9rem 0.9rem;
	background: #E8E8E8;
}

.mk-course-card__title {
	margin: 0 0 0.45rem;
	color: #171a21;
	font-size: clamp(0.88rem, 1.1vw, 0.98rem);
	font-weight: 900;
	line-height: 1.45;
	text-align: right;
	min-height: 45px;
}

.mk-course-card__cat {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.3rem;
	width: fit-content;
	max-width: 100%;
	margin: 0.72rem 0 0.72rem auto;
	color: #7a8494;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1.3;
	direction: ltr;
}

.mk-course-card__stats {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
	padding: 0;
	background: transparent;
	color: #5f6878;
	font-size: 0.58rem;
	font-weight: 700;
	line-height: 1;
}

.mk-course-card__stats > span {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	white-space: nowrap;
	direction: rtl;
}

.mk-course-card__rating {
	color: #171a21;
	font-size: 0.58rem;
	font-weight: 800;
	background: #DCDCDC;
	padding: 2px 5px;
	border-radius: 4px;
	direction: ltr !important

}
.mk-course-card__rating svg{
	color: #EEB449;

}

.mk-course-card__footer {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	direction: ltr;
	margin-top: auto;
}

.mk-course-card__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-width: 0;
	direction: rtl;
	gap: 0.12rem;
	color: #171a21;
	font-weight: 800;
	line-height: 1.2;
	text-align: right;
	margin-inline-start: auto;
}

.mk-course-card__price-old {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	align-self: stretch;
	width: 100%;
	gap: 0.25rem;
	direction: ltr;
	color: #8b93a1;
	font-size: 0.48rem;
	font-weight: 600;
	line-height: 1;
	text-align: right;
}

.mk-course-card__price-old del {
	display: inline-block;
	color: #9a9a9a;
	font-size: 0.62rem;
	font-weight: 600;
	opacity: 1;
	text-align: right;
	text-decoration-thickness: 1px;
}

.mk-course-card__price-current,
.mk-course-card__price-current ins {
	display: block;
	width: 100%;
	color: #171a21;
	font-size: 0.86rem;
	font-weight: 800;
	text-align: right;
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.mk-course-card__price .amount,
.mk-course-card__price bdi {
	unicode-bidi: plaintext;
	text-align: right;
}

.mk-course-card__price .woocommerce-Price-currencySymbol {
	margin-right: 0.12rem;
	font-size: 0.74rem;
	font-weight: 700;
}

.mk-course-card__discount {
	color: #e65100;
	font-size: 0.5rem;
	font-weight: 800;
}

.mk-course-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 1 auto;
	width: auto;
	max-width: 48%;
	min-width: 0;
	min-height: 1.75rem;
	padding: 0.4rem 0.55rem;
	border-radius: 4px;
	background: #0E6AFF;
	color: #ffffff;
	font-size: 0.58rem;
	font-weight: 750;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 8px 18px rgba(67, 139, 255, 0.28);
}

@media (max-width: 1100px) {
	.mk-courses__track {
		--mk-courses-visible: 3.15;
	}
}

@media (max-width: 860px) {
	.mk-courses__track {
		--mk-courses-visible: 2.2;
	}

	.mk-courses__shell {
		width: min(100%, calc(100% - 2rem));
	}
}

@media (max-width: 640px) {
	.mk-courses {
		margin-top: 1.75rem;
		padding: 2.25rem 0 2rem;
	}

	.mk-courses__head {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0.65rem;
	}

	.mk-courses__track {
		--mk-courses-visible: 1.12;
		--mk-courses-gap: 0.85rem;
		padding-bottom: 1.1rem;
	}

	.mk-courses__track > .mk-course-card {
		min-width: 15.5rem;
	}

	.mk-course-card__body {
		padding: 0.9rem 0.82rem 0.85rem;
	}

	.mk-course-card__title {
		font-size: 0.92rem;
	}

	.mk-course-card__stats {
		font-size: 0.56rem;
	}

	.mk-course-card__cta {
		min-height: 1.65rem;
		padding: 0.35rem 0.4rem;
		font-size: 0.54rem;
		max-width: 46%;
	}

	.mk-course-card__price-current,
	.mk-course-card__price-current ins {
		font-size: 0.64rem;
	}

	.mk-course-card__price .woocommerce-Price-currencySymbol {
		font-size: 0.56rem;
	}
}

/* ── Achievements ──────────────────────────────────────────────────────── */
.mk-achievements {
	position: relative;
	margin: 2.5rem 0;
	overflow: hidden;
	border: 0;
	color: var(--mk-text);
}

.mk-achievements__wrap {
	position: relative;
	width: min(100% - 2rem, 1060px);
	margin: 0 auto;
}

.mk-achievements__mark {
	display: flex;
	justify-content: center;
	margin: 0 auto 0.65rem;
}

.mk-achievements__mark img {
	display: block;
	width: auto;
	max-width: 132px;
	height: auto;
	max-height: 58px;
	object-fit: contain;
}

.mk-achievements__intro {
	text-align: center;
	margin-bottom: clamp(2.1rem, 4vw, 3.1rem);
}

.mk-achievements .mk-section-head__eyebrow {
	display: block;
	margin: 0 0 0.35rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--mk-text);
	font-size: clamp(0.72rem, 1.2vw, 0.9rem);
	font-weight: 800;
	line-height: 1.75;
}

.mk-achievements__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.72rem;
	margin: 0;
	color: var(--mk-text);
	font-size: var(--mk-section-title-size);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.mk-achievements__title span:not(.mk-achievements__bookmark) {
	color: var(--mk-text);
}

.mk-achievements__bookmark {
	position: relative;
	flex: 0 0 auto;
	width: 10px;
	height: 19px;
	margin-top: 0.1rem;
	background: var(--mk-text-muted);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.mk-achievements__tagline {
	margin: 0.28rem 0 0;
	color: var(--mk-section-subtitle);
	font-size: var(--mk-section-subtitle-size);
	font-weight: 400;
	line-height: 1.75;
}

.mk-achievements__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	align-items: end;
	width: min(100%, 1000px);
	margin: 0 auto;
	direction: rtl;
}

.mk-achievement-card {
	--mk-achievement-top-start: 0px;
	--mk-achievement-top-end: 28px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-height: 157px;
	padding: 1.55rem 1rem 1.28rem;
	text-align: center;
	background: linear-gradient(270deg, rgba(217, 217, 217, 0.41) 0%, rgba(115, 115, 115, 0.32) 100%);
	border-radius: 0;
	box-shadow: none;
	clip-path: polygon(0 var(--mk-achievement-top-start), 100% var(--mk-achievement-top-end), 100% 100%, 0 100%);
	overflow: visible;
	transition:
		transform 0.35s var(--mk-ease),
		box-shadow 0.35s var(--mk-ease);
}

.mk-achievement-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--mk-home-card-shadow-hover);
}

.mk-achievement-card:nth-child(1) {
	--mk-achievement-top-start: 28px;
	--mk-achievement-top-end: 0px;
	order: 2;
}

.mk-achievement-card:nth-child(2) {
	--mk-achievement-top-start: 30px;
	--mk-achievement-top-end: 0px;
	order: 1;
}

.mk-achievement-card:nth-child(3) {
	--mk-achievement-top-start: 0px;
	--mk-achievement-top-end: 30px;
	background: linear-gradient(270deg, rgba(115, 115, 115, 0.41) 0%, rgba(217, 217, 217, 0.32) 100%);

	order: 3;
}

.mk-achievement-card:nth-child(4) {
	--mk-achievement-top-start: 0px;
	--mk-achievement-top-end: 30px;
	background: linear-gradient(270deg, rgba(115, 115, 115, 0.41) 0%, rgba(217, 217, 217, 0.32) 100%);
	order: 4;
}

.mk-achievement-card__number {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.06em;
	color: var(--mk-accent-strong, #438bff);
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.045em;
	direction: ltr;
	font-variant-numeric: tabular-nums;
}

html[data-mk-theme="dark"] .mk-achievement-card__number {
	color: var(--mk-accent, #438bff);
}

.mk-achievement-card__suffix {
	font-size: 0.86em;
	line-height: 1;
}

.mk-achievement-card__label {
	display: block;
	margin-top: 0.36rem;
	color: var(--mk-text-muted);
	font-size: clamp(0.66rem, 1.05vw, 0.78rem);
	font-weight: 700;
	line-height: 1.65;
}

/* ── Articles ──────────────────────────────────────────────────────────── */
.mk-articles {
	width: var(--mk-container);
	margin: 5rem auto;
}

.mk-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.35rem;
}

.mk-article-card {
	position: relative;
	border-radius: calc(var(--mk-radius) + 2px);
	background: var(--mk-home-card-bg, #fafafa);
	border: 1px solid var(--mk-home-card-border, #e5e7eb);
	overflow: hidden;
	box-shadow: none;
	transition:
		transform 0.35s var(--mk-ease),
		box-shadow 0.35s var(--mk-ease);
}

.mk-article-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--mk-home-card-shadow-hover);
}

.mk-article-card__link { display: block; text-decoration: none; color: inherit; }

.mk-article-card__media img {
	transition: transform 0.5s var(--mk-ease);
}

.mk-article-card:hover .mk-article-card__media img { transform: scale(1.03); }

.mk-article-card__placeholder {
	font-size: 2.5rem;
	opacity: 0.45;
}

.mk-article-card__cat {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	background: var(--mk-glass);
	border: 1px solid var(--mk-border);
	color: var(--mk-accent);
	font-size: 0.72rem;
	font-weight: 800;
	backdrop-filter: blur(10px);
}

.mk-article-card__body { padding: 1.2rem 1.3rem 1.35rem; }

.mk-article-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.55rem;
}

.mk-article-card__date {
	color: var(--mk-accent);
	font-size: 0.76rem;
	font-weight: 800;
}

.mk-article-card__read {
	color: var(--mk-text-faint);
	font-size: 0.74rem;
	font-weight: 600;
}

.mk-article-card__title {
	margin: 0 0 0.55rem;
	font-size: 1.02rem;
	font-weight: 900;
	color: var(--mk-text);
	line-height: 1.5;
}

.mk-article-card__excerpt {
	margin: 0;
	color: var(--mk-text-muted);
	font-size: 0.88rem;
	line-height: 1.8;
}

.mk-article-card__more {
	display: inline-flex;
	margin-top: 0.85rem;
	color: var(--mk-accent);
	font-size: 0.82rem;
	font-weight: 800;
}

/* ── Promo Banner ──────────────────────────────────────────────────────── */
.mk-promo-banner {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(2rem, 4.5vw, 3.25rem) 0;
	background: transparent;
	overflow: hidden;
	isolation: isolate;
}

.mk-promo-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50%;
	background: #eceef2;
	pointer-events: none;
}

.mk-promo-banner::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50%;
	opacity: 0.28;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

.mk-promo-banner__shell {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 3rem));
	margin-inline: auto;
}

.mk-promo-banner__link {
	display: block;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}

.mk-promo-banner__picture,
.mk-promo-banner__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.mk-promo-banner__img {
	opacity: 1;
	visibility: visible;
}

.mk-promo-banner--empty .mk-promo-banner__shell {
	padding: 2rem;
	border: 1px dashed #c5cad3;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.65);
	color: #6d7686;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}

html[data-mk-theme="dark"] .mk-promo-banner::before {
	background: #2a2d33;
}

@media (max-width: 767px) {
	.mk-promo-banner {
		padding: 1.5rem 0;
	}

	.mk-promo-banner__shell {
		width: min(100%, calc(100% - 2rem));
	}
}

/* ── Video Section ─────────────────────────────────────────────────────── */
.mk-video-section {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(3.5rem, 6vw, 5rem) 0;
	background: #eceef2;
	overflow: hidden;
	isolation: isolate;
}

.mk-video-section::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.28;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

.mk-video-section__shell {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 3rem));
	margin-inline: auto;
}

.mk-video-section__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	direction: rtl;
	gap: clamp(1.75rem, 3.5vw, 1rem);
	align-items: center;
}

.mk-video-section__content {
	direction: rtl;
	max-width: none;
	text-align: right;
	justify-self: stretch;
}

.mk-video-section__badge-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.55rem;
	margin-bottom: 1.15rem;
}

.mk-video-section__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0.42rem 0.82rem;
	border-radius: 8px;
	background: #f0b79a;
	border: 0;
	color: #2a211d;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.25;
}

.mk-video-section__title {
	margin: 0 0 0.85rem;
	color: #171a21;
	font-size: var(--mk-section-title-size);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.mk-video-section__desc {
	width: min(100%, 34rem);
	margin: 0 0 1.2rem;
	color: var(--mk-section-subtitle);
	line-height: 1.75;
	font-size: var(--mk-section-subtitle-size);
	font-weight: 400;
}

.mk-video-section__features {
	width: min(100%, 18rem);
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.mk-video-section__features li {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0.72rem 1.15rem 0.72rem 0.85rem;
	color: #5f6878;
	font-size: clamp(0.72rem, 1.05vw, 0.84rem);
	font-weight: 600;
	line-height: 1.75;
	background: #ffffff;
	border: 1px solid rgba(23, 26, 33, 0.05);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(23, 26, 33, 0.04);
	overflow: hidden;
	transition:
		background 0.28s var(--mk-ease),
		color 0.28s var(--mk-ease),
		border-color 0.28s var(--mk-ease),
		box-shadow 0.28s var(--mk-ease);
}

.mk-video-section__features li:nth-child(2) {
	background: #f3f5f8;
}

.mk-video-section__features li:hover {
	background: var(--mk-gradient-brand);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 10px 24px rgba(67, 139, 255, 0.22);
}

.mk-video-section__feature-accent {
	position: absolute;
	top: 50%;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 25px;
	transform: translateY(-50%);
	line-height: 0;
	flex-shrink: 0;
	pointer-events: none;
}

.mk-video-section__feature-accent svg {
	display: block;
	width: 13px;
	height: 25px;
}

.mk-video-section__feature-text {
	display: block;
	flex: 1;
	min-width: 0;
	color: inherit;
	text-align: right;
}

.mk-video-section__media {
	position: relative;
	min-width: 0;
	width: 100%;
	justify-self: stretch;
}

.mk-video-section__frame {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10.5;
	background: #2f3440;
	border: 0;
	box-shadow: 0 18px 42px rgba(23, 26, 33, 0.16);
}

.mk-video-section__player,
.mk-video-section__poster,
.mk-video-section__player-host {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	border: 0;
	object-fit: cover !important;
	object-position: center top;
	vertical-align: top;
}

.mk-video-section__player-host[hidden] {
	display: none !important;
}

.mk-video-section__player-host video,
.mk-video-section__player-host .plyr,
.mk-video-section__player-host .mk-player-aparat {
	width: 100% !important;
	height: 100% !important;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

.mk-video-section__player-host .plyr__video-wrapper,
.mk-video-section__player-host .plyr__video-embed {
	height: 100%;
}

.mk-video-section__player[hidden] {
	display: none;
}

.mk-video-section__frame.is-playing .mk-video-section__player-host {
	display: block;
}

.mk-video-section__cover {
	z-index: 1;
	transition: opacity 0.35s var(--mk-ease), visibility 0.35s var(--mk-ease);
}

.mk-video-section__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: rgba(255, 255, 255, 0.72);
	gap: 0.65rem;
}

.mk-video-section__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(68, 72, 80, 0.48);
	backdrop-filter: blur(16px) saturate(125%);
	-webkit-backdrop-filter: blur(16px) saturate(125%);
	color: #ffffff;
	line-height: 1;
	box-shadow: none;
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: transform 0.28s var(--mk-ease), opacity 0.28s var(--mk-ease), visibility 0.28s var(--mk-ease), background 0.28s var(--mk-ease), border-color 0.28s var(--mk-ease);
}

.mk-video-section__play--static {
	pointer-events: none;
}

.mk-video-section__play-icon {
	display: block;
	width: clamp(28px, 3.4vw, 34px);
	height: clamp(28px, 3.4vw, 34px);
	margin-inline-start: 4px;
}

.mk-video-section__play:hover {
	transform: translate(-50%, -50%) scale(1.03);
	background: rgba(68, 72, 80, 0.58);
	border-color: rgba(255, 255, 255, 0.22);
}

.mk-video-section__frame.is-playing .mk-video-section__play {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.mk-video-section__frame.is-playing .mk-video-section__cover {
	opacity: 0;
	visibility: hidden;
}

html[data-mk-theme="dark"] .mk-video-section {
	background: #2a2d33;
}

html[data-mk-theme="dark"] .mk-video-section__features li {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.78);
}

html[data-mk-theme="dark"] .mk-video-section__features li:nth-child(2) {
	background: rgba(255, 255, 255, 0.07);
}

html[data-mk-theme="dark"] .mk-video-section__features li:hover {
	color: #ffffff;
}

html[data-mk-theme="dark"] .mk-video-section__title {
	color: #f3f6ff;
}

html[data-mk-theme="dark"] .mk-video-section__desc {
	color: var(--mk-section-subtitle);
}

@keyframes mk-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.mk-hero-showcase {
		overflow-x: clip;
		overflow-y: visible;
		min-height: auto;
		padding-top: 1rem;
		--mk-hero-content-gap: clamp(
			calc(1.65rem * var(--mk-hero-height-scale)),
			calc(5vw * var(--mk-hero-height-scale)),
			calc(2.25rem * var(--mk-hero-height-scale))
		);
	}

	.mk-hero-showcase__track {
		min-height: auto;
	}

	.mk-hero-showcase__layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		min-height: auto;
		gap: calc(1.25rem * var(--mk-hero-height-scale));
		padding-top: 0;
		padding-bottom: calc(2.5rem * var(--mk-hero-height-scale));
	}

	.mk-hero-showcase__content {
		position: relative;
		z-index: 3;
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		max-width: 100%;
		text-align: right;
		align-items: flex-end;
		margin-inline-start: auto;
		margin-inline-end: 0;
		padding-top: 0;
	}

	.mk-hero-showcase__title {
		width: auto;
		max-width: 100%;
		margin-inline-start: auto;
		margin-inline-end: 0;
		text-align: center;
	}

	.mk-hero-showcase__subtitle {
		max-width: 16em;
		margin-inline-start: auto;
		margin-inline-end: 0;
	}

	.mk-hero-showcase__footer {
		justify-content: flex-end;
		flex-wrap: wrap;
		width: 100%;
		max-width: 100%;
		gap: 0.5rem;
	}

	.mk-hero-showcase__cta {
		font-size: clamp(0.88rem, 2.6vw, 1rem);
		min-height: 2.65rem;
		padding: 0.55rem 1.1rem;
	}

	.mk-hero-showcase__cta-icon {
		width: 0.95rem;
		height: 0.95rem;
	}

	.mk-hero-showcase__tags {
		justify-content: flex-end;
		flex-wrap: wrap;
		row-gap: 0.35rem;
		max-width: 100%;
		padding: 0;
		min-height: 0;
		gap: 0.55rem;
	}

	.mk-hero-showcase__tag {
		font-size: clamp(0.78rem, 2.4vw, 0.92rem);
	}

	.mk-hero-showcase__visual {
		position: relative;
		z-index: 1;
		grid-column: 1;
		grid-row: 2;
		justify-content: center;
		align-items: flex-end;
		align-self: auto;
		width: 100%;
		max-width: min(100%, 360px);
		min-height: 0;
		margin-top: 0;
		margin-inline: auto;
		overflow: hidden;
	}

	.mk-hero-showcase__shape--pill {
		display: none;
	}

	.mk-hero-showcase__image-wrap {
		height: auto;
		max-height: clamp(
			calc(220px * var(--mk-hero-height-scale)),
			calc(38vh * var(--mk-hero-height-scale)),
			calc(320px * var(--mk-hero-height-scale))
		);
		min-height: 0;
		margin-inline-end: 0;
		justify-content: center;
		width: 100%;
	}

	.mk-hero-showcase__image {
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: clamp(
			calc(220px * var(--mk-hero-height-scale)),
			calc(38vh * var(--mk-hero-height-scale)),
			calc(320px * var(--mk-hero-height-scale))
		);
		object-fit: contain;
		object-position: bottom center;
	}

	.mk-articles__grid { grid-template-columns: repeat(2, 1fr); }

	.mk-achievements__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
		align-items: stretch;
	}

	.mk-achievement-card,
	.mk-achievement-card:nth-child(1),
	.mk-achievement-card:nth-child(2),
	.mk-achievement-card:nth-child(3),
	.mk-achievement-card:nth-child(4) {
		--mk-achievement-top-start: 0px;
		--mk-achievement-top-end: 0px;
		order: unset;
		clip-path: none;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		min-height: 0;
		padding: 0.95rem 1.1rem;
		border-radius: 12px;
		text-align: right;
	}

	.mk-achievement-card:hover {
		transform: none;
		box-shadow: none;
	}

	.mk-achievement-card__number {
		order: 2;
		font-size: 1.35rem;
		font-family: var(--mk-font, inherit);
		letter-spacing: 0;
	}

	.mk-achievement-card__label {
		order: 1;
		margin-top: 0;
		font-size: 0.82rem;
		text-align: right;
	}
	.mk-video-section__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.mk-video-section__shell {
		width: min(100%, calc(100% - 2rem));
	}

	.mk-video-section__media {
		order: 1;
		justify-self: center;
	}

	.mk-video-section__content {
		order: 2;
		justify-self: center;
		width: 100%;
		max-width: 620px;
		text-align: right;
	}

	.mk-courses {
		margin-top: clamp(1.25rem, 4vw, 2rem);
	}

	.mokh-events-section {
		margin-top: clamp(1.75rem, 5vw, 2.5rem);
		padding-top: clamp(0.75rem, 2vw, 1.25rem);
	}

	.mk-section-head--row {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 0.65rem;
		flex-wrap: nowrap;
		margin-bottom: 1.65rem;
	}

	.mk-section-head--row > div:first-child {
		flex: 1 1 auto;
		min-width: 0;
	}

	.mk-section-head--row .mk-section-head__title {
		margin-bottom: 0;
	}

	.mk-section-head--row .mk-link-arrow {
		flex-shrink: 0;
		align-self: flex-end;
		margin-bottom: 0.12rem;
		font-size: 0.72rem;
		font-weight: 700;
		gap: 0.3rem;
		padding: 0;
	}

	.mk-section-head--row .mk-link-arrow .mk-view-all-icon {
		width: 11px;
		height: 11px;
	}

	.mk-courses__head {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0.65rem;
		flex-wrap: nowrap;
	}

	.mk-courses__intro {
		flex: 1 1 auto;
		min-width: 0;
	}

	.mk-courses__archive {
		flex-shrink: 0;
		align-self: flex-start;
		margin: 0.08rem 0 0;
		font-size: 0.72rem;
		font-weight: 700;
		gap: 0.3rem;
	}

	.mk-courses__archive .mk-view-all-icon {
		width: 11px;
		height: 11px;
	}

	.mk-aposts__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 0.65rem;
		flex-wrap: nowrap;
	}

	.mk-aposts__head > div:first-child {
		flex: 1 1 auto;
		min-width: 0;
	}

	.mk-aposts__more-link {
		flex-shrink: 0;
		align-self: flex-end;
		margin-bottom: 0.12rem;
		font-size: 0.72rem;
		font-weight: 700;
		gap: 0.3rem;
		padding: 0;
	}

	.mk-aposts__more-link .mk-view-all-icon {
		width: 11px;
		height: 11px;
	}
}

@media (max-width: 640px) {
	.mk-articles__grid { grid-template-columns: 1fr; }

	.mk-achievements {
		margin: 1.75rem 0;
	}

	.mk-achievements__intro {
		margin-bottom: 1.25rem;
	}

	.mk-achievements__grid {
		grid-template-columns: 1fr;
		gap: 0.55rem;
		width: 100%;
	}

	.mk-achievement-card,
	.mk-achievement-card:nth-child(1),
	.mk-achievement-card:nth-child(2),
	.mk-achievement-card:nth-child(3),
	.mk-achievement-card:nth-child(4) {
		padding: 0.78rem 1rem;
		border-radius: 10px;
		min-height: 0;
	}

	.mk-achievement-card__number {
		font-size: 1.2rem;
	}

	.mk-achievement-card__label {
		font-size: 0.8rem;
		line-height: 1.45;
	}

	.mk-hero-showcase {
		min-height: auto;
		--mk-hero-content-gap: clamp(
			calc(2rem * var(--mk-hero-height-scale)),
			calc(8vw * var(--mk-hero-height-scale)),
			calc(2.75rem * var(--mk-hero-height-scale))
		);
	}

	.mk-hero-showcase__layout {
		padding-bottom: calc(1.75rem * var(--mk-hero-height-scale));
		padding-top: 0;
		display: flex;
		flex-direction: column-reverse;
	}

	.mk-hero-showcase__content {
		align-items: flex-end;
	}

	.mk-hero-showcase__title {
		width: auto;
		max-width: 90%;
		margin-inline-start: auto;
		margin-inline-end: auto;
		font-size: clamp(1.7rem, 7.5vw, 2.05rem);
		margin-bottom: 1rem;
		line-height: 1.4;
		text-align: center;
	}

	.mk-hero-showcase__subtitle {
		width: auto;
		max-width: 80%;
		margin-inline-start: auto;
		margin-inline-end: auto;
		margin-top: -0.35rem;
		margin-bottom: 0.95rem;
		font-size: clamp(0.88rem, 3.6vw, 0.98rem);
		line-height: 1.65;
	}

	.mk-hero-showcase__title-underline::after {
		height: 0.32em;
		bottom: -0.14em;
	}

	.mk-hero-showcase__footer {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		width: 100%;
		gap: 0.55rem;
	}

	.mk-hero-showcase__cta {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		font-size: 1.08rem;
		min-height: 3rem;
		padding: 0.6rem 1.15rem;
	}

	.mk-hero-showcase__cta-icon {
		width: 1.12rem;
		height: 1.12rem;
	}

	.mk-hero-showcase__tags {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		row-gap: 0.35rem;
		padding: 0;
		min-height: 0;
		gap: 0.55rem;
	}

	.mk-hero-showcase__tag {
		font-size: 0.95rem;
	}

	.mk-hero-showcase__visual {
		max-width: min(100%, 280px);
		margin-top: 0.15rem;
	}

	.mk-hero-showcase__image-wrap,
	.mk-hero-showcase__image {
		max-height: clamp(
			calc(170px * var(--mk-hero-height-scale)),
			calc(32vh * var(--mk-hero-height-scale)),
			calc(220px * var(--mk-hero-height-scale))
		);
	}

	.mk-hero-showcase__pagination {
		bottom: 0.5rem;
	}

	.mk-video-section {
		padding: 2.5rem 0;
	}

	.mk-video-section__grid {
		gap: 1.55rem;
	}

	.mk-video-section__shell {
		width: min(100%, calc(100% - 2rem));
	}

	.mk-video-section__frame {
		border-radius: 18px;
		aspect-ratio: 16/11;
	}

	.mk-video-section__badge-row {
		gap: 0.5rem;
		margin-bottom: 1rem;
	}

	.mk-video-section__pill {
		min-width: auto;
		padding: 0.45rem 0.7rem;
		font-size: 0.66rem;
	}

	.mk-video-section__title {
		line-height: 1.35;
	}

	.mk-video-section__desc {
		line-height: 1.75;
	}

	.mk-video-section__features {
		width: 100%;
		max-width: 330px;
	}
}

/* ── Articles (CPT article) — editorial section ────────────────────────── */
.mk-aposts { position: relative; margin: 5rem 0; overflow: hidden; }
.mk-aposts__ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mk-aposts__orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.mk-aposts__orb--1 { top: -6%; inset-inline-end: -4%; width: min(420px,40vw); height: min(420px,40vw); background: var(--mk-accent-glow); opacity: .4; }
.mk-aposts__orb--2 { bottom: -10%; inset-inline-start: -4%; width: min(360px,34vw); height: min(360px,34vw); background: var(--mk-gold-glow); opacity: .3; }
.mk-aposts__inner { position: relative; z-index: 1; width: var(--mk-container); margin-inline: auto; }

/* Head */
.mk-aposts__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.mk-aposts__eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .85rem; padding: .4rem .9rem; border-radius: 999px; background: var(--mk-accent-soft); border: 1px solid var(--mk-border-strong); color: var(--mk-accent); font-size: .76rem; font-weight: 800; }
.mk-aposts__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.mk-aposts__title { margin: 0 0 .5rem; font-size: var(--mk-section-title-size); font-weight: 700; letter-spacing: -.02em; color: var(--mk-text); line-height: 1.35; }
.mk-aposts__subtitle { margin: 0; color: var(--mk-section-subtitle); font-size: var(--mk-section-subtitle-size); font-weight: 400; line-height: 1.75; max-width: 56ch; }
/* Minimal, borderless "view all" link */
.mk-aposts__more-link { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; padding: .35rem .15rem; border: 0; background: none; color: var(--mk-section-more, #9ca3af); font-size: .9rem; font-weight: 800; text-decoration: none; transition: gap .25s var(--mk-ease), color .25s; }
.mk-aposts__more-link:hover { background: none; color: var(--mk-section-more-hover, #6b7280); gap: .7rem; }
[dir="rtl"] .mk-aposts__more-link svg { transform: scaleX(-1); }

/* Carousel + edge arrows (at the start/end of the slider) */
.mk-aposts__carousel { position: relative; }
.mk-aposts__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--mk-border); background: var(--mk-card); color: var(--mk-text);
	box-shadow: var(--mk-shadow-soft); cursor: pointer;
	transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.mk-aposts__arrow--prev { inset-inline-start: 8px; }
.mk-aposts__arrow--next { inset-inline-end: 8px; }
.mk-aposts__arrow:hover:not(:disabled) { background: var(--mk-accent); color: var(--mk-btn-text); border-color: var(--mk-accent); }
.mk-aposts__arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.mk-aposts__arrow[hidden] { display: none; }

/* Carousel track (slider) */
.mk-aposts__track {
	--cols: var(--mk-cols, 4); --gap: 1.5rem;
	display: flex; gap: var(--gap);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 0 18px; margin: 0; list-style: none;
	scrollbar-width: none; -ms-overflow-style: none;
}
.mk-aposts__track::-webkit-scrollbar { display: none; }
.mk-aposts__track > .mk-apost {
	flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
	scroll-snap-align: start;
}

/* Layout: lead + grid (featured mode) */
.mk-aposts__layout.has-lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr); gap: 1.5rem; align-items: stretch; }
.mk-aposts__lead-wrap { display: flex; }
.mk-aposts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.5rem; }
.mk-aposts__grid--full { grid-template-columns: repeat(var(--mk-acols, 4), minmax(0, 1fr)); }

/* Card */
.mk-apost { position: relative; display: flex; flex-direction: column; width: 100%; background: var(--mk-home-card-bg, #fafafa); border: 1px solid var(--mk-home-card-border, #e5e7eb); border-radius: calc(var(--mk-radius) + 2px); overflow: hidden; box-shadow: none; transition: transform .4s var(--mk-ease), box-shadow .4s var(--mk-ease); }
.mk-apost:hover { transform: translateY(-6px); box-shadow: var(--mk-home-card-shadow-hover); }
.mk-apost::before { content: none; }

.mk-apost__media { background: linear-gradient(145deg, var(--mk-surface-2), var(--mk-surface)); }
.mk-apost__img { transition: transform .6s var(--mk-ease); }
.mk-apost:hover .mk-apost__img { transform: scale(1.03); }
.mk-apost__media-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mk-text-faint); opacity: .4; }
.mk-apost__cat { position: absolute; top: .85rem; inset-inline-end: .85rem; z-index: 3; padding: .3rem .75rem; border-radius: 999px; background: var(--mk-glass); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: .7rem; font-weight: 800; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.mk-apost__body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: 1.15rem 1.25rem 1.25rem; }
.mk-apost__meta { display: flex; align-items: center; gap: .65rem; font-size: .76rem; color: var(--mk-text-faint); font-weight: 600; }
.mk-apost__meta time { color: var(--mk-accent); font-weight: 700; }
.mk-apost__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mk-text-faint); }
.mk-apost__read { display: inline-flex; align-items: center; gap: .3rem; }
.mk-apost__title { margin: 0; font-size: 1.02rem; font-weight: 900; line-height: 1.55; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-apost__title a { color: var(--mk-text); text-decoration: none; }
.mk-apost__title a:hover { color: var(--mk-accent); }
.mk-apost__excerpt { margin: 0; color: var(--mk-text-muted); font-size: .86rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-apost__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .35rem; color: var(--mk-accent); font-size: .82rem; font-weight: 800; }
[dir="rtl"] .mk-apost__more svg { transform: scaleX(-1); }

/* Lead (featured) card — bigger, fills its column */
.mk-apost--lead { height: 100%; }
.mk-apost--lead .mk-apost__media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.mk-apost--lead .mk-apost__img { height: 100%; }
.mk-apost--lead .mk-apost__body { padding: 1.5rem 1.65rem 1.7rem; gap: .75rem; }
.mk-apost--lead .mk-apost__title { font-size: clamp(1.2rem,2vw,1.6rem); -webkit-line-clamp: 3; line-height: 1.45; }
.mk-apost--lead .mk-apost__excerpt { font-size: .95rem; -webkit-line-clamp: 3; }

/* Responsive */
@media (max-width: 1024px) {
	.mk-aposts__layout.has-lead { grid-template-columns: 1fr; }
	.mk-aposts__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
	.mk-aposts__grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mk-aposts__track { --cols: 2.3; } /* peek next card */
	.mk-apost--lead .mk-apost__media { min-height: 0; }
}
@media (max-width: 600px) {
	.mk-aposts { margin: 3.5rem 0; }
	.mk-aposts__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 0.65rem;
	}
	.mk-aposts__grid, .mk-aposts__grid--full { grid-template-columns: 1fr; }
	.mk-aposts__track { --cols: 1.15; --gap: 1rem; } /* one card + peek */
	.mk-aposts__arrow { width: 40px; height: 40px; }
	.mk-aposts__arrow--prev { inset-inline-start: 3px; }
	.mk-aposts__arrow--next { inset-inline-end: 3px; }
}

/* ── Educational Blog Section (CPT article) ───────────────────────────── */
.mk-edublog {
	position: relative;
	margin: 0;
	padding: clamp(3.7rem, 7vw, 6.2rem) 0 clamp(4rem, 7vw, 6.5rem);
	color: var(--mk-text);
	overflow: hidden;
}

.mk-edublog__inner {
	display: grid;
	grid-template-columns: minmax(318px, 0.9fr) minmax(438px, 1.08fr);
	align-items: stretch;
	width: min(100% - 2rem, 1120px);
	min-height: 470px;
	margin: 0 auto;
	direction: rtl;
}

.mk-edublog__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	justify-self: start;
	text-align: right;
}

.mk-edublog__kicker {
	margin-bottom: 0;
	text-align: right;
	line-height: 1.7;
}

.mk-edublog__kicker strong,
.mk-edublog__kicker span {
	display: block;
}

.mk-edublog__kicker strong {
	color: var(--mk-text);
	font-size: clamp(0.86rem, 1.45vw, 1.05rem);
	font-weight: 900;
}

.mk-edublog__kicker span {
	margin-top: 0.08rem;
	color: var(--mk-section-subtitle);
	font-size: clamp(0.64rem, 1vw, 0.78rem);
	font-weight: 500;
}

.mk-edublog__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin: auto 0 1.42rem;
}

.mk-edublog__title-row .mk-edublog__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.mk-edublog__title-row .mk-edublog__archive {
	flex-shrink: 0;
	margin: 0;
}

.mk-edublog__title {
	margin: auto 0 1.42rem;
	color: var(--mk-text);
	font-size: var(--mk-section-title-size);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	text-align: right;
}

.mk-edublog__desc {
	margin: 0;
	color: var(--mk-section-subtitle);
	font-size: var(--mk-section-subtitle-size);
	font-weight: 400;
	line-height: 1.75;
	text-align: justify;
	text-align-last: right;
}

.mk-edublog__tags {
	display: grid;
	gap: 0.7rem;
	width: min(100%, 255px);
	margin-top: clamp(2rem, 4vw, 3.1rem);
}

.mk-edublog__tag {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 34px;
	padding: 0.48rem 1.12rem 0.48rem 0.9rem;
	border: none;
	border-radius: 6px;
	background: #f2f2f2;
	color: #231f20;
	font-size: 0.72rem;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.6;
	text-align: right;
	box-shadow: none;
	cursor: pointer;
	transition:
		color 0.25s var(--mk-ease),
		border-color 0.25s var(--mk-ease),
		box-shadow 0.25s var(--mk-ease),
		transform 0.25s var(--mk-ease),
		background 0.25s var(--mk-ease);
	gap: 0.45rem;
}

.mk-edublog__tag svg {
	display: block;
	flex-shrink: 0;
	width: 7px;
	height: 13px;
}

button.mk-edublog__tag:hover,
button.mk-edublog__tag:focus-visible {
	background: #ffffff;
	color: #231f20;
	box-shadow: 0 4px 14px rgba(23, 26, 33, 0.04);
}

button.mk-edublog__tag.is-active,
button.mk-edublog__tag.is-active:hover,
button.mk-edublog__tag.is-active:focus-visible {
	background: var(--mk-gradient-brand);
	color: #ffffff;
	box-shadow: var(--mk-shadow-soft);
	transform: none;
}

.mk-edublog__posts {
	position: relative;
	width: min(100%, 520px);
	justify-self: end;
	align-self: center;
	direction: ltr;
}

.mk-edublog__archive {
	display: inline-flex;
	align-items: center;
	gap: 0.48rem;
	color: var(--mk-section-more, #9ca3af);
	font-size: clamp(0.68rem, 1vw, 0.82rem);
	font-weight: 700;
	text-decoration: none;
	text-align: right;
	white-space: nowrap;
	direction: rtl;
	transition: color 0.25s var(--mk-ease);
}

.mk-edublog__archive:hover,
.mk-edublog__archive:focus-visible {
	color: var(--mk-section-more-hover, #6b7280);
}

.mk-edublog__stack {
	position: relative;
	padding-inline: 1.05rem;
}

.mk-edublog__panel {
	display: grid;
	gap: 1.42rem;
}

.mk-edublog__panel[hidden] {
	display: none;
}

.mk-edublog-card {
	--mk-edublog-card-font-scale: 1.2;
	display: grid;
	grid-template-columns: 42% minmax(0, 1fr);
	min-height: 80px;
	overflow: hidden;
	background: var(--mk-home-card-bg, #fafafa);
	border: 1px solid var(--mk-home-card-border, #e5e7eb);
	border-radius: 8px;
	box-shadow: none;
	direction: rtl;
	transition:
		transform 0.32s var(--mk-ease),
		box-shadow 0.32s var(--mk-ease);
}

.mk-edublog-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mk-home-card-shadow-hover);
}

.mk-edublog-card__media {
	position: relative;
	display: block;
	grid-column: 1;
	grid-row: 1;
	min-height: 100%;
	background: #d6d6d6;
	overflow: hidden;
}

.mk-edublog-card__img,
.mk-edublog-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 80px;
	object-fit: cover;
}

.mk-edublog-card__placeholder {
	background: #d8d8d8;
}

.mk-edublog-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	width: 100%;
	padding: 0.56rem 0.82rem 0.62rem;
	direction: rtl;
	text-align: right;
}

.mk-edublog-card__title {
	margin: 0 0 0.16rem;
	width: 100%;
	color: var(--mk-text);
	font-size: calc(0.69rem * var(--mk-edublog-card-font-scale));
	font-weight: 900;
	line-height: 1.52;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mk-edublog-card__title a {
	color: inherit;
	text-decoration: none;
}

.mk-edublog-card__title a:hover {
	color: var(--mk-accent, #438bff);
}

.mk-edublog-card__excerpt {
	margin: 0 0 0.28rem;
	width: 100%;
	color: var(--mk-text-muted);
	font-size: calc(0.52rem * var(--mk-edublog-card-font-scale));
	font-weight: 500;
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mk-edublog-card__meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.62rem;
	width: 100%;
	color: var(--mk-text-faint);
	font-size: calc(0.48rem * var(--mk-edublog-card-font-scale));
	font-weight: 600;
}

.mk-edublog-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	white-space: nowrap;
}

.mk-edublog-card__meta svg {
	width: calc(8px * var(--mk-edublog-card-font-scale));
	height: calc(8px * var(--mk-edublog-card-font-scale));
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.85;
}

.mk-edublog-card__footer {
	display: flex;
	align-items: end;
	gap: 0.45rem;
	width: 100%;
	margin-top: auto;
}

.mk-edublog-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: calc(23px * var(--mk-edublog-card-font-scale));
	margin-top: 0;
	padding: 0.42rem 0.8rem;
	border-radius: 4px;
	background: #030303;
	color: #fff;
	font-size: calc(0.5rem * var(--mk-edublog-card-font-scale));
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	text-wrap:nowrap;
}

.mk-edublog-card__button:hover {
	background: #202020;
	color: #fff;
}

.mk-edublog__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #438bff;
	font-size: 2.1rem;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.25s var(--mk-ease), color 0.25s var(--mk-ease);
}

.mk-edublog__nav:disabled {
	opacity: 0.22;
	cursor: default;
}

.mk-edublog__nav:not(:disabled):hover {
	color: var(--mk-accent, #438bff);
}

.mk-edublog__nav--prev {
	left: 0.2rem;
}

.mk-edublog__nav--next {
	right: 0.2rem;
}

@media (max-width: 1024px) {
	.mk-edublog__inner {
		grid-template-columns: 1fr;
		gap: 3rem;
		min-height: 0;
	}

	.mk-edublog__content,
	.mk-edublog__posts {
		justify-self: center;
		width: min(100%, 620px);
		max-width: 620px;
	}

	.mk-edublog__kicker {
		margin-bottom: 2rem;
	}

	.mk-edublog__title-row {
		margin-top: 0;
		margin-bottom: 0.85rem;
	}

	.mk-edublog__title-row .mk-edublog__archive {
		font-size: 0.72rem;
		gap: 0.3rem;
	}

	.mk-edublog__title-row .mk-edublog__archive .mk-view-all-icon {
		width: 11px;
		height: 11px;
	}
}

@media (max-width: 640px) {
	.mk-edublog {
		padding: 2.75rem 0 3.35rem;

	}

	.mk-edublog__inner {
		width: min(100% - 1.1rem, 1120px);
		gap: 1.55rem;
	}

	.mk-edublog__content,
	.mk-edublog__posts {
		width: 100%;
		max-width: none;
	}

	.mk-edublog__content {
		display: block;
		text-align: right;
	}

	.mk-edublog__kicker {
		margin-bottom: 1.15rem;
		padding-inline: 0.35rem;
	}

	.mk-edublog__title-row {
		margin-bottom: 0.85rem;
		padding-inline: 0.35rem;
		gap: 0.65rem;
	}

	.mk-edublog__title-row .mk-edublog__archive {
		font-size: 0.72rem;
		gap: 0.3rem;
	}

	.mk-edublog__kicker strong {
		font-size: 0.92rem;
	}

	.mk-edublog__kicker span {
		font-size: 0.68rem;
		color: var(--mk-text-muted);
	}

	.mk-edublog__title {
		padding-inline: 0;
		line-height: 1.35;
	}

	.mk-edublog__desc {
		padding-inline: 0.35rem;
		line-height: 1.75;
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.mk-edublog__tags {
		display: flex;
		gap: 0.62rem;
		width: auto;
		margin: 1.35rem -0.55rem 0;
		padding: 0 0.55rem 0.35rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.mk-edublog__tags::-webkit-scrollbar {
		display: none;
	}

	.mk-edublog__tag {
		flex: 0 0 auto;
		width: auto;
		min-height: 38px;
		padding: 0.52rem 0.82rem;
		border-radius: 999px;
		background: #f2f2f2;
		font-size: 0.72rem;
		box-shadow: none;
		scroll-snap-align: start;
	}

	button.mk-edublog__tag.is-active,
	button.mk-edublog__tag.is-active:hover,
	button.mk-edublog__tag.is-active:focus-visible {
		background: var(--mk-gradient-brand);
		color: #ffffff;
		box-shadow: var(--mk-shadow-soft);
		transform: translateY(-1px);
	}

	.mk-edublog__stack {
		padding: 0 0 3.15rem;
	}

	.mk-edublog__panel {
		gap: 0.86rem;
	}

	.mk-edublog-card {
		grid-template-columns: 34% minmax(0, 1fr);
		min-height: 118px;
		align-items: stretch;
		direction: rtl;
		border: 1px solid var(--mk-home-card-border, #e5e7eb);
		border-radius: 14px;
		background: var(--mk-home-card-bg, #fafafa);
		box-shadow: none;
	}

	.mk-edublog-card__media {
		grid-column: 1;
		grid-row: 1;
		order: 0;
		aspect-ratio: auto;
		height: 100%;
		min-height: 0;
		border-radius: 0;
		align-self: stretch;
	}

	.mk-edublog-card__body {
		grid-column: 2;
		grid-row: 1;
		align-items: flex-start;
		padding: 0.82rem 0.9rem 0.78rem;
		
	}

	.mk-edublog-card__img,
	.mk-edublog-card__placeholder {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		min-height: 100% !important;
		object-fit: cover !important;
	}

	.mk-edublog-card__title {
		margin-bottom: 0.28rem;
		font-size: calc(0.74rem * var(--mk-edublog-card-font-scale));
		line-height: 1.58;
	}

	.mk-edublog-card__excerpt {
		margin-bottom: 0.38rem;
		font-size: calc(0.56rem * var(--mk-edublog-card-font-scale));
		-webkit-line-clamp: 2;
	}

	.mk-edublog-card__meta {
		gap: 0.48rem;
		font-size: calc(0.5rem * var(--mk-edublog-card-font-scale));
		min-width: 0;
	}

	.mk-edublog-card__meta span {
		gap: 0.24rem;
	}

	.mk-edublog-card__meta span:nth-child(2) {
		display: none;
	}

	.mk-edublog-card__meta svg {
		width: calc(8px * var(--mk-edublog-card-font-scale));
		height: calc(8px * var(--mk-edublog-card-font-scale));
		flex: 0 0 auto;
	}

	.mk-edublog-card__footer {
		gap: 0.42rem;
		margin-top: auto;
	}

	.mk-edublog-card__button {
		flex: 0 0 auto;
		min-height: calc(25px * var(--mk-edublog-card-font-scale));
		margin-top: 0;
		padding: 0.46rem 0.72rem;
		border-radius: 6px;
		font-size: calc(0.53rem * var(--mk-edublog-card-font-scale));
	}

	.mk-edublog__nav {
		top: auto;
		bottom: 0;
		width: 38px;
		height: 38px;
		border: 1px solid rgba(68, 223, 196, 0.26);
		border-radius: 50%;
		background: var(--mk-surface);
		box-shadow: var(--mk-shadow-soft);
		font-size: 1.75rem;
		transform: none;
	}

	.mk-edublog__nav--prev {
		left: calc(50% - 48px);
	}

	.mk-edublog__nav--next {
		right: calc(50% - 48px);
	}
}

/* ==========================================================================
   Elementor editor preview fix
   --------------------------------------------------------------------------
   In edit mode Elementor adds `.elementor-editor-active` to the preview
   iframe <body>. The scroll-reveal (IntersectionObserver) and the hero
   slider JS do not reliably fire on the iframe-mounted / re-rendered
   widgets, so anything that starts hidden (opacity:0 / visibility:hidden
   until JS adds a class) stays invisible while still occupying space — the
   editor shows empty boxes with no preview. Force the resting/visible state
   in edit mode only. The real frontend and the editor's "preview" eye
   (which uses `.elementor-editor-preview`) keep the animations.
   ========================================================================== */
.elementor-editor-active .mk-reveal {
	opacity: 1 !important;
	transform: none !important;
}

.elementor-editor-active .mk-hero-showcase.mk-reveal:not(.is-visible) .mk-hero-showcase__track {
	opacity: 1 !important;
}

/* Show the first hero slide as a static preview (others stay stacked/hidden). */
.elementor-editor-active .mk-hero-showcase__slide:first-child {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ==========================================================================
   Learning Path — icon + title above, white card below
   ========================================================================== */
.mk-lpath {
	margin: clamp(3rem, 6vw, 2.75rem) 0;
	background: transparent;
}

.mk-lpath__inner {
	width: min(1080px, calc(100% - 3rem));
	margin-inline: auto;
}

.mk-lpath__head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

.mk-lpath__heading {
	margin: 0 0 0.5rem;
	color: var(--mk-text);
	font-size: var(--mk-section-title-size);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.mk-lpath__sub {
	margin: 0;
	color: var(--mk-section-subtitle);
	font-size: var(--mk-section-subtitle-size);
	font-weight: 400;
	line-height: 1.75;
}

.mk-lpath__grid {
	display: grid;
	grid-template-columns: repeat(var(--mk-cols, 3), minmax(0, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.25rem);
	align-items: start;
	justify-items: stretch;
}

.mk-lpath__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-align: center;
}

.mk-lpath__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(3.75rem, 5.5vw, 4.5rem);
	height: clamp(3.75rem, 5.5vw, 4.5rem);
	margin-bottom: 0.7rem;
	color: #2b3142;
}

.mk-lpath__ico-svg {
	width: 100%;
	height: 100%;
}

.mk-lpath__icon-media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mk-lpath__ico-accent {
	color: var(--mk-accent, #438bff);
}

.mk-lpath__icon svg:not(.mk-lpath__ico-svg) {
	width: 2.85rem;
	height: 2.85rem;
}

.mk-lpath__icon i {
	font-size: 2.4rem;
	line-height: 1;
}

.mk-lpath__title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	margin: 0 0 0.8rem;
	color: var(--mk-text);
	font-size: clamp(0.98rem, 1.4vw, 1.12rem);
	font-weight: 800;
	line-height: 1.4;
	direction: rtl;
}

.mk-lpath__title-text {
	display: inline-block;
}

.mk-lpath__arrow {
	flex: none;
	width: 1.45rem;
	height: 1.45rem;
	color: #e7a08f;
	transition: transform 0.3s var(--mk-ease);
}

.mk-lpath__item:hover .mk-lpath__arrow {
	transform: translateX(-3px);
}

.mk-lpath__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	min-height: 17rem;
	padding: 1.2rem 1.1rem 1rem;
	border: 1px solid #e4e8ef;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(35, 31, 32, 0.04);
	transition:
		transform 0.35s var(--mk-ease),
		box-shadow 0.35s var(--mk-ease),
		border-color 0.35s var(--mk-ease);
}

.mk-lpath__item:hover .mk-lpath__card {
	border-color: rgba(67, 139, 255, 0.12);
	box-shadow: 0 16px 38px rgba(35, 31, 32, 0.12);
	transform: translateY(-5px);
}

.mk-lpath__text {
	flex: 1;
	margin: 0 0 0.85rem;
	color: #7a8494;
	font-size: 0.94rem;
	font-weight: 500;
	line-height: 1.85;
	text-align: justify;
	text-justify: inter-word;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
}

.mk-lpath__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: auto;
	padding: 0.62rem 0.85rem;
	border-radius: 8px;
	background: var(--mk-accent, #438bff);
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition:
		transform 0.3s var(--mk-ease),
		background 0.3s var(--mk-ease);
}

.mk-lpath__item:hover .mk-lpath__btn {
	background: var(--mk-accent-2, #2b6fe6);
}

.mk-lpath__btn:hover,
.mk-lpath__btn:focus-visible {
	background: var(--mk-accent-2, #2b6fe6);
	color: #ffffff;
	transform: translateY(-1px);
}

html[data-mk-theme="dark"] .mk-lpath__card {
	background: var(--mk-card, #1c1b1b);
	border-color: var(--mk-home-card-border, #404040);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

html[data-mk-theme="dark"] .mk-lpath__icon {
	color: #eef3ff;
}

html[data-mk-theme="dark"] .mk-lpath__text {
	color: var(--mk-text-muted);
}

html[data-mk-theme="dark"] .mk-lpath__item:hover .mk-lpath__card {
	border-color: rgba(67, 139, 255, 0.28);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1024px) {
	.mk-lpath__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.mk-lpath {
		padding: 2rem 0;
	}

	.mk-lpath__grid {
		grid-template-columns: 1fr !important;
		gap: 2rem;
	}

	.mk-lpath__card {
		min-height: 16rem;
	}

	.mk-lpath__head {
		margin-bottom: 1.75rem;
	}

	.mk-lpath__title {
		margin-bottom: 0.65rem;
	}

	.mk-lpath__text {
		-webkit-line-clamp: 4;
	}
}
