.tivity-quote-hero {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 686px;
	overflow: hidden;
	border-radius: 28px;
	font-family: "Instrument Sans", sans-serif;
	color: #fff;
}

.tivity-quote-hero__inner {
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	min-height: inherit;
}

.tivity-quote-hero--width-full {
	width: var(--tivity-block-width-full);
	max-width: var(--tivity-block-max-full);
	margin-inline: auto;
}

/*
 * Fluid: full-bleed background only (same pattern as Content with Image).
 * Section stays in the column so __inner uses the shared block width, not 100vw.
 */
.tivity-quote-hero--width-fluid {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	overflow: visible;
	border-radius: 0;
	background: transparent;
}

.tivity-quote-hero--width-fluid::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
}

.tivity-quote-hero--width-fluid.tivity-quote-hero--purple::before {
	background: linear-gradient(285deg, var(--foreverfit-purple, #851f65) 7.74%, #ce99be 97.21%);
}

.tivity-quote-hero--width-fluid.tivity-quote-hero--teal::before {
	background: #7adbd4;
}

.tivity-quote-hero--width-fluid.tivity-quote-hero--navy::before {
	background: var(--dark-teal-gradient, linear-gradient(180deg, #00313e 0%, #1e87a1 100%));
}

.tivity-quote-hero--width-fluid .tivity-quote-hero__inner {
	position: relative;
	z-index: 1;
}

.tivity-quote-hero--width-fluid .tivity-quote-hero__inner {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* Vertical padding only; horizontal alignment comes from the widget block width. */
.tivity-quote-hero--width-fluid .tivity-quote-hero__copy {
	padding-block: 56px;
	padding-inline: 0;
}

.tivity-quote-hero--size-medium {
	min-height: 586px;
}

.tivity-quote-hero--purple {
	background: linear-gradient(285deg, var(--foreverfit-purple, #851f65) 7.74%, #ce99be 97.21%);
}

.tivity-quote-hero--teal {
	background: #7adbd4;
	color: #00313e;
}

.elementor .tivity-quote-hero--teal .tivity-quote-hero__eyebrow {
	color: var(--tivity-orange, #ff3600);
}

.tivity-quote-hero--navy {
	background: var(--dark-teal-gradient, linear-gradient(180deg, #00313e 0%, #1e87a1 100%));
}

.tivity-quote-hero__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 52%;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	width: min(
		100%,
		max(var(--tivity-quote-hero-heading, 560px), var(--tivity-quote-hero-copy, 460px))
	);
	max-width: max(var(--tivity-quote-hero-heading, 560px), var(--tivity-quote-hero-copy, 460px));
	padding: 56px 32px 56px 56px;
}

.tivity-quote-hero__eyebrow,
.tivity-quote-hero__heading,
.tivity-quote-hero__text {
	margin: 0;
}

.elementor .tivity-quote-hero__eyebrow {
	width: min(100%, var(--tivity-quote-hero-heading, 560px));
	max-width: var(--tivity-quote-hero-heading, 560px);
	margin-bottom: 12px;
	font-family: "Instrument Sans", sans-serif;
	font-size: 30px;
	font-style: normal;
	font-weight: 700;
	line-height: 30px;
}

.elementor .tivity-quote-hero__heading {
	width: min(100%, var(--tivity-quote-hero-heading, 560px));
	max-width: var(--tivity-quote-hero-heading, 560px);
	font-family: "Instrument Sans", sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

.elementor .tivity-quote-hero__text {
	width: min(100%, var(--tivity-quote-hero-copy, 460px));
	max-width: var(--tivity-quote-hero-copy, 460px);
	margin-top: 16px;
	font-family: "Instrument Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.elementor .tivity-quote-hero__eyebrow sup,
.elementor .tivity-quote-hero__heading sup,
.elementor .tivity-quote-hero__eyebrow sub,
.elementor .tivity-quote-hero__heading sub {
	font-size: 0.6em;
	line-height: 0;
}

.elementor a.tivity-quote-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin-top: 22px;
	padding: 12px 22px;
	border-radius: 999px;
	background: #00313e;
	color: #fff;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.elementor a.tivity-quote-hero__button:hover,
.elementor a.tivity-quote-hero__button:focus-visible {
	background: #001f28;
	color: #fff;
}

.elementor .tivity-quote-hero--navy a.tivity-quote-hero__button {
	background: #7adbd4;
	color: #424a57;
}

.elementor .tivity-quote-hero--navy a.tivity-quote-hero__button:hover,
.elementor .tivity-quote-hero--navy a.tivity-quote-hero__button:focus-visible {
	background: #424a57;
	color: #fff;
}

.tivity-quote-hero__media {
	position: relative;
	flex: 1 1 48%;
	box-sizing: border-box;
	min-width: 0;
}

.elementor .tivity-quote-hero__photo {
	position: absolute;
	z-index: 1;
	display: block;
	width: min(var(--tivity-quote-hero-image, 100%), 100%);
	max-width: 100%;
	height: auto;
	top: var(--tivity-quote-hero-top, auto);
	right: var(--tivity-quote-hero-right, auto);
	bottom: var(--tivity-quote-hero-bottom, auto);
	left: var(--tivity-quote-hero-left, auto);
	object-fit: contain;
	object-position: right bottom;
}

.tivity-quote-hero__quote {
	position: absolute;
	z-index: 2;
	top: var(--quote-top, auto);
	right: var(--quote-right, auto);
	bottom: var(--quote-bottom, auto);
	left: var(--quote-left, auto);
	box-sizing: border-box;
	width: min(86%, var(--tivity-quote-hero-quote-max, 340px));
	max-width: min(86%, var(--tivity-quote-hero-quote-max, 340px));
	margin: 0;
	padding: 40px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 49, 62, 0.16);
	color: #424a57;
}

.tivity-quote-hero__mark-wrap {
	position: absolute;
	top: -14px;
	left: -14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tivity-orange, #ff3600);
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 54, 0, 0.35);
}

.tivity-quote-hero__quote.is-auto {
	top: 18%;
	left: 4%;
}

.tivity-quote-hero__mark {
	display: block;
	width: 22px;
	height: auto;
	max-height: 20px;
	object-fit: contain;
}

.tivity-quote-hero__quote-text,
.tivity-quote-hero__by {
	margin: 0;
}

.elementor .tivity-quote-hero__quote-text {
	color: #424a57;
	font-family: "Instrument Sans", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 30px;
}

.elementor .tivity-quote-hero__by {
	margin-top: 16px;
	color: #424a57;
	font-family: "Instrument Sans", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 34px;
}

@media (max-width: 1024px) {
	.tivity-quote-hero__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.tivity-quote-hero__copy {
		flex: none;
		width: 100%;
		max-width: none;
		padding: 48px 20px 16px;
	}

	.tivity-quote-hero--width-fluid .tivity-quote-hero__copy {
		padding: 48px 0 16px;
	}

	.tivity-quote-hero--width-fluid .tivity-quote-hero__media {
		padding-inline: 0;
	}

	.tivity-quote-hero__media {
		display: flex;
		flex-direction: column;
		align-items: center;
		flex: none;
		width: 100%;
		padding: 8px 20px 32px;
	}

	.elementor .tivity-quote-hero__eyebrow,
	.elementor .tivity-quote-hero__heading,
	.elementor .tivity-quote-hero__text {
		width: 100%;
		max-width: 100%;
	}

	.elementor .tivity-quote-hero__heading {
		font-size: 34px;
	}

	.elementor .tivity-quote-hero__media .tivity-quote-hero__photo {
		position: relative;
		top: auto;
		right: auto;
		bottom: -32px;
		left: auto;
		order: 2;
		width: 100%;
		max-width: 100%;
		object-position: center bottom;
	}

	.tivity-quote-hero__quote,
	.tivity-quote-hero__quote.is-auto {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		order: 1;
		width: min(100%, var(--tivity-quote-hero-quote-max, 340px));
		max-width: min(100%, var(--tivity-quote-hero-quote-max, 340px));
		margin: 0 0 20px;
	}
}

@media (max-width: 767px) {
	.tivity-quote-hero:not(.tivity-quote-hero--width-fluid) {
		border-radius: 20px;
	}

	.elementor .tivity-quote-hero__heading {
		font-size: 28px;
	}
}
