/* wp-content/plugins/ceca-widgets/widgets/feature-cards/feature-cards.css */
/* Feature Cards (Figma 214:1972): two 636×424 image cards, 24px gap —
   scrim, 20/30 white copy (max 560) padded 40, coloured pill 30px under
   the copy. Whole card links; image eases up on hover. Every value here
   is a default — the widget's Style tab overrides each one. */

.ceca-fc {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

/* Flex column so Style → Vertical position can move the content. */
.ceca-fc a.ceca-fc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	aspect-ratio: 636 / 424;
	overflow: hidden;
	text-decoration: none;
}

.ceca-fc__media {
	position: absolute;
	inset: 0;
	display: block;
}

.ceca-fc__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.ceca-fc__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--ceca-fc-scrim, 0.35));
}

.ceca-fc a.ceca-fc__card:hover .ceca-fc__media img,
.ceca-fc a.ceca-fc__card:focus-visible .ceca-fc__media img {
	transform: scale(1.05);
}

.ceca-fc a.ceca-fc__card:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px #c65a93;
}

.ceca-fc__content {
	position: relative;
	z-index: 1;
	display: block;
	padding: 40px;
}

/* Optional title (empty by default, so the design is unchanged). */
.ceca-fc .ceca-fc__title {
	display: block;
	max-width: 560px;
	margin: 0 0 12px;
	margin-inline: var(--ceca-fc-mi, 0 auto);
	color: #fff;
	font-size: 30px;
	line-height: 36px;
	font-weight: 700;
}

.ceca-fc__text {
	display: block;
	max-width: 560px;
	margin-inline: var(--ceca-fc-mi, 0 auto);
	font-size: 20px;
	line-height: 30px;
	color: #fff;
}

.ceca-fc .ceca-fc__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 30px;
	padding: 5px 26px;
	border-radius: 300px;
	background-color: var(--ceca-fc-pill-bg, #8cc078);
	color: var(--ceca-fc-pill-color, #000);
	font-size: 15px;
	line-height: 20px;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ceca-fc a.ceca-fc__card:hover .ceca-fc__pill {
	opacity: 0.9;
}

@media (max-width: 900px) {
	.ceca-fc {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Phones (Figma 2372:11309): text 20px inside the card, not 40. */
@media (max-width: 767px) {
	.ceca-fc__content {
		padding: 20px;
	}
}
