/**
 * RSI Toolkit — Knowledge Band widget.
 *
 * Baked to the 2026 Figma "Knowledge is at the heart of our mission" section:
 * brand-red background photo + dark overlay, eyebrow bar + Alexandria-Bold 34px
 * heading + 20px copy + dark CTA on one side, a rounded photo on the other.
 * Side-by-side on desktop, stacked (photo below) on mobile.
 */

.rsi-knowledge {
	position: relative;
	overflow: hidden;
	/* Background image + vertical padding are set on the Elementor container;
	   the widget keeps only the dark scrim (::before) for text readability. */
}

.rsi-knowledge::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .2);
	pointer-events: none;
	z-index: 0;
}

.rsi-knowledge__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 112px;
	padding-bottom: 112px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 582px;
	gap: 60px;
	align-items: center;
}

.rsi-knowledge--left .rsi-knowledge__inner {
	grid-template-columns: 582px minmax(0, 1fr);
}

.rsi-knowledge--left .rsi-knowledge__photo {
	order: -1;
}

.rsi-knowledge__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.rsi-knowledge__bar {
	width: 48px;
	height: 9px;
	background: #fff;
	margin-bottom: 20px;
}

.rsi-knowledge__title {
	font-family: 'Alexandria', sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 41px;
	letter-spacing: .25px;
	color: #fff;
	margin: 0 0 30px;
}

.rsi-knowledge__desc {
	font-family: 'Alexandria', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 29px;
	letter-spacing: .15px;
	color: #fff;
	margin: 0 0 30px;
}

/* Signature under the statement. The desc closes its own 30px gap, so this sits
   directly beneath it and reopens the same gap below for the button. */
.rsi-knowledge__attrib {
	margin: -14px 0 30px;
}

.rsi-knowledge__attrib-name,
.rsi-knowledge__attrib-role {
	display: block;
}

.rsi-knowledge__attrib-name {
	font-family: 'Alexandria', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: #fff;
}

/* Lighter than the name, but on the red band it has to stay legible — hence an
   alpha white rather than the testimonial's grey. */
.rsi-knowledge__attrib-role {
	font-family: 'Alexandria', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: .4px;
	color: rgba(255, 255, 255, .78);
	margin-top: 2px;
}

.rsi-knowledge__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 12px;
	background: #171c1f;
	color: #fff;
	font-family: 'Alexandria', sans-serif;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: .3px;
	line-height: 24px;
	text-decoration: none;
	transition: opacity .2s;
}

.rsi-knowledge__btn:hover {
	opacity: .85;
	color: #fff;
}

.rsi-knowledge__photo {
	width: 100%;
	aspect-ratio: 582 / 388;
	border-radius: 8px;
	overflow: hidden;
}

.rsi-knowledge__photo img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.rsi-knowledge__inner,
	.rsi-knowledge--left .rsi-knowledge__inner {
		grid-template-columns: 1fr !important;
		gap: 40px;
	}

	.rsi-knowledge__photo,
	.rsi-knowledge--left .rsi-knowledge__photo {
		order: 2;
	}
}

@media (max-width: 767px) {
	.rsi-knowledge__title {
		font-size: 30px;
		line-height: 38px;
	}

	.rsi-knowledge__desc {
		font-size: 18px;
		line-height: 27px;
	}
}
