/* =========================================================
 * NationVoice — Single Post Widget
 * Fully isolated under .nv-single-wrapper
 * ========================================================= */

.nv-single-wrapper {
	--nv-primary: #3c4d8c;
	--nv-accent: #ff6716;
	--nv-heading: #202428;
	--nv-text: #3a3a3a;
	--nv-text-soft: #7c7c7c;
	--nv-bg: #ffffff;
	--nv-bg-soft: #f7f7f9;

	--nv-radius-sm: 4px;
	--nv-radius-md: 12px;
	--nv-radius-lg: 20px;
	--nv-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
	--nv-shadow-md: 0 8px 24px rgba(0,0,0,0.10);

	--nv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nv-trans: 0.35s var(--nv-ease);

	--nv-font-body: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nv-font-heading: Georgia, 'Times New Roman', serif;

	font-family: var(--nv-font-body);
	color: var(--nv-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.nv-single-wrapper *,
.nv-single-wrapper *::before,
.nv-single-wrapper *::after {
	box-sizing: border-box;
}

.elementor-page .nv-single-wrapper,
.e-con .nv-single-wrapper,
.elementor-widget-container .nv-single-wrapper {
	color: var(--nv-text) !important;
	font-family: var(--nv-font-body) !important;
}

/* Containers */
.nv-single-wrapper .nv-single__container {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 32px;
	width: 100%;
}

.nv-single-wrapper .nv-single__wide {
	max-width: 1100px;
	margin: 56px auto 0;
	padding: 0 32px;
	width: 100%;
}

.nv-single-wrapper .nv-single__header {
	padding-top: 48px;
}

/* Categories */
.nv-single-wrapper .nv-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.nv-single-wrapper .nv-single__cat {
	display: inline-block;
	padding: 4px 12px;
	font-family: var(--nv-font-body) !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--nv-primary) !important;
	background-color: rgba(60, 77, 140, 0.10);
	border-radius: 999px;
	text-decoration: none !important;
	transition: background var(--nv-trans), color var(--nv-trans);
}

.nv-single-wrapper .nv-single__cat:hover {
	background-color: var(--nv-primary);
	color: #ffffff !important;
}

/* Title */
.nv-single-wrapper .nv-single__title {
	margin: 0 0 18px;
	font-family: var(--nv-font-heading) !important;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--nv-heading) !important;
}

/* Meta */
.nv-single-wrapper .nv-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--nv-font-body) !important;
	font-size: 14px;
	color: var(--nv-text-soft) !important;
}

.nv-single-wrapper .nv-single__meta-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 4px;
}

.nv-single-wrapper .nv-single__meta-author {
	color: var(--nv-text) !important;
	font-weight: 500;
	text-decoration: none !important;
	transition: color var(--nv-trans);
}

.nv-single-wrapper .nv-single__meta-author:hover {
	color: var(--nv-primary) !important;
}

.nv-single-wrapper .nv-single__meta-sep {
	opacity: 0.5;
}

/* Featured image */
.nv-single-wrapper .nv-single__featured {
	margin-top: 32px;
	max-width: 1100px;
}

.nv-single-wrapper .nv-single__image,
.nv-single-wrapper .nv-single__featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Breadcrumb */
.nv-single-wrapper .nv-single__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	font-family: var(--nv-font-body) !important;
	font-size: 13px;
	color: var(--nv-text-soft) !important;
}

.nv-single-wrapper .nv-single__breadcrumb a {
	color: var(--nv-text-soft) !important;
	text-decoration: none !important;
	transition: color var(--nv-trans);
}

.nv-single-wrapper .nv-single__breadcrumb a:hover {
	color: var(--nv-primary) !important;
}

.nv-single-wrapper .nv-single__crumb-current {
	color: var(--nv-text) !important;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 60ch;
}

/* Content */
.nv-single-wrapper .nv-single__content {
	margin-top: 32px;
	font-family: var(--nv-font-body) !important;
	font-size: 16px;
	line-height: 1.75;
	color: var(--nv-text) !important;
}

.nv-single-wrapper .nv-single__content > * + * { margin-top: 1em; }
.nv-single-wrapper .nv-single__content p { margin: 0 0 1.2em; }
.nv-single-wrapper .nv-single__content h2,
.nv-single-wrapper .nv-single__content h3,
.nv-single-wrapper .nv-single__content h4 {
	font-family: var(--nv-font-heading) !important;
	color: var(--nv-heading);
	margin: 1.6em 0 0.6em;
	line-height: 1.3;
}
.nv-single-wrapper .nv-single__content h2 { font-size: 26px; }
.nv-single-wrapper .nv-single__content h3 { font-size: 22px; }
.nv-single-wrapper .nv-single__content h4 { font-size: 18px; }

.nv-single-wrapper .nv-single__content a {
	color: var(--nv-primary) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity var(--nv-trans);
}
.nv-single-wrapper .nv-single__content a:hover { opacity: 0.75; }

.nv-single-wrapper .nv-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 1.5em 0;
	display: block;
}

.nv-single-wrapper .nv-single__content figure {
	margin: 1.5em 0;
}

.nv-single-wrapper .nv-single__content figcaption {
	font-size: 13px;
	color: var(--nv-text-soft);
	text-align: center;
	margin-top: 8px;
	font-style: italic;
}

.nv-single-wrapper .nv-single__content blockquote {
	margin: 1.5em 0;
	padding: 16px 24px;
	border-left: 4px solid var(--nv-primary);
	background-color: var(--nv-bg-soft);
	font-style: italic;
	color: var(--nv-text);
	border-radius: 0 6px 6px 0;
}

.nv-single-wrapper .nv-single__content ul,
.nv-single-wrapper .nv-single__content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.nv-single-wrapper .nv-single__content li {
	margin-bottom: 0.5em;
}

/* Author Card */
.nv-single-wrapper .nv-single__author-wrap {
	margin-top: 56px;
}

.nv-single-wrapper .nv-single__author-divider {
	height: 1px;
	background-color: rgba(0, 0, 0, 0.08);
	margin-bottom: 32px;
}

.nv-single-wrapper .nv-single__author-heading {
	margin: 0 0 20px;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 22px;
	color: var(--nv-heading);
}

.nv-single-wrapper .nv-single__author {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 24px;
	background-color: var(--nv-bg-soft);
	border-radius: 12px;
}

.nv-single-wrapper .nv-single__author-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.nv-single-wrapper .nv-single__author-body {
	flex: 1;
	min-width: 0;
}

.nv-single-wrapper .nv-single__author-name {
	font-family: var(--nv-font-body) !important;
	font-weight: 700;
	font-size: 16px;
	color: var(--nv-heading);
	margin-bottom: 4px;
}

.nv-single-wrapper .nv-single__author-bio {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--nv-text-soft);
}

.nv-single-wrapper .nv-single__author-btn {
	display: inline-block;
	padding: 6px 14px;
	font-family: var(--nv-font-body) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #ffffff !important;
	background-color: var(--nv-primary) !important;
	border-radius: 4px;
	text-decoration: none !important;
	transition: background var(--nv-trans);
}

.nv-single-wrapper .nv-single__author-btn:hover {
	background-color: #2f3d70 !important;
}

/* Next Post Nav */
.nv-single-wrapper .nv-single__next {
	padding: 0;
	max-width: none;
}

.nv-single-wrapper .nv-single__next-link {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 220px;
	color: #ffffff !important;
	text-decoration: none !important;
	background-color: #1a1a1a;
}

.nv-single-wrapper .nv-single__next-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 1;
	transition: transform 0.6s var(--nv-ease);
}

.nv-single-wrapper .nv-single__next-link:hover .nv-single__next-image {
	transform: scale(1.04);
}

.nv-single-wrapper .nv-single__next-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
	z-index: 2;
}

.nv-single-wrapper .nv-single__next-content {
	position: relative;
	z-index: 3;
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.nv-single-wrapper .nv-single__next-tag {
	display: inline-block;
	font-family: var(--nv-font-body) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #ffffff !important;
	padding: 4px 14px;
	background-color: rgba(255, 255, 255, 0.20);
	border-radius: 999px;
	margin-bottom: 4px;
}

.nv-single-wrapper .nv-single__next-title {
	margin: 0;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: #ffffff !important;
	max-width: 30ch;
}

/* Related Posts */
.nv-single-wrapper .nv-single__related {
	margin-top: 64px;
}

.nv-single-wrapper .nv-single__related-heading {
	margin: 0 0 32px;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 22px;
	color: var(--nv-heading);
}

.nv-single-wrapper .nv-single__related-grid {
	display: grid;
	gap: 28px;
}

.nv-single-wrapper .nv-single__related-grid--cols-1 { grid-template-columns: 1fr; }
.nv-single-wrapper .nv-single__related-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nv-single-wrapper .nv-single__related-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.nv-single-wrapper .nv-single__related-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.nv-single-wrapper .nv-single__related-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background-color: var(--nv-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: transform var(--nv-trans), box-shadow var(--nv-trans);
}

.nv-single-wrapper .nv-single__related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.nv-single-wrapper .nv-single__related-image-link {
	display: block;
	overflow: hidden;
	background-color: var(--nv-bg-soft);
	aspect-ratio: 3 / 2;
}

.nv-single-wrapper .nv-single__related-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--nv-ease);
}

.nv-single-wrapper .nv-single__related-card:hover .nv-single__related-image {
	transform: scale(1.05);
}

.nv-single-wrapper .nv-single__related-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 16px 18px;
}

.nv-single-wrapper .nv-single__related-cat {
	display: inline-block;
	width: fit-content;
	padding: 3px 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--nv-primary);
	background-color: rgba(60, 77, 140, 0.10);
	border-radius: 999px;
}

.nv-single-wrapper .nv-single__related-title {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}

.nv-single-wrapper .nv-single__related-title a {
	color: var(--nv-heading) !important;
	text-decoration: none !important;
	transition: color var(--nv-trans);
}
.nv-single-wrapper .nv-single__related-title a:hover {
	color: var(--nv-primary) !important;
}

.nv-single-wrapper .nv-single__related-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--nv-text-soft);
	margin-top: 4px;
}

.nv-single-wrapper .nv-single__related-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

/* Comment form */
.nv-single-wrapper .nv-single__comments-wrap {
	margin-top: 56px;
}

.nv-single-wrapper .nv-single__comments-heading {
	margin: 0 0 20px;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 22px;
	color: var(--nv-heading);
}

.nv-single-wrapper .comment-form-comment textarea,
.nv-single-wrapper .comment-form input[type="text"],
.nv-single-wrapper .comment-form input[type="email"],
.nv-single-wrapper .comment-form input[type="url"] {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--nv-font-body) !important;
	font-size: 15px;
	color: var(--nv-text);
	background-color: var(--nv-bg);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	outline: none;
	transition: border-color var(--nv-trans), box-shadow var(--nv-trans);
}

.nv-single-wrapper .comment-form input:focus,
.nv-single-wrapper .comment-form textarea:focus {
	border-color: var(--nv-primary);
	box-shadow: 0 0 0 3px rgba(60, 77, 140, 0.15);
}

.nv-single-wrapper .comment-form textarea {
	resize: vertical;
	min-height: 140px;
}

.nv-single-wrapper .comment-form .comment-form-author,
.nv-single-wrapper .comment-form .comment-form-email,
.nv-single-wrapper .comment-form .comment-form-url,
.nv-single-wrapper .comment-form .comment-form-comment {
	margin-bottom: 14px;
}

.nv-single-wrapper .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--nv-text);
}

.nv-single-wrapper .comment-form .form-submit {
	margin-top: 18px;
}

.nv-single-wrapper .comment-form .submit,
.nv-single-wrapper .nv-single__comment-submit {
	display: inline-block;
	padding: 12px 28px;
	font-family: var(--nv-font-body) !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: #ffffff !important;
	background-color: var(--nv-primary) !important;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background var(--nv-trans), transform var(--nv-trans);
}

.nv-single-wrapper .comment-form .submit:hover {
	background-color: #2f3d70 !important;
	transform: translateY(-1px);
}

/* =========================================================
 * RESPONSIVE
 * ========================================================= */
@media (max-width: 1024px) {
	.nv-single-wrapper .nv-single__container,
	.nv-single-wrapper .nv-single__wide {
		padding: 0 24px;
	}
	.nv-single-wrapper .nv-single__title { font-size: 28px; }
	.nv-single-wrapper .nv-single__related-heading,
	.nv-single-wrapper .nv-single__author-heading,
	.nv-single-wrapper .nv-single__comments-heading { font-size: 20px; }
	.nv-single-wrapper .nv-single__next-content { padding: 48px 24px; }
}

@media (max-width: 768px) {
	.nv-single-wrapper .nv-single__container,
	.nv-single-wrapper .nv-single__wide {
		padding: 0 16px;
	}
	.nv-single-wrapper .nv-single__header { padding-top: 32px; }
	.nv-single-wrapper .nv-single__title { font-size: 24px; }
	.nv-single-wrapper .nv-single__featured { margin-top: 24px; }
	.nv-single-wrapper .nv-single__content { font-size: 15px; margin-top: 28px; }

	.nv-single-wrapper .nv-single__author {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.nv-single-wrapper .nv-single__author-wrap,
	.nv-single-wrapper .nv-single__related,
	.nv-single-wrapper .nv-single__comments-wrap {
		margin-top: 40px;
	}

	.nv-single-wrapper .nv-single__wide {
		margin-top: 40px;
	}

	.nv-single-wrapper .nv-single__related-grid--cols-2,
	.nv-single-wrapper .nv-single__related-grid--cols-3,
	.nv-single-wrapper .nv-single__related-grid--cols-4 {
		grid-template-columns: 1fr !important;
	}

	.nv-single-wrapper .nv-single__next-link { min-height: 180px; }
	.nv-single-wrapper .nv-single__next-content { padding: 40px 16px; }
	.nv-single-wrapper .nv-single__next-title { font-size: 20px; }
}
