/**
 * Nakhin Buddhist Research Center - Researchers Directory Stylesheet
 * 4-Column Emerald Academic Grid Layout
 */

:root {
	--nk-res-primary: #0d5c3a;
	--nk-res-primary-dark: #073823;
	--nk-res-primary-light: #15803d;
	--nk-res-emerald-border: #2e7d32;
	--nk-res-emerald-light: #e8f5e9;
	--nk-res-emerald-soft: #f0fdf4;
	--nk-res-gold: #c5a059;
	--nk-res-gold-light: #fef9c3;
	--nk-res-text-main: #1e293b;
	--nk-res-text-muted: #64748b;
	--nk-res-card-bg: #ffffff;
	--nk-res-card-radius: 14px;
	--nk-res-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nk-researchers-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	box-sizing: border-box;
	font-family: var(--nk-font, 'Sarabun', 'Noto Serif Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ==========================================================================
   Hero Header
   ========================================================================== */
.nk-researchers-hero {
	background: linear-gradient(135deg, #0d5c3a 0%, #0a462c 60%, #062b1b 100%);
	color: #ffffff;
	border-radius: var(--nk-res-card-radius);
	padding: 40px 32px;
	margin-bottom: 28px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(13, 92, 58, 0.25), 0 8px 10px -6px rgba(13, 92, 58, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.nk-researchers-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.nk-researchers-hero::after {
	content: '';
	position: absolute;
	bottom: -40px;
	left: 20%;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(46, 125, 50, 0.3) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.nk-researchers-hero-inner {
	position: relative;
	z-index: 2;
}

.nk-researchers-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	font-size: 11px;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: #ffd54f;
	margin-bottom: 12px;
	backdrop-filter: blur(4px);
}

.nk-badge-dot {
	width: 6px;
	height: 6px;
	background: #ffd54f;
	border-radius: 50%;
	box-shadow: 0 0 8px #ffd54f;
}

.nk-researchers-title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	margin: 0 0 8px;
	color: #ffffff;
	line-height: 1.25;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nk-researchers-subtitle {
	font-size: clamp(14px, 2vw, 16px);
	color: #e8f5e9;
	margin: 0 0 20px;
	max-width: 720px;
	line-height: 1.6;
}

.nk-researchers-meta-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.nk-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
	backdrop-filter: blur(4px);
}

.nk-meta-chip strong {
	color: #ffd54f;
	font-weight: 700;
	font-size: 14px;
}

.nk-meta-chip-muted {
	background: rgba(0, 0, 0, 0.15);
	color: #cbd5e1;
	font-size: 12px;
}

.nk-meta-chip-refresh {
	background: rgba(255, 213, 79, 0.22) !important;
	color: #ffd54f !important;
	border: 1px solid rgba(255, 213, 79, 0.45) !important;
	text-decoration: none !important;
	cursor: pointer;
	font-weight: 600;
	transition: var(--nk-res-transition);
}

.nk-meta-chip-refresh:hover {
	background: #ffd54f !important;
	color: #073823 !important;
	border-color: #ffd54f !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nk-meta-chip-refresh:hover svg {
	stroke: #073823 !important;
	transform: rotate(180deg);
}

.nk-meta-chip-refresh svg {
	transition: transform 0.4s ease;
}

/* ==========================================================================
   Notice Box (API not configured)
   ========================================================================== */
.nk-researchers-notice {
	display: flex;
	gap: 16px;
	padding: 18px 22px;
	border-radius: 12px;
	margin-bottom: 24px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nk-notice-icon {
	font-size: 24px;
	line-height: 1;
}

.nk-notice-body h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #78350f;
}

.nk-notice-body p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

/* ==========================================================================
   Toolbar (Search & Filter)
   ========================================================================== */
.nk-researchers-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
	background: #ffffff;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1.5px solid #d1fae5;
	box-shadow: 0 2px 8px rgba(13, 92, 58, 0.04);
}

.nk-search-box {
	position: relative;
	flex: 1;
	min-width: 260px;
	display: flex;
	align-items: center;
}

.nk-search-icon {
	position: absolute;
	left: 14px;
	color: #0d5c3a;
	pointer-events: none;
}

.nk-search-box input[type="search"] {
	width: 100%;
	height: 44px;
	padding: 0 40px 0 44px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: var(--nk-res-text-main);
	background: #f8fafc;
	transition: var(--nk-res-transition);
	box-sizing: border-box;
}

.nk-search-box input[type="search"]:focus {
	outline: none;
	border-color: #0d5c3a;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.12);
}

#nk-search-clear {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 14px;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	border-radius: 50%;
}

#nk-search-clear:hover {
	color: #0f172a;
}

.nk-filter-group select {
	height: 44px;
	padding: 0 36px 0 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: var(--nk-res-text-main);
	background: #f8fafc;
	cursor: pointer;
	transition: var(--nk-res-transition);
}

.nk-filter-group select:focus {
	outline: none;
	border-color: #0d5c3a;
	box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.12);
}

/* ==========================================================================
   4-Column Academic Emerald Grid
   ========================================================================== */
.nk-researchers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

@media (max-width: 1100px) {
	.nk-researchers-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

@media (max-width: 768px) {
	.nk-researchers-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 520px) {
	.nk-researchers-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ==========================================================================
   Academic Researcher Card (Emerald Border Frame)
   ========================================================================== */
.nk-researcher-card {
	background: var(--nk-res-card-bg);
	border: 2px solid var(--nk-res-emerald-border);
	border-radius: var(--nk-res-card-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: var(--nk-res-transition);
	box-shadow: 0 4px 12px rgba(13, 92, 58, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nk-researcher-card:hover {
	transform: translateY(-5px);
	border-color: #15803d;
	box-shadow: 0 12px 28px -6px rgba(13, 92, 58, 0.18), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

/* Top Accent Bar on Card */
.nk-researcher-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #0d5c3a, #c5a059);
	z-index: 3;
}

/* Card Media / Avatar */
.nk-card-media {
	background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
	padding: 28px 16px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	border-bottom: 1px solid #f1f5f9;
}

.nk-avatar-wrapper {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(135deg, #0d5c3a 0%, #c5a059 100%);
	box-shadow: 0 4px 12px rgba(13, 92, 58, 0.15);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: #ffffff;
	display: block;
	transition: transform 0.3s ease;
}

.nk-researcher-card:hover .nk-avatar-img {
	transform: scale(1.04);
}

.nk-avatar-placeholder {
	display: none;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	align-items: center;
	justify-content: center;
}

.nk-avatar-wrapper.nk-avatar-fallback .nk-avatar-placeholder,
.nk-avatar-wrapper:empty .nk-avatar-placeholder {
	display: flex;
}

.nk-avatar-placeholder svg {
	width: 56px;
	height: 56px;
}

.nk-academic-badge {
	display: none !important;
}

/* Card Body */
.nk-card-content {
	padding: 20px 18px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nk-researcher-name {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px;
	line-height: 1.45;
	text-align: center;
}

.nk-researcher-admin-pos {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12.5px;
	color: #0d5c3a;
	font-weight: 600;
	margin-bottom: 6px;
	line-height: 1.4;
}

.nk-researcher-dept {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	color: var(--nk-res-text-muted);
	margin-bottom: 6px;
	line-height: 1.4;
}

.nk-researcher-program {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	color: #0d5c3a;
	margin-bottom: 12px;
	line-height: 1.4;
	font-weight: 500;
}

.nk-svg-mini {
	flex-shrink: 0;
	margin-top: 2px;
	color: #0d5c3a;
}

/* Email Section */
.nk-researcher-email-box {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed #e2e8f0;
}

.nk-email-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 5px 8px;
	gap: 6px;
	transition: var(--nk-res-transition);
}

.nk-email-wrapper:hover {
	background: #f0fdf4;
	border-color: #86efac;
}

.nk-email-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: #1e293b;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	font-family: monospace;
}

.nk-email-link:hover {
	color: #0d5c3a;
}

.nk-copy-email-btn {
	background: none;
	border: none;
	color: #64748b;
	cursor: pointer;
	padding: 3px;
	line-height: 1;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--nk-res-transition);
}

.nk-copy-email-btn:hover {
	background: #e2e8f0;
	color: #0d5c3a;
}

.nk-email-none {
	background: #f8fafc;
	color: #94a3b8;
	font-size: 11.5px;
	justify-content: center;
	font-style: italic;
}

/* Hide specific metadata fields as requested by user */
.nk-researcher-admin-pos,
.nk-researcher-dept,
.nk-researcher-program {
	display: none !important;
}

/* Card Actions / Academic Buttons */
.nk-card-actions {
	padding: 12px 14px;
	background: #f8fafc;
	border-top: 1px solid #edf2f7;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.nk-card-actions a.nk-btn,
.nk-card-actions .nk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 10px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: var(--nk-res-transition);
	box-sizing: border-box;
	line-height: 1.2;
}

/* Primary Button: ผลงานวิจัย (High Contrast Crisp White Text & Icon on Deep Emerald) */
.nk-card-actions a.nk-btn-emerald,
.nk-card-actions .nk-btn-emerald {
	background: #0d5c3a !important;
	background: linear-gradient(135deg, #0d5c3a 0%, #15803d 100%) !important;
	color: #ffffff !important;
	border: 1.5px solid #0a462c !important;
	box-shadow: 0 2px 5px rgba(13, 92, 58, 0.28) !important;
}

.nk-card-actions a.nk-btn-emerald span,
.nk-card-actions a.nk-btn-emerald svg,
.nk-card-actions .nk-btn-emerald span,
.nk-card-actions .nk-btn-emerald svg {
	color: #ffffff !important;
	stroke: #ffffff !important;
	fill: none;
}

.nk-card-actions a.nk-btn-emerald:hover,
.nk-card-actions .nk-btn-emerald:hover {
	background: #062b1b !important;
	background: linear-gradient(135deg, #062b1b 0%, #0d5c3a 100%) !important;
	color: #ffd54f !important;
	border-color: #062b1b !important;
	box-shadow: 0 4px 10px rgba(13, 92, 58, 0.4) !important;
	transform: translateY(-1px);
}

.nk-card-actions a.nk-btn-emerald:hover span,
.nk-card-actions a.nk-btn-emerald:hover svg,
.nk-card-actions .nk-btn-emerald:hover span,
.nk-card-actions .nk-btn-emerald:hover svg {
	color: #ffd54f !important;
	stroke: #ffd54f !important;
}

/* Secondary Button: ติดต่อ (Crisp Emerald on White) */
.nk-card-actions a.nk-btn-outline,
.nk-card-actions .nk-btn-outline {
	background: #ffffff !important;
	color: #0d5c3a !important;
	border: 1.5px solid #0d5c3a !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.nk-card-actions a.nk-btn-outline span,
.nk-card-actions a.nk-btn-outline svg,
.nk-card-actions .nk-btn-outline span,
.nk-card-actions .nk-btn-outline svg {
	color: #0d5c3a !important;
	stroke: #0d5c3a !important;
	fill: none;
}

.nk-card-actions a.nk-btn-outline:hover,
.nk-card-actions .nk-btn-outline:hover {
	background: #0d5c3a !important;
	color: #ffffff !important;
	border-color: #0d5c3a !important;
	transform: translateY(-1px);
}

.nk-card-actions a.nk-btn-outline:hover span,
.nk-card-actions a.nk-btn-outline:hover svg,
.nk-card-actions .nk-btn-outline:hover span,
.nk-card-actions .nk-btn-outline:hover svg {
	color: #ffffff !important;
	stroke: #ffffff !important;
}

/* Empty State */
.nk-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: var(--nk-res-card-radius);
	color: #64748b;
}

.nk-empty-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.nk-empty-state h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #1e293b;
	font-weight: 700;
}

.nk-empty-state p {
	margin: 0;
	font-size: 14px;
}

/* Toast */
.nk-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0d5c3a;
	color: #ffffff;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	z-index: 99999;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nk-toast.nk-toast-show {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Academic Preloader Screen ("หน้ารีโหลดระบบดึงข้อมูล")
   ========================================================================== */
.nk-preloader-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background: radial-gradient(circle at center, rgba(240, 253, 244, 0.98) 0%, rgba(232, 245, 233, 0.99) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

.nk-preloader-overlay.nk-preloader-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.nk-preloader-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 40px 36px;
	max-width: 440px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 50px -10px rgba(13, 92, 58, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(46, 125, 50, 0.2);
	position: relative;
	overflow: hidden;
}

.nk-preloader-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #0d5c3a, #c5a059, #15803d, #ffd54f);
	background-size: 200% 100%;
	animation: nkGradientSlide 2s linear infinite;
}

@keyframes nkGradientSlide {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

/* Emblem & Rotating Rings */
.nk-preloader-emblem {
	position: relative;
	width: 84px;
	height: 84px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-preloader-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px dashed #0d5c3a;
	animation: nkSpin 6s linear infinite;
}

.nk-preloader-ring-inner {
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	border: 2px solid transparent;
	border-top-color: #c5a059;
	border-right-color: #ffd54f;
	animation: nkSpinReverse 2.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.nk-preloader-core {
	width: 54px;
	height: 54px;
	background: linear-gradient(135deg, #0d5c3a 0%, #073823 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(13, 92, 58, 0.4);
	animation: nkPulseCore 1.8s ease-in-out infinite;
}

@keyframes nkSpin {
	100% { transform: rotate(360deg); }
}

@keyframes nkSpinReverse {
	100% { transform: rotate(-360deg); }
}

@keyframes nkPulseCore {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.nk-preloader-brand {
	font-size: 11px;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: #0d5c3a;
	margin-bottom: 6px;
}

.nk-preloader-title {
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
}

.nk-preloader-sub {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 22px;
	line-height: 1.5;
}

.nk-preloader-steps {
	margin-bottom: 18px;
	min-height: 24px;
}

.nk-preloader-step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #0d5c3a;
	background: #e8f5e9;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid rgba(46, 125, 50, 0.25);
	transition: all 0.2s ease;
}

.nk-step-dot {
	width: 8px;
	height: 8px;
	background: #2e7d32;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(46, 125, 50, 0.6);
	animation: nkDotPulse 1.2s ease-in-out infinite;
}

@keyframes nkDotPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.85); }
}

.nk-preloader-progress-track {
	width: 100%;
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.nk-preloader-progress-fill {
	width: 15%;
	height: 100%;
	background: linear-gradient(90deg, #0d5c3a 0%, #c5a059 50%, #15803d 100%);
	border-radius: 999px;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Researcher Portfolio Detail Page
   ========================================================================== */
.nk-portfolio-nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}

.nk-btn-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #ffffff;
	color: #0d5c3a !important;
	border: 1.5px solid #0d5c3a;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--nk-res-transition);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nk-btn-back:hover {
	background: #0d5c3a;
	color: #ffffff !important;
	transform: translateX(-2px);
}

.nk-btn-back svg {
	stroke: currentColor;
	transition: transform 0.2s ease;
}

.nk-btn-back:hover svg {
	transform: translateX(-3px);
}

.nk-breadcrumb-trail {
	font-size: 13px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.nk-breadcrumb-trail a {
	color: #64748b;
	text-decoration: none;
}

.nk-breadcrumb-trail a:hover {
	color: #0d5c3a;
	text-decoration: underline;
}

.nk-bc-sep {
	color: #cbd5e1;
}

.nk-bc-current {
	color: #0d5c3a;
	font-weight: 600;
}

/* Hero Banner */
.nk-portfolio-hero {
	background: linear-gradient(135deg, #0d5c3a 0%, #0a462c 60%, #062b1b 100%);
	color: #ffffff;
	border-radius: var(--nk-res-card-radius);
	padding: 36px 32px;
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(13, 92, 58, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.nk-portfolio-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.nk-portfolio-hero-inner {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	position: relative;
	z-index: 2;
}

@media (max-width: 820px) {
	.nk-portfolio-hero-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

.nk-portfolio-avatar-col {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.nk-portfolio-avatar-ring {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	border: 4px solid #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(197, 160, 89, 0.5);
	background: #0d5c3a;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-portfolio-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nk-portfolio-avatar-placeholder {
	display: none;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: #ffd54f;
	background: #073823;
}

.nk-avatar-fallback .nk-portfolio-avatar-placeholder {
	display: flex;
}

.nk-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	color: #ffd54f;
	backdrop-filter: blur(4px);
}

.nk-portfolio-info-col {
	flex: 1;
	min-width: 0;
}

.nk-portfolio-eyebrow {
	font-size: 11px;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: #ffd54f;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 820px) {
	.nk-portfolio-eyebrow {
		justify-content: center;
	}
}

.nk-eyebrow-tag {
	background: rgba(255, 255, 255, 0.15);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10.5px;
	color: #e8f5e9;
	letter-spacing: normal;
}

.nk-portfolio-name {
	font-size: clamp(22px, 3.5vw, 32px);
	font-weight: 800;
	margin: 0 0 14px;
	color: #ffffff;
	line-height: 1.25;
}

.nk-portfolio-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

@media (max-width: 820px) {
	.nk-portfolio-badges {
		justify-content: center;
	}
}

.nk-badge-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	backdrop-filter: blur(4px);
}

.nk-chip-academic {
	background: rgba(255, 213, 79, 0.2);
	color: #ffd54f;
	border: 1px solid rgba(255, 213, 79, 0.35);
}

.nk-chip-admin {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.nk-chip-dept {
	background: rgba(232, 245, 233, 0.15);
	color: #e8f5e9;
	border: 1px solid rgba(232, 245, 233, 0.2);
}

.nk-chip-program {
	background: rgba(0, 0, 0, 0.2);
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Contact Box */
.nk-portfolio-contact-box {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

@media (max-width: 820px) {
	.nk-portfolio-contact-box {
		justify-content: center;
	}
}

.nk-portfolio-email {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.nk-hero-email-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	color: #ffffff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.nk-hero-email-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffd54f !important;
}

.nk-hero-copy-btn {
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background 0.2s ease;
}

.nk-hero-copy-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #ffd54f;
}

.nk-btn-print {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nk-btn-print:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #ffd54f;
}

/* Quick Counters */
.nk-portfolio-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	max-width: 600px;
}

@media (max-width: 820px) {
	.nk-portfolio-stats {
		margin: 0 auto;
	}
}

.nk-stat-card {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 10px 14px;
	text-align: center;
	backdrop-filter: blur(4px);
}

.nk-stat-num {
	display: block;
	font-size: 20px;
	font-weight: 800;
	color: #ffd54f;
	line-height: 1.2;
}

.nk-stat-label {
	font-size: 11.5px;
	color: #e8f5e9;
	margin-top: 2px;
	display: block;
}

.nk-stat-highlight {
	background: rgba(197, 160, 89, 0.25);
	border-color: rgba(255, 213, 79, 0.4);
}

/* Category Tabs */
.nk-portfolio-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 0 14px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e2e8f0;
	scrollbar-width: thin;
}

.nk-tab-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	background: #f8fafc;
	color: #475569 !important;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: var(--nk-res-transition);
}

.nk-tab-link:hover {
	background: #e8f5e9;
	color: #0d5c3a !important;
	border-color: #0d5c3a;
}

.nk-tab-link.is-active {
	background: #0d5c3a;
	color: #ffffff !important;
	border-color: #0d5c3a;
	box-shadow: 0 2px 6px rgba(13, 92, 58, 0.25);
}

.nk-tab-link svg {
	stroke: currentColor;
}

/* Main Content Body */
.nk-portfolio-content-body {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.nk-portfolio-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--nk-res-card-radius);
	padding: 28px 28px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	position: relative;
}

.nk-card-section-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 2px solid #f1f5f9;
}

.nk-header-icon-box {
	width: 44px;
	height: 44px;
	background: #e8f5e9;
	color: #0d5c3a;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid rgba(46, 125, 50, 0.2);
}

.nk-section-title {
	font-size: 19px;
	font-weight: 700;
	color: #0d5c3a;
	margin: 0 0 3px;
	line-height: 1.3;
}

.nk-section-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}

.nk-section-count-badge {
	margin-left: auto;
	background: #e8f5e9;
	color: #1b5e20;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
}

/* Local Matches Banner */
.nk-local-matches-banner {
	background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
	border: 1.5px solid #fef08a;
	border-left: 4px solid #c5a059;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 22px;
}

.nk-local-matches-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #854d0e;
	margin-bottom: 12px;
}

.nk-local-matches-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nk-local-match-item {
	background: #ffffff;
	border: 1px solid #fde047;
	border-radius: 8px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

@media (max-width: 680px) {
	.nk-local-match-item {
		flex-direction: column;
		align-items: flex-start;
	}
}

.nk-match-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1;
}

.nk-match-tag {
	background: #854d0e;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
}

.nk-match-year {
	background: #fef08a;
	color: #713f12;
	font-size: 11.5px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
}

.nk-match-title {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
}

.nk-match-title:hover {
	color: #0d5c3a;
	text-decoration: underline;
}

.nk-btn-match-view {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	background: #0d5c3a;
	color: #ffffff !important;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nk-btn-match-view:hover {
	background: #073823;
}

/* Structured Research Project Cards */
.nk-research-projects-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nk-project-card {
	display: flex;
	gap: 16px;
	padding: 14px 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #0d5c3a;
	border-radius: 10px;
	transition: var(--nk-res-transition);
}

.nk-project-card:hover {
	background: #ffffff;
	border-color: #cbd5e1;
	border-left: 4px solid #15803d;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transform: translateX(2px);
}

.nk-project-num-badge {
	width: 32px;
	height: 32px;
	background: #0d5c3a;
	color: #ffd54f;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.nk-project-body {
	flex: 1;
	min-width: 0;
}

.nk-project-title {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 8px;
	line-height: 1.55;
}

.nk-project-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nk-project-year-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #e8f5e9;
	color: #1b5e20;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 600;
}

.nk-project-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	color: #64748b;
}

.nk-dot-emerald {
	width: 6px;
	height: 6px;
	background: #16a34a;
	border-radius: 50%;
}

/* Rich Prose & Publications Styling */
.nk-prose-content {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

.nk-prose-content p {
	margin: 0 0 12px;
}

.nk-prose-content p:last-child {
	margin-bottom: 0;
}

.nk-prose-content a {
	color: #0d5c3a;
	font-weight: 600;
	text-decoration: underline;
	word-break: break-all;
	transition: color 0.15s ease;
}

.nk-prose-content a:hover {
	color: #15803d;
	text-decoration: none;
}

.nk-articles-rich-content p {
	padding: 6px 0;
	border-bottom: 1px dashed #f1f5f9;
}

.nk-articles-rich-content p:last-child {
	border-bottom: none;
}

/* Education Grid */
.nk-education-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.nk-education-grid {
		grid-template-columns: 1fr;
	}
}

.nk-sub-block {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
}

.nk-sub-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #0d5c3a;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1.5px solid #e2e8f0;
}

/* Footer Navigation */
.nk-portfolio-footer-meta {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.nk-footer-source-note {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
}

.nk-footer-source-note code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	color: #0d5c3a;
}

.nk-footer-action-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Button Loading State on Grid Cards */
.nk-btn-portfolio.is-loading {
	opacity: 0.8;
	pointer-events: none;
	position: relative;
}

.nk-btn-portfolio.is-loading .nk-btn-icon {
	animation: nkSpin 0.8s linear infinite;
}

/* Print Styles */
@media print {
	.nk-portfolio-nav-bar,
	.nk-btn-print,
	.nk-hero-copy-btn,
	.nk-portfolio-tabs,
	.nk-portfolio-footer-meta,
	.nk-preloader-overlay,
	header.site-header,
	footer.site-footer,
	#nk-command-bar {
		display: none !important;
	}

	.nk-portfolio-hero {
		background: #ffffff !important;
		color: #000000 !important;
		border: 1px solid #000000 !important;
		box-shadow: none !important;
		padding: 20px 0 !important;
	}

	.nk-portfolio-hero * {
		color: #000000 !important;
	}

	.nk-portfolio-card {
		box-shadow: none !important;
		border: 1px solid #cccccc !important;
		page-break-inside: avoid;
		margin-bottom: 15px !important;
	}

	.nk-portfolio-wrap {
		opacity: 1 !important;
	}
}

/* Clickable Stats Counter Cards */
a.nk-ref-stat-link {
	text-decoration: none !important;
	color: #ffffff !important;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease;
	border-radius: 8px;
	padding: 8px;
}

a.nk-ref-stat-link:hover {
	text-decoration: none !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.08);
}

a.nk-ref-stat-link:hover strong {
	color: #f3da7e !important;
}

a.nk-ref-stat-link:hover .nk-icon {
	color: #ffffff !important;
	transform: scale(1.08);
	transition: transform 0.2s ease;
}

