/*
 * NexusPortal UI
 * Project-owned interface styles built on Bootstrap 5.
 */

:root {
	--nexus-primary: #4f46e5;
	--nexus-primary-dark: #3730a3;
	--nexus-primary-soft: #eef2ff;
	--nexus-accent: #06b6d4;
	--nexus-ink: #172033;
	--nexus-muted: #667085;
	--nexus-border: #e4e7ec;
	--nexus-surface: #ffffff;
	--nexus-surface-alt: #f7f8fc;
	--nexus-dark: #111827;
	--nexus-radius-sm: 0.65rem;
	--nexus-radius: 1rem;
	--nexus-radius-lg: 1.5rem;
	--nexus-shadow-sm: 0 8px 24px rgba(23, 32, 51, 0.07);
	--nexus-shadow: 0 20px 50px rgba(23, 32, 51, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	margin: 0;
	color: var(--nexus-ink);
	background: var(--nexus-surface);
	font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo",
		"Malgun Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--nexus-ink);
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: -0.025em;
}

a {
	color: var(--nexus-primary);
	text-decoration: none;
}

a:hover {
	color: var(--nexus-primary-dark);
}

.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--nexus-primary);
	--bs-btn-border-color: var(--nexus-primary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--nexus-primary-dark);
	--bs-btn-hover-border-color: var(--nexus-primary-dark);
	--bs-btn-focus-shadow-rgb: 79, 70, 229;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--nexus-primary-dark);
	--bs-btn-active-border-color: var(--nexus-primary-dark);
}

img {
	max-width: 100%;
	height: auto;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1100;
	padding: 0.65rem 1rem;
	color: #fff;
	background: var(--nexus-dark);
	border-radius: 0.5rem;
	transform: translateY(-180%);
}

.skip-link:focus {
	color: #fff;
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	border-bottom: 1px solid rgba(228, 231, 236, 0.85);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(18px);
}

.site-navbar {
	min-height: 76px;
	padding: 0.7rem 0;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--nexus-ink);
	font-size: 1.22rem;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.site-brand:hover {
	color: var(--nexus-ink);
}

.site-brand-mark {
	display: inline-grid;
	width: 2.35rem;
	height: 2.35rem;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-accent));
	border-radius: 0.8rem;
	box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
	font-size: 0.85rem;
	letter-spacing: -0.04em;
}

.site-navbar .navbar-toggler {
	padding: 0.5rem;
	border: 1px solid var(--nexus-border);
	border-radius: 0.7rem;
	box-shadow: none;
}

.site-navbar .nav-link {
	position: relative;
	padding: 0.65rem 0.85rem !important;
	color: #344054;
	border-radius: 0.65rem;
	font-size: 0.94rem;
	font-weight: 650;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
	color: var(--nexus-primary);
	background: var(--nexus-primary-soft);
}

.site-navbar .dropdown-menu {
	min-width: 13rem;
	padding: 0.55rem;
	border: 1px solid var(--nexus-border);
	border-radius: 0.85rem;
	box-shadow: var(--nexus-shadow-sm);
}

.site-navbar .dropdown-item {
	padding: 0.6rem 0.75rem;
	border-radius: 0.55rem;
	color: #344054;
	font-size: 0.92rem;
	font-weight: 550;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
	color: var(--nexus-primary);
	background: var(--nexus-primary-soft);
}

.site-admin-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0.5rem 1rem;
	color: #fff;
	background: var(--nexus-dark);
	border-radius: 0.7rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.site-admin-link:hover {
	color: #fff;
	background: var(--nexus-primary);
}

.main-content {
	min-height: 55vh;
}

.nexus-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(5.5rem, 10vw, 9rem) 0;
	color: #fff;
	background:
		radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.35), transparent 28rem),
		radial-gradient(circle at 90% 85%, rgba(99, 102, 241, 0.5), transparent 30rem),
		linear-gradient(135deg, #111827 0%, #1e1b4b 55%, #172554 100%);
}

.nexus-hero::after {
	position: absolute;
	right: -10rem;
	bottom: -14rem;
	width: 32rem;
	height: 32rem;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	box-shadow:
		0 0 0 4rem rgba(255, 255, 255, 0.035),
		0 0 0 8rem rgba(255, 255, 255, 0.025);
}

.nexus-hero .container {
	position: relative;
	z-index: 1;
}

.nexus-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	padding: 0.45rem 0.75rem;
	color: #c7d2fe;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nexus-hero h1 {
	max-width: 780px;
	margin-bottom: 1.35rem;
	color: #fff;
	font-size: clamp(2.7rem, 7vw, 5.4rem);
	font-weight: 850;
	line-height: 1.05;
}

.nexus-hero-lead {
	max-width: 660px;
	margin-bottom: 2rem;
	color: #d0d5dd;
	font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.nexus-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.nexus-btn-primary,
.nexus-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.15rem;
	padding: 0.7rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 0.8rem;
	font-weight: 750;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nexus-btn-primary {
	color: #fff;
	background: var(--nexus-primary);
	box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}

.nexus-btn-primary:hover {
	color: #fff;
	background: #6366f1;
	transform: translateY(-2px);
}

.nexus-btn-secondary {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.2);
}

.nexus-btn-secondary:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.nexus-section {
	padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.nexus-section-muted {
	background: var(--nexus-surface-alt);
}

.nexus-section-heading {
	max-width: 680px;
	margin-bottom: 2.5rem;
}

.nexus-section-kicker {
	margin-bottom: 0.55rem;
	color: var(--nexus-primary);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nexus-section-heading h2 {
	margin-bottom: 0.8rem;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.nexus-section-heading p {
	margin: 0;
	color: var(--nexus-muted);
}

.nexus-feature-card,
.nexus-content-card {
	height: 100%;
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius);
	box-shadow: var(--nexus-shadow-sm);
}

.nexus-feature-number {
	display: inline-grid;
	width: 2.8rem;
	height: 2.8rem;
	margin-bottom: 1.25rem;
	place-items: center;
	color: var(--nexus-primary);
	background: var(--nexus-primary-soft);
	border-radius: 0.85rem;
	font-size: 0.82rem;
	font-weight: 850;
}

.nexus-feature-card h3,
.nexus-content-card h3 {
	margin-bottom: 0.65rem;
	font-size: 1.15rem;
}

.nexus-feature-card p,
.nexus-content-card p {
	color: var(--nexus-muted);
}

.nexus-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 750;
}

.nexus-card-link::after {
	content: "→";
	transition: transform 0.2s ease;
}

.nexus-card-link:hover::after {
	transform: translateX(0.25rem);
}

.nexus-event-grid {
	row-gap: 1.25rem;
}

.nexus-empty-state {
	padding: 2.2rem;
	color: var(--nexus-muted);
	background: var(--nexus-surface-alt);
	border: 1px dashed #cdd2dc;
	border-radius: var(--nexus-radius);
	text-align: center;
}

.nexus-cta {
	padding: clamp(3rem, 7vw, 5rem) 0;
	background: var(--nexus-primary);
}

.nexus-cta h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.nexus-cta p {
	margin: 0.6rem 0 0;
	color: #e0e7ff;
}

.site-footer {
	color: #d0d5dd;
	background: var(--nexus-dark);
}

.site-footer-main {
	padding: 3.5rem 0 2.75rem;
}

.site-footer h2,
.site-footer h3 {
	color: #fff;
}

.site-footer h2 {
	font-size: 1.25rem;
}

.site-footer h3 {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer p {
	max-width: 540px;
	margin-bottom: 0;
	color: #98a2b3;
}

.site-footer-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer-links a {
	color: #d0d5dd;
	font-size: 0.92rem;
}

.site-footer-links a:hover {
	color: #fff;
}

.site-footer-bottom {
	padding: 1.15rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	color: #98a2b3;
	font-size: 0.82rem;
}

.inner-header {
	position: relative;
	overflow: hidden;
	min-height: 230px;
	display: flex;
	align-items: end;
	background-color: #172033;
	background-position: center;
	background-size: cover;
}

.inner-header::before {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(30, 27, 75, 0.55));
}

.inner-header > * {
	position: relative;
	z-index: 1;
	width: 100%;
}

.inner-header .title {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.2rem);
}

.inner-header .breadcrumb {
	--bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
	--bs-breadcrumb-item-active-color: #fff;
	margin: 0;
	color: #fff;
}

.page-section {
	padding: clamp(2.75rem, 6vw, 5rem) 0;
}

.page-section-muted {
	background: var(--nexus-surface-alt);
}

.section-heading-accent {
	margin-bottom: 1.5rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid var(--nexus-primary);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.content-card,
.filter-card,
.nexus-list-card {
	background: #fff;
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius);
	box-shadow: var(--nexus-shadow-sm);
}

.content-card,
.filter-card {
	padding: clamp(1rem, 3vw, 1.5rem);
}

.filter-card {
	margin-bottom: 1.5rem;
	background: var(--nexus-surface-alt);
	box-shadow: none;
}

.nexus-list-card {
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.nexus-list-card-body {
	padding: clamp(1rem, 3vw, 1.5rem);
}

.nexus-list-card-title {
	margin-bottom: 0.65rem;
	font-size: 1.2rem;
}

.nexus-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0 0 1rem;
	padding: 0;
	color: var(--nexus-muted);
	list-style: none;
	font-size: 0.88rem;
}

.nexus-placeholder {
	display: grid;
	width: 100%;
	min-height: 180px;
	place-items: center;
	padding: 1.5rem;
	color: #667085;
	background:
		linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08)),
		#f8fafc;
	border: 1px dashed #c7d2fe;
	border-radius: 0.85rem;
	text-align: center;
}

.content-prose {
	overflow-wrap: anywhere;
}

.content-prose img,
.content-prose iframe {
	max-width: 100%;
}

.sidebar-card {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius);
}

.sidebar-card .list-group-item {
	padding-inline: 0;
	color: #344054;
	background: transparent;
	border-color: var(--nexus-border);
}

.sidebar-card .list-group-item-action {
	padding: 0.7rem 0.75rem;
	border-radius: 0.55rem;
	font-weight: 600;
}

.sidebar-card .list-group-item-action:hover,
.sidebar-card .list-group-item-action:focus {
	color: var(--nexus-primary-dark);
	background: var(--nexus-primary-soft);
}

.sidebar-card .list-group-item-action.active,
.sidebar-card .list-group-item-action.active:hover,
.sidebar-card .list-group-item-action.active:focus {
	color: #fff;
	background: var(--nexus-primary);
	border-color: var(--nexus-primary);
}

.attachment-list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.attachment-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0.8rem;
	background: var(--nexus-surface-alt);
	border: 1px solid var(--nexus-border);
	border-radius: 0.65rem;
}

.pagination {
	--bs-pagination-color: var(--nexus-primary);
	--bs-pagination-hover-color: var(--nexus-primary-dark);
	--bs-pagination-focus-color: var(--nexus-primary-dark);
	--bs-pagination-active-bg: var(--nexus-primary);
	--bs-pagination-active-border-color: var(--nexus-primary);
	justify-content: center;
	gap: 0.25rem;
}

.pagination .page-link {
	border-radius: 0.55rem;
}

.ratio iframe,
iframe {
	max-width: 100%;
}

.compImg {
	width: 100%;
	height: 256px;
	object-fit: cover;
	border-radius: 0.85rem;
}

img.nexus-image-fallback {
	padding: 1rem;
	background: var(--nexus-surface-alt);
	object-fit: contain !important;
}

.comp-card {
	margin-bottom: 1.25rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius);
	box-shadow: var(--nexus-shadow-sm);
}

.comp-title {
	font-size: 1.35rem;
	font-weight: 750;
}

.comp-desc {
	display: -webkit-box;
	overflow: hidden;
	margin: 0.5rem 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.line-bottom-long {
	width: 100%;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--nexus-border);
}

.more-div {
	text-align: right;
}

.nexus-login-page {
	display: grid;
	min-height: 100vh;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
	background: var(--nexus-surface-alt);
}

.nexus-login-visual {
	position: relative;
	display: flex;
	align-items: end;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 6rem);
	color: #fff;
	background:
		radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.35), transparent 24rem),
		linear-gradient(145deg, #111827, #312e81);
}

.nexus-login-visual::after {
	position: absolute;
	top: -12rem;
	right: -12rem;
	width: 30rem;
	height: 30rem;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.035);
}

.nexus-login-copy {
	position: relative;
	z-index: 1;
	max-width: 620px;
}

.nexus-login-copy h1 {
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.nexus-login-copy p {
	color: #d0d5dd;
	font-size: 1.1rem;
}

.nexus-login-panel {
	display: flex;
	align-items: center;
	padding: clamp(2rem, 6vw, 5rem);
	background: #fff;
}

.nexus-login-card {
	width: 100%;
	max-width: 420px;
	margin: auto;
}

.nexus-login-card .site-brand {
	margin-bottom: 3rem;
}

.nexus-login-card h2 {
	margin-bottom: 0.55rem;
	font-size: 2rem;
}

.nexus-login-card > p {
	margin-bottom: 2rem;
	color: var(--nexus-muted);
}

.nexus-login-card .form-label {
	font-size: 0.9rem;
	font-weight: 700;
}

.nexus-login-card .form-control {
	min-height: 3.1rem;
	border-color: var(--nexus-border);
	border-radius: 0.75rem;
}

.nexus-login-card .form-control:focus {
	border-color: #a5b4fc;
	box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.12);
}

.nexus-login-actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.nexus-login-actions .btn {
	min-height: 3.1rem;
	border-radius: 0.75rem;
	font-weight: 750;
}

@media (max-width: 991.98px) {
	.site-navbar .navbar-collapse {
		margin-top: 0.75rem;
		padding: 0.75rem;
		background: #fff;
		border: 1px solid var(--nexus-border);
		border-radius: var(--nexus-radius);
		box-shadow: var(--nexus-shadow-sm);
	}

	.site-admin-link {
		margin-top: 0.4rem;
	}

	.nexus-login-page {
		grid-template-columns: 1fr;
	}

	.nexus-login-visual {
		min-height: 280px;
	}
}

@media (max-width: 575.98px) {
	.nexus-hero-actions > * {
		width: 100%;
	}

	.site-footer-links {
		grid-template-columns: 1fr;
	}

	.nexus-login-visual {
		display: none;
	}

	.nexus-login-panel {
		min-height: 100vh;
	}
}

.nexus-empty-illustration {
	width: 180px;
}

.content-card-wide {
	max-width: 960px;
}
