/* ── Fill parent column height via flex (avoids margin-bottom overflow) ─── */
.elementor-widget-cf-feature-card {
	display: flex;
	flex-direction: column;
	margin-bottom: 0 !important;
}

.elementor-widget-cf-feature-card .elementor-widget-container {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cf-feature-card__link {
	flex: 1;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

/* ── Card shell ──────────────────────────────────────────────────────────── */
.cf-feature-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 2px 20px rgba( 0, 0, 0, 0.08 );
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	flex: 1;
	position: relative;
}

/* Gradient overlay — sits above background image, below content */
.cf-feature-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	z-index: 0;
}

/* ── Body (text + button) ────────────────────────────────────────────────── */
.cf-feature-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.cf-feature-card__content {
	padding: 24px 24px 12px;
}

/* ── SVG icon above heading ───────────────────────────────────────────────── */

.cf-feature-card__icon {
	display: block;
	margin-bottom: 0.75rem;
	line-height: 0;
}

.cf-feature-card__icon svg {
	display: inline-block; /* follows parent text-align */
	width: 36px;
	height: 36px;
	fill: currentColor;
	vertical-align: middle;
}

.cf-feature-card__heading {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
}

.cf-feature-card__desc {
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0;
	opacity: 0.75;
}

.cf-feature-card__footer {
	display: flex;
	justify-content: flex-end;
	padding: 0 24px 16px;
}

.cf-feature-card__btn {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 8px;
	background-color: #181075;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.cf-feature-card__btn:hover {
	opacity: 0.85;
	color: #ffffff;
}

/* ── Image wrap — shared base ────────────────────────────────────────────── */
.cf-feature-card__image-wrap {
	flex-shrink: 0;
	padding: 12px 24px 0;
	position: relative;
	z-index: 1;
}

.cf-feature-card__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px 8px 0 0;
}

/* ── Image position: bottom (default) ───────────────────────────────────── */
/* Body grows to fill all space above the image; image sits at the natural  */
/* DOM-order bottom. flex-grow (not flex:1) keeps flex-basis:auto so the    */
/* body never collapses when the card has no constrained height.            */
.cf-feature-card--img-bottom .cf-feature-card__body {
	flex-grow: 1;
}

/* ── Image position: top ─────────────────────────────────────────────────── */
/* Body fills remaining space below the image                               */
.cf-feature-card--img-top .cf-feature-card__body {
	flex-grow: 1;
}

.cf-feature-card--img-top .cf-feature-card__image-wrap {
	padding: 0 24px 12px;
}

.cf-feature-card--img-top .cf-feature-card__img {
	border-radius: 0 0 8px 8px;
}

/* ── Image position: left / right ────────────────────────────────────────── */
.cf-feature-card--img-left,
.cf-feature-card--img-right {
	flex-direction: row;
	align-items: stretch;
}

.cf-feature-card--img-left .cf-feature-card__image-wrap,
.cf-feature-card--img-right .cf-feature-card__image-wrap {
	flex: none;
	width: 45%;
	margin-top: 0;
	padding: 0;
	align-self: flex-start;
}

.cf-feature-card--img-left .cf-feature-card__img,
.cf-feature-card--img-right .cf-feature-card__img {
	width: 100%;
	height: auto;
	border-radius: 0;
}

.cf-feature-card--img-left .cf-feature-card__body,
.cf-feature-card--img-right .cf-feature-card__body {
	flex: 1;
	min-width: 0;
}
