/* WYSIWYG Editor with ESM Slider (Figma uJLTuhK1C6KtSO9Zn1rlEI 3333:1498 desktop / 3333:1238 mobile). */

.wysiwyg-esm-slider {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	padding: 40px 20px;
	background-color: #fff;
	box-sizing: border-box;
}

.wysiwyg-esm-slider *,
.wysiwyg-esm-slider *::before,
.wysiwyg-esm-slider *::after {
	box-sizing: border-box;
}

.wysiwyg-esm-slider__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.wysiwyg-esm-slider__heading {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__eyebrow {
	margin: 0;
	color: #000;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 1.28px;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__title {
	margin: 0;
	color: #283a82;
	font-family: "GT Super Ds Trial", Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 34px;
	letter-spacing: 0;
	overflow-wrap: break-word;
}

/* Block typography on top of the shared .wysiwyg-content baseline (rule #32). */
.wysiwyg-esm-slider__text {
	width: 100%;
	color: #141414;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	overflow-wrap: break-word;
}

/* Quotes get 16px around them on mobile, 24px between all blocks from 768px (Figma). */
.wysiwyg-esm-slider .wysiwyg-esm-slider__text > blockquote,
.wysiwyg-esm-slider .wysiwyg-esm-slider__text > blockquote + * {
	margin-top: 16px;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__text > :first-child {
	margin-top: 0;
}

/* Bulleted lists: red check icon (30px box desktop, 26px mobile), bold text. */
.wysiwyg-esm-slider .wysiwyg-esm-slider__text ul {
	padding-left: 0;
	list-style: none;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__text ul > li {
	position: relative;
	min-height: 26px;
	padding-left: 32px;
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__text ul > li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 26px;
	height: 26px;
	background: url("assets/icon-check.svg") center / contain no-repeat;
}

/* Quote: bold line with a 6px red bar. */
.wysiwyg-esm-slider .wysiwyg-esm-slider__text blockquote {
	margin-right: 0;
	margin-left: 0;
	padding: 0 0 0 16px;
	border-left: 6px solid #930d21;
	font-weight: 700;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__text blockquote p {
	font-style: normal;
}

/* Slider. */
.wysiwyg-esm-slider__slider {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	width: 100%;
}

.wysiwyg-esm-slider__track {
	width: 100%;
}

/* Before Slick starts: first slide only, same box as the initialised slider (rule #25). */
.wysiwyg-esm-slider__track:not(.slick-initialized) {
	display: flex;
	overflow: hidden;
}

.wysiwyg-esm-slider__track:not(.slick-initialized) .wysiwyg-esm-slider__slide {
	flex: 0 0 100%;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 20px;
	border-radius: 8px;
	background-color: #f2f2f2;
}

.wysiwyg-esm-slider__media {
	position: relative;
	width: 100%;
	aspect-ratio: 295 / 200;
	overflow: hidden;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__caption {
	width: 100%;
	margin: 0;
	color: #58585a;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 1.4px;
	text-align: center;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

/* Controls: dots centred on mobile (12px), arrows from 768px. */
.wysiwyg-esm-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots {
	position: static;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots li {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots button {
	display: block;
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #d5d5d5;
	font-size: 0;
	line-height: 0;
	color: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots button:hover,
.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots button:focus-visible {
	background-color: #8a8a8a;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots .slick-active button {
	background-color: #000;
}

.wysiwyg-esm-slider__arrows {
	display: none;
	gap: 12px;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__arrow {
	display: block;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #000;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__arrow:hover,
.wysiwyg-esm-slider .wysiwyg-esm-slider__arrow:focus-visible {
	background-color: #930d21;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__arrow img {
	display: block;
	width: 60px;
	height: 60px;
	max-width: none;
}

.wysiwyg-esm-slider .wysiwyg-esm-slider__arrow--prev img {
	transform: rotate(180deg);
}

/* Tablet and up: desktop fonts, larger card, arrows. */
@media (min-width: 768px) {
	.wysiwyg-esm-slider {
		gap: 40px;
		padding: 80px 40px;
	}

	.wysiwyg-esm-slider__body {
		gap: 40px;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__title {
		font-size: 34px;
		line-height: 42px;
	}

	.wysiwyg-esm-slider__text {
		font-size: 18px;
		line-height: 26px;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__text > * + *,
	.wysiwyg-esm-slider .wysiwyg-esm-slider__text > blockquote,
	.wysiwyg-esm-slider .wysiwyg-esm-slider__text > blockquote + * {
		margin-top: 24px;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__text > :first-child {
		margin-top: 0;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__text > p + ul,
	.wysiwyg-esm-slider .wysiwyg-esm-slider__text > p + ol {
		margin-top: 12px;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__text ul > li {
		min-height: 30px;
		padding-left: 36px;
		font-size: 20px;
		line-height: 28px;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__text ul > li::before {
		width: 30px;
		height: 30px;
	}

	.wysiwyg-esm-slider__slider {
		align-items: stretch;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__card {
		gap: 24px;
		padding: 32px;
	}

	.wysiwyg-esm-slider__media {
		aspect-ratio: 856 / 400;
	}

	.wysiwyg-esm-slider__controls {
		justify-content: space-between;
	}

	.wysiwyg-esm-slider .wysiwyg-esm-slider__dots .slick-dots button {
		width: 16px;
		height: 16px;
	}

	.wysiwyg-esm-slider__arrows {
		display: flex;
	}
}

/* Desktop: Figma 200/1440 side padding. */
@media (min-width: 1280px) {
	.wysiwyg-esm-slider {
		padding: 80px 13.889%;
	}

	/* Figma: slider 920 of the 1040 content width = 88.462% (100% of the column below 1280px). */
	.wysiwyg-esm-slider__slider {
		width: 88.462%;
	}
}
