.single-post-layout {
	width: 100% !important;
	max-width: min(100%, var(--container-max-width, 1300px)) !important;
	margin-inline: auto;
	padding-inline: 0;
	padding-top: 200px !important;
	padding-bottom: 72px;
}

.single-post-article {
	display: grid;
	gap: 40px;
}

.single-post-hero {
	display: grid;
	gap: 28px;
}

body.single-post .single-post-layout .single-post-hero__content {
	max-width: 100%;
}

.single-post-hero__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.single-post-hero__category {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: #f2f5f8;
	color: #1d2939;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.single-post-hero__category:hover,
.single-post-hero__category:focus {
	background: #e5edf5;
	color: #101828;
}

body.single-post .single-post-layout .single-post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 16px;
	color: #475467;
	font-size: 14px;
}

.single-post-hero__meta span {
	position: relative;
}

.single-post-hero__meta span + span::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 18px;
	border-radius: 50%;
	background: #98a2b3;
	vertical-align: middle;
}

body.single-post .single-post-layout .single-post-hero__title {
	margin: 0;
	color: #101828;
	font-size: clamp(24px, 3vw, 36px) !important;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
	max-width: 980px;
}

.single-post-hero__excerpt {
	margin-top: 18px;
	max-width: 720px;
	color: #475467;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.7;
}

.single-post-hero__excerpt p:last-child {
	margin-bottom: 0;
}

.single-post-hero__media {
	margin: 0;
}

.single-post-layout .single-post-hero__image.wp-post-image {
	display: block;
	width: 100%;
	max-height: none;
	aspect-ratio: 16 / 9;
	border-radius: 28px;
	object-fit: cover;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.single-post-hero__caption {
	margin-top: 14px;
	color: #667085;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.single-post-body {
	width: 100%;
	margin: 0;
	padding: 36px clamp(22px, 4vw, 40px);
	border: 1px solid #eaecf0;
	border-radius: 28px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.single-post-shell {
	display: block;
}

.single-post-shell--with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	gap: clamp(20px, 2vw, 34px);
	align-items: start;
}

.single-post-sidebar {
	position: relative;
}

.single-post-sidebar__inner {
	position: sticky;
	top: 120px;
	display: grid;
	gap: 18px;
}

.single-post-sidebar-widget {
	padding: 20px;
	border: 1px solid #eaecf0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.single-post-sidebar-title {
	margin: 0 0 12px;
	color: #101828;
	font-size: 18px;
	line-height: 1.3;
}

.single-post-sidebar .recent-posts-media-list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-post-sidebar .recent-posts-media-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.single-post-sidebar .recent-posts-media-thumb {
	display: block;
	width: 88px;
	height: 66px;
	border-radius: 10px;
	overflow: hidden;
	background: #e4e7ec;
}

.single-post-sidebar .recent-posts-media-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-post-sidebar .recent-posts-media-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f2f4f7 0%, #e4e7ec 100%);
}

.single-post-sidebar .recent-posts-media-content {
	min-width: 0;
	display: grid;
	gap: 6px;
}

.single-post-sidebar .recent-posts-media-date {
	color: #667085;
	font-size: 12px;
	line-height: 1.4;
}

.single-post-sidebar .recent-posts-media-title {
	display: block;
	color: #101828;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.single-post-sidebar .recent-posts-media-title:hover,
.single-post-sidebar .recent-posts-media-title:focus {
	color: #0f766e;
}

.single-post-content {
	color: #344054;
	font-size: 18px;
	line-height: 1.9;
}

.single-post-content > *:first-child {
	margin-top: 0;
}

.single-post-content > *:last-child {
	margin-bottom: 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
	margin-top: 1.8em;
	margin-bottom: 0.7em;
	color: #101828;
	line-height: 1.2;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
	margin-bottom: 1.2em;
}

.single-post-content ul,
.single-post-content ol {
	padding-left: 1.4em;
}

.single-post-content li + li {
	margin-top: 0.5em;
}

.single-post-content blockquote {
	margin-left: 0;
	padding: 20px 24px;
	border-left: 4px solid #d0d5dd;
	border-radius: 0 18px 18px 0;
	background: #f8fafc;
	color: #1d2939;
	font-size: 20px;
	line-height: 1.7;
}

.single-post-content img {
	border-radius: 20px;
}

.single-post-content .wp-caption {
	max-width: 100%;
}

.single-post-content .wp-caption-text {
	margin-top: 10px;
	color: #667085;
	font-size: 14px;
}

.single-post-content a {
	color: #0f766e;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.single-post-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.single-post-content th,
.single-post-content td {
	padding: 12px 14px;
	border: 1px solid #d0d5dd;
	text-align: left;
}

.single-post-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.single-post-pagination .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	color: #1d2939;
	text-decoration: none;
}

.single-post-pagination .post-page-numbers.current {
	border-color: #101828;
	background: #101828;
	color: #ffffff;
}

.single-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid #eaecf0;
}

.single-post-tags__label {
	color: #475467;
	font-size: 14px;
	font-weight: 600;
}

.single-post-tags__items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.single-post-tags__items a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: #f8fafc;
	color: #344054;
	font-size: 14px;
	text-decoration: none;
}

.single-post-navigation {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.single-post-navigation__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	padding: 16px 22px;
	border: 1px solid #d0d5dd;
	border-radius: 20px;
	background: #ffffff;
	color: #101828;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-post-navigation__item a:hover,
.single-post-navigation__item a:focus {
	border-color: #98a2b3;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.single-post-navigation__item:empty {
	display: none;
}

@media (max-width: 1240px) {
	.single-post-shell--with-sidebar {
		grid-template-columns: 1fr;
	}

	.single-post-sidebar__inner {
		position: static;
	}
}

@media (max-width: 767px) {
	.single-post-layout {
		padding-inline: 14px;
		padding-top: 128px !important;
		padding-bottom: 48px;
	}

	.single-post-article {
		gap: 28px;
	}

	.single-post-hero {
		gap: 22px;
	}

	body.single-post .single-post-layout .single-post-hero__title {
		font-size: clamp(24px, 7vw, 30px) !important;
	}

	.single-post-hero__image {
		border-radius: 22px;
	}

	.single-post-body {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.single-post-content {
		font-size: 17px;
		line-height: 1.8;
	}

	.single-post-navigation {
		grid-template-columns: 1fr;
	}
}
