/* ==========================================================================
	Uzeda Single Post — Modern Blog Post Layout
	========================================================================== */

/* ── Variables ── */
/* ── Base wrapper — match blog font smoothing ── */
/* ==========================================================================
   Hero / Post Header (light single hero)
   ========================================================================== */
/* ── Breadcrumb (reuse blog classes) ── */
.cb-single__hero,
.uzeda-single__hero {
	position: relative;
	overflow: hidden;
}

.cb-single__hero--light {
	background: #FFFFFF;
	padding: 28px 0 56px;
	border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.cb-single__hero--light::before {
	content: none;
}

.cb-single__hero-container {
	max-width: var(--cbs-container);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.cb-single__hero-main {
	display: flex;
	flex-direction: column;
}

.cb-single .cb-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0;
	margin-bottom: 0;
	padding: 0 0 24px 0;
	list-style: none;
	font-size: 12px;
}

.cb-breadcrumb__item {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.cb-breadcrumb__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #7B8190;
	font-size: 12px;
	font-weight: 700;
}

.cb-breadcrumb__link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.cb-single .cb-breadcrumb__link:hover {
	color: var(--cbs-green);
}

.cb-breadcrumb__sep {
	color: #C6CAD2;
	padding: 0 8px;
	user-select: none;
}

.cb-breadcrumb__current {
	color: #667085;
	font-weight: 700;
}

/* ── Hero Featured (2-col grid) ── */
.cb-single .cb-hero-featured {
	display: block;
	margin: 0;
}

.cb-single .cb-hero-featured__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
	gap: 56px;
	align-items: center;
}

.cb-single .cb-hero-featured__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/7.8;
	max-height: 330px;
	border-radius: 10px;
	background: #EEF2F0;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
	margin: 0;
}

.cb-single .cb-hero-featured__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cb-single .cb-hero-featured__content {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
}

.cb-single .cb-hero-featured__tag {
	display: inline-block;
	padding: 4px 10px;
	background: var(--cbs-green);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 999px;
}

.cb-single .cb-hero-featured__title {
	color: #4e5159;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
}

.cb-single .cb-hero-featured__excerpt {
	color: #697383;
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
	max-width: 650px;
}

.cb-single .cb-hero-featured__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	color: #88909D;
	font-size: 13px;
	gap: 20px;
	margin-top: 10px;
}

.cb-single .cb-hero-featured__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #13965D;
	font-weight: 700;
}

.cb-single .cb-hero-featured__tag:hover {
	background: var(--cbs-green-dark);
	color: #fff;
}

.cb-single .cb-hero-featured__author:hover {
	color: var(--cbs-green-dark);
}

.cb-single .cb-hero-featured__author svg {
	width: 20px;
	height: 20px;
	padding: 4px;
	color: #FFFFFF;
	background: #00A862;
	border-radius: 50%;
	opacity: 1;
	stroke-width: 2.5;
}

.cb-single .cb-hero-featured__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #8A92A0;
	font-weight: 600;
}

.cb-single .cb-hero-featured__meta-item svg {
	color: #8A92A0;
	opacity: 0.85;
}

/* ==========================================================================
   Two-Column Layout
   ========================================================================== */
/* ==========================================================================
   Sidebar
   ========================================================================== */
/* ── Table of Contents ── */
.cb-single__toc {
	background: #FFFFFF;
	border: 1px solid var(--cbs-border);
	border-radius: var(--cbs-radius);
	padding: 20px;
}

.cb-single__toc-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cbs-dark);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cbs-border);
}

.cb-single__toc-header svg {
	color: var(--cbs-green);
	flex-shrink: 0;
}

.cb-single__toc-title {
	margin: 0;
	font: inherit;
	color: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
}

.cb-single__toc-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cb-single__toc-nav a {
	display: block;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--cbs-text-light);
	text-decoration: none;
	border-radius: 6px;
	border-left: 2px solid transparent;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.cb-single__toc-nav a:hover {
	color: var(--cbs-dark);
	background: rgba(0, 191, 111, 0.05);
}

.cb-single__toc-nav a.is-active {
	color: var(--cbs-green);
	background: rgba(0, 191, 111, 0.06);
	border-left-color: var(--cbs-green);
}

.cb-single__toc-nav a[data-depth="3"] {
	padding-left: 24px;
	font-size: 12px;
}

/* ── CTA Card ── */
.cb-single__cta-card {
	background: #FFFFFF;
	border: 1px solid var(--cbs-border);
	border-radius: var(--cbs-radius);
	padding: 24px 20px;
	text-align: center;
}

.cb-single__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(0, 191, 111, 0.1);
	color: var(--cbs-green);
	margin-bottom: 12px;
}

.cb-single__cta-title {
	color: var(--cbs-dark);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px 0;
}

.cb-single__cta-desc {
	color: var(--cbs-text-light);
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px 0;
}

.cb-single__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 11px 20px;
	background: var(--cbs-green);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.cb-single__cta-btn:hover {
	background: var(--cbs-green-dark);
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* ── Share ── */
.cb-single__share {
	background: #FFFFFF;
	border: 1px solid var(--cbs-border);
	border-radius: var(--cbs-radius);
	padding: 16px 20px;
}

.cb-single__share-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cbs-text-light);
	margin-bottom: 10px;
}

.cb-single__share-btns {
	display: flex;
	gap: 8px;
}

.cb-single__share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #F3F4F6;
	color: var(--cbs-text-light);
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cb-single__share-btn:hover {
	background: var(--cbs-green);
	color: #FFFFFF;
}

/* ==========================================================================
   Article Content
   ========================================================================== */
.cb-single__content {
	background: #FFFFFF;
	border: 1px solid var(--cbs-border);
	border-radius: 16px;
	padding: 48px;
	min-width: 0; /* prevent grid blowout */
	grid-column: 2;
}

.cb-single__sidebar {
	grid-column: 1;
	grid-row: 1;
}

/* Typography inside content */
.cb-single__content h2 {
	color: var(--cbs-dark);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
	margin: 40px 0 16px 0;
	scroll-margin-top: 110px;
}

.cb-single__content h2:first-child {
	margin-top: 0;
}

.cb-single__content h3 {
	color: var(--cbs-dark);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 32px 0 12px 0;
	scroll-margin-top: 110px;
}

.cb-single__content h4 {
	color: var(--cbs-dark);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	margin: 24px 0 10px 0;
}

.cb-single__content p {
	color: var(--cbs-text);
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 20px 0;
}

.cb-single__content a {
	color: var(--cbs-green);
	text-decoration: underline;
	font-weight: 600;
	transition: color 0.2s ease;
}

.cb-single__content a:hover {
	color: var(--cbs-green-dark);
}

.cb-single__content ul,
.cb-single__content ol {
	color: var(--cbs-text);
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 20px 0;
	padding-left: 24px;
}

.cb-single__content li {
	margin-bottom: 6px;
}

.cb-single__content blockquote {
	background: rgba(0, 191, 111, 0.04);
	border-left: 4px solid var(--cbs-green);
	border-radius: 0 8px 8px 0;
	margin: 24px 0;
	padding: 20px 24px;
	font-size: 16px;
	color: var(--cbs-text);
	font-style: italic;
	line-height: 1.7;
}

.cb-single__content blockquote p {
	margin-bottom: 0;
}

.cb-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 8px 0 20px;
}

.cb-single__content figure {
	margin: 24px 0;
}

.cb-single__content figcaption {
	font-size: 12px;
	color: var(--cbs-text-light);
	text-align: center;
	margin-top: 8px;
}

.cb-single__content pre {
	background: #1F2937;
	color: #F9FAFB;
	border-radius: 10px;
	padding: 20px 24px;
	font-size: 14px;
	line-height: 1.6;
	overflow-x: auto;
	margin: 24px 0;
}

.cb-single__content code {
	background: #F3F4F6;
	color: #EF4444;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 14px;
}

.cb-single__content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

.cb-single__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
}

.cb-single__content th,
.cb-single__content td {
	padding: 12px 16px;
	border: 1px solid var(--cbs-border);
	text-align: left;
}

.cb-single__content th {
	background: #F3F4F6;
	font-weight: 700;
	color: var(--cbs-dark);
}

.cb-single__content hr {
	border: none;
	height: 1px;
	background: var(--cbs-border);
	margin: 32px 0;
}

/* ── Tags ── */
.cb-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--cbs-border);
}

.cb-single__tag {
	display: inline-block;
	padding: 5px 14px;
	background: #F3F4F6;
	color: var(--cbs-text-light);
	font-size: 12px;
	font-weight: 600;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.cb-single__tag:hover {
	background: rgba(0, 191, 111, 0.1);
	color: var(--cbs-green);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.cb-single__related {
	background: #FFFFFF;
	padding: 64px 0;
}

.cb-single__related-container {
	max-width: var(--cbs-container);
	margin: 0 auto;
	padding: 0 24px;
}

.cb-single__related-title {
	color: var(--cbs-dark);
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 32px 0;
}

.cb-single__related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cb-single__related-item {
	display: flex;
	min-width: 0;
}

.cb-single__related-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--cbs-border);
	border-radius: var(--cbs-radius);
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
	width: 100%;
}

.cb-single__related-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.cb-single__related-card:hover {
	border-color: rgba(0, 191, 111, 0.3);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.cb-single__related-thumb {
	aspect-ratio: 16/9;
	overflow: hidden;
	margin: 0;
}

.cb-single__related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cb-single__related-card:hover .cb-single__related-thumb img {
	transform: scale(1.03);
}

.cb-single__related-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cb-single__related-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cbs-green);
}

.cb-single__related-name {
	color: var(--cbs-dark);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cb-single__related-meta {
	color: var(--cbs-text-light);
	font-size: 12px;
}

/* ── Related CTA Card ── */
.cb-single__related-cta {
	display: flex;
	flex-direction: column;
	background: linear-gradient(160deg, #0D4B34 0%, #0A2E20 60%, #091A14 100%);
	border-radius: var(--cbs-radius);
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	min-height: 100%;
	width: 100%;
}

.cb-single__related-cta:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.cb-single__related-cta-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 28px 24px;
	height: 100%;
	gap: 16px;
	text-align: center;
}

.cb-single__related-cta-logo-img {
	display: block;
	width: 140px;
	height: 35px;
	background: var(--cb-single-cta-logo) center/contain no-repeat;
}

.cb-single__related-cta-logo {
	display: none;
}

.cb-single__related-cta-text {
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
}

.cb-single__related-cta-text strong {
	font-size: 36px;
	font-weight: 900;
	color: #FFFFFF;
	line-height: 1.1;
}

.cb-single__related-cta-text span {
	font-weight: 400;
	opacity: 0.85;
	font-size: 17px;
}

.cb-single__related-cta-btn {
	display: inline-block;
	padding: 12px 28px;
	background: #6C8EEF;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 600;
	border-radius: 50px;
	text-align: center;
	transition: background 0.2s ease, transform 0.15s ease;
}

.cb-single__related-cta:hover .cb-single__related-cta-btn {
	background: #5A7DE0;
	transform: scale(1.02);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
	.cb-single__layout-container {
		grid-template-columns: 1fr;
	}

	.cb-single__sidebar {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		order: 2;
		grid-column: auto;
		grid-row: auto;
	}

	.cb-single__content {
		order: 1;
		grid-column: auto;
	}

	.cb-single__toc {
		grid-column: 1 / -1;
	}

	.cb-single__share {
		grid-column: 1 / -1;
	}

	.cb-single__related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

	@media screen and (max-width: 768px) {
	.cb-single__toc {
		display: none;
	}

	.cb-single__toc-header {
		cursor: pointer;
	}

	.cb-single__toc-nav {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.cb-single__toc.is-open .cb-single__toc-nav {
		max-height: 600px;
	}

	.cb-single__toc-chevron {
		display: inline-block;
		transition: transform 0.3s ease;
		margin-left: auto;
	}

	.cb-single__toc.is-open .cb-single__toc-chevron {
		transform: rotate(180deg);
	}

	.cb-single__hero {
		padding: 20px 0 32px;
	}

	.cb-single .cb-breadcrumb {
		padding-bottom: 18px;
		overflow: hidden;
	}

	.cb-single .cb-hero-featured__inner {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.cb-single .cb-hero-featured__image {
		max-height: 240px;
		aspect-ratio: 16/9;
		border-radius: 10px;
	}

	.cb-single .cb-hero-featured__content {
		gap: 14px;
	}

	.cb-single .cb-hero-featured__title {
		font-size: 28px;
		line-height: 1.14;
	}

	.cb-single .cb-hero-featured__excerpt {
		font-size: 14px;
	}

	.cb-single .cb-hero-featured__meta {
		gap: 12px;
	}

	.cb-single__layout {
		padding: 24px 0 40px;
	}

	.cb-single__content {
		overflow-x: hidden;
		padding: 28px 20px;
		border-radius: 12px;
	}

	.cb-single__content table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-collapse: separate;
		border-spacing: 0;
	}

	.cb-single__content table tbody {
		display: table;
		width: 100%;
		min-width: 520px;
	}

	.cb-single__content h2 {
		font-size: 22px;
		}

	.cb-single__content h3 {
		font-size: 18px;
	}

	.cb-single__sidebar {
		grid-template-columns: 1fr;
	}

	.cb-single__related-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.cb-single__related-card {
		flex-direction: row;
	}

	.cb-single__related-link {
		flex-direction: row;
	}

	.cb-single__related-cta {
		flex-direction: row;
	}

	.cb-single__related-cta-inner {
		padding: 24px 20px;
	}

	.cb-single__related-cta-text {
		font-size: 18px;
	}

	.cb-single__related-cta-text strong {
		font-size: 28px;
	}

	.cb-single__related-thumb {
		width: 120px;
		flex-shrink: 0;
		aspect-ratio: 1/1;
	}

	.cb-single__related-body {
		padding: 16px;
	}
}
