/* ==========================================================================
   CNC Blog Detail Widget — blog-detail-layout2.css
   Prefix: cnc-blog-detail-layout2
   ========================================================================== */

.cnc-blog-detail-layout2.cnc-blog-detail-container *,
.cnc-blog-detail-layout2.cnc-blog-detail-container *::before,
.cnc-blog-detail-layout2.cnc-blog-detail-container *::after {
	box-sizing: border-box;
}
.wp-singular.single.single-post #content {
	max-width: 1400px;
}
/* ── Layout Grid ─────────────────────────────────────────────────────────── */

.cnc-blog-detail-layout2.cnc-blog-detail-container {
	display: block;
	width: 100%;
}

.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc {
	display: grid;
	gap: 50px;
	align-items: start;
}

.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc.cnc-blog-detail-position-left {
	grid-template-columns: 280px 1fr;
}
.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc.cnc-blog-detail-position-left .cnc-blog-detail-sidebar {
	grid-column: 1;
}
.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc.cnc-blog-detail-position-left .cnc-blog-detail-main {
	grid-column: 2;
}

.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc.cnc-blog-detail-position-right {
	grid-template-columns: 1fr 280px;
}
.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc.cnc-blog-detail-position-right .cnc-blog-detail-sidebar {
	grid-column: 2;
}
.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc.cnc-blog-detail-position-right .cnc-blog-detail-main {
	grid-column: 1;
}

/* ── Sidebar & Main Columns ──────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-sidebar {
	width: 100%;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-main {
	width: 100%;
}

/* Sticky Sidebar */
.cnc-blog-detail-layout2.cnc-blog-detail-toc-sticky .cnc-blog-detail-sidebar {
	position: sticky;
	top: var(--cnc-sticky-top, 30px);
	z-index: 99;
}

/* ── Table of Contents Card ──────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-toc {
	background-color: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	transition: none;
}

/* ── TOC Header ──────────────────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 0 16px 0;
	background-color: transparent;
	border-bottom: none;
	cursor: default;
	user-select: none;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-title {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
	letter-spacing: 0.01em;
	line-height: 1.4;
	flex: 1;
}

/* ── TOC Body & Scroll Area ──────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-body {
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.25s ease;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list-wrap {
	padding: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list-wrap::-webkit-scrollbar {
	width: 4px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list-wrap::-webkit-scrollbar-track {
	background: transparent;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list-wrap::-webkit-scrollbar-thumb {
	background-color: #d1d5db;
	border-radius: 4px;
}

/* ── TOC List Items ──────────────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list li {
	margin: 0;
	padding: 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list li + li {
	margin-top: 2px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list a {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	border-radius: 0;
	color: #4b5563;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
	word-break: break-word;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list a:hover {
	color: #2563eb;
	background-color: transparent;
	text-decoration: none;
}

/* Active State */
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list li.cnc-blog-detail-toc-active > a {
	color: #2563eb;
	background-color: transparent;
	font-weight: 600;
}

/* Indentations */
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-indent .cnc-blog-detail-toc-depth-2 { padding-left: 16px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-indent .cnc-blog-detail-toc-depth-3 { padding-left: 32px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-indent .cnc-blog-detail-toc-depth-4 { padding-left: 48px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-indent .cnc-blog-detail-toc-depth-5 { padding-left: 64px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-indent .cnc-blog-detail-toc-depth-6 { padding-left: 80px; }

/* Markers */
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-none a::before {
	display: none;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-dash a::before {
	content: '–';
	color: #9ca3af;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1.6;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-disc a::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	background-color: #9ca3af;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 6px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-circle a::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border: 1.5px solid #9ca3af;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 6px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-arrow a::before {
	content: '›';
	color: #9ca3af;
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.4;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-arrow-circle a::before {
	content: '\2192';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background-color: #2563eb;
	color: #ffffff;
	border-radius: 50%;
	font-size: 10px;
	line-height: 1;
	flex-shrink: 0;
	font-weight: bold;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-arrow-circle a:hover::before {
	transform: translateX(2px);
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-custom a::before {
	content: attr(data-cnc-marker);
	color: #9ca3af;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1.6;
}

/* Numbered List */
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-numbered {
	counter-reset: cnc-blog-detail-toc-counter;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-numbered > li {
	counter-increment: cnc-blog-detail-toc-counter;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-numbered > li > a::before {
	content: counter(cnc-blog-detail-toc-counter) ".";
	color: #9ca3af;
	font-size: 12px;
	flex-shrink: 0;
	line-height: 1.6;
}

/* Empty State */
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-empty {
	padding: 16px 20px;
	color: #9ca3af;
	font-size: 13px;
	text-align: center;
}

/* ── Blog Post Styling ───────────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-category {
	display: inline-block;
	background-color: #FFFFFF;
	padding: 0px 5px;
	border-radius: 5px;
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;
	color: #323232;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-date {
	font-size: 12px;
	color: #6b7280;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-post-title {
	font-size: 32px;
	font-weight: 800;
	color: #2563eb;
	line-height: 1.2;
	margin: 0 0 24px 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-featured-image {
	width: 100%;
	margin-bottom: 30px;
	line-height: 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content {
	font-size: 15px;
	line-height: 1.6;
	color: #374151;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content img {
	width: 100%;
	object-fit: cover;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content p {
	font-size: 16px;
    line-height: 1.5;
	margin: 0 0 1.5em 0;
	color: #323232;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content h1,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h2,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h3,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h4,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h5,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h6 {
	color: #1a1a2e;
	font-weight: 700;
	margin: 30px 0 10px 0;
	line-height: 1.3;
}
.cnc-blog-detail-layout2 .cnc-blog-detail-content h2 b,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h3 b {
	font-weight: 700;
}
.cnc-blog-detail-layout2 .cnc-blog-detail-content h1:first-child,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h2:first-child,
.cnc-blog-detail-layout2 .cnc-blog-detail-content h3:first-child {
	margin-top: 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content h1 { font-size: 28px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-content h2,.cnc-blog-detail-layout2 .cnc-blog-detail-content h3 { font-size: 20px; color: #005BC5;}
.cnc-blog-detail-layout2 .cnc-blog-detail-content h4 { font-size: 18px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-content h5 { font-size: 16px; }
.cnc-blog-detail-layout2 .cnc-blog-detail-content h6 { font-size: 14px; }

/* ── Excerpt & Author Styling ────────────────────────────────────────────── */

.cnc-blog-detail-layout2 .cnc-blog-detail-excerpt {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.5;
	margin-bottom: 24px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-author {
	font-size: 12px;
	color: #6b7280;
}

.cnc-blog-detail-layout2.cnc-blog-detail-container .cnc-blog-detail-content ol li,
.cnc-blog-detail-layout2.cnc-blog-detail-container .cnc-blog-detail-content ul {
	padding-left: 25px;
	margin-bottom: 10px;
}
.cnc-blog-detail-layout2.cnc-blog-detail-container .cnc-blog-detail-content ol li,
.cnc-blog-detail-layout2.cnc-blog-detail-container .cnc-blog-detail-content ul li {
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;
	color: #323232;
	padding-bottom: 5px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: none;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content th,
.cnc-blog-detail-layout2 .cnc-blog-detail-content td {
    border: 1px solid #323232;
    padding: 11px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.5;
	background-color: #ffffff;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content th {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #323232;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content thead th {
    font-weight: 700;
}

/* ── Responsive Stacking ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc {
		grid-template-columns: 1fr !important;
		gap: 30px;
	}

	.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc .cnc-blog-detail-sidebar,
	.cnc-blog-detail-layout2.cnc-blog-detail-container.cnc-blog-detail-has-toc .cnc-blog-detail-main {
		grid-column: 1 !important;
	}

	.cnc-blog-detail-layout2 .cnc-blog-detail-sidebar {
		order: 1;
	}

	.cnc-blog-detail-layout2 .cnc-blog-detail-main {
		order: 2;
	}

	.cnc-blog-detail-layout2.cnc-blog-detail-toc-sticky .cnc-blog-detail-sidebar {
		position: static;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-content th {
		font-size: 18px;
	}

	.cnc-blog-detail-layout2 .cnc-blog-detail-content th,
	.cnc-blog-detail-layout2 .cnc-blog-detail-content td { 
		font-size: 13px;
		padding: 10px 8px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-content th {
		font-size: 16px;
	}
}


/* ── Layout 2 Specific Styling ────────────────────────────────────────────── */

.cnc-blog-detail-layout2 {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-featured-image-wrap {
	position: relative;
	width: 100%;
	margin-bottom: 50px;
	overflow: hidden;
	line-height: 0;
	border-radius: 16px;
	background-color: #E6F2FF;
	padding: 15px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-featured-image {
	width: 100%;
	margin-bottom: 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-featured-image img {
	width: 100%;
	height: 493px;
	object-fit: cover;
	border-radius: 17px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-image-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	border-top: none;
	z-index: 2;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-bar-no-image {
	position: static;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background-color: rgba(0, 0, 0, 0.03);
	border-radius: 8px;
	margin-bottom: 24px;
	border-top: none;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-left {
	display: flex;
	align-items: center;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-categories {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.cnc-blog-detail-layout2 .cnc-avatar-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #cbd5e1;
	color: #64748b;
	padding: 6px;
}

.cnc-blog-detail-layout2 .cnc-avatar-placeholder svg {
	width: 100%;
	height: 100%;
	display: block;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-author-name {
	color: #323232;
	font-weight: 400;
	font-size: 20px;
	line-height: 150%;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-meta-date-text {
	font-size: 16px;
	color: #323232;
	font-weight: 500;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-post-title {
	font-size: 48px;
	font-weight: 700;
	color: #005BC5;
	line-height: 1.2;
	margin: 0 0 50px 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-excerpt {
	font-size: 24px;
	font-weight: 700;
	color: #323232;
	line-height: 1.2;
	margin-bottom: 24px;
}

.cnc-blog-detail-layout2 .cnc-placeholder-featured-image {
	background: #e2e8f0;
	width: 100%;
	height: 350px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	font-weight: bold;
	border-radius: 8px;
}

@media (max-width: 1024px) {
	.cnc-blog-detail-layout2 .cnc-blog-detail-meta-author-name { 
		font-size: 18px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-excerpt { 
		font-size: 20px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-post-title {
		font-size: 36px;
		margin: 0 0 30px 0;
	}
}
@media (max-width: 767px) {
	.cnc-blog-detail-layout2 .cnc-blog-detail-post-title {
		font-size: 28px;
		margin-bottom: 16px;
		margin: 0 0 20px 0;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-featured-image-wrap {
		margin-bottom: 30px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-image-meta-bar {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
		margin-top: 15px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-meta-left,
	.cnc-blog-detail-layout2 .cnc-blog-detail-meta-right {
		width: auto;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-meta-date-text {
		font-size: 12px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-meta-avatar {
		width: 28px;
		height: 28px;
	}
	.cnc-blog-detail-layout2 .cnc-blog-detail-excerpt,
	.cnc-blog-detail-layout2 .cnc-blog-detail-meta-author-name { 
		font-size: 16px;
	}
}


/* Force Inter font-family on all elements */
.cnc-blog-detail-layout2, .cnc-blog-detail-layout2 * { font-family: 'Inter', sans-serif !important; }

/* User Requested TOC Marker Icon Style */
.cnc-blog-detail-layout2 .cnc-blog-detail-toc-list.cnc-blog-detail-toc-marker-icon a svg {
	width: 24px;
	height: 24px;
	fill: #ffffff;
	color: #ffffff;
	padding: 5px;
	border-radius: 100%;
	background-color: #005BC5;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-toc-hidden {
	display: none !important;
}


/* ── Blockquote Default Styles ───────────────────────────────────────────── */
.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote {
    margin: 30px 0;
    background-color: #ECF5FF;
    padding: 30px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    color: #323232;
    border-left: none;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote p {
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    color: #323232;
    margin-bottom: 10px;
}
.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote p:last-child {
	margin-bottom: 0;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ul,
.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ol {
    margin: 0;
    padding-left: 20px;
}

.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ul li,
.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ol li {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #323232;
    margin-bottom: 8px;
    padding-bottom: 0;
}
.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ul li:last-child,
.cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ol li:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote {
        padding: 24px;
    }
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote p {
        font-size: 20px;
    }
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ul li,
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ol li {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote {
        padding: 20px;
    }
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote p {
        font-size: 18px;
    }
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ul li,
    .cnc-blog-detail-layout2 .cnc-blog-detail-content blockquote ol li {
        font-size: 15px;
    }
}
