/* ==========================================================================
   Services Listing — Frontend Styles
   Custom breakpoints: tablet <=1024px, mobile <=880px
   ========================================================================== */

.sl-wrapper {
	--sl-max-width: 1024px;
	--sl-img-width: 42%;
	--sl-row-gap: 60px;

	max-width: var(--sl-max-width);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.sl-wrapper * {
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.sl-header {
	margin-bottom: 48px;
    text-align: center;
}

.sl-label {
	display: inline-block;
	color: #2563EB;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 12px;
}

a.sl-label:hover {
	text-decoration: underline;
}

.sl-heading {
	margin: 0;
	font-size: 38px;
	line-height: 1.25;
	font-weight: 700;
	color: #0F172A;
}

/* ---------- Rows ---------- */
.sl-rows {
	display: flex;
	flex-direction: column;
	gap: var(--sl-row-gap);
}

.sl-row {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.sl-row-normal {
	flex-direction: row;
}

.sl-row-reverse {
	flex-direction: row-reverse;
}

/* ---------- Image column ---------- */
.sl-col-image {
	flex: 0 0 var(--sl-img-width);
	max-width: var(--sl-img-width);
	position: relative;
}

.sl-image-wrap {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: #E2E8F0;
	box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}

.sl-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sl-image-slant-right {
	clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
}

.sl-image-slant-left {
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
}

/* ---------- Number badge ---------- */
.sl-number-wrap {
	position: absolute;
	top: 50%;
	left: var(--sl-img-width);
	transform: translate(-50%, -50%);
	z-index: 3;
}

.sl-row-reverse .sl-number-wrap {
	left: calc(100% - var(--sl-img-width));
}

.sl-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	font-size: 18px;
	font-weight: 700;
	color: #FFFFFF;
	background-color: #2563EB;
	background-image: linear-gradient(135deg, #2563EB, #1E40AF);
	clip-path: polygon(22% 0%, 100% 0%, 78% 50%, 100% 100%, 22% 100%, 0% 50%);
	box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.6);
}

/* ---------- Content column ---------- */
.sl-col-content {
	flex: 1 1 auto;
	padding: 10px 0 10px 56px;
    box-shadow: rgba(14, 63, 126, 0.06) 0px 0px 0px 1px, rgba(42, 51, 70, 0.03) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 2px 2px -1px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.03) 0px 5px 5px -2.5px, rgba(42, 51, 70, 0.03) 0px 10px 10px -5px, rgba(42, 51, 70, 0.03) 0px 24px 24px -8px;
border-radius:16px;
}

.sl-row-reverse .sl-col-content {
	padding: 10px 56px 10px 0;
	text-align: right;
}

.sl-row-reverse .sl-link {
	flex-direction: row-reverse;
}

.sl-item-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #0F172A;
}

.sl-item-desc {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.7;
	color: #64748B;
}

.sl-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #2563EB;
	text-decoration: none;
	transition: color 0.25s ease, gap 0.25s ease;
}

.sl-link:hover {
	color: #1E40AF;
	gap: 12px;
}

.sl-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

.sl-link:hover .sl-arrow {
	transform: translateX(3px);
}

/* ---------- Scroll animation ---------- */
.sl-row {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

.sl-anim-fade-in .sl-row {
	transform: none;
}

.sl-anim-zoom-in .sl-row {
	transform: scale(0.88);
}

.sl-row.sl-in-view {
	opacity: 1;
	transform: none;
}

.sl-no-anim .sl-row {
	opacity: 1;
	transform: none;
	transition: none;
}

/* ==========================================================================
   Responsive — Tablet (<=1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.sl-wrapper {
		padding: 0 24px;
	}

	.sl-heading {
		font-size: 30px;
	}

	.sl-image-wrap {
		height: 220px;
	}

	.sl-number {
		width: 58px;
		height: 58px;
		font-size: 16px;
	}

	.sl-col-content {
		padding-left: 40px;
	}

	.sl-row-reverse .sl-col-content {
		padding-right: 40px;
	}
}

/* ==========================================================================
   Responsive — Mobile & small tablet (<=880px)
   ========================================================================== */
@media (max-width: 880px) {
	.sl-wrapper {
		padding: 0 20px;
	}

	.sl-header {
		text-align: center;
		margin-bottom: 32px;
	}

	.sl-heading {
		font-size: 26px;
	}

	.sl-rows {
		gap: 44px;
	}

	.sl-row,
	.sl-row-normal,
	.sl-row-reverse {
		flex-direction: column !important;
		text-align: center;
	}

	.sl-col-image,
	.sl-col-content {
		flex-basis: 100% !important;
		max-width: 100% !important;
		width: 100%;
	}

	.sl-image-wrap {
		height: 200px;
		clip-path: none !important;
		border-radius: 16px;
	}

	.sl-number-wrap {
		position: relative;
		left: auto !important;
		top: auto;
		transform: none;
		margin: -28px auto 14px;
	}

	.sl-col-content,
	.sl-row-reverse .sl-col-content {
		padding: 0;
		text-align: center;
	}

	.sl-link,
	.sl-row-reverse .sl-link {
		flex-direction: row;
		justify-content: center;
	}
}
