/* =====================================================
   Maple Leaf Services Grid
   Fully responsive – Mobile / Tablet / Laptop / Desktop
   ===================================================== */

.mls-services-wrapper {
	width: 100%;
}

.mls-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 30px;
	row-gap: 40px;
	width: 100%;
}

/* ---- Card ---- */
.mls-card {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	overflow: visible;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mls-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ---- Image ---- */
.mls-card-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
}

.mls-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mls-card:hover .mls-card-image img {
	transform: scale(1.06);
}

/* ---- Icon Circle (overlapping bottom of image) ---- */
.mls-icon-wrap {
	position: relative;
	z-index: 5;
	display: flex;
	justify-content: center;
	margin-top: -35px; /* half of default circle size */
}

.mls-icon-circle {
	width: 70px;
	height: 70px;
	background-color: #eb0000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(235, 0, 0, 0.35);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	flex-shrink: 0;
}

.mls-card:hover .mls-icon-circle {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(235, 0, 0, 0.45);
}

.mls-icon-circle i {
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
}

.mls-icon-circle svg {
	width: 26px;
	height: 26px;
	fill: #ffffff;
}

.mls-icon-circle .mls-icon-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

/* ---- Card Body ---- */
.mls-card-body {
	padding: 22px 20px 28px;
	text-align: center;
}

/* When icon circle is hidden */
.mls-card.mls-no-icon .mls-card-body {
	padding-top: 24px;
}

/* ---- Title ---- */
.mls-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

/* ---- Learn More Link ---- */
.mls-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #888888;
	text-decoration: none;
	transition: color 0.25s ease;
}

.mls-link:hover {
	color: #eb0000;
}

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

.mls-link:hover .mls-arrow {
	transform: translateX(4px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Laptop */
@media (max-width: 1199px) {
	.mls-grid {
		column-gap: 24px;
		row-gap: 36px;
	}
	.mls-title {
		font-size: 18px;
	}
}

/* Tablet */
@media (max-width: 991px) {
	.mls-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		column-gap: 20px;
		row-gap: 32px;
	}
	.mls-card-image {
		height: 180px;
	}
	.mls-icon-wrap {
		margin-top: -32px;
	}
	.mls-icon-circle {
		width: 64px;
		height: 64px;
	}
	.mls-icon-circle i {
		font-size: 24px;
	}
	.mls-icon-circle svg {
		width: 24px;
		height: 24px;
	}
	.mls-card-body {
		padding: 20px 16px 24px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.mls-grid {
		grid-template-columns: 1fr !important;
		column-gap: 0;
		row-gap: 28px;
		max-width: 400px;
		margin: 0 auto;
	}
	.mls-card-image {
		height: 200px;
	}
	.mls-icon-wrap {
		margin-top: -34px;
	}
	.mls-icon-circle {
		width: 68px;
		height: 68px;
	}
	.mls-title {
		font-size: 19px;
	}
	.mls-card-body {
		padding: 22px 18px 26px;
	}
}

/* Small Mobile */
@media (max-width: 479px) {
	.mls-grid {
		max-width: 100%;
	}
	.mls-card-image {
		height: 180px;
	}
	.mls-icon-wrap {
		margin-top: -30px;
	}
	.mls-icon-circle {
		width: 60px;
		height: 60px;
	}
	.mls-icon-circle i {
		font-size: 22px;
	}
	.mls-icon-circle svg {
		width: 22px;
		height: 22px;
	}
	.mls-card-body {
		padding: 18px 14px 22px;
	}
	.mls-title {
		font-size: 17px;
	}
	.mls-link {
		font-size: 13px;
	}
}
