/* ==========================================================
   KNOWLEDGE CENTER — Full CSS
   Included via functions.php on knowledge pages
   ========================================================== */

/* ── PAGE HERO (2-column illustration + text) ─────────────── */
body.post-type-archive-knowledge .site-main,
body.tax-knowledge_category .site-main,
body.single-knowledge .site-main {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.pk-hero {
    background: #fdf2f2;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
    background-image: linear-gradient(180deg, #F5E4E4B8 65%, #ffffff 100%);
}
.pk-hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 50px 0px 50px;
    min-height: 560px;
}
.pk-hero-visual {
	flex: 0 0 44%;
	max-width: 44%;
}
.pk-hero-img {
	width: 100%;
	height: auto;
	display: block;
}
.pk-hero-content {
	flex: 1;
	min-width: 0;
}
.pk-hero-title {
	font-size: clamp(1.9rem, 3.5vw, 2.8rem);
	font-weight: 800;
	color: #111;
	letter-spacing: -.02em;
	line-height: 1.2;
	margin: 8px 0 0;
}
.pk-hero-divider {
	width: 56px;
	height: 4px;
	background: var(--accent, #e31c24);
	border-radius: 2px;
	margin: 16px 0 20px;
}
.pk-hero-desc {
	font-size: 1rem;
	color: #555;
	line-height: 1.7;
	max-width: 540px;
	margin: 0 0 28px;
}
.pk-hero-btn {
	display: inline-block;
	background: var(--accent, #e31c24);
	color: #fff !important;
	font-size: .95rem;
	font-weight: 700;
	padding: 13px 32px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background .2s ease, transform .15s ease;
}
.pk-hero-btn:hover {
	background: #c4161d;
	transform: translateY(-1px);
	color: #fff !important;
}

/* Search bar strip */
.pk-search-bar {
	background: var(--bg);
	padding: 20px 0;
	border-bottom: 1px solid var(--border);
}
.pk-search-bar .pk-search {
	max-width: 560px;
	margin: 0 auto;
}

/* Responsive hero */
@media (max-width: 768px) {
	.pk-hero-inner {
		flex-direction: column;
		gap: 28px;
		padding: 36px 20px 28px;
		text-align: center;
	}
	.pk-hero-visual {
		flex: 0 0 auto;
		max-width: 280px;
		margin: 0 auto;
	}
	.pk-hero-divider { margin: 14px auto 18px; }
	.pk-hero-desc { margin: 0 auto 24px; }
}

/* ── PAGE HEADER (old — kept for fallback) ────────────────── */
.pk-header {
	padding: 80px 0 40px;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	text-align: center;
}

.pk-eyebrow {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--accent);
	font-weight: 700;
	margin-bottom: 16px;
}

.pk-title {
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 800;
	letter-spacing: -.03em;
	margin-bottom: 16px;
	color: var(--text);
}

.pk-subtitle {
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 540px;
	margin: 0 auto 36px;
}

/* Search bar */
.pk-search {
	display: flex;
	align-items: center;
	max-width: 480px;
	margin: 0 auto;
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
	transition: border-color var(--transition);
}
.pk-search:focus-within { border-color: var(--accent); }

.pk-search input[type="search"] {
	flex: 1;
	background: transparent;
	border: none;
	padding: 13px 18px;
	color: var(--text);
	font-size: .95rem;
	font-family: var(--font-body);
	outline: none;
}
.pk-search input[type="search"]::placeholder { color: var(--muted); }

.pk-search button {
	background: none;
	border: none;
	padding: 0 18px;
	color: var(--muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: color var(--transition);
}
.pk-search button:hover { color: var(--accent); }

/* ── FILTER TABS ─────────────────────────────────────────── */
.pk-filter-bar {
	position: sticky;
	top: 64px;
	z-index: 90;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	padding: 0;
}

.pk-tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.pk-tabs::-webkit-scrollbar { display: none; }

.pk-tab {
	flex-shrink: 0;
	padding: 16px 22px;
	font-size: .875rem;
	font-weight: 500;
	color: var(--muted);
	border-bottom: 2px solid transparent;
	transition: color var(--transition), border-color var(--transition);
	white-space: nowrap;
}
.pk-tab:hover { color: var(--text); }
.pk-tab--active {
	color: var(--text);
	border-bottom-color: var(--accent);
}

.pk-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	background: var(--surface2);
	border-radius: 10px;
	font-size: .7rem;
	font-weight: 600;
	padding: 0 6px;
	margin-left: 6px;
	color: var(--muted);
}

/* ── GRID SECTION ────────────────────────────────────────── */
.pk-grid-section {
	padding: 64px 0 80px;
	background: var(--bg);
}

/* ── FEATURED CARD ───────────────────────────────────────── */
.pk-featured-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 40px;
	transition: border-color var(--transition);
}
.pk-featured-card:hover { border-color: transparent; box-shadow: 0 20px 60px rgba(0,0,0,.1); }

.pk-featured-img {
	min-height: 320px;
	background-size: cover;
	background-position: center;
	background-color: var(--surface2);
}

.pk-featured-body {
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pk-featured-title {
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 12px 0 16px;
}
.pk-featured-title a { color: var(--text); }
.pk-featured-title a:hover { color: var(--accent); }

.pk-featured-excerpt {
	font-size: .95rem;
	color: var(--muted);
	margin-bottom: 24px;
	line-height: 1.65;
}

/* ── ARTICLE CARDS GRID ──────────────────────────────────── */
.pk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.pk-grid--3 { grid-template-columns: repeat(3, 1fr); }

.pk-card {
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform var(--transition), border-color var(--transition);
	display: flex;
	flex-direction: column;
}
.pk-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.08); border-color: transparent; }

.pk-card-img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16/9;
	background: var(--surface2);
}
.pk-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.pk-card:hover .pk-card-img-wrap img { transform: scale(1.04); }

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

.pk-card-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 10px 0 12px;
	flex: 1;
}
.pk-card-title a { color: var(--text); }
.pk-card-title a:hover { color: var(--accent); }

/* ── TAG PILL ────────────────────────────────────────────── */
.pk-tag {
	display: inline-block;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	color: var(--accent);
	background: rgba(227,28,36,.09);
	border-radius: 100px;
	padding: 3px 10px;
}
.pk-tag:hover { background: rgba(227,28,36,.15); }

/* ── META ────────────────────────────────────────────────── */
.pk-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .8rem;
	color: var(--muted);
}
.pk-dot { opacity: .4; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pk-pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	width: 100%;
	overflow: hidden;
}
.pk-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 100%;
}
.pk-pagination .page-numbers li a,
.pk-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 25px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .575rem;
    color: var(--muted);
    transition: all var(--transition);
	white-space: nowrap;
}
.pk-pagination .page-numbers li a:hover { border-color: var(--text); color: var(--text); }
.pk-pagination .page-numbers li .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.pk-empty {
	text-align: center;
	padding: 80px 40px;
	color: var(--muted);
}

/* ==========================================================
   SINGLE ARTICLE PAGE
   ========================================================== */

/* ── BREADCRUMB ──────────────────────────────────────────── */
.pk-breadcrumb {
	padding: 10px 0 0;
	background: var(--bg);
}
.pk-breadcrumb .ping-container {
	padding-top: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
	font-size: .8rem;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.pk-breadcrumb a { color: var(--muted); }
.pk-breadcrumb a:hover { color: var(--text); }
.pk-bc-sep { opacity: .4; }

/* ── ARTICLE HEADER ──────────────────────────────────────── */
.pk-article-header {
	background: var(--bg);
	padding: 10px 0 10px;
}

.pk-article-header-inner {
	max-width: 1200px;
}

.pk-article-title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
	margin: 16px 0 28px;
	color: var(--text);
}

.pk-article-meta-wrap {
	padding: 20px 0 4px;
}
.pk-article-meta {
display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #000;
    border-radius: 10px;
    box-shadow: 0px 5px 1px 1px rgba(195.77626037597656, 195.77626037597656, 195.77626037597656, 0.5);
}

.pk-author-info {
	display: flex;
	align-items: center;
	gap: 12px;
}
.pk-author-info img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}
.pk-author-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.pk-author-role { font-size: .78rem; color: var(--muted); }

/* ── HERO IMAGE ──────────────────────────────────────────── */
.pk-hero-image {
	background: var(--bg);
	padding: 0 0 48px;
}
.pk-hero-image img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

/* ── ARTICLE LAYOUT (content + sidebar) ─────────────────── */
.pk-article-body {
	background: var(--bg);
	padding-bottom: 80px;
}

.pk-article-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 64px;
	align-items: flex-start;
	max-width: 1100px;
}

/* ── CONTENT TYPOGRAPHY ──────────────────────────────────── */
.pk-content {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.85;
}

/* .pk-content h2 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text);
	margin: 48px 0 16px;
	padding-top: 8px;
} */
.pk-content h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text);
	margin: 36px 0 12px;
}
.pk-content p { margin-bottom: 1.4rem; }
.pk-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pk-content a:hover { color: #e04e00; }

.pk-content ul,
.pk-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.4rem;
}
.pk-content li { margin-bottom: .5rem; }

.pk-content blockquote {
	border-left: 3px solid var(--accent);
	margin: 32px 0;
	padding: 20px 28px;
	background: var(--surface2);
	border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
	font-size: 1.1rem;
	color: var(--text);
	font-style: italic;
}

.pk-content img {
	border-radius: var(--btn-radius);
	border: 1px solid var(--border);
	margin: 24px 0;
}

.pk-content pre,
.pk-content code {
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: var(--btn-radius);
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: .9rem;
}
.pk-content pre { padding: 20px 24px; overflow-x: auto; }
.pk-content :not(pre) > code { padding: 2px 7px; }

/* Tags at article bottom */
.pk-article-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}
.pk-tags-label { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* Share */
.pk-share {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}
.pk-share-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.pk-share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.pk-share-links a,
.pk-share-links button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	font: inherit;
	transition: all var(--transition);
}
.pk-share-links a:hover,
.pk-share-links button:hover {
	border-color: var(--text);
	color: var(--text);
}
.pk-share-links .pk-copy-link {
	width: auto;
	gap: 8px;
	padding: 0 12px;
	font-size: .78rem;
	font-weight: 600;
}
.pk-share-links .pk-copy-link.is-copied {
	border-color: var(--accent);
	color: var(--accent);
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.pk-sidebar {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pk-widget {
	background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0px 5px 1px 1px rgba(195.77626037597656, 195.77626037597656, 195.77626037597656, 0.5);
}

.pk-widget-title {
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--muted);
	font-weight: 700;
	margin-bottom: 20px;
}

/* TOC */
.pk-toc-nav { padding: 0; margin: 0; }
.pk-toc-list { list-style: none; padding: 0; margin: 0; }
.pk-toc-list li { margin-bottom: 4px; }
.pk-toc-link,
.pk-toc-sub {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	word-break: break-word;
	font-size: .875rem;
	color: var(--muted);
	padding: 4px 10px;
	border-radius: 4px;
	transition: all var(--transition);
	line-height: 1.4;
}
.pk-toc-sub { padding-left: 22px; font-size: .82rem; }
.pk-toc-sub--deep { padding-left: 38px; font-size: .80rem; }
.pk-toc-link:hover,
.pk-toc-sub:hover { color: var(--text); background: var(--surface2); }
.pk-toc-active { color: var(--accent) !important; font-weight: 600; }

/* Related */
.pk-related-list { list-style: none; padding: 0; margin: 0; }
.pk-related-list li { border-bottom: 1px solid var(--border); }
.pk-related-list li:last-child { border-bottom: none; }
.pk-related-list li a {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 0;
	font-size: .875rem;
	color: var(--muted);
	transition: color var(--transition);
}
.pk-related-list li a:hover { color: var(--text); }
.pk-arrow { flex-shrink: 0; opacity: .4; }

/* CTA box */
/* .pk-cta-box { text-align: center; background: linear-gradient(135deg, #1a0800, var(--surface2)); } */
.pk-cta-box p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }

/* ── MORE FROM KNOWLEDGE ─────────────────────────────────── */
.pk-more-section {
	background: var(--surface2);
	border-top: 1px solid var(--border);
	padding: 64px 0 80px;
}
.pk-more-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 32px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
	.pk-article-layout { grid-template-columns: 1fr; }
	.pk-sidebar { position: static; }
	.pk-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.pk-header { padding: 100px 0 48px; }
	.pk-featured-card { grid-template-columns: 1fr; }
	.pk-featured-img { min-height: 200px; }
	.pk-featured-body { padding: 28px 24px 32px; }
	.pk-grid--3 { grid-template-columns: 1fr; }
	.pk-filter-bar { top: 56px; }
	.pk-share { flex-direction: column; align-items: flex-start; gap: 12px; }
	.pk-article-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
	.pk-grid { grid-template-columns: 1fr; }
	.pk-featured-card { border-radius: 8px; }
	.pk-tabs { padding: 0 16px; }
	.pk-pagination {
		margin-top: 36px;
		padding: 0 4px;
	}
	.pk-pagination .page-numbers {
		gap: 5px;
		width: 100%;
	}
	.pk-pagination .page-numbers li a,
	.pk-pagination .page-numbers li span {
		width: auto;
		min-width: 30px;
		height: 28px;
		padding: 0 7px;
		font-size: .68rem;
	}
	.pk-pagination .page-numbers li a.prev,
	.pk-pagination .page-numbers li a.next {
		min-width: 30px;
		padding: 0 7px;
		font-size: 0;
	}
	.pk-pagination .page-numbers li a.prev::before,
	.pk-pagination .page-numbers li a.next::before {
		font-size: .78rem;
		line-height: 1;
	}
	.pk-pagination .page-numbers li a.prev::before {
		content: "<";
	}
	.pk-pagination .page-numbers li a.next::before {
		content: ">";
	}
}
