/* =========================================================
   SINGLE BLOG POST
   ========================================================= */

.xv-single-post-container {
	max-width: 1170px;
	width: 100%;
	margin: 0 auto;
	padding: 50px 15px 70px;
}


/* =========================================================
   POST HEADER
   ========================================================= */

.xv-single-post-header {
	max-width: 900px;
	margin: 0 auto 30px;
	text-align: center;
}

.xv-single-post-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.xv-single-post-category {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 4px;
	background: #655AC7;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.xv-single-post-category:hover {
	background: #4C4497;
	color: #fff;
}

.xv-single-post-title {
	margin: 0;
	color: #262430;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
}

.xv-single-post-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	margin-top: 20px;
	color: #666;
	font-size: 0.9rem;
}

.xv-single-post-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.xv-single-post-meta-item svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #4C4497;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.xv-single-post-featured-image {
	width: 100%;
	margin: 0 0 45px;
	overflow: hidden;
	border-radius: 6px;
	background: #F6F6FA;
}

.xv-single-post-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* =========================================================
   CONTENT LAYOUT
   ========================================================= */

.xv-single-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 50px;
	align-items: start;
}

.xv-single-post-main {
	min-width: 0;
}

.xv-single-post-content {
	color: #333;
	font-size: 1.05rem;
	line-height: 1.8;
}

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

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

.xv-single-post-content h2 {
	margin-top: 2em;
	margin-bottom: 0.7em;
	padding-bottom: 10px;
	border-bottom: 1px solid rgb(0 0 0 / 10%);
	color: #3D3679;
	font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.xv-single-post-content h3 {
	margin-top: 1.8em;
	color: #4C4497;
	font-size: 1.45rem;
}

.xv-single-post-content h4 {
	color: #4C4497;
	font-size: 1.15rem;
}

.xv-single-post-content a {
	color: #4C4497;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.xv-single-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
}

.xv-single-post-content blockquote {
	margin: 30px 0;
	padding: 20px 25px;
	border-left: 4px solid #655AC7;
	border-radius: 4px;
	background: #F6F6FA;
	color: #3D3679;
	font-size: 1.1rem;
	font-style: italic;
}

.xv-single-post-content ul,
.xv-single-post-content ol {
	padding-left: 22px;
}

.xv-single-post-content li {
	margin-bottom: 8px;
}


/* =========================================================
   TAGS
   ========================================================= */

.xv-single-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	padding-top: 25px;
	border-top: 1px solid rgb(0 0 0 / 10%);
}

.xv-single-post-tags-title {
	margin-right: 3px;
	color: #3D3679;
	font-weight: 700;
}

.xv-single-post-tags a {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 4px;
	background: #F6F6FA;
	color: #4C4497;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.xv-single-post-tags a:hover {
	background: #655AC7;
	color: #fff;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.xv-single-post-sidebar {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.xv-single-post-sidebar-box {
	padding: 25px;
	background: #F6F6FA;
	box-shadow:
		rgba(50, 50, 105, 0.15) 0 2px 5px,
		rgba(0, 0, 0, 0.05) 0 1px 1px;
}

.xv-single-post-sidebar-box > h3 {
	display: inline-block;
	margin: 0 0 20px;
	padding: 6px 10px;
	border-radius: 4px;
	background: #655AC7;
	color: #fff;
	font-size: 1rem;
}

.xv-recent-posts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.xv-recent-post {
	display: grid;
	grid-template-columns: 75px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid rgb(0 0 0 / 8%);
}

.xv-recent-post:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.xv-recent-post-image {
	display: block;
	width: 75px;
	height: 70px;
	overflow: hidden;
	border-radius: 5px;
}

.xv-recent-post-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xv-recent-post-content h4 {
	margin: 0 0 5px;
	font-size: 0.92rem;
	line-height: 1.35;
}

.xv-recent-post-content h4 a {
	color: #333;
	text-decoration: none;
}

.xv-recent-post-content h4 a:hover {
	color: #4C4497;
}

.xv-recent-post-content time {
	color: #777;
	font-size: 0.75rem;
}


/* =========================================================
   SIDEBAR CTA
   ========================================================= */

.xv-single-post-cta {
	padding: 28px;
	border-radius: 5px;
	background: #4C4497;
	color: #fff;
}

.xv-single-post-cta h3 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 1.5rem;
}

.xv-single-post-cta p {
	margin: 0 0 20px;
	color: rgb(255 255 255 / 85%);
	line-height: 1.6;
}

.xv-single-post-cta-button {
	display: inline-block;
	padding: 11px 18px;
	border-radius: 3px;
	background: #fff;
	color: #4C4497;
	font-weight: 700;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.xv-single-post-cta-button:hover {
	background: #F6F6FA;
	color: #3D3679;
	transform: translateY(-2px);
}


/* =========================================================
   POST NAVIGATION
   ========================================================= */

.xv-single-post-navigation {
	margin-top: 40px;
	padding-top: 25px;
	border-top: 1px solid rgb(0 0 0 / 10%);
}

.xv-single-post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.xv-single-post-navigation .nav-next {
	text-align: right;
}

.xv-single-post-navigation a {
	display: block;
	height: 100%;
	padding: 15px;
	border-left: 3px solid #655AC7;
	border-radius: 5px;
	background: #F6F6FA;
	color: #333;
	text-decoration: none;
}

.xv-single-post-navigation a:hover {
	background: #efedf9;
	color: #4C4497;
}

.xv-post-nav-label {
	display: block;
	margin-bottom: 5px;
	color: #777;
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: uppercase;
}

.xv-single-post-navigation strong {
	font-size: 0.9rem;
	line-height: 1.4;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 1025px) {
	.xv-single-post-sidebar {
		position: sticky;
		top: 20px;
	}
}

@media (max-width: 1024px) {
	.xv-single-post-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.xv-single-post-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		position: static;
	}
}

@media (max-width: 767px) {
	.xv-single-post-container {
		padding: 35px 15px 50px;
	}

	.xv-single-post-header {
		text-align: left;
	}

	.xv-single-post-categories,
	.xv-single-post-meta {
		justify-content: flex-start;
	}

	.xv-single-post-title {
		font-size: 2.25rem;
	}

	.xv-single-post-featured-image {
		height: 300px;
		margin-bottom: 30px;
	}

	.xv-single-post-layout {
		gap: 30px;
	}

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

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

	.xv-single-post-navigation .nav-next {
		text-align: left;
	}
}