/* Learning RSInsight page — 2026 redesign */

.rsinsight-page #content-wrapper {
	background-color: #fff;
	/* Site footer is position:absolute; desktop padding (550px) is too short
	   under lg where footer is forced to ~850px — content gets covered. */
	padding-bottom: 0 !important;
}

.rsinsight-page #footer {
	position: relative;
	z-index: 4;
}

/* ── Hero ── */
.rsinsight-hero {
	position: relative;
	display: flex;
	padding: 60px 80px 0 80px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-self: stretch;
	width: 100%;
	overflow: hidden;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.rsinsight-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1740px;
	margin: 0 auto;
}

.rsinsight-hero__logo {
	display: block;
	width: auto;
	height: 96px;
	margin-bottom: 2.5rem; /* 40px — Figma */
}

.rsinsight-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 820px;
	margin-bottom: 24px; /* sit close to top of media / video frame */
}

.rsinsight-hero__title,
.rsinsight-hero__heading h1,
.rsinsight-hero__heading h2 {
	color: #1d1f1e;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 1.25rem;
}

.rsinsight-hero__subhead,
.rsinsight-hero__copy .lead {
	color: #383838;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	font-weight: 400;
	line-height: 1.6;
	opacity: 0.85;
	margin: 0 0 2rem;
	max-width: 640px;
}

.rsinsight-hero__cta.btn-primary {
	background-color: #e35205;
	border-color: #e35205;
	border-radius: 16px;
	padding: 12px 28px;
	font-weight: 600;
}

.rsinsight-hero__cta.btn-primary:hover,
.rsinsight-hero__cta.btn-primary:focus {
	background-color: #c94704;
	border-color: #c94704;
}

/* Figma media frame: 1740×840 — rounded on all corners */
.rsinsight-hero__media-wrap {
	position: relative;
	z-index: 3;
	display: flex;
	width: 100%;
	max-width: 1740px;
	aspect-ratio: 1740 / 840;
	box-sizing: border-box;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border-radius: 20px;
	background-color: transparent;
}

.rsinsight-hero__bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	pointer-events: none;
	border-radius: 20px;
}

/* Card inset: 390px sides / 150px top-bottom on 1740×840 */
.rsinsight-hero__media-card {
	position: absolute;
	z-index: 3;
	left: 22.4138%;
	right: 22.4138%;
	top: 17.857%;
	bottom: 17.857%;
	width: auto;
	height: auto;
	border-radius: 20px;
	background: #fff;
	/* Soft orange perimeter glow — subtle, not a hard outline */
	box-shadow:
		0 0 0 1px rgba(227, 82, 5, 0.22),
		0 0 18px rgba(227, 82, 5, 0.2),
		0 0 36px rgba(255, 122, 47, 0.14),
		0 10px 24px rgba(0, 0, 0, 0.06);
	/* visible so perimeter glow isn’t clipped */
	overflow: visible;
}

.rsinsight-hero__video,
.rsinsight-hero__youtube {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 20px;
	overflow: hidden;
}

.rsinsight-hero__video {
	object-fit: cover;
	object-position: center center;
}

@media (max-width: 1199.98px) {
	.rsinsight-hero {
		padding: 50px 40px 0;
	}

	.rsinsight-hero__copy {
		margin-bottom: 20px;
	}

	.rsinsight-hero__media-card {
		left: 12%;
		right: 12%;
		top: 12%;
		bottom: 12%;
	}
}

/* Tablet / mobile — match Figma phone frame; keep full 16:9 video visible */
@media (max-width: 991.98px) {
	.rsinsight-hero {
		padding: 24px 20px 0;
	}

	.rsinsight-hero__logo {
		height: 72px;
		max-width: min(100%, 320px);
		margin-bottom: 1.5rem;
		object-fit: contain;
	}

	.rsinsight-hero__copy {
		max-width: 100%;
		margin-bottom: 16px;
		padding: 0 4px;
	}

	.rsinsight-hero__title,
	.rsinsight-hero__heading h1,
	.rsinsight-hero__heading h2 {
		font-size: clamp(1.75rem, 6.5vw, 2.25rem);
		margin-bottom: 1rem;
	}

	.rsinsight-hero__subhead,
	.rsinsight-hero__copy .lead {
		font-size: 1rem;
		line-height: 1.5;
		margin-bottom: 1.75rem;
		max-width: 22rem;
	}

	.rsinsight-hero__cta.btn-primary {
		border-radius: 14px;
		padding: 14px 32px;
		font-size: 1rem;
	}

	.rsinsight-hero__media-wrap {
		/* Tall enough for a 16:9 card + margins */
		aspect-ratio: 4 / 3;
		border-radius: 20px;
	}

	.rsinsight-hero__bg-image {
		object-position: center center;
		border-radius: 20px;
	}

	.rsinsight-hero__media-card {
		left: 6%;
		right: 6%;
		top: 50%;
		bottom: auto;
		width: auto;
		height: auto;
		aspect-ratio: 16 / 9;
		transform: translateY(-50%);
		border-radius: 16px;
	}

	.rsinsight-hero__video,
	.rsinsight-hero__youtube {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		border-radius: 16px;
	}

	.rsinsight-hero__video {
		object-fit: contain;
		background: #fff;
	}
}

@media (max-width: 575.98px) {
	.rsinsight-hero {
		padding: 20px 16px 0;
	}

	.rsinsight-hero__logo {
		height: 64px;
		max-width: min(100%, 280px);
		margin-bottom: 1.25rem;
	}

	.rsinsight-hero__copy {
		margin-bottom: 12px;
	}

	.rsinsight-hero__media-wrap {
		aspect-ratio: 5 / 4;
		border-radius: 20px;
	}

	.rsinsight-hero__media-card {
		left: 5%;
		right: 5%;
		border-radius: 14px;
		box-shadow:
			0 0 0 1px rgba(227, 82, 5, 0.2),
			0 0 14px rgba(227, 82, 5, 0.16),
			0 0 28px rgba(255, 122, 47, 0.12),
			0 8px 20px rgba(0, 0, 0, 0.06);
	}

	.rsinsight-hero__video,
	.rsinsight-hero__youtube {
		border-radius: 14px;
	}
}

/* ── Why use RSInsight ── */
.rsinsight-why {
	background: #fafafa;
	display: flex;
	width: 100%;
	padding: 100px clamp(1.5rem, 15.3vw, 292px);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 60px;
	box-sizing: border-box;
}

.rsinsight-why__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
	width: 100%;
	max-width: 1321px; /* 1905 - 292*2 */
	margin: 0 auto;
}

.rsinsight-why__heading {
	margin: 0;
	color: #1d1f1e;
	text-align: center;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
}

.rsinsight-why__cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
	width: 100%;
}

.rsinsight-why__card {
	display: flex;
	flex: 1 1 280px;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	max-width: 400px;
	padding: 2rem;
	background: #fff;
	border-radius: 20px;
	box-sizing: border-box;
}

.rsinsight-why__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.rsinsight-why__icon img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.rsinsight-why__card-title {
	margin: 0;
	color: #1d1f1e;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.rsinsight-why__card-body {
	color: #383838;
	font-size: 1rem;
	line-height: 1.5;
	opacity: 0.85;
}

.rsinsight-why__card-body p {
	margin: 0;
}

.rsinsight-why__disclaimer {
	max-width: 900px;
	text-align: center;
	color: #7a7a7a;
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (max-width: 991.98px) {
	.rsinsight-why {
		padding: 4rem 1.5rem;
		gap: 2.5rem;
	}

	.rsinsight-why__inner {
		gap: 2.5rem;
	}

	.rsinsight-why__cards {
		flex-direction: column;
		align-items: stretch;
	}

	.rsinsight-why__card {
		max-width: none;
		flex: 1 1 auto;
	}
}

/* ── Explore What RSInsight Can Do ── */
.rsinsight-explore {
	background: #fafafa;
	display: flex;
	width: 100%;
	padding: 120px clamp(1.5rem, 15.3vw, 292px);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 48px;
	box-sizing: border-box;
}

.rsinsight-explore__inner {
	display: flex;
	width: 100%;
	max-width: 1321px;
	justify-content: center;
	align-items: center;
	gap: 48px;
}

.rsinsight-explore__copy {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 48px;
	padding: 40px 0;
	min-width: 0;
	max-width: 540px;
	align-self: stretch;
}

.rsinsight-explore__heading {
	margin: 0;
	color: var(--www-rocscience-com-mine-shaft, var(--color-grey-12, #1f1f1f));
	font-family: aktiv-grotesk, "Aktiv Grotesk", sans-serif;
	font-size: clamp(2rem, 4vw, 56px);
	font-style: normal;
	font-weight: 700;
	line-height: 1.107; /* ~62/56 */
	align-self: stretch;
}

.rsinsight-explore__body {
	color: var(--www-rocscience-com-mine-shaft, var(--color-grey-22, #383838));
	font-family: aktiv-grotesk, "Aktiv Grotesk", sans-serif;
	font-size: clamp(1.125rem, 1.5vw, 24px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.333; /* 32/24 */
	align-self: stretch;
}

.rsinsight-explore__body p {
	margin: 0;
}

.rsinsight-explore__cta {
	display: flex;
	height: 48px;
	max-width: var(--width-453_6, 453.6px);
	padding: 8px 24px;
	justify-content: center;
	align-items: center;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.rsinsight-explore__cta:hover,
.rsinsight-explore__cta:focus {
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	text-decoration: none;
}

.rsinsight-explore__media {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.rsinsight-explore__illustration {
	display: block;
	width: 100%;
	max-width: 733px;
	height: auto;
	object-fit: contain;
}

@media (max-width: 991.98px) {
	.rsinsight-explore {
		padding: 4rem 1.5rem;
	}

	.rsinsight-explore__inner {
		flex-direction: column;
		gap: 2.5rem;
	}

	.rsinsight-explore__copy {
		max-width: none;
		padding: 0;
		gap: 1.5rem;
		align-items: flex-start;
	}

	.rsinsight-explore__cta {
		white-space: normal;
		text-align: center;
	}
}
