/* ==========================================================================
   Elementor Suite — Icon List Widget  v2.8.0
   ========================================================================== */

.esuite-il *, .esuite-il *::before, .esuite-il *::after { box-sizing: border-box; }

/* ---------- Grid ---------- */
.esuite-il__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

/* ---------- Item ---------- */
.esuite-il__item {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.esuite-il__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

.esuite-il__item-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 24px;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

a.esuite-il__item-inner { cursor: pointer; }

/* Icon left/right layouts */
.esuite-il--icon-left .esuite-il__item-inner,
.esuite-il--icon-right .esuite-il__item-inner {
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	text-align: left !important;
}

.esuite-il--icon-right .esuite-il__item-inner { flex-direction: row-reverse; }

/* ---------- Icon box ---------- */
.esuite-il__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	/* NOTE: background-color and color are intentionally NOT set here.
	   They are controlled exclusively via Elementor's dynamic CSS so that
	   the icon_color / icon_bg_color controls always take effect.
	   Default values live in the Elementor control definitions. */
	flex-shrink: 0;
	margin-bottom: 20px;
	transition: transform 0.22s ease;
}

.esuite-il--icon-left .esuite-il__icon,
.esuite-il--icon-right .esuite-il__icon {
	margin-bottom: 0;
}

.esuite-il__item:hover .esuite-il__icon { transform: scale(1.08); }

/* DO NOT set 'color' here — let Elementor dynamic CSS control it.
   fill:currentColor ensures SVG icons follow the same colour rule. */
.esuite-il__icon i   { font-size: 28px; }
.esuite-il__icon svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Text ---------- */
.esuite-il__text { flex: 1; }

.esuite-il__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.esuite-il__desc {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #6b7280;
	margin: 0;
}

/* ---------- Mobile slider (< 768px) ---------- */
@media (max-width: 767px) {

	.esuite-il--has-slider .esuite-il__grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 16px;
		padding-bottom: 12px;
		scrollbar-width: none;
	}

	.esuite-il--has-slider .esuite-il__grid::-webkit-scrollbar { display: none; }

	.esuite-il--has-slider .esuite-il__item {
		flex: 0 0 80vw;
		max-width: 320px;
		scroll-snap-align: center;
	}

	/* Dots */
	.esuite-il__dots {
		display: flex;
		justify-content: center;
		gap: 7px;
		margin-top: 16px;
	}

	.esuite-il__dot-btn {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		border: none;
		background: #d1d5db;
		cursor: pointer;
		padding: 0;
		transition: background 0.2s, transform 0.2s;
	}

	.esuite-il__dot-btn.is-active {
		background: #4361ee;
		transform: scale(1.3);
	}
}

@media (min-width: 768px) {
	.esuite-il__dots { display: none; }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
	.esuite-il__grid { grid-template-columns: repeat(2, 1fr); }
}
