/* WM widgets (FAQ, Features, Cards, Team, Hero). Sizes copy the default-widget blocks they can replace;
   typography comes from the Kit globals (--e-global-typography-wm*), so Kit edits apply here too.
   ".elementor-widget" in selectors: the Kit button rules (.elementor-kit-N .elementor-button) must lose. */

/* Theme paragraph and heading margins off; the widgets set their own spacing. */
.elementor-widget .wm-features__text,
.elementor-widget .wm-cards__title,
.elementor-widget .wm-team__title,
.elementor-widget .wm-team__name,
.elementor-widget .wm-team__badge-text {
	margin: 0;
}

/* Paragraphs keep the theme's bottom margin, as the Text Editor widgets of the former blocks did. */
.elementor-widget .wm-cards__text,
.elementor-widget .wm-team__text,
.elementor-widget .wm-team__role,
.elementor-widget .wm-hero__text {
	margin: 0 0 0.9rem;
}

/* ---- Buttons ------------------------------------------------------------------------------------------ */
.elementor-widget .wm-btn.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 20px 32px;
	border: 2px solid;
	text-align: center;
	text-decoration: none;
}

.elementor-widget .wm-btn--navy.elementor-button {
	border-color: #262261;
	background: #262261;
	color: #fff;
}

.elementor-widget .wm-btn--navy.elementor-button:hover,
.elementor-widget .wm-btn--navy.elementor-button:focus-visible {
	border-color: #ef5a28;
	background: #ef5a28;
	color: #fff;
}

.elementor-widget .wm-btn--yellow.elementor-button {
	border-color: #f9ae40;
	background: #f9ae40;
	color: #262261;
}

.elementor-widget .wm-btn--yellow.elementor-button:hover,
.elementor-widget .wm-btn--yellow.elementor-button:focus-visible {
	border-color: #fff;
	background: #fff;
	color: #262261;
}

.elementor-widget .wm-btn--outline-navy.elementor-button {
	border-color: #262261;
	background: transparent;
	color: #262261;
}

.elementor-widget .wm-btn--outline-navy.elementor-button:hover,
.elementor-widget .wm-btn--outline-navy.elementor-button:focus-visible {
	border-color: #262261;
	background: #262261;
	color: #fff;
}

.elementor-widget .wm-btn--outline-white.elementor-button {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.elementor-widget .wm-btn--outline-white.elementor-button:hover,
.elementor-widget .wm-btn--outline-white.elementor-button:focus-visible {
	border-color: #fff;
	background: #fff;
	color: #262261;
}

/* ---- FAQ (Figma 56:1170) ------------------------------------------------------------------------------ */
.wm-faq {
	--wm-faq-row-own: var(--wm-faq-row, #efeff4);
	--wm-faq-text-own: var(--wm-faq-text, #262261);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wm-faq--light {
	--wm-faq-row-own: #efeff4;
	--wm-faq-text-own: #262261;
}

.wm-faq--dark {
	--wm-faq-row-own: #3a3673;
	--wm-faq-text-own: #fff;
}

.wm-faq__item {
	border-radius: 12px;
	background: var(--wm-faq-row-own);
	color: var(--wm-faq-text-own);
}

.wm-faq__question {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding: 16px;
	box-sizing: border-box;
	cursor: pointer;
	list-style: none;
	font: 400 16px/20px var(--e-global-typography-wmsmall-font-family, 'Mitr'), sans-serif;
}

.wm-faq__question::-webkit-details-marker {
	display: none;
}

.wm-faq__question:focus-visible {
	border-radius: 12px;
	outline: 2px solid #ef5a28;
	outline-offset: 2px;
}

.wm-faq__text {
	flex: 1;
}

/* Plus that turns into a cross when open: Material Symbols "add_2" from Figma 56:1160, as a mask so it takes
   the row's text colour. */
.wm-faq__icon {
	flex: none;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 21v-8H3v-2h8V3h2v8h8v2h-8v8z'/%3E%3C/svg%3E") center / 24px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 21v-8H3v-2h8V3h2v8h8v2h-8v8z'/%3E%3C/svg%3E") center / 24px no-repeat;
	transition: transform 0.2s;
}

.wm-faq__item[open] .wm-faq__icon {
	transform: rotate(45deg);
}

.wm-faq__answer {
	padding: 0 16px 16px;
	font-family: var(--e-global-typography-wmsmall-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmsmall-font-size, 14px);
	font-weight: var(--e-global-typography-wmsmall-font-weight, 400);
	line-height: var(--e-global-typography-wmsmall-line-height, 1.5em);
}

.wm-faq__answer a {
	color: inherit;
	text-decoration: underline;
}

/* ---- Features (icon boxes) ---------------------------------------------------------------------------- */
.wm-features {
	--wm-features-columns: var(--wm-cols, 4);
	display: grid;
	grid-template-columns: repeat(var(--wm-features-columns), minmax(0, 1fr));
	/* The former icon boxes were 23% (desktop) / 47% (tablet) wide, spread with space-between. */
	column-gap: 2.6667%;
	row-gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #262261;
	text-align: center;
}

.wm-features__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 24px;
	border-radius: 50%;
	background: #262261;
	color: #fff;
	font-size: 16px;
}

.wm-features__icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.elementor-widget .wm-features__title {
	margin: 8px 0;
	color: #262261;
	font: 500 24px/1.3 'Mitr', sans-serif;
}

.wm-features__text {
	font-family: var(--e-global-typography-wmsmall-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmsmall-font-size, 14px);
	line-height: var(--e-global-typography-wmsmall-line-height, 1.5em);
}

@media (max-width: 1024px) {
	.wm-features {
		--wm-features-columns: var(--wm-cols-tablet, 2);
		column-gap: 6%;
	}
}

@media (max-width: 767px) {
	.wm-features {
		--wm-features-columns: var(--wm-cols-mobile, 1);
	}
}

/* ---- Cards -------------------------------------------------------------------------------------------- */
.wm-cards--grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

@media (max-width: 1024px) {
	.wm-cards--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.wm-cards--grid {
		grid-template-columns: 1fr;
	}
}

.wm-cards__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	color: #262261;
}

.wm-cards__card--yellow {
	background: #f9ae40;
}

.elementor-widget .wm-cards__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.wm-cards__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.elementor-widget .wm-cards__title {
	color: #262261;
	font: 500 19px/1.2 'Mitr', sans-serif;
}

.wm-cards__text {
	flex: 1;
	font-family: var(--e-global-typography-wmsmall-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmsmall-font-size, 14px);
	line-height: var(--e-global-typography-wmsmall-line-height, 1.5em);
}

.elementor-widget .wm-cards__button.elementor-button {
	width: 100%;
	margin-top: 16px;
}

/* ---- Carousel (cards, team) --------------------------------------------------------------------------- */
.wm-slider {
	position: relative;
}

/* Peek of the next card on the right, as the former carousels' "offset right" (80 px, 60 px on mobile). */
.wm-slider .swiper {
	padding-right: 80px;
	overflow: hidden;
}

.wm-slider .swiper-slide {
	height: auto;
}

.wm-slider__nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 40px;
}

.wm-slider .wm-slider__arrow,
.wm-slider .wm-slider__arrow:hover,
.wm-slider .wm-slider__arrow:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
}

.wm-slider .wm-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.16);
}

.wm-slider .wm-slider__arrow.swiper-button-disabled {
	opacity: 0.38;
}

.wm-slider--dark .wm-slider__arrow,
.wm-slider--dark .wm-slider__arrow:hover,
.wm-slider--dark .wm-slider__arrow:focus {
	background: rgba(38, 34, 97, 0.08);
	color: #262261;
}

.wm-slider__dots {
	display: none;
}

@media (max-width: 767px) {
	/* Edge to edge: the slider steps over the section's 16 px gutter, and the swiper's left padding puts the
	   current card back on that gutter while the neighbours slide out to the screen edges. 16 + 315 + 44. */
	.wm-slider {
		margin-right: -16px;
		margin-left: -16px;
	}

	.wm-slider .swiper {
		padding-right: 44px;
		padding-left: 16px;
	}

	.wm-slider__nav {
		display: none;
	}

	/* Swiper spaces bullets with margin from this variable (its rule outranks ours). */
	.wm-slider .wm-slider__dots {
		--swiper-pagination-bullet-horizontal-gap: 4px;
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin-top: 12px;
	}

	/* 30 px dots, 8 px apart: 9 team slides fit 375 px; more wrap to a second row instead of shrinking. */
	.wm-slider .swiper-pagination-bullet {
		flex: none;
		width: 30px;
		height: 30px;
		background: #fff;
		opacity: 0.38;
	}

	.wm-slider--dark .swiper-pagination-bullet {
		background: #262261;
	}

	.wm-slider .swiper-pagination-bullet-active {
		opacity: 1;
	}
}

/* ---- Team --------------------------------------------------------------------------------------------- */
.wm-team__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 50px;
}

.wm-team__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 70%;
	color: #fff;
}

.elementor-widget .wm-team__title {
	color: #fff;
	font-family: var(--e-global-typography-wmh2-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmh2-font-size, 48px);
	font-weight: var(--e-global-typography-wmh2-font-weight, 700);
	line-height: var(--e-global-typography-wmh2-line-height, 48px);
}

.wm-team__text {
	font-family: var(--e-global-typography-wmbody-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmbody-font-size, 19px);
	line-height: var(--e-global-typography-wmbody-line-height, 1.5em);
}

.wm-team__badge {
	display: flex;
	flex: none;
	flex-direction: column;
	width: 196px;
	padding: 16px 24px;
	box-sizing: border-box;
	border-radius: 10px;
	background: #f9ae40;
	color: #262261;
}

.wm-team__badge-value {
	font: 500 24px/1.2 'Mitr', sans-serif;
}

.wm-team__badge-text {
	font-family: var(--e-global-typography-wmsmall-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmsmall-font-size, 14px);
	line-height: var(--e-global-typography-wmsmall-line-height, 1.5em);
}

.wm-team__card {
	height: 100%;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	color: #262261;
}

.elementor-widget .wm-team__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: top center;
}

.wm-team__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 24px 24px;
}

.elementor-widget .wm-team__name {
	color: #262261;
	font: 500 20px/1.4 'Mitr', sans-serif;
}

.wm-team__role {
	font-family: var(--e-global-typography-wmsmall-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmsmall-font-size, 14px);
	line-height: var(--e-global-typography-wmsmall-line-height, 1.5em);
}

@media (max-width: 767px) {
	.wm-team__head {
		flex-direction: column;
		align-items: stretch;
	}

	.wm-team__intro {
		width: 100%;
		text-align: center;
	}

	.wm-team__badge {
		width: 100%;
	}
}

/* ---- Hero (journey pages, Figma 94:2105) -------------------------------------------------------------- */
.wm-hero {
	display: flex;
	align-items: center;
	gap: 30px;
}

.wm-hero__content,
.wm-hero__media {
	flex: 1 1 0;
	min-width: 0;
}

.wm-hero__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.elementor-widget .wm-hero__title {
	margin: 0;
	color: #ef5a28;
	font-family: var(--e-global-typography-wmh1-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmh1-font-size, 56px);
	font-weight: var(--e-global-typography-wmh1-font-weight, 700);
	line-height: var(--e-global-typography-wmh1-line-height, 56px);
}

.wm-hero__text {
	max-width: 483px;
	color: #fff;
	font-family: var(--e-global-typography-wmbody-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmbody-font-size, 19px);
	font-weight: var(--e-global-typography-wmbody-font-weight, 400);
	line-height: var(--e-global-typography-wmbody-line-height, 1.5em);
}

/* One row on desktop (Figma 19:5766: no letter spacing), wrapping on tablet, stacked on mobile. */
.wm-hero__buttons {
	display: flex;
	gap: 16px;
	padding-top: 8px;
}

.elementor-widget .wm-hero__buttons .wm-btn.elementor-button {
	letter-spacing: 0;
}

.elementor-widget .wm-hero__image {
	display: block;
	width: 100%;
	height: 388px;
	border-radius: 20px;
	object-fit: cover;
}

/* WM Hero Collage: the H1 has no hard line breaks, Figma balances its lines. */
.elementor-widget .wm-hero:has(.wm-collage) .wm-hero__title {
	text-wrap: balance;
}

/* Photo collage (WM Hero Collage, Figma 799:5721): 585 × 388 frame, positions in % so it scales with the column. */
.wm-collage {
	position: relative;
	aspect-ratio: 585 / 388;
}

.elementor-widget .wm-collage__photo {
	position: absolute;
	display: block;
	height: auto;
	aspect-ratio: 1;
	border-radius: 20px;
	object-fit: cover;
}

.elementor-widget .wm-collage__photo--main {
	top: 0;
	left: 16.92%;
	width: 66.33%;
}

.elementor-widget .wm-collage__photo--left,
.elementor-widget .wm-collage__photo--right {
	box-shadow: 0 12px 12px rgba(0, 0, 0, 0.16);
}

.elementor-widget .wm-collage__photo--left {
	top: 7.73%;
	left: 0;
	width: 23.93%;
}

.elementor-widget .wm-collage__photo--right {
	top: 47.94%;
	left: 70.6%;
	width: 29.4%;
}

@media (max-width: 1024px) {
	.wm-hero__buttons {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.wm-hero {
		flex-direction: column;
		align-items: stretch;
	}

	.wm-hero__text {
		max-width: none;
	}

	.wm-hero__buttons {
		flex-direction: column;
	}

	.elementor-widget .wm-hero__buttons .wm-btn.elementor-button {
		width: 100%;
	}

	.elementor-widget .wm-hero__image {
		height: 240px;
	}
}

/* ---- Heading with a highlighted part -------------------------------------------------------------------- */
.wm-heading {
	margin: 0;
	color: #262261;
	font-family: var(--e-global-typography-wmh2-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmh2-font-size, 48px);
	font-weight: var(--e-global-typography-wmh2-font-weight, 700);
	line-height: var(--e-global-typography-wmh2-line-height, 48px);
	text-align: center;
}

.wm-heading--wmh1 .wm-heading {
	font-family: var(--e-global-typography-wmh1-font-family, 'Mitr'), sans-serif;
	font-size: var(--e-global-typography-wmh1-font-size, 56px);
	font-weight: var(--e-global-typography-wmh1-font-weight, 700);
	line-height: var(--e-global-typography-wmh1-line-height, 56px);
}

.wm-heading__highlight {
	color: #ef5a28;
}

.wm-heading--align-left .wm-heading {
	text-align: left;
}

.wm-heading--align-right .wm-heading {
	text-align: right;
}

@media (max-width: 767px) {
	.wm-heading--m-align-left .wm-heading {
		text-align: left;
	}

	.wm-heading--m-align-center .wm-heading {
		text-align: center;
	}

	.wm-heading--m-align-right .wm-heading {
		text-align: right;
	}
}
