/**
 * Featured Image — Frame 41
 */

.elementor-column > .elementor-element-populated:has(.elementor-widget-agency-featured-image) {
	padding: 0 !important;
}

.e-con:has(.elementor-widget-agency-featured-image) {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

.aew-featured-image {
	--aew-featured-image-bg: var(--aew-color-cream, #f8f5f1);
	--aew-featured-image-height: 400px;
	position: relative;
	isolation: isolate;
	width: 100%;
	box-sizing: border-box;
}

.aew-featured-image::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	transform: translateX(-50%);
	background-color: var(--aew-featured-image-bg);
	z-index: -1;
	pointer-events: none;
}

.aew-featured-image__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
}

.aew-featured-image__figure {
	position: relative;
	margin: 0;
	width: 100%;
	line-height: 0;
	overflow: hidden;
	border-radius: var(--aew-featured-image-radius, 24px);
}

.aew-featured-image__figure img {
	display: block;
	width: 100%;
	height: var(--aew-featured-image-height);
	max-height: none;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}

/* ── Centered text box (renders only when content is added) ──────────────── */
.aew-featured-image__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	line-height: normal;
}

.aew-featured-image__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	/* width owned by panel_width control; padding owned by panel_padding control */
	max-width: 100%;
	background-color: #fff;
	border-radius: 24px;
	text-align: center;
	box-sizing: border-box;
}

.aew-featured-image__stars {
	display: flex;
	gap: 4px;
}

.aew-featured-image__stars svg {
	width: 20px;
	height: 20px;
	fill: #f3c400;
}

.aew-featured-image__eyebrow {
	margin: 0;
	font-family: var(--aew-font-body, Poppins, sans-serif);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #305b83;
}

.aew-featured-image__title {
	margin: 0;
	font-family: var(--aew-font-heading, "DM Serif Display", serif);
	/* font-size owned by title_typography control */
	font-weight: 400;
	line-height: 1.1;
	color: #305b83;
}

.aew-featured-image__description {
	font-family: var(--aew-font-body, Poppins, sans-serif);
	font-size: 16px;
	line-height: 1.6;
	color: #5b6166;
}

.aew-featured-image__description p {
	margin: 0 0 1em;
}

.aew-featured-image__description p:last-child {
	margin-bottom: 0;
}

.aew-featured-image__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 28px;
	border: 0;
	border-radius: 8px;
	background-color: #f3c400;
	color: #252f37;
	font-family: var(--aew-font-body, Poppins, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.aew-featured-image__button:hover,
.aew-featured-image__button:focus-visible {
	opacity: 0.92;
	color: #252f37;
}

.aew-featured-image__footnote {
	margin: 0;
	font-family: var(--aew-font-body, Poppins, sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #252f37;
}

@media (max-width: 768px) {
	.aew-featured-image__overlay {
		padding: 16px;
	}
	.aew-featured-image__panel {
		/* padding owned by panel_padding control */
		gap: 16px;
	}
	/* title mobile font-size owned by title_typography control */
}

@media (min-width: 768px) {
	.aew-featured-image {
		--aew-featured-image-height: 600px;
	}
}

@media (min-width: 1024px) {
	.aew-featured-image {
		--aew-featured-image-height: 880px;
	}
}
