/**
 * Blog Single Post Styles
 *
 * @package Hello_Elementor_Child
 */

/* ═══════════════════════════════════════════════════════════
   CSS Custom Properties
═══════════════════════════════════════════════════════════ */
:root {
	--nbp-primary:       #5B7699;
	--nbp-accent:        #B87456;
	--nbp-accent-dark:   #9a5e3f;
	--nbp-text:          #24272D;
	--nbp-muted:         #6b7280;
	--nbp-border:        #e5e7eb;
	--nbp-bg-light:      #f8f9fa;
	--nbp-bg-toc:        #f0f4f8;
	--nbp-toc-width:     240px;
	--nbp-sidebar-width: 280px;
	--nbp-radius:        8px;
	--nbp-shadow:        0 2px 12px rgba(0,0,0,.07);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.nbp-blog-hero {
	background: #ffffff;
	border-bottom: 1px solid var(--nbp-border);
	padding: 36px 24px 0;
}

.nbp-hero-inner {
	max-width: 1440px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 480px;
	gap: 48px;
	align-items: end;
}

/* Breadcrumb */
.nbp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--nbp-muted);
	margin-bottom: 16px;
}
.nbp-breadcrumb a {
	color: var(--nbp-accent);
	font-weight: 600;
	text-decoration: none;
}
.nbp-breadcrumb a:hover { text-decoration: underline; }

/* Title */
.nbp-hero-title {
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--nbp-primary);
	margin-bottom: 20px;
}

/* Meta */
.nbp-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--nbp-muted);
	margin-bottom: 16px;
}
.nbp-hero-meta strong { color: var(--nbp-text); }
.nbp-meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--nbp-border);
	flex-shrink: 0;
}

/* Tags */
.nbp-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.nbp-tag {
	background: #fff;
	border: 1px solid var(--nbp-border);
	color: var(--nbp-primary);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .4px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.nbp-tag:hover {
	background: var(--nbp-primary);
	color: #fff;
}

/* Share row */
.nbp-share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--nbp-muted);
	padding-bottom: 28px;
}
.nbp-share-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--nbp-primary);
	transition: background .2s;
	text-decoration: none;
}
.nbp-share-icon:hover { background: var(--nbp-accent); }
.nbp-share-icon svg {
	width: 14px;
	height: 14px;
	fill: #fff;
}

/* Featured image */
.nbp-hero-image {
	align-self: end;
	overflow: hidden;
	border-radius: var(--nbp-radius) var(--nbp-radius) 0 0;
}
.nbp-hero-image img {
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
	object-position: center;
	border-radius: var(--nbp-radius) var(--nbp-radius) 0 0;
}

/* ═══════════════════════════════════════════════════════════
   PAGE LAYOUT  (TOC | Article | Sidebar)
═══════════════════════════════════════════════════════════ */
.nbp-blog-layout {
	max-width: 1440px;
	margin: 0 auto;
	padding: 100px 24px;
	display: grid;
	grid-template-columns: var(--nbp-toc-width) 1fr var(--nbp-sidebar-width);
	grid-template-areas: "toc article sidebar";
	gap: 40px;
	align-items: start;
}

/* ═══════════════════════════════════════════════════════════
   TABLE OF CONTENTS  (desktop)
═══════════════════════════════════════════════════════════ */
.nbp-toc-column {
	grid-area: toc;
	position: sticky;
	top: 100px; /* clears sticky header */
}

.nbp-toc-box {
	background: var(--nbp-bg-toc);
	border: 1px solid var(--nbp-border);
	border-radius: var(--nbp-radius);
	padding: 20px;
}

.nbp-toc-title {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--nbp-muted);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.nbp-toc-title::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 14px;
	background: var(--nbp-accent);
	border-radius: 2px;
	flex-shrink: 0;
}

.nbp-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.nbp-toc-list li { margin-bottom: 2px; }
.nbp-toc-list a {
	display: block;
	font-size: 13px;
	color: var(--nbp-muted);
	padding: 6px 8px;
	border-radius: 4px;
	border-left: 2px solid transparent;
	text-decoration: none;
	line-height: 1.4;
	transition: color .2s, background .2s, border-color .2s;
}
.nbp-toc-list a:hover,
.nbp-toc-list a.nbp-toc-active {
	color: var(--nbp-primary);
	background: rgba(26,60,94,.07);
	border-left-color: var(--nbp-accent);
	font-weight: 600;
}
/* Indent H3 items */
.nbp-toc-list li.nbp-toc-h3 a {
	padding-left: 20px;
	font-size: 12px;
}

/* Progress bar */
.nbp-toc-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--nbp-border);
	font-size: 11px;
	color: var(--nbp-muted);
}
.nbp-progress-bar-wrap {
	flex: 1;
	height: 4px;
	background: var(--nbp-border);
	border-radius: 2px;
	overflow: hidden;
}
.nbp-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: var(--nbp-accent);
	border-radius: 2px;
	transition: width .15s;
}

/* ═══════════════════════════════════════════════════════════
   TABLE OF CONTENTS  (mobile collapsible)
═══════════════════════════════════════════════════════════ */
.nbp-toc-mobile {
	display: none; /* shown via media query */
	background: var(--nbp-bg-toc);
	border: 1px solid var(--nbp-border);
	border-radius: var(--nbp-radius);
	margin-bottom: 28px;
	overflow: hidden;
}

.nbp-toc-mobile-toggle {
	width: 100%;
	background: none;
	border: none;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: var(--nbp-primary);
	font-family: inherit;
	gap: 8px;
}
.nbp-toc-mobile-toggle svg {
	flex-shrink: 0;
	transition: transform .3s;
}
.nbp-toc-mobile-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.nbp-toc-mobile-list {
	padding: 0 18px 14px;
}
.nbp-toc-mobile-list a {
	display: block;
	font-size: 13px;
	color: var(--nbp-muted);
	padding: 7px 0;
	border-bottom: 1px solid var(--nbp-border);
	text-decoration: none;
	transition: color .2s;
}
.nbp-toc-mobile-list a:last-child { border-bottom: none; }
.nbp-toc-mobile-list a:hover { color: var(--nbp-accent); }
.nbp-toc-mobile-list a.nbp-toc-sub { padding-left: 14px; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE BODY
═══════════════════════════════════════════════════════════ */
.nbp-article-body {
	grid-area: article;
	min-width: 0; /* prevent grid blowout */
}

/* Post content typography */
.nbp-post-content h2 {
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	color: var(--nbp-primary);
	margin: 24px 0 10px;
	padding-top: 0;
	scroll-margin-top: 110px;
}
.nbp-post-content h3 {
	font-size: clamp(15px, 1.8vw, 18px);
	font-weight: 700;
	color: var(--nbp-primary);
	margin: 16px 0 8px;
	scroll-margin-top: 110px;
}
.nbp-post-content p {
	margin-bottom: 18px;
	font-size: 15px;
	color: #444;
}
.nbp-post-content ul,
.nbp-post-content ol {
	margin: 0 0 18px 20px;
}
.nbp-post-content li {
	font-size: 15px;
	color: #444;
	margin-bottom: 8px;
}
.nbp-post-content blockquote {
	border-left: 4px solid var(--nbp-accent);
	padding: 16px 20px;
	margin: 28px 0;
	background: var(--nbp-bg-light);
	border-radius: 0 var(--nbp-radius) var(--nbp-radius) 0;
	font-size: 16px;
	font-style: italic;
	color: var(--nbp-primary);
}
.nbp-post-content blockquote p { margin-bottom: 0; color: var(--nbp-primary); }
.nbp-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--nbp-radius);
	margin: 8px 0 20px;
}
.nbp-post-content a {
	color: var(--nbp-accent);
	font-weight: 600;
	text-decoration: underline;
}
.nbp-post-content a:hover { color: var(--nbp-accent-dark); }
.nbp-post-content hr {
	border: none;
	border-top: 1px solid var(--nbp-border);
	margin: 36px 0;
}
.nbp-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 18px;
	font-size: 14px;
}
.nbp-post-content th,
.nbp-post-content td {
	padding: 10px 12px;
	border: 1px solid var(--nbp-border);
	text-align: left;
}
.nbp-post-content th { background: var(--nbp-bg-light); font-weight: 700; }

/* ── Post navigation ── */
.nbp-post-nav {
	display: flex;
	gap: 16px;
	margin-top: 40px;
}
.nbp-nav-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	background: var(--nbp-bg-light);
	border: 1px solid var(--nbp-border);
	border-radius: var(--nbp-radius);
	text-decoration: none;
	transition: border-color .2s, background .2s;
}
.nbp-nav-link:hover {
	border-color: var(--nbp-accent);
	background: #fff;
}
.nbp-nav-next { text-align: right; }
.nbp-nav-dir {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: var(--nbp-muted);
	font-weight: 700;
}
.nbp-nav-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--nbp-primary);
	line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.nbp-sidebar-column {
	grid-area: sidebar;
	position: sticky;
	top: 100px;
}

/* Search */
.nbp-sidebar-search {
	position: relative;
	margin-bottom: 28px;
}
.nbp-sidebar-search input {
	width: 100%;
	border: 1px solid var(--nbp-border);
	border-radius: var(--nbp-radius);
	padding: 10px 44px 10px 14px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color .2s;
	background: #fff;
}
.nbp-sidebar-search input:focus { border-color: var(--nbp-accent); }
.nbp-sidebar-search button {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 42px;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nbp-muted);
}
.nbp-sidebar-search button svg {
	width: 18px;
	height: 18px;
}

/* Widget */
.nbp-sidebar-widget { margin-bottom: 32px; }
.nbp-widget-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--nbp-primary);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--nbp-accent);
}

/* Related cards */
.nbp-related-card {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	text-decoration: none;
	align-items: flex-start;
}
.nbp-related-card:hover .nbp-related-title { color: var(--nbp-accent); }
.nbp-related-thumb {
	width: 76px;
	height: 56px;
	border-radius: 6px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--nbp-bg-light);
}
.nbp-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nbp-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #c8d6e0, #a8bfcc);
}
.nbp-related-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.nbp-related-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--nbp-primary);
	line-height: 1.35;
	transition: color .2s;
}
.nbp-related-meta {
	font-size: 11px;
	color: var(--nbp-muted);
}

/* Categories */
.nbp-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.nbp-category-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--nbp-border);
	font-size: 13px;
}
.nbp-category-list li:last-child { border-bottom: none; }
.nbp-category-list a {
	font-weight: 600;
	color: var(--nbp-primary);
	text-decoration: none;
}
.nbp-category-list a:hover { color: var(--nbp-accent); }
.nbp-cat-count {
	background: var(--nbp-bg-light);
	border: 1px solid var(--nbp-border);
	font-size: 11px;
	font-weight: 700;
	color: var(--nbp-muted);
	padding: 2px 8px;
	border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Tablet — drop TOC column, sidebar stays */
@media (max-width: 1024px) {
	.nbp-blog-layout {
		grid-template-columns: 1fr var(--nbp-sidebar-width);
		grid-template-areas:
			"article sidebar";
		gap: 32px;
	}
	.nbp-toc-column   { display: none; }
	.nbp-toc-mobile   { display: block; }
	.nbp-hero-inner   { grid-template-columns: 1fr 360px; gap: 28px; }
	.nbp-hero-image img { height: auto; }
}

/* Mobile — single column */
@media (max-width: 768px) {
	.nbp-hero-inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
	}
	.nbp-hero-image { order: -1; border-radius: 0; } /* image above text */
	.nbp-hero-image img { height: auto; border-radius: 0; }

	.nbp-blog-layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"article"
			"sidebar";
		padding: 24px 16px;
		gap: 32px;
	}
	.nbp-sidebar-column { position: static; }

	.nbp-blog-hero { padding: 24px 16px 0; }

	.nbp-post-nav { flex-direction: column; }
}

/* Small mobile */
@media (max-width: 480px) {
	.nbp-hero-meta { gap: 6px; }
	.nbp-meta-dot  { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   IN-CONTENT COMPONENTS
   (used via Classic Editor HTML — see contents-to-posts.html)
═══════════════════════════════════════════════════════════ */

/* ── Summary box ── */
.nbp-summary-box {
	background: linear-gradient(135deg, #e8f4fd 0%, #dbeaf7 100%);
	border: 1px solid #b8d4ea;
	border-left: 4px solid var(--nbp-accent);
	border-radius: 0 var(--nbp-radius) var(--nbp-radius) 0;
	padding: 20px 24px;
	margin-bottom: 32px;
}
.nbp-summary-box p { margin-bottom: 8px; font-size: 15px; color: #444; }
.nbp-summary-box p:last-child { margin-bottom: 0; }
.nbp-summary-label {
	font-size: 10px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--nbp-accent) !important;
	margin-bottom: 8px !important;
}

/* ── FAQ block ── */
.nbp-faq-block {
	margin-top: 48px;
}
.nbp-faq-block > h2 {
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	color: var(--nbp-primary);
	margin-bottom: 24px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--nbp-accent);
}
.nbp-faq-item {
	border: 1px solid var(--nbp-border);
	border-radius: var(--nbp-radius);
	padding: 20px 24px;
	margin-bottom: 12px;
	background: var(--nbp-bg-light);
	transition: border-color .2s;
}
.nbp-faq-item:hover {
	border-color: var(--nbp-accent);
}
.nbp-faq-item h3 {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--nbp-primary) !important;
	margin: 0 0 10px !important;
	scroll-margin-top: 0 !important; /* FAQs not in TOC */
}
.nbp-faq-item p {
	font-size: 14px !important;
	color: #555 !important;
	margin: 0 !important;
}
