/* =========================================================
   Arart Feature Boxes — Frontend Styles
   ========================================================= */

.arart-fb-wrapper {
	position: relative;
	direction: rtl;
	overflow: hidden;
	box-sizing: border-box;
	/* پس‌زمینه‌ی خلاقانه و ثابت بخش — فقط پشت کل سکشن، هیچ تغییری هنگام هاور نمی‌کند و وارد داخل کارت‌ها نمی‌شود */
	background-color: #eef3fb;
	background-image:
		radial-gradient( 60% 85% at 100% 0%, rgba( 247, 148, 29, 0.14 ) 0%, rgba( 247, 148, 29, 0 ) 60% ),
		radial-gradient( 55% 75% at 0% 100%, rgba( 21, 42, 78, 0.10 ) 0%, rgba( 21, 42, 78, 0 ) 60% ),
		linear-gradient( 135deg, #eef3fb 0%, #e7eff9 55%, #e3ecf8 100% );
}

.arart-fb-wrapper * {
	box-sizing: border-box;
}

/* بافت ریز نقطه‌ای برای عمق بیشتر پس‌زمینه (فقط دکوری، غیرقابل‌کلیک و ثابت) */
.arart-fb-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: radial-gradient( rgba( 21, 42, 78, 0.07 ) 1px, transparent 1px );
	background-size: 24px 24px;
	-webkit-mask-image: radial-gradient( ellipse 70% 60% at 50% 0%, #000 0%, transparent 75% );
	mask-image: radial-gradient( ellipse 70% 60% at 50% 0%, #000 0%, transparent 75% );
}

/* --- تزئینات پس‌زمینه (هاله‌های محو رنگی) --- */
.arart-fb-decor {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	border-radius: 50%;
	filter: blur( 60px );
}

.arart-fb-decor--one {
	top: -140px;
	left: -110px;
	width: 340px;
	height: 340px;
	background: radial-gradient( circle, rgba( 21, 42, 78, 0.20 ), rgba( 21, 42, 78, 0 ) 70% );
}

.arart-fb-decor--two {
	bottom: -150px;
	left: 8%;
	width: 300px;
	height: 300px;
	background: radial-gradient( circle, rgba( 247, 148, 29, 0.22 ), rgba( 247, 148, 29, 0 ) 70% );
}

.arart-fb-decor--three {
	top: -90px;
	right: -90px;
	width: 260px;
	height: 260px;
	background: radial-gradient( circle, rgba( 247, 148, 29, 0.28 ), rgba( 247, 148, 29, 0 ) 70% );
}

/* --- هدر --- */
.arart-fb-header {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

/* چینش هدر — قابل تنظیم از پنل المنتور (پیش‌فرض: راست) */
.arart-fb-align-right .arart-fb-header {
	align-items: flex-end;
	text-align: right;
}

.arart-fb-align-center .arart-fb-header {
	align-items: center;
	text-align: center;
}

.arart-fb-align-left .arart-fb-header {
	align-items: flex-start;
	text-align: left;
}

@media ( max-width: 1024px ) {
	.arart-fb-align-right-tablet .arart-fb-header { align-items: flex-end; text-align: right; }
	.arart-fb-align-center-tablet .arart-fb-header { align-items: center; text-align: center; }
	.arart-fb-align-left-tablet .arart-fb-header { align-items: flex-start; text-align: left; }
}

@media ( max-width: 767px ) {
	.arart-fb-align-right-mobile .arart-fb-header { align-items: flex-end; text-align: right; }
	.arart-fb-align-center-mobile .arart-fb-header { align-items: center; text-align: center; }
	.arart-fb-align-left-mobile .arart-fb-header { align-items: flex-start; text-align: left; }
}

.arart-fb-label {
	display: inline-block;
	font-size: 15px;
	color: #8a94a6;
	border-right: 3px solid #f7941d;
	padding-right: 12px;
	margin-bottom: 14px;
	line-height: 1.4;
}

.arart-fb-title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.7;
	color: #152a4e;
	max-width: 100%;
}

/* --- شبکه باکس‌ها --- */
.arart-fb-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.arart-fb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.arart-fb-grid {
		grid-template-columns: 1fr;
	}
}

/* --- کارت باکس --- */
.arart-fb-item {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: right;
	/* بک‌گراند کارت همیشه ثابت است؛ پس‌زمینه‌ی خلاقانه فقط پشت کل سکشن است، نه داخل باکس */
	background-color: #ffffff;
	border-radius: 18px;
	padding: 40px 30px 36px;
	box-shadow: 0 10px 30px rgba(21, 42, 78, 0.06);
	text-decoration: none;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.arart-fb-item--linked {
	cursor: pointer;
}

/* افکت هاور: کمی بالا آمدن + سایه نرم نارنجی — بدون تغییر بک‌گراند (پیش‌فرض خلاقانه) */
.arart-fb-hover-lift .arart-fb-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 42px -10px rgba(247, 148, 29, 0.30);
}

.arart-fb-hover-lift .arart-fb-item:hover .arart-fb-icon {
	transform: scale(1.1) rotate(-6deg);
}

/* افکت هاور: درخشش رنگی */
.arart-fb-hover-glow .arart-fb-item {
	position: relative;
}

.arart-fb-hover-glow .arart-fb-item::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.4);
	transition: box-shadow 0.4s ease;
	pointer-events: none;
}

.arart-fb-hover-glow .arart-fb-item:hover::after {
	box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.25);
}

.arart-fb-hover-glow .arart-fb-item:hover .arart-fb-icon {
	transform: scale(1.08);
}

/* --- آیکن دایره‌ای --- */
.arart-fb-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #fdecdd;
	margin-bottom: 22px;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	flex-shrink: 0;
}

.arart-fb-icon i {
	font-size: 26px;
	color: #f7941d;
	line-height: 1;
}

.arart-fb-icon svg {
	width: 26px;
	height: 26px;
	fill: #f7941d;
}

/* --- متن‌های کارت --- */
.arart-fb-item-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #152a4e;
	line-height: 1.5;
}

.arart-fb-item-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: #6b7a93;
}

/* =========================================================
   انیمیشن ورود هنگام اسکرول
   ========================================================= */
.arart-fb-animate .arart-fb-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--arart-fb-delay, 0s);
}

.arart-fb-animate .arart-fb-item.arart-fb-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* اگر جاوااسکریپت به هر دلیل اجرا نشد، باکس‌ها همیشه قابل مشاهده باشند */
.arart-fb-no-js .arart-fb-item {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.arart-fb-item,
	.arart-fb-icon {
		transition: none !important;
	}
	.arart-fb-animate .arart-fb-item {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================
   حالت ادیتور المنتور — نمایش همیشگی بدون انتظار اسکرول
   ========================================================= */
.elementor-editor-active .arart-fb-item {
	opacity: 1 !important;
	transform: none !important;
}
