/* ---------- Grid ---------- */
.rc {
	--rc-dur: 250ms;
	--rc-nudge: 4px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.rc-equal-yes .rc { align-items: stretch; }
.rc .rc__card { align-self: start; }
.rc-equal-yes .rc .rc__card { align-self: stretch; }

/* ---------- Card ---------- */
.rc .rc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid #e3e7ee;
	box-shadow: 0 2px 4px rgba(16, 32, 64, .08);
	transition: background-color var(--rc-dur) ease, border-color var(--rc-dur) ease,
		box-shadow var(--rc-dur) ease, transform var(--rc-dur) ease;
}

/* ---------- Image ---------- */
.rc .rc__media {
	position: relative;
	flex: 0 0 auto;
	height: 150px;
	overflow: hidden;
}
.rc .rc__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: background var(--rc-dur) ease, opacity var(--rc-dur) ease;
}
.rc .rc__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center;
	transition: transform var(--rc-dur) ease, opacity var(--rc-dur) ease, filter var(--rc-dur) ease;
}

/* ---------- Body ---------- */
.rc .rc__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 28px;
	text-align: left;
}
.rc .rc__label {
	align-self: var(--rc-ai, flex-start);
	margin: 0 0 12px;
	color: #5f6672;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.rc .rc__title {
	margin: 0 0 14px;
	padding: 0;
	min-height: 2.5em;
	color: #0d2a5c;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
	transition: color var(--rc-dur) ease;
}
.rc .rc__title::before,
.rc .rc__title::after { content: none; }
.rc .rc__desc {
	margin: 0 0 28px;
	padding: 0;
	color: #5b6270;
	font-size: 14px;
	line-height: 1.7;
	transition: color var(--rc-dur) ease;
}
.rc .rc__desc:last-child { margin-bottom: 0; }

/* ---------- Button (protected from theme / Kit link + button styles) ---------- */
.rc .rc__actions {
	display: flex;
	justify-content: var(--rc-ai, flex-start);
	margin: 0;
}
.rc-pin-yes .rc .rc__actions { margin-top: auto; }
.rc .rc__btn {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	column-gap: 12px;
	width: 100%;
	height: auto !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	text-decoration: none !important;
	white-space: normal !important;
	float: none !important;
	cursor: pointer;
	transition: background-color var(--rc-dur) ease, color var(--rc-dur) ease,
		border-color var(--rc-dur) ease, box-shadow var(--rc-dur) ease;
}
.rc .rc__btn--primary { background-color: #2f6fde; color: #fff; border-color: #2f6fde; }
.rc .rc__btn--primary:hover,
.rc .rc__btn--primary:focus { background-color: #1f56b8; color: #fff; border-color: #1f56b8; }
.rc .rc__btn--outline { background-color: #fff; color: #1f4fb5; border-color: #a9bbdf; }
.rc .rc__btn--outline:hover,
.rc .rc__btn--outline:focus { background-color: #f2f6fd; color: #1f4fb5; border-color: #2f6fde; }
.rc .rc__btn:focus-visible { outline: 2px solid #2f6fde; outline-offset: 2px; }
.rc .rc__btn-text { display: inline; }
.rc .rc__btn-icon {
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 0;
	transition: transform var(--rc-dur) ease, color var(--rc-dur) ease;
}
.rc .rc__btn-icon svg { width: 16px; height: 16px; }
.rc .rc__btn-icon i { line-height: 1; }

/* Icon nudge */
.rc .rc__btn--arrow:hover .rc__btn-icon,
.rc .rc__btn--external:hover .rc__btn-icon,
.rc .rc__btn--custom:hover .rc__btn-icon,
.rc.rc--card-link .rc__card:hover .rc__btn--arrow .rc__btn-icon,
.rc.rc--card-link .rc__card:hover .rc__btn--external .rc__btn-icon,
.rc.rc--card-link .rc__card:hover .rc__btn--custom .rc__btn-icon { transform: translateX(var(--rc-nudge)); }
.rc .rc__btn--icon-before.rc__btn--arrow:hover .rc__btn-icon { transform: translateX(calc(-1 * var(--rc-nudge))); }
.rc .rc__btn--download:hover .rc__btn-icon,
.rc.rc--card-link .rc__card:hover .rc__btn--download .rc__btn-icon { transform: translateY(var(--rc-nudge)); }

/* Whole card clickable: the button link stretches over the card */
.rc.rc--card-link .rc__card { cursor: pointer; }
.rc.rc--card-link .rc__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ---------- Responsive fallbacks (Elementor controls override these) ---------- */
@media (max-width: 1024px) {
	.rc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.rc { grid-template-columns: minmax(0, 1fr); }
	.rc .rc__body { padding: 22px 22px 24px; }
	.rc .rc__title { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rc .rc__card, .rc .rc__media img, .rc .rc__btn, .rc .rc__btn-icon { transition: none; }
	.rc .rc__card:hover { transform: none; }
}
