/* ==========================================================================
   Technology page services — outlined cards on a blue field
   ========================================================================== */

.eit-tsvc {
	padding: clamp(52px, 7vw, 100px) 0;
	background: linear-gradient(180deg, #071023 0%, #3f56ba 100%);
	color: #ffffff;
}

.eit-tsvc__inner {
	max-width: var(--eit-wrap);
	margin-inline: auto;
	padding-inline: clamp(18px, 3vw, 30px);
	display: grid;
	gap: clamp(32px, 4vw, 56px);
}

/* Size and weight come from the shared heading style (headings.css); the
   colour stays white here because the section sits on blue. */
.eit-tsvc__title {
	margin: 0;
	max-width: 22ch;
	color: #ffffff;
	text-wrap: balance;
}

.eit-tsvc__text {
	margin: 16px 0 0;
	max-width: 70ch;
	color: rgba(255, 255, 255, .88);
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.7;
}

/* ---------- Cards ---------- */

.eit-tsvc__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(16px, 2.2vw, 32px);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.eit-tsvc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eit-tsvc__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Rows of three; a final row of two splits the width in half, and a lone
   last card takes the full row, so no row is left with a gap. */
@media (min-width: 1000px) {
	.eit-tsvc__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.eit-tsvc__card,
	.eit-tsvc__card:last-child:nth-child(odd) { grid-column: span 2; }
	.eit-tsvc__card:nth-child(3n + 1):nth-last-child(2),
	.eit-tsvc__card:nth-child(3n + 1):nth-last-child(2) ~ .eit-tsvc__card { grid-column: span 3; }
	.eit-tsvc__card:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
}

.eit-tsvc__card {
	padding: clamp(22px, 2.2vw, 30px);
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 20px;
	background: rgba(255, 255, 255, .04);
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.eit-tsvc__card:hover {
	background: #ffffff;
	border-color: #ffffff;
	box-shadow: 0 18px 40px rgba(20, 32, 110, .25);
	transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
	.eit-tsvc__card { transition: none; }
	.eit-tsvc__card:hover { transform: none; }
}

.eit-tsvc__card-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.eit-tsvc__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #2f47d6;
	box-shadow: 0 6px 14px rgba(20, 32, 110, .25);
}

.eit-tsvc__icon img {
	display: block;
	width: 22px;
	height: 22px;
}

.eit-tsvc__card-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(19px, 1.6vw, 23px);
	font-weight: 600;
	line-height: 1.3;
	transition: color .25s ease;
}

.eit-tsvc__card-text {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, .88);
	font-size: clamp(15px, 1.15vw, 17px);
	line-height: 1.65;
	transition: color .25s ease;
}

.eit-tsvc__card:hover .eit-tsvc__card-title { color: var(--eit-ink, #15181f); }
.eit-tsvc__card:hover .eit-tsvc__card-text { color: var(--eit-body, #3d4453); }

/* ---------- Light variant (platforms block) ---------- */

.eit-tsvc--light {
	background: linear-gradient(180deg, #eef2fa 0%, #f6f8fc 100%);
	color: var(--eit-ink, #15181f);
}

.eit-tsvc--light .eit-tsvc__title { color: var(--eit-ink, #15181f); }
.eit-tsvc--light .eit-tsvc__text { color: var(--eit-body, #3d4453); }

.eit-tsvc--light .eit-tsvc__card {
	background: #ffffff;
	border-color: rgba(21, 24, 31, .08);
	box-shadow: 0 2px 10px rgba(16, 24, 40, .04);
}

.eit-tsvc--light .eit-tsvc__card:hover {
	border-color: rgba(59, 79, 232, .35);
	box-shadow: 0 18px 40px rgba(16, 24, 40, .1);
}

.eit-tsvc--light .eit-tsvc__card-title { color: var(--eit-ink, #15181f); }
.eit-tsvc--light .eit-tsvc__card-text { color: var(--eit-body, #3d4453); }

