/* Icon Box List Widget - لیست آیکن جعبه ای */

.cc-ibl-wrapper {
	width: 100%;
	direction: rtl;
	--cc-conn-inset: 40px;
	--cc-conn-extend: 12px;
}

.cc-ibl-items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	position: relative;
	align-items: start;
}

.cc-ibl-item,
.cc-ibl-item *,
.elementor-widget-cc_icon_box_list .cc-ibl-item,
.elementor-widget-cc_icon_box_list .cc-ibl-item * {
	transform: none !important;
	transition: none !important;
	animation: none !important;
}

.cc-ibl-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	text-decoration: none !important;
	color: inherit;
	box-sizing: border-box;
}

.cc-ibl-item:hover,
.cc-ibl-item:focus,
.cc-ibl-item:active,
.cc-ibl-item:hover *,
.elementor-widget-cc_icon_box_list .cc-ibl-item:hover,
.elementor-widget-cc_icon_box_list .cc-ibl-item:hover *,
.elementor-element .cc-ibl-item:hover {
	transform: none !important;
	translate: 0 0 !important;
	scale: 1 !important;
	box-shadow: none !important;
	filter: none !important;
	opacity: 1 !important;
	animation: none !important;
	transition: none !important;
}

/* Icon wrapper */
.cc-ibl-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 12px;
	overflow: visible;
}

.cc-ibl-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 2px solid rgba(168, 85, 247, 0.45);
	background-color: transparent;
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	box-shadow: none !important;
}

.cc-ibl-item:hover .cc-ibl-icon,
.cc-ibl-icon:hover {
	box-shadow: none !important;
	filter: none !important;
	border-color: rgba(168, 85, 247, 0.45) !important;
}

.cc-ibl-icon i,
.cc-ibl-icon svg {
	font-size: 28px;
	line-height: 1;
	width: 28px;
	height: 28px;
	display: block;
}

.cc-ibl-icon svg {
	fill: currentColor;
}

/*
 * Single continuous connector between this icon and the next.
 * Starts outside the current circle (inset from center) and extends
 * across the gap to just outside the next circle.
 */
.cc-ibl-connector {
	position: absolute;
	top: 50%;
	height: 2px;
	/* start just outside the left edge of current icon (RTL) */
	right: calc(50% + var(--cc-conn-inset, 40px));
	/*
	 * width = remaining half of this item past the icon edge
	 *       + gap extension into neighbor
	 *       + half of next item up to its icon edge
	 * approx: (50% - inset) + extend*2 + (50% - inset)
	 *       = 100% - 2*inset + 2*extend
	 */
	width: calc(100% - (2 * var(--cc-conn-inset, 40px)) + (2 * var(--cc-conn-extend, 12px)));
	background: linear-gradient(90deg, #a855f7, #3b82f6);
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
	opacity: 0.75;
	border-radius: 2px;
}

/* LTR */
[dir="ltr"] .cc-ibl-wrapper,
.ltr .cc-ibl-wrapper {
	direction: ltr;
}

[dir="ltr"] .cc-ibl-connector,
.ltr .cc-ibl-connector {
	right: auto;
	left: calc(50% + var(--cc-conn-inset, 40px));
	width: calc(100% - (2 * var(--cc-conn-inset, 40px)) + (2 * var(--cc-conn-extend, 12px)));
}

/* Number badge */
.cc-ibl-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #a855f7, #6366f1);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
	flex-shrink: 0;
	line-height: 1;
}

/* Title */
.cc-ibl-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

/* Description */
.cc-ibl-desc {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #a0a0b0;
	max-width: 100%;
}

/* Icon position variants */
.cc-ibl-wrapper.icon-pos-right .cc-ibl-item,
.cc-ibl-wrapper.icon-pos-left .cc-ibl-item {
	flex-direction: row;
	align-items: flex-start;
	text-align: right;
}

.cc-ibl-wrapper.icon-pos-left .cc-ibl-item {
	flex-direction: row-reverse;
	text-align: left;
}

.cc-ibl-wrapper.icon-pos-right .cc-ibl-icon-wrap,
.cc-ibl-wrapper.icon-pos-left .cc-ibl-icon-wrap {
	width: auto;
	margin-bottom: 0;
	margin-left: 15px;
}

.cc-ibl-wrapper.icon-pos-left .cc-ibl-icon-wrap {
	margin-left: 0;
	margin-right: 15px;
}

.cc-ibl-wrapper.icon-pos-right .cc-ibl-connector,
.cc-ibl-wrapper.icon-pos-left .cc-ibl-connector {
	display: none;
}

.cc-ibl-wrapper.icon-pos-right .cc-ibl-number,
.cc-ibl-wrapper.icon-pos-left .cc-ibl-number {
	margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
	.cc-ibl-items {
		grid-template-columns: repeat(2, 1fr);
	}

	.cc-ibl-connector {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.cc-ibl-items {
		grid-template-columns: 1fr;
	}

	.cc-ibl-connector {
		display: none !important;
	}

	.cc-ibl-item {
		padding: 10px 0;
	}
}

.cc-ibl-icon .elementor-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
