:root {
    --bs-body-font-family: iransans, Vazir, sans-serif;
    --bs-font-sans-serif: iransans, Vazir, sans-serif;
    --bs-body-bg: #FFF8F6;
    --site-bg: #FFF8F6;
    --brand-color: #FC6432;
    --brand-color-hover: #E05512;
    /* Figma (Momzi-Atieh) tokens: Section Header text styles
       Text/16/Medium (eyebrow + description) and Text/22/Demi (title). */
    --mz-lh-section-eyebrow: 28px;
    --mz-lh-section-title: 40px;
    --mz-lh-section-desc: 28px;
    /* Figma layout grid: 1440px content, 16px side margin (Mobile grid). */
    --mz-container: 1440px;
    --mz-gutter: 16px;
    --mz-container-max: 100%;
    /* Figma card states (Blog / Test / Contact / Collab / Download card, FAQ, Tag).
       Figma defines no durations, so the theme's existing .2s ease is kept. */
    --mz-card-ring: #3833FF;
    --mz-card-ring-width: 1.5px;
    --mz-card-shadow-hover: 0 0 2px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.12);
    --mz-card-title-hover: #3833FF;
    --mz-tag-hover-bg: #FFE0D5;
    --mz-tag-hover-shadow: 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 2px rgba(0, 0, 0, 0.12);
    --mz-job-ring: #FFE0D5;
    --mz-job-shadow-hover: 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 2px rgba(0, 0, 0, 0.12);
    --mz-transition: 0.2s ease;
}
@media (min-width: 576px)  { :root { --mz-container-max: 540px; } }
@media (min-width: 768px)  { :root { --mz-container-max: 720px; } }
@media (min-width: 992px)  { :root { --mz-container-max: 960px; } }
@media (min-width: 1200px) { :root { --mz-container-max: 1140px; } }
/* From 1400px the container grows fluidly (32px minimum outer margin)
   until it reaches the Figma 1440px content width + 2 x 16px padding. */
@media (min-width: 1400px) { :root { --mz-container-max: min(calc(var(--mz-container) + 2 * var(--mz-gutter)), calc(100vw - 64px)); } }
/* Shared content container: same side padding on every breakpoint. */
.container {
    --bs-gutter-x: calc(2 * var(--mz-gutter));
    max-width: var(--mz-container-max);
}
/* Header: the absolutely positioned nav spans its .container box, so the
   box itself is narrowed to the content width to line up with sections. */
header.container-fluid {
    --bs-gutter-x: calc(2 * var(--mz-gutter));
}
header.container-fluid > .container {
    padding-inline: 0;
}
@media (min-width: 576px) {
    header.container-fluid > .container {
        max-width: calc(var(--mz-container-max) - 2 * var(--mz-gutter));
    }
}
body {
    font-family: iransans, Vazir, sans-serif;
    background-color: var(--site-bg);
}
#wrapper {
    background-color: var(--site-bg);
}
img{
	display: block
}
a {
    text-decoration: none;
    color: var(--brand-color);
    transition: 0.3s;
}
.btn-brand{
	background: var(--brand-color);
	color: #fff;
}
.btn-brand:hover{
	background: var(--brand-color-hover);
	color: #fff;
}
/*------------------------------------------------------------------
[Table of contents]
1. Header
2. 
3. 
4. 
5. 
-------------------------------------------------------------------*/
/* ==========================================================
! 01. Header
==============	=========================================== */
.navbar-nav ul{
	margin: 0;
	list-style: none;
}
#mainNav .navbar-nav > li > a {
	color: #767676;
}
#mainNav .navbar-nav > li > a:hover,
#mainNav .navbar-nav > li.current-menu-item > a,
#mainNav .navbar-nav > li.current_page_item > a,
#mainNav .navbar-nav > li.current-menu-ancestor > a {
	color: var(--brand-color);
}
/* ==========================================================
! 02. Intro + Why Momzi
============================================================ */
.text-brand {
	color: var(--brand-color) !important;
}
.intro-why-stage {
	position: relative;
	overflow: hidden;
	background: var(--site-bg);
}
.home-hero {
	position: relative;
	z-index: 1;
	min-height: min(100vh, 1320px);
	overflow: hidden;
	background: transparent;
}
.home-hero__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.home-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
	mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}
.home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%);
}
.home-hero__fade {
	display: none;
}
.home-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 24px;
	min-height: min(100vh, 1320px);
	padding-top: 120px;
	padding-bottom: clamp(4rem, 10vh, 8rem);
}
.home-hero__copy {
	max-width: 514px;
	width: 100%;
}
.home-hero__brand {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	color: var(--brand-color);
	line-height: 1;
	margin-bottom: 8px !important;
}
.home-hero__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	color: #0c0c0c;
	line-height: 1.2;
	margin-bottom: 8px !important;
}
.home-hero__lead {
	font-size: clamp(1.125rem, 2vw, 1.625rem);
	font-weight: 600;
	color: #353535;
	line-height: 1.7;
}
.home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 8px 24px;
	border-radius: 24px;
	background: var(--brand-color);
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
}
.home-hero__cta:hover {
	background: var(--brand-color-hover);
	color: #fff !important;
}
.home-hero__cta img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}
.home-why {
	position: relative;
	z-index: 2;
	margin-top: clamp(-7rem, -12vw, -4rem);
	padding-bottom: 2.5rem;
	scroll-margin-top: 96px;
	overflow: visible;
}
.home-why__blobs {
	position: absolute;
	inset: -20% -10% -8%;
	z-index: 0;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 90%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 90%);
}
.home-why__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(140px);
}
.home-why__blob--pink {
	width: min(780px, 85vw);
	height: min(780px, 85vw);
	background: #fc6432;
	opacity: 0.55;
	inset-inline-start: -18%;
	top: 0;
}
.home-why__blob--blue {
	width: min(780px, 85vw);
	height: min(780px, 85vw);
	background: #3833ff;
	opacity: 0.45;
	inset-inline-end: -16%;
	top: -8%;
}
.home-why .container {
	position: relative;
	z-index: 1;
	max-width: 1600px;
	padding-inline: 8px;
}
.home-why__panel {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 40px;
	padding: clamp(1.25rem, 2.5vw, 2.5rem);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
	-webkit-backdrop-filter: blur(40px) saturate(180%);
	backdrop-filter: blur(40px) saturate(180%);
}
.home-why__header {
	text-align: right;
	margin-bottom: 16px;
}
.home-why__eyebrow {
	color: #3833ff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	margin-bottom: 4px !important;
}
.home-why__title {
	color: #2e2e2e;
	font-size: clamp(1.125rem, 2vw, 1.25rem);
	font-weight: 500;
	line-height: 1.7;
}
.home-why__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: stretch;
}
.why-card {
	background: rgba(255, 255, 255, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 32px;
	overflow: hidden;
	-webkit-backdrop-filter: blur(20px) saturate(1.3);
	backdrop-filter: blur(20px) saturate(1.3);
}
.why-card--research {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	min-height: 280px;
}
.why-card--research .why-card__text {
	flex: 1;
	min-width: 0;
}
.why-card--research .why-card__pic {
	position: relative;
	flex: 0 0 180px;
	width: 180px;
	align-self: stretch;
	min-height: 240px;
	border-radius: 24px;
	overflow: hidden;
}
.why-card--research .why-card__pic img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
}
.why-card--forum {
	display: flex;
	flex-direction: column;
	padding: 16px 0 0;
	overflow: hidden;
}
.why-card--forum .why-card__text {
	flex: 0 0 auto;
	padding: 0 16px;
}
.why-card__illus {
	position: relative;
	width: 100%;
	height: 0;
	margin-top: 8px;
	padding-bottom: 156.3%;
	overflow: hidden;
}
.why-card__illus img {
	position: absolute;
	width: 165.2%;
	max-width: none;
	height: auto;
	left: -36.8%;
	top: 0;
	transform: translateY(-3.9%);
	display: block;
}
.why-minis {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.why-card--mini {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: flex-start;
	text-align: right;
	padding: 16px;
	min-height: 182px;
}
.why-card--mini > div {
	width: 100%;
}
.why-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 32px;
	background: #3833ff;
	flex-shrink: 0;
}
.why-card__icon img {
	width: 32px;
	height: 32px;
}
.why-card__title {
	color: #353535;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.65;
	margin: 0 0 4px;
}
.why-card__desc {
	color: #767676;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.85;
}
.home-why__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	row-gap: 16px;
	margin-top: 24px;
	padding: 16px clamp(1rem, 4vw, 4rem);
	border-radius: 32px;
	background: rgba(56, 51, 255, 0.2);
	border: 1px solid #3833ff;
}
.home-why__stat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: right;
}
.home-why__stat img {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}
.home-why__stat-num {
	font-size: 24px;
	font-weight: 500;
	color: #353535;
	line-height: 1.35;
}
.home-why__stat-label {
	font-size: 16px;
	font-weight: 400;
	color: #353535;
	line-height: 1.5;
}
@media (min-width: 992px) {
	.home-why__grid {
		grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
	}
	.why-minis {
		grid-column: 1 / -1;
	}
	.why-card--research .why-card__pic {
		flex: 0 0 200px;
		width: 200px;
	}
}
@media (min-width: 1200px) {
	.home-why__grid {
		grid-template-columns: minmax(0, 708fr) 220px minmax(0, 464fr);
	}
	.why-minis {
		grid-column: auto;
	}
	.why-card--research .why-card__pic {
		flex: 0 0 220px;
		width: 220px;
	}
}
@media (max-width: 991.98px) {
	.why-card--research {
		flex-direction: column;
		align-items: stretch;
	}
	.why-card--research .why-card__pic {
		flex: none;
		width: 100%;
		max-width: none;
		align-self: auto;
		height: 200px;
	}
}
@media (max-width: 767.98px) {
	.home-hero__content {
		min-height: auto;
		padding-bottom: 6rem;
	}
	.home-why {
		margin-top: -3rem;
	}
	.home-why__panel {
		border-radius: 24px;
		padding: 1.15rem;
	}
	.why-minis {
		gap: 12px;
	}
	.why-card--mini {
		min-height: 0;
	}
	.why-card__title {
		font-size: 15px;
	}
	.why-card__desc {
		font-size: 13px;
	}
	.home-why__stats {
		padding: 16px;
		border-radius: 20px;
	}
}
/* ==========================================================
! 03. Features (قابلیت‌ها)
============================================================ */
.home-features {
	background: linear-gradient(180deg, #fff8f6 0%, #fff8f6 18%, #f8f4f7 42%, #faf6f2 68%, #fdfbf8 100%);
	overflow: hidden;
}
.home-features__header {
	max-width: 720px;
}
.home-features__eyebrow {
	color: #7b6fd4;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-features__title {
	color: #2b2b2b;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: var(--mz-lh-section-title);
}
.home-features__desc {
	color: #666;
	font-size: 1rem;
	line-height: var(--mz-lh-section-desc);
}
.home-features__stack {
	min-height: 420px;
	justify-content: space-between;
}
.feature-card {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.feature-card__dot {
	/* Design (home-design.pdf, 1:1 at 1920): 16px dot + 4px white ring (24px total) + soft ~4px shadow,
	   centred on the card edge that faces the phone */
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	transform: translateY(-50%);
	box-shadow: 0 0 0 4px #fff, 0 0 4px 4px rgba(0, 0, 0, 0.06);
	transition: background-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card__dot.is-lit {
	box-shadow: 0 0 0 4px #fff, 0 0 6px 4px rgba(0, 0, 0, 0.1);
}
.feature-card--dot-start .feature-card__dot {
	inset-inline-start: -8px;
}
.feature-card--dot-end .feature-card__dot {
	inset-inline-end: -8px;
}
/* Inactive dot = icon tint, lit dot = icon colour (Figma) */
.feature-card__dot--green { background: #ecfdf5; }
.feature-card__dot--green.is-lit { background: #2ccb95; }
.feature-card__dot--brand { background: #ffe3e3; }
.feature-card__dot--brand.is-lit { background: #fc6432; }
.feature-card__dot--blue { background: #eef6ff; }
.feature-card__dot--blue.is-lit { background: #5fa2f7; }
.feature-card__dot--yellow { background: #fefce8; }
.feature-card__dot--yellow.is-lit { background: #febb25; }
.feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	flex-shrink: 0;
}
.feature-card__icon svg {
	display: block;
}
.feature-card__icon--green { color: #2ccb95; background: #ecfdf5; }
.feature-card__icon--brand { color: #fc6432; background: #ffe3e3; }
.feature-card__icon--blue { color: #5fa2f7; background: #eef6ff; }
.feature-card__icon--yellow { color: #febb25; background: #fefce8; }
.feature-card__title {
	color: #222;
}
.feature-card__text {
	color: #666;
	font-size: 0.875rem;
	line-height: 1.85;
}
.home-features__phone {
	max-width: 320px;
}
.home-features__carousel .carousel-inner {
	text-align: center;
	min-height: 520px;
}
.home-features__slide-img {
	display: block;
	max-height: 520px;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	margin-right: auto;
	margin-left: auto;
}
.home-features__carousel .carousel-indicators {
	position: static;
	margin: 1.25rem 0 0;
	gap: 0.35rem;
}
.home-features__carousel .carousel-indicators [data-bs-target] {
	width: 10px;
	height: 10px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	opacity: 1;
	background-color: #d8d8d8;
	transition: width 0.25s ease, background-color 0.25s ease;
}
.home-features__carousel .carousel-indicators .active {
	width: 36px;
	background-color: var(--brand-color);
}
@media (max-width: 991px) {
	.home-features__stack {
		min-height: 0;
	}
	.home-features__carousel .carousel-inner {
		min-height: 420px;
	}
	.home-features__slide-img {
		max-height: 420px;
	}
}
@media (min-width: 992px) {
	#features .row.align-items-center {
		align-items: flex-start;
	}
}
/* ==========================================================
! 04. Courses
============================================================ */
.home-courses {
	background: var(--site-bg);
	padding: 3rem 0 4rem;
}
.home-courses__container {
	padding-top: 5rem;
}
.home-courses__panel {
	background: #fdeee6;
	border-radius: 40px;
	padding: 2rem 1.5rem 2.25rem;
	overflow: visible;
}
.home-courses__content {
	text-align: right;
}
.home-courses__eyebrow {
	color: #c45c42;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-courses__title {
	color: #2b2b2b;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: var(--mz-lh-section-title);
}
.home-courses__desc {
	color: #555;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-desc);
	max-width: 420px;
}
.home-courses__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex-direction: row-reverse;
}
.home-courses__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}
.home-courses__cta-icon svg {
	transform: scaleX(-1);
}
.home-courses__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	max-width: min(520px, 100%);
	margin-inline-start: auto;
	margin-top: -7.5rem;
	margin-bottom: 0.5rem;
}
.home-course-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}
.home-course-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #fde3d4 0%, #fff 85%);
	padding: 0.65rem 0.65rem 0;
	line-height: 0;
}
.home-course-card__img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: center bottom;
	border-radius: 0;
}
.home-course-card__title {
	padding: 0.75rem 0.65rem 0.45rem;
	font-size: 0.9375rem;
}
.home-course-card__title a {
	color: #222;
}
.home-course-card__title a:hover {
	color: var(--brand-color);
}
.home-course-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.3rem 0.45rem;
	padding: 0 0.65rem 1rem;
	color: #8a8a8a;
	font-size: 0.72rem;
}
.home-course-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}
.home-course-card__meta-dot {
	opacity: 0.5;
}
@media (max-width: 991px) {
	.home-courses__container {
		padding-top: 0;
	}
	.home-courses__cards {
		margin-top: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: min(440px, 100%);
		margin-right: auto;
		margin-left: auto;
	}
	.home-courses__desc {
		max-width: none;
	}
}
@media (min-width: 992px) and (max-width: 1199px) {
	.home-courses__cards {
		margin-top: -6rem;
	}
}
/* ==========================================================
! 05. Tests
============================================================ */
.home-tests {
	background: var(--site-bg);
}
.home-tests__header {
	max-width: 640px;
	text-align: right;
}
.home-tests__eyebrow {
	color: #7b6fd4;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-tests__title {
	color: #2b2b2b;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: var(--mz-lh-section-title);
}
.home-tests__desc {
	color: #666;
	font-size: 1rem;
	line-height: var(--mz-lh-section-desc);
}
.test-card {
	background: #fff;
	border-radius: 22px;
	padding: 1.35rem 1.35rem 1.15rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.04);
	align-items: flex-start;
}
.test-card__badge {
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	align-self: flex-start;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.test-card__badge--orange {
	background: rgba(252, 100, 50, 0.14);
	color: #c45c42;
}
.test-card__badge--green {
	background: rgba(94, 196, 168, 0.2);
	color: #2d8a72;
}
.test-card__badge--purple {
	background: rgba(123, 111, 212, 0.18);
	color: #6b5fc9;
}
.test-card__title {
	color: #222;
	line-height: 1.55;
	margin-bottom: 0.65rem;
}
.test-card__desc {
	color: #666;
	font-size: 0.875rem;
	line-height: 1.85;
	padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.test-card__footer {
	/* Full card width so the CTA sits at the RTL end (left), as in the design */
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding-top: 0.85rem;
}
.test-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	color: #8a8a8a;
	font-size: 0.75rem;
}
.test-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}
.test-card__cta {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #5a6fd8 !important;
	font-weight: 600;
	font-size: 0.875rem;
	white-space: nowrap;
}
.test-card__cta:hover {
	color: #4358b8 !important;
}
/* Disabled test (no link yet): muted card, no button. */
.test-card--disabled {
	background: #fbfbfb;
	box-shadow: none;
}
.test-card--disabled .test-card__badge,
.test-card--disabled .test-card__title,
.test-card--disabled .test-card__desc {
	opacity: 0.55;
}
.test-card__soon {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: #f1f1f1;
	color: #8a8a8a;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}
@media (max-width: 575px) {
	.home-tests__header {
		text-align: inherit;
	}
}
/* ==========================================================
! 06. Forum
============================================================ */
.home-forum {
	background: var(--site-bg);
}
.home-forum__header {
	max-width: 720px;
}
.home-forum__eyebrow {
	color: #5a6fd8;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-forum__title {
	color: #2b2b2b;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: var(--mz-lh-section-title);
}
.home-forum__desc {
	color: #666;
	font-size: 1rem;
	line-height: var(--mz-lh-section-desc);
	max-width: 640px;
}
.home-forum__wrap {
	max-width: 820px;
}
.home-forum__board {
	background: #fff;
	border-radius: 24px;
	padding: 1.25rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.forum-post__thread {
	margin-inline-start: clamp(0.75rem, 4vw, 1.75rem);
	padding-inline-start: clamp(0.75rem, 3vw, 1.25rem);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.forum-post--question {
	padding: 1.25rem 1.35rem;
}
.forum-post--question .forum-post__body {
	font-size: 0.9375rem;
}
.forum-post--reply {
	padding: 0.85rem 1rem;
	border-radius: 14px;
}
.forum-post--reply .forum-post__avatar {
	width: 36px;
	height: 36px;
}
.forum-post--reply .forum-post__avatar--letter {
	font-size: 0.95rem;
}
.forum-post--reply .forum-post__name {
	font-size: 0.8125rem;
}
.forum-post--reply .forum-post__body {
	font-size: 0.8125rem;
	line-height: 1.75;
	margin-top: 0.65rem;
}
.forum-post--reply .forum-post__time {
	font-size: 0.6875rem;
}
.forum-post--reply .forum-post__role {
	font-size: 0.625rem;
	padding: 0.1rem 0.45rem;
}
.forum-post--reply .forum-post__foot {
	margin-top: 0.75rem;
	padding-top: 0.65rem;
}
.forum-post--reply .forum-post__helpful {
	font-size: 0.72rem;
}
.forum-post--reply .forum-post__view,
.forum-post--reply .forum-post__stats {
	font-size: 0.7rem;
}
.forum-post {
	border-radius: 18px;
	padding: 1.15rem 1.25rem;
}
.forum-post--member {
	background: #fff5f0;
}
.forum-post--expert {
	background: #eef9f4;
}
.forum-post__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}
.forum-post__avatar--letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fcd9c8;
	color: #c45c42;
	font-weight: 700;
	font-size: 1.1rem;
}
.forum-post__name {
	color: #222;
	font-size: 0.9375rem;
}
.forum-post__role {
	display: inline-block;
	margin-top: 0.2rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(76, 175, 80, 0.15);
	color: #2d8a72;
	font-size: 0.7rem;
	font-weight: 600;
}
.forum-post__time {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: #999;
	font-size: 0.75rem;
	white-space: nowrap;
}
.forum-post__body {
	color: #444;
	font-size: 0.9rem;
	line-height: 1.85;
	margin-top: 0.85rem;
}
.forum-post__foot {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.forum-post__foot--simple {
	border-top: 0;
	padding-top: 0.5rem;
}
.forum-post__view {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #c45c42 !important;
	font-weight: 600;
	font-size: 0.875rem;
}
.forum-post__view:hover {
	color: var(--brand-color) !important;
}
.forum-post__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	color: #888;
	font-size: 0.75rem;
}
.forum-post__stat {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}
.forum-post__helpful {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #666;
	font-size: 0.8rem;
}
.home-forum__cta {
	padding-top: 1.25rem;
	margin-top: 0.25rem;
}
.home-forum__cta-text {
	color: #555;
	font-size: 0.95rem;
	line-height: 1.8;
	max-width: 520px;
	margin-right: auto;
	margin-left: auto;
}
@media (min-width: 768px) {
	.home-forum__board {
		padding: 1.75rem 1.5rem;
		gap: 1.15rem;
	}
}
/* ==========================================================
! 07. Articles (تازه‌ترین مقالات)
============================================================ */
.home-articles {
	background: var(--site-bg);
}
.home-articles__intro {
	max-width: 520px;
	text-align: right;
}
.home-articles__eyebrow {
	color: #5a6fd8;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-articles__title {
	color: #2b2b2b;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: var(--mz-lh-section-title);
}
.home-articles__desc {
	color: #666;
	font-size: 1rem;
	line-height: var(--mz-lh-section-desc);
}
.home-articles__all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #5a6fd8 !important;
	font-weight: 600;
	font-size: 0.9375rem;
	white-space: nowrap;
}
.home-articles__all:hover {
	color: #4356c4 !important;
}
.article-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
}
.article-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.article-card__media:hover img {
	transform: scale(1.03);
}
.article-card__category {
	/* Figma: tag pinned to the RTL start (right) corner of the image, 8px inset */
	position: absolute;
	top: 0.5rem;
	inset-inline-start: 0.5rem;
	max-width: calc(100% - 1rem);
	overflow: hidden;
	padding: 0 0.75rem;
	border-radius: 999px;
	background: rgba(7, 16, 94, 0.4);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 26px;
	white-space: nowrap;
	text-overflow: ellipsis;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.article-card__body {
	padding: 1rem 1.1rem 1.15rem;
}
.article-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	color: #999;
	font-size: 0.75rem;
	margin: 0;
}
.article-card__meta-sep {
	opacity: 0.6;
}
.article-card__title {
	margin-bottom: 0.5rem;
	line-height: 1.55;
}
.article-card__title a {
	color: #222 !important;
}
.article-card__title a:hover {
	color: var(--brand-color) !important;
}
.article-card__excerpt {
	color: #777;
	font-size: 0.8125rem;
	line-height: 1.75;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.article-card__foot {
	padding-top: 0.85rem;
	border-top: 1px solid #f2f2f2;
}
.article-card__author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.article-card__author-text {
	color: #555;
	font-size: 0.75rem;
	line-height: 1.4;
}
.article-card__author-label {
	display: block;
	color: #999;
	font-size: 0.6875rem;
}
.article-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: #5a6fd8 !important;
	font-weight: 600;
	font-size: 0.8125rem;
	white-space: nowrap;
	flex-shrink: 0;
}
.article-card__more:hover {
	color: #4356c4 !important;
}
@media (max-width: 991.98px) {
	.home-articles__intro {
		text-align: inherit;
	}
}
/* ==========================================================
! 08. Story banner (داستان مام‌زی)
============================================================ */
.home-story {
	background: var(--site-bg);
}
.home-story__banner {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	min-height: clamp(280px, 42vw, 380px);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.home-story__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.home-story__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 20, 35, 0.55) 0%, rgba(15, 20, 35, 0.72) 100%);
}
.home-story__content {
	position: relative;
	z-index: 1;
	max-width: 640px;
	padding: 2.5rem 1.5rem;
	color: #fff;
}
.home-story__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: #5a6fd8;
	color: #fff;
	/* Diffuse shadow only (no light ring). */
	box-shadow: 0 12px 32px rgba(90, 111, 216, 0.4);
	transition: transform 0.25s ease, background 0.25s ease;
}
/* Rounded-corner play triangle (its centroid sits on the circle centre). */
.home-story__play-icon {
	width: 40px;
	height: 40px;
}
@media (max-width: 575.98px) {
	.home-story__play {
		width: 72px;
		height: 72px;
		box-shadow: 0 10px 26px rgba(90, 111, 216, 0.4);
	}
	.home-story__play-icon {
		width: 34px;
		height: 34px;
	}
}
.home-story__play:hover {
	background: #4356c4;
	color: #fff;
	transform: scale(1.05);
}
.home-story__eyebrow {
	font-size: 0.875rem;
	font-weight: 600;
	opacity: 0.92;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-story__title {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: var(--mz-lh-section-title);
}
.home-story__desc {
	font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
	line-height: var(--mz-lh-section-desc);
	opacity: 0.92;
	max-width: 560px;
}
/* ==========================================================
! 09. FAQ (سوالات پرتکرار)
============================================================ */
.home-faq {
	background: var(--site-bg);
}
.home-faq__header {
	max-width: 640px;
}
.home-faq__eyebrow {
	color: #5a6fd8;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: var(--mz-lh-section-eyebrow);
}
.home-faq__title {
	color: #2b2b2b;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: var(--mz-lh-section-title);
}
.home-faq__desc {
	color: #666;
	font-size: 1rem;
	line-height: var(--mz-lh-section-desc);
	max-width: 520px;
}
.home-faq {
	/* Decorative arcs/squiggle may extend past the column; never cause horizontal scroll */
	overflow-x: clip;
}
.home-faq__visual {
	position: relative;
	max-width: 420px;
}
/* Decorative vectors behind the FAQ photo, exported 1:1 from home-design.pdf.
   Offsets are % of the photo circle (478px in the design) so they scale with it. */
.home-faq__deco {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	height: auto;
	max-width: none;
}
.home-faq__deco--arcs {
	left: -27.2%;
	top: -12.97%;
	width: 83.89%;
}
.home-faq__deco--squiggle {
	left: 104.6%;
	top: 74.27%;
	width: 19.25%;
}
/* FAQ cards paint above the decoration where they meet (e.g. squiggle at 1366) */
.home-faq .faq-accordion {
	position: relative;
	z-index: 1;
}
/* Stacked layout (< lg): no mobile frame in the design; hide the decoration so it
   doesn't sit on top of / behind the FAQ cards above the photo. */
@media (max-width: 991.98px) {
	.home-faq__deco {
		display: none;
	}
}
.home-faq__circle {
	position: relative;
	z-index: 1;
	border-radius: 50%;
	overflow: hidden;
	aspect-ratio: 1;
	background: #fdeee6;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.home-faq__circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.faq-accordion {
	--bs-accordion-border-width: 0;
	--bs-accordion-border-radius: 18px;
	--bs-accordion-inner-border-radius: 18px;
	--bs-accordion-btn-padding-x: 1.35rem;
	--bs-accordion-btn-padding-y: 1.15rem;
	--bs-accordion-body-padding-x: 1.35rem;
	--bs-accordion-body-padding-y: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.faq-accordion .accordion-item {
	border: none;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}
.faq-accordion .accordion-item.faq-item:has(.accordion-collapse.show) {
	box-shadow: var(--mz-card-shadow-hover);
}
.faq-accordion .accordion-button {
	column-gap: 0.75rem; /* keeps the left-pinned chevron off wrapped question text */
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #2b2b2b;
	background: #fff;
	box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
	color: var(--mz-card-title-hover);
	background: #fff;
	box-shadow: none;
}
.faq-accordion .accordion-button:focus {
	box-shadow: none;
	border-color: transparent;
}
.faq-accordion .accordion-button::after {
	width: 1.1rem;
	height: 1.1rem;
	background-size: 1.1rem;
	flex-shrink: 0;
	/* Chevron pinned to the RTL end (left) of the row, as in the design */
	margin-inline-start: auto;
	margin-inline-end: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%235a6fd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.faq-accordion .accordion-button:not(.collapsed)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%235a6fd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
}
.faq-item__answer {
	color: #666;
	font-size: 0.9375rem;
	line-height: 1.85;
	padding-top: 0;
	padding-bottom: 1.25rem;
}
/* ==========================================================
! 10. Footer
============================================================ */
.site-footer {
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	padding: 1.5rem 0 1.75rem;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem 1.5rem;
	align-items: center;
	justify-items: center;
	text-align: center;
}
.site-footer__logo {
	width: auto;
	height: 36px;
	max-width: 120px;
}
.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.75rem;
}
.site-footer__menu a {
	color: #555 !important;
	font-size: 0.9375rem;
	font-weight: 500;
}
.site-footer__menu a:hover {
	color: var(--brand-color) !important;
}
.site-footer__sep {
	color: #ddd;
	font-size: 0.875rem;
	user-select: none;
}
.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
}
.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--brand-color);
	transition: color 0.25s ease, background 0.25s ease;
}
.site-footer__social-link:hover {
	color: #fff;
	background: var(--brand-color);
}
@media (min-width: 992px) {
	.site-footer__inner {
		grid-template-columns: 1fr auto 1fr;
		justify-items: stretch;
		text-align: inherit;
	}
	.site-footer__brand {
		justify-self: start;
	}
	.site-footer__nav {
		justify-self: center;
	}
	.site-footer__social {
		justify-self: end;
		justify-content: flex-end;
	}
}

/* ==========================================================
! 11. Card micro-interactions (Figma hover / focus / active states)
   Ring = outline with a negative offset: no layout shift, drawn
   above media, follows border-radius. Hover visuals only on devices
   that really hover; keyboard focus inside a card shows the same
   state via :has(:focus-visible), and the link keeps its own ring.
============================================================ */
.test-card:not(.test-card--disabled),
.article-card,
.blog-card,
.contact-card,
.collab-path,
.app-store,
.collab-job,
.faq-accordion .accordion-item {
	outline: var(--mz-card-ring-width) solid transparent;
	outline-offset: calc(-1 * var(--mz-card-ring-width));
	transition: box-shadow var(--mz-transition), outline-color var(--mz-transition);
}
.test-card__title,
.article-card__title a,
.blog-card__title a,
.contact-card__title,
.collab-path__title,
.app-store__name,
.collab-job__title,
.faq-accordion .accordion-button {
	transition: color var(--mz-transition);
}
@media (hover: hover) {
	.test-card:not(.test-card--disabled):hover,
	.article-card:hover,
	.blog-card:hover,
	.contact-card:hover,
	.collab-path:hover,
	.app-store:hover,
	.faq-accordion .accordion-item:hover {
		outline-color: var(--mz-card-ring);
		box-shadow: var(--mz-card-shadow-hover);
	}
	.test-card:not(.test-card--disabled):hover .test-card__title,
	.contact-card:hover .contact-card__title,
	.app-store:hover .app-store__name {
		color: var(--mz-card-title-hover) !important;
	}
	.faq-accordion .accordion-item:hover .accordion-button {
		color: var(--mz-card-title-hover);
	}
	.article-card:hover .article-card__title a,
	.blog-card:hover .blog-card__title a,
	.collab-path:hover .collab-path__title {
		color: var(--mz-card-title-hover) !important;
	}
	.collab-job:hover {
		outline-color: var(--mz-job-ring);
		box-shadow: var(--mz-job-shadow-hover);
	}
	.collab-job:hover .collab-job__title {
		color: var(--brand-color) !important;
	}
}
.test-card:not(.test-card--disabled):has(:focus-visible),
.article-card:has(:focus-visible),
.blog-card:has(:focus-visible),
.contact-card:has(:focus-visible),
.collab-path:has(:focus-visible) {
	outline-color: var(--mz-card-ring);
	box-shadow: var(--mz-card-shadow-hover);
}
.test-card:not(.test-card--disabled):has(:focus-visible) .test-card__title,
.contact-card:has(:focus-visible) .contact-card__title {
	color: var(--mz-card-title-hover) !important;
}
.article-card:has(:focus-visible) .article-card__title a,
.blog-card:has(:focus-visible) .blog-card__title a,
.collab-path:has(:focus-visible) .collab-path__title {
	color: var(--mz-card-title-hover) !important;
}
.collab-job:has(:focus-visible) {
	outline-color: var(--mz-job-ring);
	box-shadow: var(--mz-job-shadow-hover);
}
.collab-job:has(:focus-visible) .collab-job__title {
	color: var(--brand-color) !important;
}
/* Download card is itself the link: hover look + a 2px outer focus ring. */
.app-store:focus-visible {
	outline: 2px solid var(--mz-card-ring);
	outline-offset: 2px;
	box-shadow: var(--mz-card-shadow-hover);
}
.app-store:focus-visible .app-store__name {
	color: var(--mz-card-title-hover) !important;
}
/* FAQ: open item = hover shadow + blue title (section 9), no ring (Figma "Open"). */
.faq-accordion .accordion-item.faq-item:has(.accordion-collapse.show) {
	outline-color: transparent;
}
.faq-accordion .accordion-button:focus-visible {
	outline: 2px solid var(--mz-card-ring);
	outline-offset: -2px;
}
/* Course card: Figma hover = dark overlay + centred "مشاهده دوره" button. */
.home-course-card {
	transition: box-shadow var(--mz-transition);
}
.home-course-card__media {
	position: relative;
}
.home-course-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity var(--mz-transition);
	pointer-events: none;
}
.home-course-card__cta {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 24px;
	border-radius: 24px;
	background: var(--brand-color);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity var(--mz-transition);
	pointer-events: none;
}
@media (hover: hover) {
	.home-course-card:hover {
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.15);
	}
	.home-course-card:hover .home-course-card__media::after,
	.home-course-card:hover .home-course-card__cta {
		opacity: 1;
	}
}
.home-course-card:has(:focus-visible) {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.home-course-card__media:focus-visible::after,
.home-course-card__media:focus-visible .home-course-card__cta {
	opacity: 1;
}
/* Tags / filter chips (Figma "Tag"): hover = peach fill + soft shadow,
   active = brand fill (already styled in the page stylesheets). */
@media (hover: hover) {
	.blog-chip:not(.is-active):hover,
	.collab-filter:not([aria-pressed="true"]):hover {
		border-color: var(--mz-tag-hover-bg);
		background: var(--mz-tag-hover-bg);
		box-shadow: var(--mz-tag-hover-shadow);
	}
}
@media (prefers-reduced-motion: reduce) {
	.test-card,
	.test-card:not(.test-card--disabled),
	.article-card,
	.blog-card,
	.contact-card,
	.collab-path,
	.app-store,
	.collab-job,
	.faq-accordion .accordion-item,
	.test-card__title,
	.article-card__title a,
	.blog-card__title a,
	.contact-card__title,
	.collab-path__title,
	.app-store__name,
	.collab-job__title,
	.faq-accordion .accordion-button,
	.home-course-card,
	.home-course-card__media::after,
	.home-course-card__cta,
	.blog-chip,
	.collab-filter {
		transition: none;
	}
}
