/* ==========================================================================
   TradeAmouz - elementor-widgets.css
   استایل اختصاصی ویجت‌های المنتور قالب (بخش‌های مشترک از components.css گرفته می‌شود)
   ========================================================================== */

/* ---------- رفع حاشیه پیش‌فرض ویجت‌ها ---------- */
.elementor-widget[class*="elementor-widget-tradeamooz-"] .elementor-widget-container {
	margin: 0;
	padding: 0;
}

/* ---------- نوار فراخوان (CTA) ---------- */
.ta-cta {
	padding-block: clamp(1rem, 3vw, 2rem);
}

.ta-cta__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	overflow: hidden;
	padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: var(--ta-r-xl, 28px);
	background: linear-gradient(135deg, #0b1728 0%, #101c33 55%, #1c2e4d 100%);
	box-shadow: 0 34px 70px -50px rgba(16, 28, 51, 0.8);
}

.ta-cta__inner::after {
	content: "";
	position: absolute;
	bottom: -90px;
	inset-inline-start: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(246, 20, 77, 0.55), transparent 65%);
	filter: blur(34px);
	pointer-events: none;
}

.ta-cta__content {
	position: relative;
	max-width: 560px;
}

.ta-cta__title {
	margin: 0 0 0.6rem;
	color: #fff;
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.5;
}

.ta-cta__text {
	margin: 0;
	color: #a9b8cf;
	font-size: 13.5px;
	line-height: 1.95;
}

.ta-cta__actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* دکمه خطی روی پس‌زمینه تیره */
.btn--outline-light {
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.btn--outline-light:hover {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ---------- آمار ---------- */
.ta-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-stats__item {
	display: grid;
	gap: 6px;
	justify-items: center;
	padding: 28px 18px;
	border: 1px solid var(--ta-border, #e5eaf2);
	border-radius: var(--ta-r-lg, 20px);
	background: #fff;
	box-shadow: var(--ta-shadow-sm, 0 2px 6px rgba(16, 28, 51, 0.04));
	text-align: center;
}

.ta-stats__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	border-radius: 14px;
	background: var(--ta-primary-soft, #eef2f8);
	color: var(--ta-primary, #101c33);
}

.ta-stats__value {
	color: var(--ta-ink-900, #0b1727);
	font-size: 1.5rem;
	font-weight: 800;
}

.ta-stats__label {
	color: var(--ta-text-muted, #6b7a90);
	font-size: 12.5px;
}

/* جلوهٔ کارت‌های آمار در صفحه‌های داخلی */
.ta-el-stats .ta-stats__item {
	position: relative;
	overflow: hidden;
	transition: transform var(--ta-normal, 260ms ease), box-shadow var(--ta-normal, 260ms ease), border-color var(--ta-normal, 260ms ease);
}

.ta-el-stats .ta-stats__item::after {
	content: "";
	position: absolute;
	inset-inline: 20px;
	top: 0;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--ta-brand-600, #f6144d), rgba(246, 20, 77, 0));
	opacity: 0;
	transition: opacity var(--ta-normal, 260ms ease);
}

.ta-el-stats .ta-stats__item:hover {
	border-color: rgba(246, 20, 77, 0.25);
	box-shadow: var(--ta-shadow-md, 0 6px 16px rgba(16, 28, 51, 0.08));
	transform: translateY(-3px);
}

.ta-el-stats .ta-stats__item:hover::after {
	opacity: 1;
}

.ta-el-stats .ta-stats__icon {
	background: var(--ta-brand-100, #fde4ea);
	color: var(--ta-brand-700, #d10f42);
}

@media (prefers-reduced-motion: reduce) {
	.ta-el-stats .ta-stats__item {
		transition: none;
	}

	.ta-el-stats .ta-stats__item:hover {
		transform: none;
	}
}

/* ---------- دوره‌ها ---------- */
.ta-el-courses__empty {
	margin: 0;
	padding: 2.5rem 1.5rem;
	border: 1px dashed var(--ta-border-strong, #d8e0eb);
	border-radius: var(--ta-r-md, 16px);
	color: var(--ta-text-muted, #6b7a90);
	text-align: center;
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 720px) {
	.ta-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.ta-cta__actions {
		width: 100%;
	}

	.ta-cta__actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ---------- بخش متن معرفی (صفحه درباره ما) ---------- */
.ta-about-story .elementor-widget-container {
	padding: clamp(1.15rem, 2.6vw, 1.85rem);
	border: 1px solid var(--ta-border, #e5eaf2);
	border-radius: var(--ta-r-lg, 20px);
	background: #fff;
	box-shadow: var(--ta-shadow-xs, 0 1px 2px rgba(16, 28, 51, 0.05));
}

.ta-about-story .entry-content > h2:first-child {
	margin-top: 0;
}


/* رنگ هاور متن ایمیل در کارت پشتیبانی ویجت سوالات متداول */
.faq-aside__link:hover {
	color: var(--ta-faq-email-hover, currentColor);
}

/* ==========================================================================
   ویجت مسیر یادگیری (تا-lp)
   ========================================================================== */

.ta-lp {
	background: var(--ta-lp-section-bg, transparent);
}

.ta-lp__wrap {
	position: relative;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.ta-lp__list {
	display: grid;
	gap: var(--ta-lp-gap, 18px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-lp__item {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 1rem;
}

.ta-lp__rail {
	position: absolute;
	top: 18px;
	bottom: 18px;
	inset-inline-start: 31px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--ta-lp-accent, #f6144d), var(--ta-lp-rail, #e5eaf2));
	opacity: 0.5;
}

.ta-lp__marker {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: var(--ta-lp-accent, #f6144d);
	color: #ffffff;
	box-shadow: 0 14px 30px -18px var(--ta-lp-accent, #f6144d);
}

.ta-lp__number {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
}

.ta-lp__marker-icon {
	display: inline-grid;
	place-items: center;
}

.ta-lp__marker-icon svg {
	width: var(--ta-lp-icon, 24px);
	height: var(--ta-lp-icon, 24px);
}

.ta-lp__card {
	display: flex;
	flex-direction: column;
	background: var(--ta-lp-card, #ffffff);
	border: 1px solid var(--ta-lp-border, #e5eaf2);
	border-radius: var(--ta-lp-radius, 20px);
	padding: var(--ta-lp-pad, 22px);
	box-shadow: var(--ta-shadow-sm);
	overflow: hidden;
	transition: transform var(--ta-normal), box-shadow var(--ta-normal), border-color var(--ta-normal);
}

.ta-lp--lift .ta-lp__item:hover .ta-lp__card {
	transform: translateY(-3px);
	box-shadow: var(--ta-shadow-md);
	border-color: var(--ta-lp-accent, #f6144d);
}

.ta-lp__media {
	margin: calc(var(--ta-lp-pad, 22px) * -1) calc(var(--ta-lp-pad, 22px) * -1) var(--ta-lp-pad, 22px);
	overflow: hidden;
}

.ta-lp__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ta-lp__body {
	display: grid;
	gap: 0.55rem;
}

.ta-lp__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.ta-lp__icon-chip {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--ta-lp-accent, #f6144d);
	color: #ffffff;
	box-shadow: 0 10px 20px -14px var(--ta-lp-accent, #f6144d);
}

.ta-lp__step {
	font-size: var(--ta-lp-meta-s, 12px);
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--ta-lp-meta, #475569);
}

.ta-lp__badge {
	margin-inline-start: auto;
	padding: 0.15rem 0.6rem;
	border-radius: var(--ta-r-pill, 999px);
	background: var(--ta-lp-accent, #f6144d);
	color: #ffffff;
	font-size: var(--ta-lp-meta-s, 12px);
	font-weight: 700;
}

.ta-lp__title {
	margin: 0;
	font-size: var(--ta-lp-title-s, 19px);
	font-weight: 800;
	line-height: 1.6;
	color: var(--ta-lp-title, #0b1727);
}

.ta-lp__text {
	margin: 0;
	font-size: var(--ta-lp-text-s, 14px);
	line-height: 1.95;
	color: var(--ta-lp-text, #6b7a90);
}

.ta-lp__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0.15rem 0 0;
	padding: 0;
	list-style: none;
}

.ta-lp__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: var(--ta-lp-meta-s, 12px);
	color: var(--ta-lp-meta, #475569);
}

.ta-lp__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--ta-lp-accent, #f6144d);
	text-decoration: none;
}

.ta-lp__link:hover {
	gap: 0.62rem;
}


.ta-lp__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(1.25rem, 3vw, 2rem);
	padding: 1.15rem 1.35rem;
	border-radius: var(--ta-lp-radius, 20px);
	background: var(--ta-lp-card, #ffffff);
	border: 1px dashed var(--ta-lp-border, #e5eaf2);
}

.ta-lp__note {
	margin: 0;
	max-width: 62ch;
	font-size: 0.85rem;
	line-height: 1.9;
	color: var(--ta-lp-text, #6b7a90);
}

.ta-lp__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
}

/* چیدمان کارت‌های مرحله‌ای */
.ta-lp--cards .ta-lp__list {
	grid-template-columns: repeat(var(--ta-lp-cols, 2), minmax(0, 1fr));
	align-items: stretch;
}

.ta-lp--cards .ta-lp__item {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	align-content: start;
}

.ta-lp--cards .ta-lp__marker {
	width: 52px;
	height: 52px;
	border-radius: 16px;
}

.ta-lp--cards .ta-lp__number {
	font-size: 1.15rem;
}

/* چیدمان شماره‌دار متراکم */
.ta-lp--compact .ta-lp__list {
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 1fr);
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scroll-snap-type: x mandatory;
}

.ta-lp--compact .ta-lp__item {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.7rem;
	scroll-snap-align: start;
}

.ta-lp--compact .ta-lp__marker {
	width: 46px;
	height: 46px;
	border-radius: 14px;
}

.ta-lp--compact .ta-lp__number {
	font-size: 1.05rem;
}

.ta-lp--compact .ta-lp__rail {
	display: none;
}

@media (max-width: 1024px) {
	.ta-lp--cards .ta-lp__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.ta-lp__item {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 0.8rem;
	}

	.ta-lp__marker {
		width: 48px;
		height: 48px;
		border-radius: 15px;
	}

	.ta-lp__number {
		font-size: 1.05rem;
	}

	.ta-lp__rail {
		inset-inline-start: 23px;
	}

	.ta-lp--cards .ta-lp__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-lp__footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

