/**
 * Novosti & Knowledge Base Stylesheet - Living 8085 Design DNA
 * Project: ООО «ГИДРОНА» (8085)
 * Source of Truth: 8084 ID 1165 (54 technical posts & cases)
 * Rules: ZERO forms, non-breaking phones, Apple HIG typography, full responsiveness
 */

:root {
	--n-primary: #ff7a00;
	--n-primary-hover: #ff8c1a;
	--n-primary-glow: rgba(255, 122, 0, 0.28);
	--n-dark: #0e131f;
	--n-dark-surface: #151c2d;
	--n-dark-card: #1c2438;
	--n-dark-border: rgba(255, 255, 255, 0.09);
	--n-light-bg: #f8fafc;
	--n-light-card: #ffffff;
	--n-light-border: #e2e8f0;
	--n-text-dark: #0f172a;
	--n-text-muted: #64748b;
	--n-text-dim: #94a3b8;
	--n-accent-green: #10b981;
	--n-accent-blue: #0284c7;
	--n-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
	--n-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
	--n-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
	--n-radius-sm: 10px;
	--n-radius-md: 16px;
	--n-radius-lg: 24px;
	--n-radius-pill: 9999px;
}

/* ==========================================================================
   Base Layout & Container
   ========================================================================== */
.n-page-wrapper {
	background-color: var(--n-light-bg);
	color: var(--n-text-dark);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	overflow-x: hidden;
	width: 100%;
}

.n-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.n-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: var(--n-radius-pill);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.n-badge-orange {
	background: rgba(255, 122, 0, 0.12);
	color: var(--n-primary);
	border: 1px solid rgba(255, 122, 0, 0.3);
}

.n-badge-blue {
	background: rgba(2, 132, 199, 0.12);
	color: var(--n-accent-blue);
	border: 1px solid rgba(2, 132, 199, 0.3);
}

.n-badge-green {
	background: rgba(16, 185, 129, 0.12);
	color: var(--n-accent-green);
	border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Buttons (Zero Forms - Direct Telephone CTA)
   ========================================================================== */
.n-btn-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 13px 24px;
	border-radius: var(--n-radius-md);
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 8px 24px var(--n-primary-glow);
	cursor: pointer;
	border: none;
	text-align: left;
}

.n-btn-primary {
	background: linear-gradient(135deg, #ff8c1a 0%, #ff6a00 100%);
	color: #ffffff !important;
}

.n-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(255, 122, 0, 0.42);
	background: linear-gradient(135deg, #ffa033 0%, #ff7a00 100%);
	color: #ffffff !important;
}

.n-btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
}

.n-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.35);
	transform: translateY(-2px);
	color: #ffffff !important;
}

.n-btn-content {
	display: flex;
	flex-direction: column;
	white-space: nowrap !important;
}

.n-btn-title {
	font-size: 0.74rem;
	font-weight: 600;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	line-height: 1.2;
}

.n-btn-number {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.25;
	white-space: nowrap !important;
}

.n-btn-icon {
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
}

/* ==========================================================================
   Hero Section: Новости и база знаний
   ========================================================================== */
.n-hero-section {
	background-color: var(--n-dark);
	background-image: 
		linear-gradient(90deg, rgba(14, 19, 31, 0.97) 0%, rgba(14, 19, 31, 0.90) 42%, rgba(14, 19, 31, 0.62) 75%, rgba(14, 19, 31, 0.28) 100%),
		url("../images/aktsii-mesyatsa-ot-kompanii-gidrona.webp");
	background-position: right center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #ffffff;
	padding: 110px 0 75px;
	position: relative;
	overflow: hidden;
}

.n-hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 14% 85%, rgba(255, 122, 0, 0.22) 0%, transparent 60%);
	pointer-events: none;
}

.n-breadcrumbs {
	font-size: 0.9rem;
	color: var(--n-text-dim);
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.n-breadcrumbs a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.n-breadcrumbs a:hover {
	color: var(--n-primary);
}

.n-breadcrumbs .sep {
	opacity: 0.6;
}

.n-breadcrumb-current {
	color: #cbd5e1;
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	vertical-align: bottom;
}

@media (max-width: 600px) {
	.n-breadcrumb-current {
		max-width: 200px;
	}
}

@media (max-width: 400px) {
	.n-breadcrumb-current {
		max-width: 140px;
	}
}

.n-hero-title {
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.8px;
	margin: 16px 0 18px;
	max-width: 920px;
}

.n-hero-title span {
	color: var(--n-primary);
}

.n-hero-subtitle {
	font-size: 1.12rem;
	line-height: 1.65;
	color: #cbd5e1;
	max-width: 780px;
	margin-bottom: 32px;
}

.n-hero-chips {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.n-hero-chip {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 8px 16px;
	border-radius: var(--n-radius-pill);
	font-size: 0.88rem;
	color: #ffffff;
	font-weight: 600;
	backdrop-filter: blur(8px);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ==========================================================================
   Category Filter Tabs (Sticky / Interactive Bar)
   ========================================================================== */
.n-filter-section {
	background: #ffffff;
	border-bottom: 1px solid var(--n-light-border);
	padding: 16px 0;
	position: sticky;
	top: 75px;
	z-index: 20;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.n-filter-pills {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}

.n-filter-pills::-webkit-scrollbar {
	display: none;
}

.n-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: var(--n-radius-pill);
	background: #f1f5f9;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	cursor: pointer;
}

.n-pill:hover {
	background: #e2e8f0;
	color: var(--n-text-dark);
}

.n-pill.active {
	background: linear-gradient(135deg, #ff8c1a 0%, #ff6a00 100%);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}

.n-pill-count {
	font-size: 0.76rem;
	background: rgba(0, 0, 0, 0.08);
	padding: 2px 7px;
	border-radius: 10px;
	font-weight: 700;
}

.n-pill.active .n-pill-count {
	background: rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

/* ==========================================================================
   Main Content Layout: Articles Stream + Interactive Sidebar
   ========================================================================== */
.n-main-section {
	padding: 40px 0 80px;
}

.n-main-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 36px;
	align-items: start;
}

/* Articles Grid */
.n-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.n-article-card {
	background: var(--n-light-card);
	border: 1px solid var(--n-light-border);
	border-radius: var(--n-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--n-shadow-sm);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
	text-decoration: none !important;
	color: inherit;
}

.n-article-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--n-shadow-md);
	border-color: rgba(255, 122, 0, 0.35);
}

.n-card-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #0e131f;
	overflow: hidden;
}

.n-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-article-card:hover .n-card-thumb {
	transform: scale(1.05);
}

.n-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: var(--n-radius-pill);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	background: rgba(14, 19, 31, 0.88);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
}

.n-card-badge-orange {
	background: rgba(255, 122, 0, 0.92);
	color: #ffffff;
	border: none;
}

.n-card-badge-blue {
	background: rgba(2, 132, 199, 0.92);
	color: #ffffff;
	border: none;
}

.n-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.n-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
	color: var(--n-text-muted);
	margin-bottom: 12px;
}

.n-card-date {
	font-weight: 500;
}

.n-card-title {
	font-size: 1.18rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--n-text-dark);
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.n-article-card:hover .n-card-title {
	color: var(--n-primary);
}

.n-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #475569;
	margin-bottom: 20px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.n-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--n-primary);
}

.n-card-link-arrow {
	transition: transform 0.2s ease;
}

.n-article-card:hover .n-card-link-arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   Sidebar: Zero Forms, Direct Consultation & Popular Articles
   ========================================================================== */
.n-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Widget 1: Direct Engineer Consultation */
.n-widget-consult {
	background: linear-gradient(135deg, #0e131f 0%, #151c2d 50%, #1a2236 100%);
	border-radius: var(--n-radius-md);
	padding: 28px 24px;
	color: #ffffff;
	border: 1px solid var(--n-dark-border);
	box-shadow: var(--n-shadow-md);
	position: relative;
	overflow: hidden;
}

.n-widget-consult::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle at top right, rgba(255, 122, 0, 0.25) 0%, transparent 70%);
	pointer-events: none;
}

.n-widget-consult .n-badge {
	margin-bottom: 12px;
}

.n-widget-consult h3 {
	font-size: 1.22rem;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.3;
	margin-bottom: 8px;
}

.n-widget-consult p {
	font-size: 0.88rem;
	color: #cbd5e1;
	line-height: 1.55;
	margin-bottom: 20px;
}

.n-widget-consult .n-btn-phone {
	width: 100%;
}

/* Widget 2: Categories List */
.n-widget-box {
	background: var(--n-light-card);
	border: 1px solid var(--n-light-border);
	border-radius: var(--n-radius-md);
	padding: 26px 22px;
	box-shadow: var(--n-shadow-sm);
}

.n-widget-box h3 {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--n-text-dark);
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.n-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.n-cat-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: var(--n-radius-sm);
	color: #334155;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.2s ease;
	background: #f8fafc;
}

.n-cat-link:hover {
	background: #f1f5f9;
	color: var(--n-primary);
	transform: translateX(3px);
}

.n-cat-count {
	font-size: 0.78rem;
	padding: 2px 8px;
	border-radius: 10px;
	background: #e2e8f0;
	color: #475569;
	font-weight: 700;
}

/* Widget 3: Popular Cases */
.n-popular-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.n-popular-item {
	display: flex;
	gap: 14px;
	text-decoration: none !important;
	color: inherit;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
	transition: transform 0.2s ease;
}

.n-popular-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.n-popular-item:hover {
	transform: translateX(3px);
}

.n-popular-thumb {
	width: 64px;
	height: 64px;
	border-radius: var(--n-radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}

.n-popular-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.n-popular-title {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--n-text-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.n-popular-item:hover .n-popular-title {
	color: var(--n-primary);
}

.n-popular-date {
	font-size: 0.76rem;
	color: var(--n-text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.n-pagination {
	margin-top: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.n-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: var(--n-radius-sm);
	background: #ffffff;
	border: 1px solid var(--n-light-border);
	color: #334155;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.n-pagination .page-numbers:hover {
	border-color: var(--n-primary);
	color: var(--n-primary);
}

.n-pagination .page-numbers.current {
	background: var(--n-primary);
	border-color: var(--n-primary);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.n-cta-section {
	padding: 40px 0 90px;
}

.n-cta-banner {
	background: linear-gradient(135deg, #0e131f 0%, #151c2d 50%, #1a2236 100%);
	border-radius: var(--n-radius-lg);
	padding: 56px 48px;
	color: #ffffff;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: var(--n-shadow-lg);
	border: 1px solid var(--n-dark-border);
}

.n-cta-banner::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -20%;
	width: 140%;
	height: 200%;
	background: radial-gradient(circle at center, rgba(255, 122, 0, 0.16) 0%, transparent 60%);
	pointer-events: none;
}

.n-cta-banner-content {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
}

.n-cta-banner h2 {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
	margin: 16px 0 14px;
	letter-spacing: -0.4px;
	word-break: normal;
	overflow-wrap: break-word;
}

.n-cta-banner p {
	font-size: 1.12rem;
	color: #cbd5e1;
	line-height: 1.65;
	margin-bottom: 34px;
}

.n-cta-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Typography Safeguards
   ========================================================================== */
@media (max-width: 1024px) {
	.n-main-layout {
		grid-template-columns: 1fr;
	}
	.n-sidebar {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.n-widget-consult {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.n-hero-section {
		padding: 95px 0 55px;
	}
	.n-hero-title {
		font-size: 2.1rem;
	}
	.n-articles-grid {
		grid-template-columns: 1fr;
	}
	.n-sidebar {
		grid-template-columns: 1fr;
	}
	.n-cta-banner {
		padding: 40px 24px;
	}
	.n-cta-buttons {
		flex-direction: column;
		width: 100%;
	}
	.n-btn-phone {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.n-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.n-hero-section {
		padding: 85px 0 45px;
	}
	.n-hero-title {
		font-size: 1.55rem;
		line-height: 1.25;
	}
	.n-hero-subtitle {
		font-size: 0.95rem;
		line-height: 1.55;
	}
	.n-hero-chips {
		gap: 8px;
	}
	.n-hero-chip {
		font-size: 0.78rem;
		padding: 6px 12px;
	}
	.n-card-body {
		padding: 18px 16px;
	}
	.n-card-title {
		font-size: 1.08rem;
	}
	.n-btn-phone {
		width: 100%;
		max-width: 100%;
		padding: 12px 14px;
		gap: 10px;
		box-sizing: border-box;
	}
	.n-btn-title {
		font-size: 0.68rem;
		white-space: normal;
		line-height: 1.25;
	}
	.n-btn-number {
		font-size: 1.05rem;
		white-space: nowrap !important;
	}
	/* Mobile Safeguard: prevent broken words in bottom CTA */
	.n-cta-banner {
		padding: 30px 16px;
		margin: 20px 0;
		border-radius: 16px;
	}
	.n-cta-banner .n-badge {
		font-size: 0.72rem;
		padding: 4px 10px;
		margin-bottom: 12px;
		letter-spacing: 0.4px;
	}
	.n-cta-banner h2 {
		font-size: 1.22rem;
		line-height: 1.32;
		margin-bottom: 10px;
		letter-spacing: -0.2px;
		word-break: normal;
		overflow-wrap: break-word;
	}
	.n-cta-banner p {
		font-size: 0.88rem;
		line-height: 1.55;
		margin-bottom: 20px;
	}
}

/* ==========================================================================
   Single Post & Category Templates - Living 8085 Design DNA
   ========================================================================== */

/* Category Hero specific enhancements */
.n-cat-hero-desc {
	font-size: 1.08rem;
	line-height: 1.65;
	color: #cbd5e1;
	max-width: 820px;
	margin-bottom: 28px;
}

.n-cat-active-badge {
	background: rgba(255, 122, 0, 0.18);
	border: 1px solid rgba(255, 122, 0, 0.4);
	color: #ffffff;
}

/* Single Post Layout */
.n-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
	align-items: start;
	min-width: 0;
	width: 100%;
}

.n-single-main {
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.n-single-article {
	background: #ffffff;
	border: 1px solid var(--n-light-border);
	border-radius: var(--n-radius-md);
	padding: 44px 48px;
	box-shadow: var(--n-shadow-sm);
	overflow: hidden;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.n-single-header {
	margin-bottom: 32px;
}

.n-single-badges {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.n-single-title {
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--n-text-dark);
	letter-spacing: -0.5px;
	margin-bottom: 20px;
	word-break: break-word;
	overflow-wrap: break-word;
}

.n-single-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 0.88rem;
	color: var(--n-text-muted);
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

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

.n-single-meta-author {
	font-weight: 600;
	color: var(--n-text-dark);
}

.n-single-thumb-wrap {
	margin-bottom: 36px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
	background: #0e131f;
	max-width: 100%;
}

.n-single-thumb {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

/* Single Content Typography */
.n-single-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #334155;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	word-break: break-word;
	overflow-wrap: break-word;
}

.n-single-content p {
	margin-bottom: 22px;
}

.n-single-content h2 {
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--n-text-dark);
	margin: 40px 0 16px;
	padding-left: 14px;
	border-left: 4px solid var(--n-primary);
	line-height: 1.32;
	letter-spacing: -0.3px;
}

.n-single-content h3 {
	font-size: 1.32rem;
	font-weight: 700;
	color: var(--n-text-dark);
	margin: 32px 0 14px;
	line-height: 1.38;
}

.n-single-content h4 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e293b;
	margin: 24px 0 10px;
}

.n-single-content ul,
.n-single-content ol {
	margin: 18px 0 24px 28px;
	padding: 0;
}

.n-single-content li {
	margin-bottom: 10px;
	line-height: 1.7;
}

.n-single-content blockquote {
	margin: 32px 0;
	padding: 22px 26px;
	background: #fffaf5;
	border-left: 4px solid var(--n-primary);
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: #1e293b;
	box-shadow: 0 2px 12px rgba(255, 122, 0, 0.05);
}

.n-single-content blockquote p:last-child {
	margin-bottom: 0;
}

.n-single-content a {
	color: var(--n-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.n-single-content a:hover {
	color: var(--n-primary-hover);
}

.n-single-content strong,
.n-single-content b {
	font-weight: 700;
	color: var(--n-text-dark);
}

/* Content Tables */
.n-table-wrap {
	width: 100%;
	overflow-x: auto;
	margin: 32px 0;
	-webkit-overflow-scrolling: touch;
}

.n-single-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	background: #ffffff;
}

.n-single-content table th {
	background: #0e131f;
	color: #ffffff;
	padding: 14px 18px;
	font-weight: 700;
	text-align: left;
	font-size: 0.92rem;
	letter-spacing: 0.2px;
}

.n-single-content table td {
	padding: 13px 18px;
	border-bottom: 1px solid #e2e8f0;
	color: #334155;
	line-height: 1.6;
}

.n-single-content table tr:nth-child(even) td {
	background: #f8fafc;
}

.n-single-content table tr:hover td {
	background: #f1f5f9;
}

/* Content Images, Captions, Embeds & Videos */
.n-single-content img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 10px;
	margin: 22px 0;
	box-shadow: var(--n-shadow-sm);
	box-sizing: border-box;
}

.n-single-content .wp-caption {
	max-width: 100% !important;
	box-sizing: border-box;
}

.n-single-content .wp-caption-text {
	font-size: 0.85rem;
	color: var(--n-text-muted);
	margin-top: 6px;
	text-align: center;
}

.n-single-content iframe,
.n-single-content embed,
.n-single-content object {
	max-width: 100% !important;
	box-sizing: border-box;
}

/* WordPress Video & MediaElement.js full responsive constraint */
.n-single-content .wp-video,
.n-single-content .wp-video-shortcode,
.n-single-content video,
.n-single-content .mejs-container,
.n-single-content .mejs-inner,
.n-single-content .mejs-mediaelement,
.n-single-content mediaelementwrapper,
.n-single-content .mejs-layers,
.n-single-content .mejs-poster,
.n-single-content .mejs-overlay {
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box;
}

.n-single-content .wp-video {
	margin: 28px auto !important;
	height: auto !important;
}

.n-single-content .mejs-container {
	height: auto !important;
	min-height: 200px;
}

.n-single-content .mejs-controls {
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box;
}

.n-single-content .mejs-time-rail {
	max-width: calc(100% - 140px) !important;
}

.n-single-content .mejs-time-total {
	max-width: 100% !important;
}

/* Preformatted and Code blocks */
.n-single-content pre,
.n-single-content code {
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
	box-sizing: border-box;
}

/* In-Content Consultation Callout Box (ZERO FORMS) */
.n-article-consult-callout {
	background: linear-gradient(135deg, #0e131f 0%, #151c2d 50%, #1a2236 100%);
	border-radius: 16px;
	padding: 30px 32px;
	color: #ffffff;
	margin: 44px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	box-shadow: var(--n-shadow-md);
	border: 1px solid var(--n-dark-border);
	position: relative;
	overflow: hidden;
}

.n-article-consult-callout::before {
	content: "";
	position: absolute;
	top: -30%;
	right: -20%;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(255, 122, 0, 0.22) 0%, transparent 70%);
	pointer-events: none;
}

.n-consult-callout-text {
	position: relative;
	z-index: 2;
	flex: 1;
}

.n-consult-callout-text h4 {
	font-size: 1.22rem;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 8px;
	line-height: 1.35;
}

.n-consult-callout-text p {
	font-size: 0.9rem;
	color: #cbd5e1;
	line-height: 1.55;
	margin-bottom: 0;
}

.n-article-consult-callout .n-btn-phone {
	flex-shrink: 0;
	z-index: 2;
}

/* Post Navigation (Prev / Next) */
.n-post-nav {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #f1f5f9;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.n-post-nav-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px;
	border-radius: var(--n-radius-sm);
	background: #f8fafc;
	border: 1px solid var(--n-light-border);
	text-decoration: none !important;
	color: inherit;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-post-nav-card:hover {
	background: #ffffff;
	border-color: var(--n-primary);
	transform: translateY(-2px);
	box-shadow: var(--n-shadow-sm);
}

.n-post-nav-label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--n-primary);
	letter-spacing: 0.4px;
}

.n-post-nav-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--n-text-dark);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.n-post-nav-card:hover .n-post-nav-title {
	color: var(--n-primary);
}

.n-post-nav-card.next {
	text-align: right;
}

/* Related Posts Section */
.n-related-section {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 1px solid #f1f5f9;
}

.n-related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.n-related-head h3 {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--n-text-dark);
	margin: 0;
}

.n-related-head a {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--n-primary);
	text-decoration: none;
}

.n-related-head a:hover {
	text-decoration: underline;
}

.n-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

/* Mobile Safeguards for Single Post */
.n-main-section {
	padding: 48px 0 80px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.n-single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.n-single-main {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.n-main-section {
		padding: 28px 0 60px;
	}
	.n-single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.n-single-main {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}
	.n-single-article {
		padding: 26px 18px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	/* Reset floats for all images and captions on tablets & mobile */
	.n-single-content img.alignright,
	.n-single-content img.alignleft,
	.n-single-content img.aligncenter,
	.n-single-content .wp-caption.alignright,
	.n-single-content .wp-caption.alignleft,
	.n-single-content .wp-caption.aligncenter {
		float: none !important;
		display: block !important;
		margin: 20px auto !important;
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
		box-sizing: border-box;
	}
	.n-single-title {
		font-size: 1.65rem;
		line-height: 1.28;
		word-break: break-word;
		overflow-wrap: break-word;
	}
	.n-single-content {
		font-size: 0.98rem;
		line-height: 1.72;
	}
	.n-single-content h2 {
		font-size: 1.32rem;
		margin: 32px 0 14px;
		word-break: break-word;
		overflow-wrap: break-word;
	}
	.n-single-content h3 {
		font-size: 1.15rem;
		word-break: break-word;
		overflow-wrap: break-word;
	}
	.n-single-thumb-wrap {
		margin-bottom: 22px;
		border-radius: 12px;
	}
	.n-article-consult-callout {
		flex-direction: column;
		align-items: stretch;
		padding: 22px 18px;
		gap: 18px;
		box-sizing: border-box;
		max-width: 100%;
	}
	.n-article-consult-callout .n-btn-phone {
		width: 100%;
		box-sizing: border-box;
	}
	.n-post-nav {
		grid-template-columns: 1fr;
	}
	.n-post-nav-card.next {
		text-align: left;
	}
	.n-related-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.n-single-article {
		padding: 20px 14px;
		border-radius: 12px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.n-single-title {
		font-size: 1.35rem;
		line-height: 1.3;
	}
	.n-single-meta {
		gap: 10px;
		font-size: 0.8rem;
	}
	.n-single-content {
		font-size: 0.94rem;
		line-height: 1.65;
	}
	.n-single-content p {
		margin-bottom: 16px;
	}
	.n-single-content blockquote {
		padding: 16px 16px;
		margin: 20px 0;
	}
	.n-single-content table th,
	.n-single-content table td {
		padding: 10px 12px;
		font-size: 0.84rem;
	}
	.n-article-consult-callout {
		padding: 18px 14px;
		border-radius: 12px;
	}
	.n-article-consult-callout h4 {
		font-size: 1.08rem;
	}
}
