/**
 * Trust strip
 *
 * Pale full-bleed band sitting directly above the footer on every page.
 * Four items across on desktop, 2x2 on tablet, stacked on phones.
 *
 * (Previously a compact card inside the hero column; restyled for its new
 * site-wide placement.)
 */

.medlife-trust {
	background: var(--ml-stage);
	padding: 0 24px;
}

.medlife-trust__list {
	list-style: none;
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: 20px 0;
	display: flex;
	align-items: stretch;
}

.medlife-trust__item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 26px;
}

/* Hairline dividers between items only. */
.medlife-trust__item + .medlife-trust__item {
	border-left: 1px solid rgba(10, 37, 64, 0.13);
}

.medlife-trust__icon {
	flex: 0 0 auto;
	display: block;
	color: var(--ml-cyan);
}

.medlife-trust__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.medlife-trust__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ml-navy);
}

.medlife-trust__subtitle {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--ml-body);
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.medlife-trust__item {
		padding: 6px 18px;
		gap: 11px;
	}

	.medlife-trust__title { font-size: 14px; }
	.medlife-trust__subtitle { font-size: 12.5px; }
}

/* Tablet: 2x2 grid, so the two-line labels keep their room. */
@media (max-width: 1024px) {
	.medlife-trust {
		padding: 0 20px;
	}

	.medlife-trust__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 16px 0;
	}

	.medlife-trust__item {
		padding: 12px 16px;
		border-left: 0;
	}

	/* Grid needs explicit edges rather than the flex sibling rule. */
	.medlife-trust__item:nth-child(2n) {
		border-left: 1px solid rgba(10, 37, 64, 0.13);
	}

	.medlife-trust__item:nth-child(n + 3) {
		border-top: 1px solid rgba(10, 37, 64, 0.13);
	}
}

@media (max-width: 640px) {
	.medlife-trust {
		padding: 0 16px;
	}

	.medlife-trust__list {
		grid-template-columns: minmax(0, 1fr);
		padding: 8px 0;
	}

	.medlife-trust__item {
		padding: 13px 4px;
		border-left: 0;
	}

	.medlife-trust__item:nth-child(2n) {
		border-left: 0;
	}

	.medlife-trust__item + .medlife-trust__item {
		border-top: 1px solid rgba(10, 37, 64, 0.13);
	}
}
