/**
 * Solutions Highlight block styles.
 */

.solutions-highlight {
	background-color: #f9f8f6;
	padding-top: 80px;
	padding-bottom: 70px;
}

.solutions-highlight .wide-wrap {
	position: relative;
	padding: 0;
}

.solutions-highlight .solutions-highlight-heading {
	font-family: var(--wp--preset--font-family--awesome-serif);
	font-weight: 500;
	font-size: 42px;
	line-height: 1.15;
	color: #2d2926;
	margin: 0 auto 25px;
	max-width: 18em;
	text-align: center;
}

.solutions-highlight .solutions-highlight-heading em {
	font-style: italic;
}

.solutions-highlight .solutions-highlight-intro {
	font-family: var(--wp--preset--font-family--inter);
    font-size: 16px;
    line-height: 28px;
    color: #2d2926;
    max-width: 43rem;
    margin: 0 auto 40px;
    text-align: center;
}

/* Slider stage — 966px to accommodate overhanging notices */
.solutions-highlight .solutions-highlight-slider,
.solutions-highlight .wp-block-group.solutions-highlight-slider {
	position: relative;
	width: 100%;
	max-width: 966px;
	margin: 0 auto;
	padding: 0;
}

/* Fixed-height track: slides stay absolute so fades never collapse layout */
.solutions-highlight .solutions-highlight-track {
	position: relative;
	width: 100%;
	/* Fallback before JS measures; matches ~850×566 image + notice overhang */
	min-height: 566px;
}

.solutions-highlight .solutions-highlight-slide,
.solutions-highlight .wp-block-group.solutions-highlight-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 966px;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	z-index: 0;
}

.solutions-highlight .solutions-highlight-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.solutions-highlight .solutions-highlight-slide.is-leaving {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Editor: show all slides stacked vertically for editing */
.editor-styles-wrapper .solutions-highlight .solutions-highlight-slide,
.editor-styles-wrapper .solutions-highlight .wp-block-group.solutions-highlight-slide {
	position: relative !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	margin-bottom: 2rem;
	min-height: 0;
}

.editor-styles-wrapper .solutions-highlight .solutions-highlight-controls {
	display: none;
}

/* Main image 850×566, centered in 966 stage */
.solutions-highlight .solutions-highlight-image,
.solutions-highlight .wp-block-image.solutions-highlight-image {
	display: block;
	width: 850px;
	max-width: calc(100% - 116px);
	height: auto;
	margin: 0 auto;
	border-radius: 50px;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.solutions-highlight .solutions-highlight-image img,
.solutions-highlight .wp-block-image.solutions-highlight-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 850 / 566;
	object-fit: cover;
	border-radius: 12px;
}

/* Mobile slide image — hidden on desktop; shown ≤768px when present */
.solutions-highlight .solutions-highlight-image-mobile {
	display: none;
}

.solutions-highlight .solutions-highlight-image-mobile img {
	aspect-ratio: 3 / 4;
}

.editor-styles-wrapper .solutions-highlight .solutions-highlight-image-mobile {
	display: block;
	margin-top: 1rem;
	max-width: 100%;
	width: 100%;
}

/* Notice pills */
.solutions-highlight .solutions-highlight-notice,
.solutions-highlight .wp-block-group.solutions-highlight-notice {
	position: absolute;
	z-index: 3;
	display: grid;
	grid-template-columns: 28px 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 0;
	align-items: center;
	max-width: 335px;
	padding: 12px 18px 12px 14px;
	background: #F9F8F5;
    border: 1px solid #2D2926;
	border-radius: 999px;
	box-sizing: border-box;
	opacity: 0;
	transform: scale(0.92) translateY(6px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.solutions-highlight .solutions-highlight-notice.is-visible,
.editor-styles-wrapper .solutions-highlight .solutions-highlight-notice {
	opacity: 1;
	transform: scale(1) translateY(0);
	pointer-events: auto;
}

.solutions-highlight .solutions-highlight-notice.notice-1 {
	top: 12%;
	left: 0;
}

.solutions-highlight .solutions-highlight-notice.notice-2 {
	bottom: 14%;
	left: 9%;
}

.solutions-highlight .solutions-highlight-notice.notice-3 {
	top: 42%;
	right: 0;
	left: auto;
}

.solutions-highlight .solutions-highlight-notice-icon,
.solutions-highlight .wp-block-image.solutions-highlight-notice-icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: center;
	width: 28px;
	margin: 0;
}

.solutions-highlight .solutions-highlight-notice-icon img,
.solutions-highlight .wp-block-image.solutions-highlight-notice-icon img {
	display: block;
	width: 24px;
	height: 24px;
}

.solutions-highlight .solutions-highlight-notice-title,
.solutions-highlight .solutions-highlight-notice h3 {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: #2d2926;
	margin: 0;
}

.solutions-highlight .solutions-highlight-notice-subtitle,
.solutions-highlight .solutions-highlight-notice p {
	grid-column: 2;
	grid-row: 2;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #2d2926;
	margin: 0;
}

/* Controls */
.solutions-highlight .solutions-highlight-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 36px;
	position: relative;
	z-index: 4;
}

.solutions-highlight .solutions-highlight-prev,
.solutions-highlight .solutions-highlight-next {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
	line-height: 0;
	color: #2d2926;
}

.solutions-highlight .solutions-highlight-prev:focus-visible,
.solutions-highlight .solutions-highlight-next:focus-visible,
.solutions-highlight .solutions-highlight-dot:focus-visible {
	outline: 2px solid #2d2926;
	outline-offset: 3px;
}

.solutions-highlight .solutions-highlight-dots {
	display: flex;
	align-items: center;
	gap: 10px;
}

.solutions-highlight .solutions-highlight-dot {
	appearance: none;
	width: 12px;
	height: 12px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #2d2926;
	background: transparent;
	cursor: pointer;
}

.solutions-highlight .solutions-highlight-dot.is-active {
	background: #2d2926;
}

@media (max-width: 1024px) {
	.solutions-highlight .solutions-highlight-heading {
		font-size: 34px;
	}

	.solutions-highlight .solutions-highlight-notice {
		max-width: 200px;
		padding: 10px 14px 10px 12px;
	}
}

@media (max-width: 768px) {
	.solutions-highlight {
		padding-top: 56px;
		padding-bottom: 64px;
	}

	.solutions-highlight .solutions-highlight-heading {
		font-size: 35px;
		max-width: 100%;
	}

	.solutions-highlight .solutions-highlight-intro {
		margin-bottom: 32px;
		padding: 0 12px;
	}

	.solutions-highlight .solutions-highlight-image,
	.solutions-highlight .wp-block-image.solutions-highlight-image {
		max-width: 100%;
		width: 100%;
		border-radius: 32px;
	}

	.solutions-highlight .solutions-highlight-image img,
	.solutions-highlight .wp-block-image.solutions-highlight-image img {
		aspect-ratio: 3 / 4;
		object-fit: cover;
	}

	/* Swap to mobile image when one exists on the slide */
	.solutions-highlight .solutions-highlight-slide:has(.solutions-highlight-image-mobile) > .solutions-highlight-image:not(.solutions-highlight-image-mobile),
	.solutions-highlight .wp-block-group.solutions-highlight-slide:has(.solutions-highlight-image-mobile) > .wp-block-image.solutions-highlight-image:not(.solutions-highlight-image-mobile) {
		display: none;
	}

	.solutions-highlight .solutions-highlight-image-mobile,
	.solutions-highlight .wp-block-image.solutions-highlight-image-mobile {
		display: block;
		max-width: 100%;
		width: 100%;
	}

	.solutions-highlight .solutions-highlight-slide,
	.solutions-highlight .wp-block-group.solutions-highlight-slide {
		min-height: 0;
		padding-bottom: 0;
	}

	.solutions-highlight .solutions-highlight-track {
		min-height: 0;
	}

	.solutions-highlight .solutions-highlight-notice {
		max-width: min(200px, 58vw);
		padding: 8px 12px 8px 10px;
	}

	.solutions-highlight .solutions-highlight-notice.notice-1 {
		top: 8%;
		left: 0;
	}

	.solutions-highlight .solutions-highlight-notice.notice-2 {
		bottom: 10%;
		left: 4%;
	}

	.solutions-highlight .solutions-highlight-notice.notice-3 {
		top: 40%;
		right: 0;
		left: auto;
	}

	.solutions-highlight .solutions-highlight-controls {
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.solutions-highlight .solutions-highlight-slide,
	.solutions-highlight .solutions-highlight-notice {
		transition: none;
	}
}
@media (max-width: 550px) {
	    .solutions-highlight .solutions-highlight-controls {
        margin-top: 10px;
    }
}