/**
 * Content Showcase — one feature block above a row of linked cards.
 *
 * Colors, sizes, typography, column count and the panel's appearance are all
 * Elementor controls; they emit more specific selectors and so override the
 * fallbacks below.
 */

.irpp-showcase {
	padding: 2.5rem;
	background: #F2F6F7;
}

.irpp-showcase__heading {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

/* Independent of the heading: a showcase can have one, the other, or both. */
.irpp-showcase__rule {
	margin-bottom: 1.5rem;
	border-top: 3px solid #231F20;
}

/* --- Feature block --- */

/*
 * grid-template-columns and the media item's order below are also set by the
 * Layout/Reverse order controls (Style tab), responsively -- there is no static
 * breakpoint here. Those controls decide when the feature stacks, using whatever
 * breakpoints the site has configured in Elementor. Their "row"/off state emits
 * an empty (and so dropped) declaration rather than "revert" -- revert would
 * roll back to the user-agent default instead of leaving whatever this rule (or
 * Image width) already set.
 */
.irpp-showcase__feature {
	display: grid;
	grid-template-columns: 50% 1fr;
	gap: 2.5rem;
	align-items: center;
}

.irpp-showcase__media {
	display: block;
	min-width: 0;
}

.irpp-showcase__media img {
	display: block;
	width: 100%;
	height: auto;
}

.irpp-showcase__content {
	min-width: 0;
}

.irpp-showcase__eyebrow {
	margin: 0 0 0.75rem;
	color: #505158;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.irpp-showcase__title {
	margin: 0 0 0.75rem;
	font-size: 2rem;
	line-height: 1.2;
}

.irpp-showcase__excerpt {
	margin-bottom: 1.5rem;
}

.irpp-showcase__excerpt p:last-child {
	margin-bottom: 0;
}

/* --- Button --- */

.irpp-showcase__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #940027;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.irpp-showcase__button-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.irpp-showcase__button svg {
	width: 1em;
	height: 1em;
	fill: #940027;
}

/* Both the plain pill and the download pill wear this class. */
.irpp-showcase__button--pill {
	padding: 0.85rem 2rem;
	border: 1px solid #940027;
	border-radius: 999px;
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}

.irpp-showcase__button--pill:hover,
.irpp-showcase__button--pill:focus-visible {
	background: #940027;
	color: #FFFFFF;
}

.irpp-showcase__button--pill:hover svg,
.irpp-showcase__button--pill:focus-visible svg {
	fill: #FFFFFF;
}

.irpp-showcase__button--arrow svg {
	transition: transform 0.2s ease;
}

.irpp-showcase__button--arrow:hover svg {
	transform: translateX( 0.25rem );
}

/* --- Card row --- */

/*
 * Column count is the Cards > Columns control, responsively. The fallback here
 * matches its default so the row is never a single stack before Elementor's
 * generated CSS loads.
 */
.irpp-showcase__cards {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.irpp-showcase__card {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.irpp-showcase__card-media {
	display: block;
	overflow: hidden;
}

.irpp-showcase__card-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.irpp-showcase__card:hover .irpp-showcase__card-media img,
.irpp-showcase__card:focus-visible .irpp-showcase__card-media img {
	transform: scale( 1.03 );
}

.irpp-showcase__card-title {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.95rem;
	line-height: 1.35;
}

.irpp-showcase__card:hover .irpp-showcase__card-title,
.irpp-showcase__card:focus-visible .irpp-showcase__card-title {
	text-decoration: underline;
}

@media ( prefers-reduced-motion: reduce ) {

	.irpp-showcase__button,
	.irpp-showcase__button--arrow svg,
	.irpp-showcase__card-media img {
		transition: none;
	}
}
