:root {
	--cb-primary: #151257;
	--cb-accent: #ff3b12;
	--cb-accent-hover: #ff4a1c;
	--cb-star: #f5a400;
	--cb-dark: #10131c;
	--cb-muted: #4b5563;
	--cb-light: #f8f8f8;
	--cb-white: #ffffff;
	--cb-font: "Poppins", sans-serif;
}

.cb-single-post-main {
	overflow: visible;
	background: var(--cb-white);
	font-family: var(--cb-font);
}

.cb-single-post-main,
.cb-single-post-main * {
	box-sizing: border-box;
}

.cb-single-post {
	margin: 0;
	color: var(--cb-dark);
}

.cb-single-post-shell,
.cb-post-hero-inner {
	width: min(100% - 40px, 1180px);
	margin-right: auto;
	margin-left: auto;
}

.cb-post-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 34px;
	padding: 30px 0 32px;
	border-radius: 22px;
	background:
		linear-gradient(135deg, rgba(21, 18, 87, 0.06), rgba(255, 59, 18, 0.05)),
		var(--cb-light);
}

.cb-post-hero::before {
	position: absolute;
	inset: 0;
	content: "";
	background: radial-gradient(circle at 86% 12%, rgba(255, 59, 18, 0.14), transparent 28%);
	pointer-events: none;
}

.cb-post-hero-inner {
	position: relative;
	display: grid;
	gap: 26px;
	align-items: center;
	max-width: 1120px;
}

.cb-post-hero-copy {
	max-width: 700px;
}

.cb-post-category {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 12px;
	padding: 7px 13px;
	border: 1px solid rgba(255, 59, 18, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--cb-accent);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(21, 18, 87, 0.06);
}

.cb-post-category:hover,
.cb-post-category:focus {
	background: var(--cb-accent);
	color: var(--cb-white);
}

.cb-post-title {
	max-width: 760px;
	margin: 0;
	color: var(--cb-primary);
	font-family: var(--cb-font);
	font-size: clamp(2rem, 3.35vw, 2.875rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
}

.cb-post-excerpt {
	max-width: 660px;
	margin: 14px 0 0;
	color: var(--cb-muted);
	font-size: clamp(1rem, 1.55vw, 1.12rem);
	font-weight: 400;
	line-height: 1.64;
}

.cb-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
	color: var(--cb-muted);
	font-size: 0.94rem;
	font-weight: 400;
}

.cb-post-meta-item {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid rgba(21, 18, 87, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--cb-primary);
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(21, 18, 87, 0.06);
}

.cb-post-author:hover,
.cb-post-author:focus {
	border-color: rgba(255, 59, 18, 0.35);
	color: var(--cb-accent);
	text-decoration: none;
}

.cb-post-meta-icon {
	width: 16px;
	height: 16px;
	color: var(--cb-accent);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.cb-post-featured-image {
	margin: 0;
	overflow: hidden;
	border: 7px solid var(--cb-white);
	border-radius: 22px;
	background: var(--cb-white);
	box-shadow: 0 24px 60px rgba(21, 18, 87, 0.15);
}

.cb-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9.6;
	object-fit: cover;
}

.cb-post-layout {
	display: grid;
	gap: 36px;
	align-items: start;
	padding-bottom: 64px;
}

.cb-post-primary {
	min-width: 0;
}

.cb-post-sidebar {
	display: none;
}

.cb-post-inline-cta,
.cb-post-final-cta,
.cb-sidebar-card {
	border-radius: 22px;
}

.cb-post-inline-cta {
	display: grid;
	gap: 14px;
	margin: 0 0 34px;
	padding: 18px 20px;
	border: 1px solid rgba(21, 18, 87, 0.1);
	background: linear-gradient(135deg, var(--cb-white), #fbfbff);
	box-shadow: 0 16px 40px rgba(21, 18, 87, 0.07);
}

.cb-post-inline-cta p {
	margin: 0;
	color: var(--cb-primary);
	font-size: 0.97rem;
	font-weight: 600;
	line-height: 1.5;
}

.cb-cta-actions,
.cb-sidebar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 19px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cb-btn:hover,
.cb-btn:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.cb-btn-primary {
	background: var(--cb-accent);
	color: var(--cb-white);
	box-shadow: 0 10px 24px rgba(255, 59, 18, 0.22);
}

.cb-btn-primary:hover,
.cb-btn-primary:focus {
	background: var(--cb-accent-hover);
	color: var(--cb-white);
}

.cb-btn-outline {
	border-color: rgba(21, 18, 87, 0.85);
	background: transparent;
	color: var(--cb-primary);
}

.cb-btn-outline:hover,
.cb-btn-outline:focus {
	background: var(--cb-primary);
	color: var(--cb-white);
}

.cb-btn-light {
	background: var(--cb-white);
	color: var(--cb-primary);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.cb-btn-light:hover,
.cb-btn-light:focus {
	background: var(--cb-light);
	color: var(--cb-primary);
}

.cb-post-content {
	color: var(--cb-dark);
	font-size: 17px;
	line-height: 1.86;
}

.cb-post-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.cb-post-content > :first-child {
	margin-top: 0;
}

.cb-post-content h2,
.cb-post-content h3,
.cb-post-content h4 {
	color: var(--cb-primary);
	font-family: var(--cb-font);
	line-height: 1.22;
	letter-spacing: 0;
	scroll-margin-top: 110px;
}

.cb-post-content h2 {
	position: relative;
	margin-top: 2.15em;
	margin-bottom: 0.7em;
	padding-top: 0.25em;
	font-size: clamp(1.55rem, 2.4vw, 2.125rem);
	font-weight: 700;
}

.cb-post-content h2::before {
	display: block;
	width: 42px;
	height: 4px;
	margin-bottom: 13px;
	border-radius: 999px;
	background: var(--cb-accent);
	content: "";
}

.cb-post-content h3 {
	margin-top: 1.7em;
	margin-bottom: 0.65em;
	font-size: clamp(1.25rem, 1.8vw, 1.625rem);
	font-weight: 600;
}

.cb-post-content h4 {
	font-size: 1.375rem;
	font-weight: 600;
}

.cb-post-content p,
.cb-post-content li {
	color: var(--cb-dark);
}

.cb-post-content ul,
.cb-post-content ol {
	padding-left: 1.25em;
}

.cb-post-content li {
	margin-bottom: 0.55em;
	padding-left: 0.15em;
}

.cb-post-content li::marker {
	color: var(--cb-accent);
	font-weight: 600;
}

.cb-post-content a {
	color: var(--cb-accent);
	font-weight: 600;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.cb-post-content a:hover,
.cb-post-content a:focus {
	color: var(--cb-accent-hover);
}

.cb-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 16px 38px rgba(21, 18, 87, 0.09);
}

.cb-post-content figure {
	margin-right: 0;
	margin-left: 0;
}

.cb-post-content figcaption {
	margin-top: 10px;
	color: var(--cb-muted);
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: center;
}

.cb-post-content blockquote {
	margin: 1.7em 0;
	padding: 22px 24px;
	border-left: 5px solid var(--cb-accent);
	border-radius: 0 18px 18px 0;
	background: var(--cb-light);
	color: var(--cb-primary);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.75;
}

.cb-page-links {
	margin-top: 28px;
	font-weight: 700;
}

.cb-post-footer {
	margin-top: 44px;
}

.cb-post-final-cta {
	display: grid;
	gap: 16px;
	padding: 24px 26px;
	background:
		linear-gradient(135deg, rgba(255, 59, 18, 0.13), transparent 42%),
		var(--cb-primary);
	color: var(--cb-white);
	box-shadow: 0 20px 52px rgba(21, 18, 87, 0.2);
}

.cb-post-final-cta h2 {
	max-width: 560px;
	margin: 0;
	color: var(--cb-white);
	font-family: var(--cb-font);
	font-size: clamp(1.35rem, 1.8vw, 1.7rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.cb-post-final-cta p {
	max-width: 620px;
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.65;
}

.cb-related-posts {
	margin-top: 38px;
	padding-top: 30px;
	border-top: 1px solid rgba(21, 18, 87, 0.12);
}

.cb-related-posts h2 {
	margin: 0 0 16px;
	color: var(--cb-primary);
	font-family: var(--cb-font);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0;
}

.cb-related-posts ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-related-posts a {
	display: block;
	padding: 16px 18px;
	border: 1px solid rgba(21, 18, 87, 0.1);
	border-radius: 16px;
	background: var(--cb-white);
	color: var(--cb-primary);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(21, 18, 87, 0.05);
}

.cb-related-posts a:hover,
.cb-related-posts a:focus {
	border-color: rgba(255, 59, 18, 0.5);
	color: var(--cb-accent);
	transform: translateY(-1px);
}

@media (min-width: 1024px) {
	.cb-post-hero {
		margin-bottom: 40px;
		padding: 42px 0;
		border-radius: 28px;
	}

	.cb-post-hero-inner {
		grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.64fr);
	}

	.cb-post-layout {
		grid-template-columns: minmax(0, 730px) 292px;
		justify-content: space-between;
	}

	.cb-post-sidebar {
		position: sticky;
		top: 110px;
		display: grid;
		gap: 16px;
	}

	.cb-sidebar-card {
		padding: 20px;
		border: 1px solid rgba(21, 18, 87, 0.1);
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 16px 42px rgba(21, 18, 87, 0.08);
	}

	.cb-sidebar-kicker {
		margin: 0 0 5px;
		color: var(--cb-primary);
		font-size: 1.08rem;
		font-weight: 600;
		line-height: 1.25;
	}

	.cb-sidebar-cta p:not(.cb-sidebar-kicker) {
		margin: 0 0 16px;
		color: var(--cb-muted);
		font-size: 0.94rem;
		line-height: 1.55;
	}

	.cb-sidebar-actions {
		display: grid;
	}

	.cb-sidebar-actions .cb-btn {
		width: 100%;
		min-height: 44px;
		padding: 10px 16px;
	}

	.cb-post-index-title {
		margin: 0 0 12px;
		color: var(--cb-primary);
		font-family: var(--cb-font);
		font-size: 0.96rem;
		font-weight: 600;
		line-height: 1.25;
		letter-spacing: 0;
	}

	.cb-post-index ol {
		display: grid;
		gap: 9px;
		margin: 0;
		padding: 0;
		list-style: none;
		counter-reset: cb-index;
	}

	.cb-post-index li {
		counter-increment: cb-index;
	}

	.cb-post-index a {
		display: grid;
		grid-template-columns: 22px minmax(0, 1fr);
		gap: 9px;
		align-items: start;
		color: var(--cb-muted);
		font-size: 0.86rem;
		font-weight: 400;
		line-height: 1.38;
		text-decoration: none;
	}

	.cb-post-index a::before {
		color: var(--cb-accent);
		font-size: 0.82rem;
		font-weight: 600;
		content: counter(cb-index, decimal-leading-zero);
	}

	.cb-post-index a:hover,
	.cb-post-index a:focus {
		color: var(--cb-primary);
	}

	.cb-post-inline-cta {
		display: none;
	}

	.cb-post-final-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.cb-post-final-cta .cb-cta-actions {
		justify-content: flex-end;
	}

	.cb-related-posts ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.cb-single-post-shell,
	.cb-post-hero-inner {
		width: min(100% - 40px, 760px);
	}

	.cb-post-hero {
		padding: 30px 0 34px;
	}

	.cb-post-sidebar {
		display: none !important;
	}

	.cb-single-post-main .cb-post-content p,
	.cb-single-post-main .cb-post-content li {
		font-size: 17px;
	}

	.cb-post-inline-cta {
		display: grid;
	}

	.cb-post-featured-image {
		border-radius: 20px;
	}
}

@media (max-width: 520px) {
	.cb-single-post-shell,
	.cb-post-hero-inner {
		width: calc(100% - 36px);
	}

	.cb-post-hero {
		margin-bottom: 28px;
		padding: 28px 0 30px;
	}

	.cb-post-hero-inner {
		gap: 22px;
	}

	.cb-post-title {
		font-size: clamp(1.85rem, 9vw, 2.35rem);
		line-height: 1.12;
	}

	.cb-post-excerpt {
		font-size: 1rem;
	}

	.cb-post-featured-image {
		border-width: 6px;
		border-radius: 18px;
	}

	.cb-post-featured-image img {
		aspect-ratio: 4 / 3;
	}

	.cb-post-layout {
		padding-bottom: 46px;
	}

	.cb-post-inline-cta,
	.cb-post-final-cta {
		padding: 18px;
		border-radius: 18px;
	}

	.cb-post-inline-cta {
		gap: 13px;
		margin-bottom: 30px;
	}

	.cb-post-content {
		font-size: 1.08rem;
		line-height: 1.78;
	}

	.cb-post-content h2 {
		font-size: 1.45rem;
	}

	.cb-post-content h3 {
		font-size: 1.22rem;
	}

	.cb-cta-actions,
	.cb-btn {
		width: 100%;
	}
}
