/*
 * BIPC — ویجت سامانه‌های الکترونیک
 * استایل پایه؛ اکثر مقادیر از پنل المنتور قابل بازنویسی‌اند.
 */

/* توجه: مقدار --bipc-sg-icon-size از روی wrapper ویجت (پنل المنتور) تنظیم
   می‌شود؛ اینجا تعریف نمی‌شود تا تنظیم المنتور بازنویسی نشود. */

.bipc-sg__grid {
	display: grid;
	grid-template-columns: repeat(var(--bipc-sg-cols, 4), minmax(0, 1fr));
	gap: 22px;
}

.bipc-sg__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 22px;
	min-height: 190px;
	padding: 28px 18px;
	background-color: #fff;
	border: 1px solid #e5e6ee;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.bipc-sg__card:hover,
.bipc-sg__card:focus {
	text-decoration: none;
}

.bipc-sg--lift .bipc-sg__card:hover {
	transform: translateY(-4px);
}

/* آیکون */
.bipc-sg__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: var(--bipc-sg-icon-size, 64px);
	height: var(--bipc-sg-icon-size, 64px);
	line-height: 0;
}

.bipc-sg__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .18s ease;
}

.bipc-sg__icon--font i {
	font-size: calc(var(--bipc-sg-icon-size, 64px) * .82);
	line-height: 1;
	transition: color .18s ease;
}

.bipc-sg__icon--font svg {
	width: calc(var(--bipc-sg-icon-size, 64px) * .9);
	height: calc(var(--bipc-sg-icon-size, 64px) * .9);
	transition: fill .18s ease;
}

/* متن */
.bipc-sg__text {
	display: block;
	width: 100%;
}

.bipc-sg__title {
	display: block;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.8;
	color: #2e3191;
	transition: color .18s ease;
	overflow-wrap: break-word;
}

.bipc-sg__desc {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.9;
	color: #85889b;
}

/* حالت کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
	.bipc-sg__card,
	.bipc-sg__icon img,
	.bipc-sg__icon--font i,
	.bipc-sg__icon--font svg,
	.bipc-sg__title {
		transition: none;
	}

	.bipc-sg--lift .bipc-sg__card:hover {
		transform: none;
	}
}

/* فوکوس قابل‌مشاهده برای دسترس‌پذیری */
.bipc-sg__card:focus-visible {
	outline: 3px solid #ed1d24;
	outline-offset: 4px;
}

/* سازگاری با ویرایشگر المنتور */
.elementor-widget-bipc-systems-grid .bipc-sg__card {
	box-sizing: border-box;
}
