/**
 * RSI Toolkit — Media Card widget.
 *
 * Baked to the rsi_v2 ".achievements" card: full-width black card, image one
 * side (1.12fr) + copy the other (0.88fr, min 320px), 8px radius, media
 * min-height 460, copy padding 64, Alexandria 42px title / 22px text, white.
 * Elementor Style-tab controls override every value per-instance.
 */

.rsi-media-card {
	/* Vertical padding comes from the Elementor container. */
}

.rsi-media-card__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 120px;
}

.rsi-media-card__card {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
	color: #fff;
}

.rsi-media-card--right .rsi-media-card__card {
	grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
}

.rsi-media-card__media {
	/* Stretch to the full card height (covering the copy side) unless the
	   Image Height control sets an explicit height — align-self beats the
	   container's align-items, so the image always covers by default. */
	align-self: stretch;
	min-height: 460px;
	overflow: hidden;
}

/* width/height forced so Woodmart's `img { height: auto !important }` can't
   letterbox the photo (same fix as the galaxy tiles). */
.rsi-media-card__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}

.rsi-media-card__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px;
	min-width: 0;
}

.rsi-media-card__title {
	margin: 0 0 28px;
	font-family: 'Alexandria', sans-serif;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.16;
	color: #fff;
}

.rsi-media-card__text {
	margin: 0;
	font-family: 'Alexandria', sans-serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.65;
	letter-spacing: .3px;
	color: #fff;
}

/* "View more" pill — own classes + resets so the theme's link/button styles
   don't bleed in. Sits on the card's copy side, aligned to the text start. */
.rsi-media-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	align-self: flex-start;
	margin-top: 32px;
	font-family: 'Alexandria', sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .3px;
	color: #bf0031 !important;
	background: #ffffff;
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.rsi-media-card__btn:hover,
.rsi-media-card__btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
	filter: brightness(.98);
}

.rsi-media-card__btn-arrow {
	display: block;
}

@media (max-width: 1024px) {
	.rsi-media-card__inner {
		padding: 0 40px;
	}
	/* Stack on tablet/mobile with the image on top of the section. */
	.rsi-media-card__card,
	.rsi-media-card--left .rsi-media-card__card,
	.rsi-media-card--right .rsi-media-card__card {
		grid-template-columns: 1fr !important;
	}
	.rsi-media-card__media {
		order: -1;
		min-height: 0;
		height: 320px;
	}
	.rsi-media-card__copy {
		padding: 48px;
	}
}

@media (max-width: 768px) {
	.rsi-media-card {
		padding: 40px 0;
	}
	.rsi-media-card__inner {
		padding: 0 20px;
	}
	.rsi-media-card__card,
	.rsi-media-card--right .rsi-media-card__card {
		grid-template-columns: 1fr;
	}
	.rsi-media-card__media {
		min-height: 0;
		height: 245px;
	}
	.rsi-media-card__copy {
		padding: 32px;
	}
	.rsi-media-card__title {
		font-size: 24px;
		line-height: 1.2;
		margin-bottom: 15px;
	}
	.rsi-media-card__text {
		font-size: 16px;
		line-height: 1.5;
		letter-spacing: .5px;
	}
}
