/* ============================================
   BRAND COLORS
============================================ */
:root {
	--primary: #1b375e;
	--secondary: #285272;
	--text: #3A4A58;
	--bg-light: #f7f2ff;

}

.services-section {
	padding: 42px 0 70px;
}

.service-card img {
	max-height: 245px;
	width: 100%;
	object-fit: cover;
	margin-bottom: 10px;
}

.services-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
	margin-top: 18px;

}

.service-card {
	background: linear-gradient(180deg, #c7e2f81c 0%, rgb(42 115 189 / 19%) 100%);
	padding: 20px;
	border-radius: 14px;
	/* border: 1px solid rgba(158,42,166,0.06); */
	box-shadow: 0 8px 20px rgba(70, 43, 168, 0.06);
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
	opacity: 0;
	transform: translateY(16px);
	min-height: 175px;
	align-content: center;
}

.service-card.in-view {
	opacity: 1;
	transform: none;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 42px rgba(70, 43, 168, 0.08);
	border-color: rgba(70, 43, 168, 0.14);
}

.service-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	color: var(--primary);
	font-weight: 700;
	position: relative;
	display: inline-block;
}

.service-card h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 4px;
	background: var(--secondary);
	border-radius: 2px;
	transition: width .28s ease;
}

.service-card:hover h3::after {
	width: 48%;
}

.service-card p {
	margin: 0;
	color: var(--text);
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Animations ---------- */
.fade-in {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .6s ease, transform .6s ease;
}

.in-view {
	opacity: 1 !important;
	transform: none !important;
}

.container {
	max-width: 80%;
	margin: auto;
}


/* ---------- Responsive layout ---------- */

/* >= 700px */
@media(min-width:700px) {

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* >= 1000px */
@media(min-width:1000px) {


	.services-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}
}

/* Mobile adjustments */
@media(max-width:699px) {

	
	.services-grid {
		grid-template-columns: 1fr;
	}

	.service-card {
		padding: 16px;
	}
}


.service-card {
	position: relative;
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Soft ambient glow (very subtle) */
.service-card::before {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 18px;
	background: radial-gradient(rgba(70, 43, 168, 0.12),
			rgba(70, 43, 168, 0.04) 60%,
			transparent 100%);
	pointer-events: none;
}

/* Hover — soft ambient light appears */
.service-card:hover::before {
	opacity: 1;
	transform: scale(1);
}

/* Hover lift effect stays */
.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 34px rgba(70, 43, 168, 0.10);
}