.rover-page {
	background: #ffffff;
	overflow-x: hidden;
}

.rover-page .wp-block-group:not(.rover-hero) {
	margin-top: 0;
	margin-bottom: 0;
}

.rover-page .wp-block-group__inner-container > *:first-child {
	margin-top: 0;
}

.rover-page .wp-block-group__inner-container > *:last-child {
	margin-bottom: 0;
}


.rover-page.alignfull,
.rover-hero.alignfull {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.rover-hero {
	position: relative;
	padding: 80px 24px 60px;
	min-height: 420px;
	background-image: url('https://readthinkcode.org/wp-content/uploads/2026/04/cardboard-rover.webp');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	overflow: hidden;
	filter: brightness(1.12) contrast(1.05);
}

.rover-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.35) 0%,
		rgba(0,0,0,0.18) 45%,
		rgba(0,0,0,0.05) 75%,
		rgba(0,0,0,0.00) 100%
	);
	z-index: 1;
}

.rover-hero > .wp-block-group__inner-container {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.rover-hero__content {
	max-width: 650px;
	background: rgba(0,0,0,0.28);
	padding: 30px;
	border-radius: 22px;
	backdrop-filter: blur(3px);
}

.rover-eyebrow,
.rover-hero__title,
.rover-hero__text {
	color: #ffffff;
}

.rover-eyebrow {
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 14px;
}

.rover-hero__title {
	font-size: 46px;
	line-height: 1.1;
	margin: 0 0 18px;
}

.rover-hero__text {
	font-size: 18px;
	line-height: 1.7;
	margin: 0;
}

.rover-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding-left: 0;
	margin: 18px 0 0;
}

.rover-hero__tags li {
	background: rgba(255,255,255,0.16);
	color: #ffffff;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}

.rover-intro,
.rover-gallery-section,
.rover-reference-section,
.rover-code-section {
	padding: 24px 24px 12px;
}

.rover-intro__text {
	max-width: 850px;
	margin: 0 auto;
	text-align: center;
	font-size: 18px;
	line-height: 1.7;
	color: #475569;
}

.rover-section-title {
	margin-bottom: 16px;
	font-size: 34px;
	color: #111827;
}

.rover-gallery {
	gap: 20px;
}

.rover-gallery__image img {
	width: 100%;
	display: block;
	border-radius: 18px;
}

.rover-overview {
	gap: 32px;
	padding: 8px 24px 24px;
}

.rover-supplies,
.rover-build {
	min-width: 0;
}

.rover-supplies__list {
	line-height: 1.7;
}

.rover-step {
	border: 1px solid #dbe3ee;
	border-radius: 14px;
	background: #ffffff;
	margin-bottom: 14px;
	overflow: hidden;
	color: #111827;
}

.rover-step summary {
	cursor: pointer;
	padding: 16px 18px;
	font-weight: 600;
	background: #eef6ff; /* 👈 soft blue */
	color: #111827;
	list-style: none;
	border-left: 5px solid #1e5a8a;
}

.rover-step p {
	padding: 0 18px 18px;
	margin: 0;
	line-height: 1.7;
	color: #475569;
}

.rover-step p,
.rover-step li {
	color: #1f2937;
}

.rover-reference-grid {
	gap: 20px;
}

.rover-reference__image img {
	width: 100%;
	display: block;
	border-radius: 18px;
}

.rover-reference__image figcaption {
	margin-top: 8px;
	text-align: center;
	font-size: 14px;
	color: #475569;
}

.rover-code-section pre {
	border-radius: 16px;
	padding: 20px;
}

.rover-bottom {
	gap: 40px;
	align-items: center;
	padding: 8px 24px 40px;
}

.rover-bottom > .wp-block-column {
	min-width: 0;
}

.rover-bottom__right {
	background: #f8fbff;
	padding: 28px;
	border-radius: 22px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.rover-bottom__text,
.rover-cta__text {
	font-size: 17px;
	line-height: 1.7;
	color: #475569;
}

.rover-cta__buttons {
	margin-top: 18px;
}

/* Remove default arrow */
.rover-step summary::-webkit-details-marker {
	display: none;
}

.rover-step a {
	color: #2563eb;
}

@media (max-width: 900px) {
	.rover-hero {
		padding: 70px 20px 55px;
	}

	.rover-hero__title {
		font-size: 38px;
	}

	.rover-section-title {
		font-size: 30px;
	}
}

@media (max-width: 781px) {
	.rover-hero__content {
		padding: 22px 20px;
	}

	.rover-hero__title {
		font-size: 32px;
	}

	.rover-hero__text,
	.rover-intro__text,
	.rover-bottom__text,
	.rover-cta__text {
		font-size: 16px;
	}

	.rover-overview,
	.rover-bottom {
		gap: 24px;
	}

	.rover-bottom__right {
		padding: 22px 20px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.rover-hero {
		padding: 60px 18px 48px;
	}

	.rover-hero__title {
		font-size: 28px;
	}

	.rover-section-title,
	.rover-cta__title {
		font-size: 24px;
	}
}