/* Home page slider (replaces Smart Slider 3) */

.m2b-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #eef2f6;
}

/* All slides share one grid cell, so the slider is as tall as the tallest slide
   and never jumps in height when the slide changes. */
.m2b-slider__track {
	display: grid;
}

.m2b-slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 380px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.5s ease, visibility 0s linear 1.5s;
}

.m2b-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity 1.5s ease, visibility 0s;
}

.m2b-slide__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	z-index: 0;
}

.m2b-slide__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 45px 50px;
	display: flex;
}

.m2b-slide--right .m2b-slide__inner {
	justify-content: flex-end;
}

.m2b-slide__content {
	max-width: 680px;
	padding: 30px;
}

.m2b-slide--right .m2b-slide__content {
	text-align: right;
}

.m2b-slide__eyebrow,
.m2b-slide__heading {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0;
}

.m2b-slide__eyebrow {
	color: #48596d;
	font-size: 31px;
	margin-bottom: 0.25em;
}

.m2b-slide__heading {
	color: #5c90e4;
	font-size: 54px;
	margin-bottom: 24px;
}

.m2b-slide__button {
	display: inline-block;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	background: #48596d;
	border: 3px solid #5c90e4;
	border-radius: 10px;
	padding: 10px 30px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.m2b-slide__button:hover,
.m2b-slide__button:focus-visible {
	color: #fff;
	background: #5c90e4;
}

.m2b-slide__button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #346695;
}

/* Tablet */
@media (max-width: 1199px) {
	.m2b-slide__inner { padding: 45px 50px; }
	.m2b-slide__eyebrow { font-size: 25px; }
	.m2b-slide__heading { font-size: 42px; }
}

/* Phone */
@media (max-width: 700px) {
	.m2b-slide { min-height: 300px; }
	.m2b-slide__inner { padding: 30px 20px; }
	/* Light panel behind the text so it stays readable over busy photos. */
	.m2b-slide__content {
		padding: 14px 16px;
		background: rgba(255, 255, 255, 0.8);
		border-radius: 10px;
	}
	.m2b-slide__eyebrow { font-size: 16px; }
	.m2b-slide__heading { font-size: 27px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.m2b-slide,
	.m2b-slide.is-active {
		transition: none;
	}
}
