/**
 * IEMA "Our Expertise" section styles.
 *
 * Two-column tabbed layout: a vertical list of expertise "tab" pills on
 * the left, and the selected area's white content card + image on the
 * right. Full-bleed light-grey band with the inner content constrained
 * to 1440px. Collapses to a single stacked column on mobile.
 *
 * Matches the Figma "Our Expertise" section:
 *   desktop 1440x672 — 64/80 padding, 40 column gap, 360 tabs + 880 panels
 *   mobile  430       — 40/24 padding, stacked heading / tabs / card / image
 */

.iema-expertise {
	background-color: #f5f5f5;
	color: #002147;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.iema-expertise__inner {
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding: 64px 80px;
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

/* Left column: heading + tab list ----------------------------------- */
.iema-expertise__tabs {
	flex: 0 0 360px;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.iema-expertise__heading {
	margin: 0;
	color: #002147;
	font-weight: 700;
	font-size: 40px;
	line-height: 44px;
	letter-spacing: 0;
}

.iema-expertise__tablist {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.iema-expertise__tab {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 16px 24px;
	border: 1px solid transparent;
	border-radius: 1000px;
	background-color: transparent;
	color: #002147;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 18.4px;
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.50s ease, color 0.50s ease, border-color 0.50s ease, box-shadow 0.50s ease;
}

.iema-expertise__tab-icon {
	flex: 0 0 auto;
	display: inline-flex;
	line-height: 0;
}

.iema-expertise__tab-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.iema-expertise__tab-label {
	display: block;
}

.iema-expertise__tab:hover {
	background-color: #00152D;
	border-color: #C1D82A;
	color: #FFFFFF;
	box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.15);
}

.iema-expertise__tab:focus-visible {
	outline: 2px solid #002147;
	outline-offset: 2px;
}

.iema-expertise__tab.is-active,
.iema-expertise__tab.is-active:hover {
	background-color: #00152d;
	border-color: #c1d82a;
	color: #ffffff;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Right column: content panels -------------------------------------- */
.iema-expertise__panels {
	flex: 1 1 auto;
	min-width: 0;
}

.iema-expertise__panel {
	display: none;
	gap: 24px;
	align-items: stretch;
}

.iema-expertise__panel.is-active {
	display: flex;
}

.iema-expertise__card {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 32px;
	border-radius: 16px;
	background-color: #ffffff;
}

.iema-expertise__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.iema-expertise__title {
	margin: 0;
	color: #002147;
	font-weight: 700;
	font-size: 32px;
	line-height: 35.2px;
	letter-spacing: 0;
}

.iema-expertise__body {
	color: #767676;
	font-weight: 400;
	font-size: 14px;
	line-height: 19.6px;
}

.iema-expertise__body p {
	margin: 0 0 16px;
}

.iema-expertise__body p:last-child {
	margin-bottom: 0;
}

.iema-expertise__body a {
	color: #002147;
	text-decoration: underline;
}

.iema-expertise__cta {
	align-self: flex-start;
}

.iema-expertise__figure {
	flex: 1 1 0;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	background-color: #e9e9e9;
}

.iema-expertise__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mobile: single stacked column ------------------------------------- */
@media (max-width: 1024px) {
	.iema-expertise__inner {
		flex-direction: column;
		gap: 24px;
		padding: 40px 24px;
	}

	.iema-expertise__tabs {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
	}

	.iema-expertise__heading {
		font-size: 32px;
		line-height: 35.2px;
	}

	.iema-expertise__panels {
		width: 100%;
	}

	.iema-expertise__panel.is-active {
		flex-direction: column;
	}

	.iema-expertise__card {
		padding: 24px;
	}

	.iema-expertise__title {
		font-size: 24px;
		line-height: 26.4px;
	}

	.iema-expertise__figure {
		flex: 0 0 auto;
		height: 300px;
	}

	.iema-expertise__cta {
		margin-top: 8px;
	}
}
