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

.cim-tl {
	--cim-tl-gap: 34px;
	--cim-tl-badge-size: 56px;
	--cim-tl-badge-offset: 0px;
	display: block;
	width: 100%;
}

/* ===== المحطة ===== */
.cim-tl .cim-tl-item {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 34px;
}

.cim-tl .cim-tl-item:not(:last-child) {
	padding-bottom: var(--cim-tl-gap);
}

/* ===== عمود العلامة + الخط الرأسي ===== */
.cim-tl .cim-tl-marker {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	flex-basis: var(--cim-tl-badge-size);
	align-items: flex-start;
	justify-content: center;
}

.cim-tl .cim-tl-marker::before,
.cim-tl .cim-tl-marker::after {
	position: absolute;
	left: 50%;
	width: 2px;
	content: "";
	background-color: rgba(148, 163, 184, 0.22);
	transform: translateX(-50%);
}

/* الجزء أعلى الدائرة */
.cim-tl .cim-tl-marker::before {
	top: 0;
	height: var(--cim-tl-badge-offset, 0px);
}

/* الجزء أسفل الدائرة ويمتد ليغطي المسافة حتى المحطة التالية */
.cim-tl .cim-tl-marker::after {
	top: calc(var(--cim-tl-badge-offset, 0px) + var(--cim-tl-badge-size, 56px));
	bottom: calc(-1 * var(--cim-tl-gap, 0px));
}

.cim-tl .cim-tl-item:last-child .cim-tl-marker::after {
	bottom: 0;
}

/* عند إخفاء الدوائر يصبح الخط متصلًا بالكامل */
.cim-tl--no-badge .cim-tl-marker::after {
	top: 0;
}

/* ===== الدائرة المرقّمة ===== */
.cim-tl .cim-tl-badge {
	position: relative;
	z-index: 2;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--cim-tl-badge-size);
	height: var(--cim-tl-badge-size);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #a99bff;
	text-align: center;
	background-color: #0f1424;
	border: 2px solid #6d5ae6;
	border-radius: 50%;
	transition: transform 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
	direction: ltr;
	unicode-bidi: isolate;
}

/* ===== المحتوى ===== */
.cim-tl .cim-tl-content {
	flex: 1 1 auto;
	min-width: 0;
	padding-bottom: 30px;
	text-align: start;
	border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.cim-tl .cim-tl-item:last-child .cim-tl-content {
	padding-bottom: 0;
	border-bottom: 0;
}

/* ===== السطر العلوي: نص + شارة ===== */
.cim-tl .cim-tl-meta {
	display: block;
	margin-bottom: 14px;
}

.cim-tl .cim-tl-eyebrow {
	display: inline;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	color: #8b7cff;
	vertical-align: middle;
}

.cim-tl .cim-tl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 12px;
	padding: 6px 13px;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(226, 232, 240, 0.92);
	white-space: nowrap;
	vertical-align: middle;
	background-color: rgba(148, 163, 184, 0.1);
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 50px;
}

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

.cim-tl .cim-tl-chip-icon i {
	font-size: 12px;
	line-height: 1;
	color: rgba(226, 232, 240, 0.75);
}

.cim-tl .cim-tl-chip-icon svg {
	width: 12px;
	height: 12px;
	fill: rgba(226, 232, 240, 0.75);
}

/* ===== النصوص ===== */
.cim-tl .cim-tl-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
	transition: color 0.35s ease;
}

.cim-tl .cim-tl-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.35s ease;
}

.cim-tl .cim-tl-desc {
	font-size: 15px;
	line-height: 1.9;
	color: rgba(148, 163, 184, 0.92);
	transition: color 0.35s ease;
}

.cim-tl .cim-tl-desc p {
	margin: 0 0 0.6em;
}

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

/* ===== إمكانية الوصول ===== */
@media (prefers-reduced-motion: reduce) {
	.cim-tl .cim-tl-badge,
	.cim-tl .cim-tl-title,
	.cim-tl .cim-tl-title a,
	.cim-tl .cim-tl-desc {
		transition-duration: 0.01ms !important;
	}
}

/* ===== الاستجابة ===== */
@media (max-width: 767px) {
	.cim-tl .cim-tl-meta {
		line-height: 2.2;
	}

	.cim-tl .cim-tl-chip {
		margin-inline-start: 8px;
	}
}
