/* =========================================================
   Stats Counter Widget for Elementor
   stats-counter.css
   ========================================================= */

/* ── Grid Layout ── */
.sce-stats-section {
	width: 100%;
}

.sce-stats-grid {
	display: grid;
	align-items: center;
	width: 100%;
}

.sce-stats-grid.sce-cols-1 { grid-template-columns: 1fr; }
.sce-stats-grid.sce-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sce-stats-grid.sce-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sce-stats-grid.sce-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Stat Item ── */
.sce-stat-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 30px;
}

/* ── Column Divider ── */
.sce-stat-item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 15%;
	height: 70%;
	width: 1.5px;
	
}

.sce-stat-item.sce-no-divider::after {
	display: none !important;
}

/* ── Counter Number Row ── */
.sce-counter-number-wrap {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 2px;
	margin-bottom: 12px;
}

/* ── Number ── */
.sce-counter-number {
	font-size: 52px;
	font-weight: 900;
	color: #2563eb;
	line-height: 1;
	letter-spacing: -1px;
}

/* ── Suffix ── */
.sce-counter-suffix {
	font-size: 52px;
	font-weight: 900;
	color: #2563eb;
	line-height: 1;
}

/* ── Title ── */
.sce-counter-title {
	font-size: 16px;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 5px;
	letter-spacing: 0.01em;
	margin-top: 0;
}

/* ── Subtitle ── */
.sce-counter-subtitle {
	font-size: 13.5px;
	font-weight: 400;
	color: #718096;
	margin-top: 0;
	margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet: ≤ 1024px — 2 columns */
@media (max-width: 1024px) {
	.sce-stats-grid.sce-cols-3,
	.sce-stats-grid.sce-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Hide divider on 2nd col in 2-col layout */
	.sce-stats-grid.sce-cols-4 .sce-stat-item:nth-child(2)::after,
	.sce-stats-grid.sce-cols-3 .sce-stat-item:nth-child(2)::after {
		display: none;
	}
}

/* Mobile: ≤ 767px — 1 column, horizontal dividers */
@media (max-width: 767px) {
	.sce-stats-grid {
		grid-template-columns: 1fr !important;
	}

	.sce-stat-item::after {
		display: none !important;
	}

	.sce-stat-item {
		border-bottom: 1.5px solid #c5d5e8;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.sce-stat-item:last-child {
		border-bottom: none;
	}

	.sce-stat-item.sce-no-divider {
		border-bottom: none;
	}

	.sce-counter-number,
	.sce-counter-suffix {
		font-size: 42px;
	}
}

/* =========================================================
   Animation — count-up fade-in
   ========================================================= */
.sce-stat-item {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.sce-stat-item.sce-animated {
	opacity: 1;
	transform: translateY(0);
}
