/* =========================================================================
   Machon Nadav theme styles
   RTL Hebrew store, translated from the approved comp.
   Orange (#FD6B03) is the only accent. Navy ink + off-white paper.
   ========================================================================= */

:root {
	--brand: #FD6B03;
	--brand-600: #E85F00;
	--brand-100: #FFE6D2;
	--brand-50: #FFF4EC;

	--ink: #16202E;
	--ink-700: #24344A;
	--ink-500: #5B6472;
	--paper: #FAFAF9;
	--white: #FFFFFF;

	--line: rgba(22, 32, 46, 0.10);
	--line-strong: rgba(22, 32, 46, 0.15);

	--shadow-soft: 0 10px 30px -12px rgba(22, 32, 46, 0.18);
	--shadow-card: 0 18px 50px -20px rgba(22, 32, 46, 0.22);

	--radius-sm: 0.75rem;
	--radius: 1.1rem;
	--radius-lg: 1.6rem;
	--radius-pill: 999px;

	--container: 80rem; /* matches comp max-w-7xl */
	--gutter: 1.25rem;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base ------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body.mn-body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Hebrew store: force RTL on the theme body so the layout is correct even
	   if the WordPress site language is not (yet) set to a right-to-left locale
	   on the staging install. language_attributes() still sets dir on <html>
	   when the locale is RTL; this is the belt-and-suspenders fallback. */
	direction: rtl;
	text-align: right;
}

.mn-body * {
	box-sizing: border-box;
}

.mn-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

.mn-body a {
	color: inherit;
	text-decoration: none;
}

.mn-body h1,
.mn-body h2,
.mn-body h3,
.mn-body h4,
.mn-body p {
	margin: 0;
}

.mn-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Shared icon sizing */
.mn-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: block;
}

.mn-icon--stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mn-icon--fill {
	fill: currentColor;
}

.mn-icon--brand {
	fill: var(--brand);
}

.mn-icon--whatsapp {
	fill: #25D366;
}

/* Orange halftone dots motif */
.mn-hero__dots {
	background-image: radial-gradient(var(--brand) 1.4px, transparent 1.6px);
	background-size: 16px 16px;
}

/* ---- Buttons ---------------------------------------------------------- */

.mn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
		border-color 0.2s var(--ease), transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-sm);
}

.mn-btn:active {
	transform: scale(0.98);
}

.mn-btn--pill {
	border-radius: var(--radius-pill);
}

.mn-btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
}

.mn-btn--lg {
	padding: 0.95rem 1.75rem;
	font-size: 1rem;
}

.mn-btn--primary {
	background: var(--brand);
	color: var(--white);
	box-shadow: var(--shadow-soft);
}

.mn-btn--primary:hover {
	background: var(--brand-600);
}

.mn-btn--ghost {
	background: var(--white);
	color: var(--ink);
	border-color: var(--line-strong);
}

.mn-btn--ghost:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.mn-btn--arrow .mn-icon {
	transition: transform 0.2s var(--ease);
}

.mn-btn--arrow:hover .mn-icon {
	transform: translateX(0.25rem); /* moves toward start (left in RTL) */
}

/* ---- Top contact bar -------------------------------------------------- */

.mn-topbar {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.8125rem;
}

.mn-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
}

.mn-topbar__group {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.mn-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: rgba(255, 255, 255, 0.9);
	transition: color 0.2s var(--ease);
}

.mn-topbar__link:hover {
	color: var(--white);
}

.mn-topbar__link .mn-icon {
	width: 1rem;
	height: 1rem;
}

.mn-topbar__link--muted {
	color: rgba(255, 255, 255, 0.7);
}

.mn-topbar__note {
	color: rgba(255, 255, 255, 0.55);
}

/* Mobile (<= 640px): the black bar must stay one clean, non-wrapping line.
   Hide the hours note + the two secondary nav links (they live in the drawer
   menu anyway); keep just phone (click-to-call) + WhatsApp. */
@media (max-width: 640px) {
	.mn-hide-mobile {
		display: none !important;
	}

	.mn-topbar {
		font-size: 0.8125rem;
	}

	.mn-topbar__inner {
		gap: 0.75rem;
		flex-wrap: nowrap;
	}

	.mn-topbar__group {
		gap: 0.75rem;
		min-width: 0;
	}

	/* Keep each remaining link from wrapping and overflowing the row. */
	.mn-topbar__link {
		white-space: nowrap;
	}
}

/* ---- Header ----------------------------------------------------------- */

.mn-header {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid var(--line);
	background: rgba(250, 250, 249, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease),
		border-color 0.25s var(--ease);
}

/* Once the thin contact bar has scrolled away the header gains a more solid
   background and a soft shadow so it reads clearly over page content. */
.mn-header.is-stuck {
	background: rgba(250, 250, 249, 0.96);
	border-bottom-color: var(--line-strong);
	box-shadow: var(--shadow-soft);
}

/* Keep anchor targets clear of the sticky header so #kits, #forum, #contact
   do not land underneath it. Matches the ~72px header height plus a little. */
.mn-main :target,
#kits,
#forum,
#contact {
	scroll-margin-top: 88px;
}

.mn-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 72px;
}

.mn-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
}

.mn-logo__mark {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius-sm);
	background: var(--brand);
	color: var(--white);
	font-weight: 900;
	font-size: 1.1rem;
}

.mn-logo__text {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.mn-logo .custom-logo {
	height: 40px;
	width: auto;
}

/* Primary nav */
.mn-nav {
	display: none;
}

.mn-nav__list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ink-700);
}

.mn-nav__item {
	margin: 0;
}

.mn-nav__list a,
.mn-nav__link {
	position: relative;
	color: var(--ink-700);
	transition: color 0.2s var(--ease);
}

.mn-nav__list a:hover,
.mn-nav__link:hover {
	color: var(--ink);
}

.mn-nav__list a::after,
.mn-nav__link::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -6px;
	height: 2px;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.25s var(--ease);
}

.mn-nav__list a:hover::after,
.mn-nav__link:hover::after {
	transform: scaleX(1);
}

/* Current page highlight (comp marks "ראשי" orange) */
.mn-nav__list .is-current > a,
.mn-nav__list .current-menu-item > a,
.mn-nav__link.is-current {
	color: var(--brand);
}

/* Mega-menu trigger: a <button> styled to match the surrounding nav links. */
.mn-nav__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	border: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: var(--ink-700);
	cursor: pointer;
}

.mn-nav__chevron {
	width: 0.9rem;
	height: 0.9rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s var(--ease);
}

.mn-has-mega.is-mega-open .mn-nav__trigger,
.mn-nav__trigger[aria-expanded="true"] {
	color: var(--brand);
}

.mn-nav__trigger[aria-expanded="true"] .mn-nav__chevron {
	transform: rotate(180deg);
}

/* Suppress the underline pseudo on the trigger; the chevron + colour are the
   affordance, and the underline rule does not apply to a <button> anyway. */
.mn-nav__trigger::after {
	content: none;
}

.mn-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Mini-cart */
.mn-cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	color: var(--ink-700);
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mn-cart:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.mn-cart__icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mn-cart__count {
	position: absolute;
	top: -0.25rem;
	left: -0.25rem;
	display: grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.25rem;
	border-radius: var(--radius-pill);
	background: var(--brand);
	color: var(--white);
	font-size: 0.6875rem;
	font-weight: 700;
}

.mn-cart__total {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ink-700);
	white-space: nowrap;
	display: none;
}

.mn-cart--static {
	cursor: default;
}

.mn-header__cta {
	display: none;
}

/* Mobile menu toggle */
.mn-menu-toggle {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink-700);
	cursor: pointer;
}

.mn-menu-toggle .mn-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

/* Mobile nav drawer */
.mn-mobile-nav {
	border-top: 1px solid var(--line);
	background: var(--paper);
	padding: 0.5rem var(--gutter) 1rem;
}

.mn-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.mn-mobile-nav__list li {
	margin: 0;
}

.mn-mobile-nav__list a {
	display: block;
	padding: 0.75rem 0.25rem;
	font-weight: 600;
	color: var(--ink-700);
	border-bottom: 1px solid var(--line);
}

.mn-mobile-nav__list a:hover {
	color: var(--brand);
}

/* ---- Kit mega-menu (desktop flyout) ----------------------------------- */

.mn-has-mega {
	position: relative;
}

/* The wide panel. Hidden via [hidden] until JS opens it; on desktop it drops
   from the header as a full-width flyout. Hidden entirely on mobile, where the
   in-drawer accordion (.mn-mobile-mega) takes over instead. */
.mn-mega {
	display: none;
}

.mn-mega__inner {
	padding-block: 1.5rem;
}

.mn-mega__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin-bottom: 1rem;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid var(--line);
}

.mn-mega__title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--ink);
}

.mn-mega__hint {
	font-size: 0.875rem;
	color: var(--ink-500);
}

/* Two-level body: left = segment list, right = institutes of the active
   segment. Height is capped (see desktop media query) so the panel never runs
   past the viewport; the right institutes area scrolls internally. */
.mn-mega__body {
	display: grid;
	grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
	gap: 1.25rem 1.75rem;
	align-items: stretch;
	min-height: 0;
}

/* LEFT: segment list (tracks). */
.mn-mega__segments {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	border-inline-start: 1px solid var(--line);
	padding-inline-start: 0.75rem;
	min-height: 0;
	overflow-y: auto;
}

.mn-mega__segment {
	margin: 0;
}

.mn-mega__segment-btn {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.7rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink-700);
	text-align: start;
	cursor: pointer;
	transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.mn-mega__segment-label {
	flex: 1 1 auto;
	min-width: 0;
}

.mn-mega__segment-arrow {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	transition: opacity 0.18s var(--ease);
}

.mn-mega__segment-btn:hover,
.mn-mega__segment-btn:focus-visible {
	background: var(--brand-50);
	color: var(--ink);
	outline: none;
}

.mn-mega__segment.is-active .mn-mega__segment-btn,
.mn-mega__segment-btn[aria-selected="true"] {
	background: var(--brand-50);
	color: var(--brand-600);
}

.mn-mega__segment.is-active .mn-mega__segment-arrow,
.mn-mega__segment-btn[aria-selected="true"] .mn-mega__segment-arrow {
	opacity: 1;
}

.mn-mega__dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--brand);
	flex-shrink: 0;
}

/* RIGHT: institutes of the active segment. Scrolls internally when long. */
.mn-mega__panels {
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	padding-inline-end: 0.25rem;
}

.mn-mega__institutes {
	min-width: 0;
}

.mn-mega__institutes[hidden] {
	display: none;
}

.mn-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--brand-600);
	transition: gap 0.18s var(--ease);
}

.mn-mega__all:hover {
	gap: 0.6rem;
}

.mn-mega__all-arrow {
	width: 0.9rem;
	height: 0.9rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mn-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.15rem 1.5rem;
}

.mn-mega__item {
	margin: 0;
	min-width: 0;
}

.mn-mega__link {
	display: block;
	padding: 0.3rem 0;
	font-size: 0.9rem;
	color: var(--ink-500);
	transition: color 0.2s var(--ease);
}

.mn-mega__link:hover {
	color: var(--brand);
}

/* ---- Kit mega-menu (mobile accordion, inside the drawer) -------------- */

.mn-mobile-mega {
	border-bottom: 1px solid var(--line);
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
}

.mn-mobile-mega__heading {
	display: block;
	padding: 0.5rem 0.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--brand-600);
}

.mn-mobile-mega__toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 0.25rem;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink-700);
	border-bottom: 1px solid var(--line);
	cursor: pointer;
}

.mn-mobile-mega__chevron {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s var(--ease);
}

.mn-mobile-mega__toggle[aria-expanded="true"] {
	color: var(--brand);
}

.mn-mobile-mega__toggle[aria-expanded="true"] .mn-mobile-mega__chevron {
	transform: rotate(180deg);
}

.mn-mobile-mega__list {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0.75rem 0.5rem;
}

.mn-mobile-mega__list li {
	margin: 0;
}

.mn-mobile-mega__list a {
	display: block;
	padding: 0.5rem 0.25rem;
	font-size: 0.9rem;
	color: var(--ink-500);
}

.mn-mobile-mega__list a:hover {
	color: var(--brand);
}

.mn-mobile-mega__all {
	font-weight: 700;
	color: var(--brand-600) !important;
}

.mn-mobile-mega__direct {
	display: block;
	padding: 0.75rem 0.25rem;
	font-weight: 600;
	color: var(--ink-700);
	border-bottom: 1px solid var(--line);
}

.mn-mobile-mega__direct:hover {
	color: var(--brand);
}

/* ---- Hero ------------------------------------------------------------- */

.mn-hero {
	position: relative;
	overflow: hidden;
}

.mn-hero__dots {
	pointer-events: none;
}

.mn-hero > .mn-hero__dots {
	position: absolute;
	inset: 0;
	opacity: 0.06;
}

.mn-hero__glow {
	pointer-events: none;
	position: absolute;
	top: -6rem;
	left: 50%;
	width: 460px;
	height: 460px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: rgba(253, 107, 3, 0.10);
	filter: blur(64px);
}

.mn-hero__inner {
	position: relative;
	display: grid;
	gap: 3rem;
	align-items: center;
	padding-block: 4rem;
}

.mn-hero__copy {
	min-width: 0;
}

.mn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--radius-pill);
	background: var(--brand-50);
	color: var(--brand-600);
	padding: 0.375rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.mn-eyebrow__dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--brand);
}

.mn-hero__title {
	margin-top: 1.25rem;
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.mn-accent {
	color: var(--brand);
}

.mn-hero__lead {
	margin-top: 1.25rem;
	max-width: 36rem;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--ink-500);
}

.mn-hero__cta {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.mn-hero__fineprint {
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ink-500);
}

/* Hero visual */
.mn-hero__visual {
	min-width: 0;
}

.mn-hero__frame {
	position: relative;
	max-width: 32rem;
	margin-inline: auto;
}

.mn-hero__dots--frame {
	position: absolute;
	inset: -0.75rem;
	border-radius: 2rem;
	opacity: 0.1;
}

.mn-hero__photo {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

.mn-hero__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mn-hero__photo-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(22, 32, 46, 0.3), transparent);
}

/* Floating kit chip */
.mn-kit-chip {
	position: absolute;
	bottom: -1.75rem;
	left: 0.5rem;
	width: 15rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--white);
	padding: 1rem;
	box-shadow: var(--shadow-card);
}

.mn-kit-chip__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mn-badge {
	display: inline-block;
	border-radius: var(--radius-pill);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.625rem;
}

.mn-badge--soft {
	background: var(--brand-50);
	color: var(--brand-600);
}

.mn-kit-chip__meta {
	font-size: 0.75rem;
	color: var(--ink-500);
}

.mn-kit-chip__foot {
	margin-top: 0.75rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem;
}

.mn-kit-chip__from {
	font-size: 0.75rem;
	color: var(--ink-500);
}

.mn-kit-chip__amount {
	display: block;
	font-size: 1.5rem;
	font-weight: 900;
	/* line-height:1 left the 900-weight numerals and the tall shekel glyph
	   flush against the line box, so the price ink touched the row/divider
	   directly beneath it. Give the line box real leading plus a hair of
	   bottom padding so the glyphs never collide with the line below. */
	line-height: 1.15;
	padding-bottom: 0.1rem;
}

/* Floating trust chip */
.mn-trust-chip {
	position: absolute;
	top: -1rem;
	right: -0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--white);
	padding: 0.5rem 0.875rem;
	box-shadow: var(--shadow-soft);
}

.mn-trust-chip__icon {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--brand-50);
	color: var(--brand);
}

.mn-trust-chip__icon .mn-icon {
	width: 1rem;
	height: 1rem;
	stroke-width: 2.4;
}

.mn-trust-chip__label {
	font-size: 0.75rem;
	font-weight: 700;
}

/* ---- Logo wall -------------------------------------------------------- */

.mn-logos {
	background: var(--white);
}

.mn-logos .mn-container {
	padding-top: 4rem;
	padding-bottom: 2rem;
}

.mn-logos__label {
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink-500);
}

.mn-logos__row {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.75rem 3.5rem;
}

.mn-logos__row .mn-logos__logo {
	height: 2.75rem !important;
	max-height: 2.75rem !important;
	width: auto !important;
	max-width: 160px;
	object-fit: contain;
	opacity: 0.85;
	transition: opacity 0.2s var(--ease);
}

.mn-logos__row .mn-logos__logo:hover {
	opacity: 1;
}

/* ---- Trust stats ------------------------------------------------------ */

.mn-stats {
	background: var(--white);
	border-top: 1px solid var(--line);
}

.mn-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding-block: 2rem;
	text-align: center;
}

.mn-stat {
	padding-inline: 1rem;
	padding-block: 0.5rem;
	border-inline-start: 1px solid var(--line);
}

.mn-stat:first-child,
.mn-stat:nth-child(3) {
	border-inline-start: 0;
}

.mn-stat__num {
	font-size: 2rem;
	font-weight: 900;
	color: var(--brand);
}

.mn-stat__label {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ink-500);
}

/* ---- Section heading helper ------------------------------------------ */

.mn-section-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.mn-section-head__title {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

.mn-section-head__sub {
	margin-top: 0.75rem;
	max-width: 42rem;
	font-size: 1.125rem;
	color: var(--ink-500);
}

.mn-section-head__link {
	display: none;
	align-items: center;
	gap: 0.375rem;
	font-weight: 700;
	color: var(--brand);
	flex-shrink: 0;
}

.mn-section-head__link:hover {
	color: var(--brand-600);
}

/* ---- Funnel ----------------------------------------------------------- */

.mn-funnel .mn-container {
	padding-block: 5rem;
}

.mn-funnel__grid {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.mn-lift {
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
		border-color 0.2s var(--ease);
}

.mn-lift:hover {
	transform: translateY(-4px);
}

/* Feature card */
.mn-funnel-feature {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--white);
	padding: 1.75rem;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 16rem;
}

.mn-funnel-feature__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.25;
}

.mn-funnel-feature__overlay {
	position: absolute;
	inset: 0;
	background: rgba(22, 32, 46, 0.75);
}

.mn-funnel-feature__dots {
	position: absolute;
	inset: 0;
	opacity: 0.12;
}

.mn-funnel-feature__top,
.mn-funnel-feature__bottom {
	position: relative;
}

.mn-funnel-feature__bottom {
	margin-top: 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.mn-funnel-feature__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius);
	background: var(--brand);
	color: var(--white);
}

.mn-funnel-feature__icon .mn-icon {
	width: 1.5rem;
	height: 1.5rem;
	stroke-width: 1.8;
}

.mn-funnel-feature__title {
	margin-top: 1.25rem;
	font-size: 1.5rem;
	font-weight: 800;
}

.mn-funnel-feature__desc {
	margin-top: 0.5rem;
	max-width: 24rem;
	color: rgba(255, 255, 255, 0.7);
}

.mn-funnel-feature__price {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
}

.mn-funnel-feature__price strong {
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--white);
}

.mn-pill-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.1);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	transition: background-color 0.2s var(--ease);
}

.mn-pill-tag .mn-icon {
	width: 1rem;
	height: 1rem;
	stroke-width: 2.2;
}

.mn-funnel-feature:hover .mn-pill-tag {
	background: var(--brand);
}

/* Standard funnel cards */
.mn-funnel-card {
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--white);
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
}

.mn-funnel-card:hover {
	border-color: rgba(253, 107, 3, 0.4);
}

.mn-funnel-card__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--radius);
	background: var(--brand-50);
	color: var(--brand);
}

.mn-funnel-card__icon .mn-icon {
	width: 1.5rem;
	height: 1.5rem;
	stroke-width: 1.8;
}

.mn-funnel-card__title {
	margin-top: 1rem;
	font-size: 1.125rem;
	font-weight: 800;
}

.mn-funnel-card__desc {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--ink-500);
}

.mn-funnel-card__foot {
	margin-top: auto;
	/* margin-top:1rem let the price row float mid-card; push it to the bottom
	   of the (often stretched) card and add a top border as a clean divider,
	   with padding so the 900-weight price never touches that line. */
	padding-top: 0.875rem;
	border-top: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	line-height: 1.5;
}

.mn-funnel-card__count {
	color: var(--ink-500);
	line-height: 1.5;
}

.mn-funnel-card__count strong {
	color: var(--ink);
	font-weight: 900;
}

.mn-funnel-card__cta {
	font-weight: 700;
	color: var(--brand);
}

.mn-funnel-card:hover .mn-funnel-card__cta {
	color: var(--brand-600);
}

/* ---- How it works ----------------------------------------------------- */

.mn-steps {
	background: var(--white);
}

.mn-steps .mn-container {
	padding-block: 5rem;
}

.mn-steps__title {
	max-width: 42rem;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

.mn-steps__grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 2rem;
}

.mn-step__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mn-step__num {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--brand);
	color: var(--white);
	font-size: 0.875rem;
	font-weight: 900;
	flex-shrink: 0;
}

.mn-step__line {
	height: 1px;
	flex: 1;
	background: var(--line);
}

.mn-step__title {
	margin-top: 1rem;
	font-size: 1.125rem;
	font-weight: 800;
}

.mn-step__desc {
	margin-top: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--ink-500);
}

/* ---- Why us ----------------------------------------------------------- */

.mn-why .mn-container {
	padding-block: 5rem;
}

.mn-why__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

.mn-why__quote-wrap {
	position: relative;
}

.mn-why__dots {
	position: absolute;
	inset: -0.75rem;
	border-radius: 2rem;
	opacity: 0.08;
}

.mn-quote-card {
	position: relative;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--white);
	padding: 2rem;
	box-shadow: var(--shadow-card);
}

.mn-quote-card__mark {
	width: 2.25rem;
	height: 2.25rem;
	fill: rgba(253, 107, 3, 0.2);
}

.mn-quote-card__text {
	margin-top: 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.65;
}

.mn-quote-card__author {
	margin-top: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mn-quote-card__avatar {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--brand-50);
	color: var(--brand-600);
	font-weight: 900;
}

.mn-quote-card__name {
	font-weight: 800;
}

.mn-quote-card__role {
	font-size: 0.875rem;
	color: var(--ink-500);
}

.mn-why__title {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

/* Why-us photo (hero3), shown alongside the feature list */
.mn-why__photo {
	margin-top: 2rem;
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}

.mn-why__photo img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.mn-why__features {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mn-why-feature {
	display: flex;
	gap: 1rem;
}

.mn-why-feature__icon {
	margin-top: 0.125rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	background: var(--brand-50);
	color: var(--brand);
}

.mn-why-feature__icon .mn-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.mn-why-feature__title {
	font-weight: 800;
}

.mn-why-feature__desc {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--ink-500);
}

/* ---- Free test band --------------------------------------------------- */

.mn-freeband {
	background: var(--ink);
}

.mn-freeband__inner {
	position: relative;
	overflow: hidden;
	padding-block: 3.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	color: var(--white);
}

.mn-freeband__dots {
	position: absolute;
	inset: 0;
	opacity: 0.1;
}

.mn-freeband__copy {
	position: relative;
}

.mn-freeband__title {
	font-size: clamp(1.5rem, 3.5vw, 1.875rem);
	font-weight: 900;
}

.mn-freeband__sub {
	margin-top: 0.5rem;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.7);
}

.mn-freeband .mn-btn {
	position: relative;
	flex-shrink: 0;
}

/* ---- Forum ------------------------------------------------------------ */

.mn-forum .mn-container {
	padding-block: 5rem;
}

.mn-forum .mn-section-head {
	flex-direction: row;
	align-items: flex-end;
}

.mn-section-head__link--plain {
	gap: 0;
}

.mn-forum__list {
	margin-top: 2rem;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: var(--shadow-soft);
}

.mn-forum-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--line);
	transition: background-color 0.2s var(--ease);
}

.mn-forum-row:last-child {
	border-bottom: 0;
}

.mn-forum-row:hover {
	background: var(--paper);
}

.mn-forum-row__title {
	font-weight: 700;
}

.mn-forum-row__meta {
	margin-top: 0.125rem;
	font-size: 0.875rem;
	color: var(--ink-500);
}

.mn-forum-row__count {
	flex-shrink: 0;
	border-radius: var(--radius-pill);
	background: var(--brand-50);
	color: var(--brand-600);
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
}

/* ---- Contact ---------------------------------------------------------- */

.mn-contact {
	background: var(--white);
}

.mn-contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	padding-block: 5rem;
}

.mn-contact__title {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

.mn-contact__sub {
	margin-top: 0.75rem;
	max-width: 28rem;
	font-size: 1.125rem;
	color: var(--ink-500);
}

.mn-contact__details {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mn-contact__detail {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	color: var(--ink-700);
}

.mn-contact__detail-icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--brand-50);
	color: var(--brand);
}

.mn-contact__detail-icon .mn-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* Lead form */
.mn-contact__form {
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 1.75rem;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mn-field {
	display: flex;
	flex-direction: column;
}

.mn-field__label {
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.mn-field__input {
	width: 100%;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line-strong);
	background: var(--white);
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--ink);
	outline: none;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.mn-field__input::placeholder {
	color: var(--ink-500);
}

.mn-field__input:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(253, 107, 3, 0.2);
}

.mn-field__input--ltr {
	direction: ltr;
	text-align: right;
}

.mn-field__submit {
	margin-top: 0.25rem;
	width: 100%;
}

.mn-contact__placeholder {
	color: var(--ink-500);
	text-align: center;
}

/* ---- Footer ----------------------------------------------------------- */

.mn-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.75);
}

.mn-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-block: 3.5rem;
}

.mn-logo--footer .mn-logo__text {
	color: var(--white);
	font-size: 1.125rem;
}

.mn-logo--footer .mn-logo__mark {
	font-size: 1rem;
}

.mn-footer__blurb {
	margin-top: 1rem;
	max-width: 20rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.55);
}

.mn-footer__title {
	font-weight: 700;
	color: var(--white);
}

.mn-footer__list {
	margin-top: 1rem;
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	font-size: 0.875rem;
}

.mn-footer__list a {
	transition: color 0.2s var(--ease);
}

.mn-footer__list a:hover {
	color: var(--white);
}

.mn-footer__social {
	display: flex;
	gap: 0.75rem;
	padding-top: 0.25rem;
}

.mn-social {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
	transition: background-color 0.2s var(--ease);
}

.mn-social .mn-icon {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}

.mn-social .mn-icon--stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.mn-social:hover {
	background: var(--brand);
}

.mn-social--whatsapp:hover {
	background: #25D366;
}

.mn-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mn-footer__bar-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 1.25rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.45);
}

.mn-footer__legal {
	display: flex;
	gap: 1.25rem;
}

.mn-footer__legal a:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* ---- Floating WhatsApp ------------------------------------------------ */

.mn-whatsapp-fab {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: #25D366;
	color: var(--white);
	box-shadow: var(--shadow-card);
	transition: transform 0.2s var(--ease);
}

.mn-whatsapp-fab .mn-icon {
	width: 1.75rem;
	height: 1.75rem;
	fill: currentColor;
}

.mn-whatsapp-fab:hover {
	transform: scale(1.05);
}

/* ---- Generic loop (index.php) ----------------------------------------- */

.mn-loop {
	padding-block: 3rem;
}

.mn-entry__title {
	font-size: 2rem;
	font-weight: 900;
}

.mn-entry__content {
	margin-top: 1rem;
	line-height: 1.7;
}

.mn-loop__empty {
	color: var(--ink-500);
}

/* =========================================================================
   Responsive breakpoints
   ========================================================================= */

/* Small / tablet: 2-col funnel + steps, show CTA */
@media (min-width: 640px) {
	.mn-funnel__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mn-funnel-feature {
		grid-column: span 2;
	}

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

	.mn-header__cta {
		display: inline-flex;
	}

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

	.mn-footer__bar-inner {
		flex-direction: row;
	}

	.mn-cart__total {
		display: block;
	}
}

/* Desktop: full nav, 3-col funnel with tall feature, 2-col layouts */
@media (min-width: 1024px) {
	.mn-hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
		padding-block: 6rem;
	}

	.mn-nav {
		display: flex;
	}

	.mn-menu-toggle {
		display: none;
	}

	.mn-mobile-nav {
		display: none !important;
	}

	/* Desktop kit mega-menu: full-width flyout dropping from the header.
	   Positioned to the header (not the nav item) so it spans the viewport. */
	.mn-mega {
		display: block;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		z-index: 55;
		background: rgba(250, 250, 249, 0.98);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line-strong);
		box-shadow: var(--shadow-card);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-0.5rem);
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
			visibility 0.2s var(--ease);
	}

	/* The panel lives inside the nav <li>; break it out to span the header. */
	.mn-has-mega {
		position: static;
	}

	.mn-mega.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/* [hidden] would force display:none and defeat the fade; the JS keeps the
	   attribute in sync for assistive tech, so neutralise it on desktop. */
	.mn-mega[hidden] {
		display: block;
	}

	/* Cap the whole panel to the viewport. The head is fixed; the two-level
	   body takes the remaining space and the LEFT list + RIGHT institutes each
	   scroll internally, so no segment (even with 15+ institutes) can push the
	   panel past the bottom of the screen. 88px ~ topbar + header height. */
	.mn-mega__inner {
		display: flex;
		flex-direction: column;
		max-height: min(72vh, calc(100vh - 88px));
		min-height: 0;
	}

	.mn-mega__body {
		flex: 1 1 auto;
		/* min-height:0 lets the grid children scroll instead of forcing the
		   panel to grow; the cap lives on .mn-mega__inner above. */
		min-height: 0;
	}

	/* Three institute columns on wide screens for a fuller, balanced panel. */
	.mn-mega__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Graceful degradation: inactive panels carry the [hidden] attribute from
	   PHP, so with JS off the first track is shown and the left buttons simply
	   do nothing. JS toggles [hidden] + .is-active to switch tracks. */

	.mn-section-head {
		flex-direction: row;
		align-items: flex-end;
	}

	.mn-section-head__link {
		display: inline-flex;
	}

	.mn-funnel__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.mn-funnel-feature {
		grid-column: span 1;
		grid-row: span 2;
	}

	.mn-steps__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.mn-stats__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.mn-why__grid {
		grid-template-columns: 1fr 1.1fr;
	}

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

	.mn-freeband__inner {
		flex-direction: row;
		align-items: center;
	}

	.mn-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	/* On desktop the why-us photo is decorative duplication of the comp;
	   keep it visible but limit it so it does not crowd the feature list. */
	.mn-why__photo img {
		aspect-ratio: 16 / 10;
	}

	.mn-logos__row .mn-logos__logo {
		height: 3rem !important;
		max-height: 3rem !important;
	}
}

/* Larger desktop logo refinements to match comp heights */
@media (min-width: 1024px) {
	.mn-stat__num {
		font-size: 2.25rem;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.mn-lift,
	.mn-btn,
	.mn-whatsapp-fab {
		transition: none;
	}
}
