/**
 * CIM Feature Card - Elementor Widget
 * Version: 1.0.0
 *
 * جميع القيم هنا هي القيم الافتراضية فقط،
 * وأي تعديل من لوحة Elementor يتجاوزها تلقائيًا.
 */

.cim-fc {
	position: relative;
	display: block;
	width: 100%;
}

/* ===== البطاقة ===== */
.cim-fc .cim-fc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 36px;
	overflow: hidden;
	text-align: start;
	background-color: #111827;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 28px;
	transition-property: transform, background-color, border-color, box-shadow, color;
	transition-duration: 0.4s;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

/* رابط يغطي البطاقة كاملة */
.cim-fc .cim-fc-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	text-decoration: none;
	border: 0;
	border-radius: inherit;
}

.cim-fc .cim-fc-overlay:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

/* ===== الرأس: الأيقونة + الرقم ===== */
.cim-fc .cim-fc-head {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 56px;
}

/* عند تفعيل رابط البطاقة: اجعل العناصر غير التفاعلية تمرر النقر للرابط */
.cim-fc--linked .cim-fc-badge,
.cim-fc--linked .cim-fc-body,
.cim-fc--linked span.cim-fc-icon-wrap,
.cim-fc--linked span.cim-fc-tag {
	pointer-events: none;
}

.cim-fc .cim-fc-icon-wrap {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	text-decoration: none;
	background-color: rgba(34, 211, 238, 0.1);
	border: 1px solid rgba(34, 211, 238, 0.35);
	border-radius: 16px;
	transition-property: transform, background-color, border-color, box-shadow, color;
	transition-duration: 0.4s;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cim-fc .cim-fc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.cim-fc .cim-fc-icon i {
	font-size: 26px;
	line-height: 1;
	color: #22d3ee;
	transition: inherit;
}

.cim-fc .cim-fc-icon svg {
	width: 26px;
	height: 26px;
	fill: #22d3ee;
	transition: inherit;
}

.cim-fc .cim-fc-badge {
	display: inline-block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: rgba(148, 163, 184, 0.85);
	letter-spacing: 1px;
	transition-property: color, background-color, border-color;
	transition-duration: 0.4s;
	direction: ltr;
	unicode-bidi: isolate;
}

/* ===== المتن ===== */
.cim-fc .cim-fc-body {
	position: relative;
	z-index: 2;
	margin-bottom: 40px;
}

.cim-fc .cim-fc-title {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	transition-property: color;
	transition-duration: 0.4s;
}

.cim-fc .cim-fc-desc {
	font-size: 16px;
	line-height: 1.9;
	color: rgba(148, 163, 184, 0.95);
	transition-property: color;
	transition-duration: 0.4s;
}

.cim-fc .cim-fc-desc p {
	margin: 0 0 0.75em;
}

.cim-fc .cim-fc-desc p:last-child {
	margin-bottom: 0;
}

/* ===== الوسوم ===== */
.cim-fc .cim-fc-tags {
	position: relative;
	z-index: 2;
	display: block;
	font-size: 0; /* لإلغاء المسافات البيضاء بين العناصر السطرية */
	line-height: 0;
}

.cim-fc .cim-fc-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	margin-inline-start: 10px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: rgba(226, 232, 240, 0.9);
	text-decoration: none;
	white-space: nowrap;
	background-color: rgba(148, 163, 184, 0.08);
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 50px;
	transition-property: color, background-color, border-color, transform;
	transition-duration: 0.4s;
}

a.cim-fc-tag:hover,
a.cim-fc-tag:focus {
	color: #0b1220;
	background-color: #22d3ee;
	border-color: #22d3ee;
}

/* ===== حالة المرور على البطاقة ===== */
.cim-fc:hover .cim-fc-card {
	border-color: rgba(34, 211, 238, 0.55);
	box-shadow: 0 18px 45px -12px rgba(34, 211, 238, 0.25);
	transform: translateY(-6px);
}

.cim-fc:hover .cim-fc-icon-wrap {
	background-color: rgba(34, 211, 238, 0.2);
	border-color: rgba(34, 211, 238, 0.65);
}

/* ===== إمكانية الوصول ===== */
.cim-fc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.cim-fc .cim-fc-card,
	.cim-fc .cim-fc-icon-wrap,
	.cim-fc .cim-fc-tag,
	.cim-fc .cim-fc-title,
	.cim-fc .cim-fc-desc,
	.cim-fc .cim-fc-badge {
		transition-duration: 0.01ms !important;
	}

	.cim-fc:hover .cim-fc-card {
		transform: none;
	}
}

/* ===== الاستجابة ===== */
@media (max-width: 767px) {
	.cim-fc .cim-fc-card {
		padding: 26px 22px;
	}

	.cim-fc .cim-fc-head {
		margin-bottom: 32px;
	}

	.cim-fc .cim-fc-body {
		margin-bottom: 26px;
	}

	.cim-fc .cim-fc-title {
		font-size: 21px;
	}

	.cim-fc .cim-fc-desc {
		font-size: 15px;
	}
}
