.codebyte-page {
	background:
		radial-gradient(#e5e7eb 1px, transparent 1px),
		linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	background-size: 22px 22px, 100% 100%;
	padding-bottom: 50px;
}

.codebyte-page ul li {
	margin-bottom: 0;
}

.codebyte-page ul li:last-child {
	margin-bottom: 0;
}

.codebyte-hero {
	position: relative;
	/*padding: 44px 24px 40px;
	min-height: 260px;*/
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 28px;
	background-image: url('https://readthinkcode.org/wp-content/uploads/2026/04/codebyte-hero.webp');
}

.codebyte-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.26) 0%,
		rgba(0,0,0,0.12) 45%,
		rgba(0,0,0,0.04) 75%,
		rgba(0,0,0,0.00) 100%
	);
	z-index: 1;
}

.codebyte-hero__content {
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, 0.38);
	padding: 22px 24px;
	border-radius: 18px;
	max-width: 620px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.codebyte-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.16);
	color: #ffffff;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.codebyte-title {
	color: #ffffff;
	font-size: clamp(1.9rem, 3.5vw, 2.8rem);
	line-height: 1.12;
	margin-bottom: 12px;
	text-shadow: 0 3px 10px rgba(0,0,0,0.30);
}

.codebyte-section-title {
	text-align: center;
}

.codebyte-subtext {
	max-width: 680px;
	color: #ffffff;
	font-size: 1rem;
	line-height: 1.6;
	text-shadow: 0 3px 10px rgba(0,0,0,0.30);
}

.codebyte-content {
	margin-top: 32px !important;
}

.indent {
	padding-left: 18px;
}

.codebyte-intro,
.codebyte-next-step {
	border-radius: 22px;
	padding: 24px 26px;
	box-shadow: 0 14px 32px rgba(0,0,0,0.08);
	margin-bottom: 24px;
}

.codebyte-top-cards {
	gap: 24px;
	margin-bottom: 18px;
}

.codebyte-info-card {
	background: #ffffff;
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 14px 32px rgba(0,0,0,0.08);
	height: 100%;
	text-align: center;
}

.codebyte-info-card h3 {
	margin-top: 0;
	margin-bottom: 14px;
	text-align: center;
}

.codebyte-accordion {
	background: #ffffff;
	border: 1px solid #e5edf5;
	border-radius: 20px;
	padding: 0;
	margin-bottom: 18px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.codebyte-accordion summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 22px;
	font-weight: 700;
	font-size: 1.02rem;
	background: #eef6ff;
	border-left: 5px solid #1e5a8a;
	color: #111827;
}

.codebyte-accordion summary::-webkit-details-marker {
	display: none;
}

.codebyte-accordion[open] summary {
	background: #f1f6fb;
}

.codebyte-accordion > *:not(summary) {
	padding-left: 22px;
	padding-right: 22px;
}

.codebyte-accordion p,
.codebyte-accordion ul,
.codebyte-accordion ol,
.codebyte-accordion .wp-block-code,
.codebyte-accordion h3,
.codebyte-accordion .wp-block-image,
.codebyte-accordion .wp-block-buttons {
	margin-top: 16px;
	margin-bottom: 16px;
}

.codebyte-accordion ul,
.codebyte-accordion ol {
	padding-left: 22px;
}

.codebyte-page .wp-block-code {
	background: #0f172a;
	border-radius: 14px;
	padding: 16px 18px;
	overflow-x: auto;
	box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.codebyte-page .wp-block-code code {
	color: #f8fafc;
	font-family: Consolas, Monaco, monospace;
	font-size: 14px;
	line-height: 1.6;
	display: block;
}


.code-output {
	background: #020617;
	color: #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 10px;
	font-family: monospace;
}

.code-output strong {
	color: #38bdf8;
}

.codebyte-feature-card {
	background: #ffffff;
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 14px 32px rgba(0,0,0,0.08);
	margin-bottom: 24px;
}

.codebyte-feature-image img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0 auto;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.codebyte-challenge-box {
	background: linear-gradient(180deg, #fff7d6 0%, #fffdf3 100%);
	border: 1px solid #f2df8a;
	border-radius: 22px;
	padding: 24px 26px;
	box-shadow: 0 14px 32px rgba(0,0,0,0.08);
	margin-bottom: 24px;
}

.codebyte-challenge-box ul {
	padding-left: 22px;
}

.codebyte-info-card ul {
	display: inline-block;       /* shrink to content width */
	text-align: left;            /* keep bullets aligned */
	margin: 0 auto;              /* center the block */
	padding-left: 20px;          /* standard bullet spacing */
}

.codebyte-challenge-box ul {
	margin-top: 14px;
	padding-left: 22px;
}

.codebyte-challenge-box .wp-block-code {
	margin-top: 14px;
	margin-bottom: 14px;
}

.codebyte-next-project {
	margin-top: 20px;
	padding: 40px 24px;
	border-radius: 24px;
	background: #ffffff;
	text-align: center;
	box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.codebyte-next-project h2 {
	margin-bottom: 12px;
}

.codebyte-next-project p {
	max-width: 640px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.codebyte-button .wp-block-button__link {
	background: #111111;
	color: #ffffff;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.25s ease;
}

.codebyte-button .wp-block-button__link:hover {
	background: #2f6f3e;
	transform: translateY(-2px);
}

.codebyte-gallery.wp-block-gallery.has-nested-images {
	margin: 0 auto 20px;
	gap: 12px;
}

.codebyte-gallery.wp-block-gallery.has-nested-images .wp-block-image {
	flex-grow: 0 !important;
	width: auto !important;
	max-width: 160px;
	margin: 0 auto;
}

.codebyte-gallery.wp-block-gallery.has-nested-images .wp-block-image img {
	display: block;
	width: 100% !important;
	height: 140px !important;
	object-fit: contain !important;
}

.codebyte-bottom-sections {
	gap: 24px;
	margin-top: 20px;
}

.codebyte-bottom-sections .wp-block-column {
	display: flex;
}

.codebyte-bottom-sections .codebyte-feature-card,
.codebyte-bottom-sections .codebyte-next-project {
	width: 100%;
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.codebyte-hero {
		padding: 36px 20px 32px;
		min-height: 220px;
		background-position: center;
	}

	.codebyte-hero__content {
		padding: 18px 18px;
		border-radius: 16px;
	}

	.codebyte-title {
		font-size: 1.9rem;
	}

	.codebyte-subtext {
		font-size: 0.98rem;
	}

	.codebyte-accordion summary,
	.codebyte-accordion > *:not(summary),
	.codebyte-info-card,
	.codebyte-intro,
	.codebyte-next-step,
	.codebyte-feature-card,
	.codebyte-challenge-box {
		padding-left: 18px;
		padding-right: 18px;
	}
}