/**
 * BPU UNSOED - Official Brand Design System & Bootstrap 5 Theme Extension
 * Universitas Jenderal Soedirman (UNSOED) - Badan Pengelola Usaha
 */

:root {
	/* Brand Colors */
	--unsoed-navy: #0d2c54;
	--unsoed-navy-dark: #071c38;
	--unsoed-navy-light: #1a3e6d;
	--unsoed-gold: #f4b400;
	--unsoed-gold-dark: #dda300;
	--unsoed-gold-light: #ffc72c;
	--unsoed-gold-glow: rgba(244, 180, 0, 0.25);
	--unsoed-navy-glow: rgba(13, 44, 84, 0.15);

	/* Neutral Slate Scale */
	--slate-50: #f8fafc;
	--slate-100: #f1f5f9;
	--slate-200: #e2e8f0;
	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--slate-800: #1e293b;
	--slate-900: #0f172a;

	/* Semantic States */
	--bs-success: #10b981;
	--bs-danger: #ef4444;
	--bs-warning: #f59e0b;
	--bs-info: #0284c7;

	/* Typography */
	--font-primary:
		"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;

	/* Transitions & Shadows */
	--transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--shadow-soft:
		0 4px 6px -1px rgba(13, 44, 84, 0.06), 0 2px 4px -2px rgba(13, 44, 84, 0.04);
	--shadow-elevated:
		0 12px 24px -4px rgba(13, 44, 84, 0.12),
		0 4px 8px -2px rgba(13, 44, 84, 0.06);
	--shadow-gold: 0 8px 20px -4px rgba(244, 180, 0, 0.35);
}

body {
	font-family: var(--font-primary);
	color: var(--slate-800);
	background-color: var(--slate-50);
}

/* ==========================================================================
   Background Utilities
   ========================================================================== */
.bg-navy {
	background-color: var(--unsoed-navy) !important;
	color: #ffffff;
}

.bg-navy-dark {
	background-color: var(--unsoed-navy-dark) !important;
	color: #ffffff;
}

.bg-navy-light {
	background-color: var(--unsoed-navy-light) !important;
	color: #ffffff;
}

.bg-gold {
	background-color: var(--unsoed-gold) !important;
	color: var(--unsoed-navy-dark) !important;
}

.bg-slate-50 {
	background-color: var(--slate-50) !important;
}

.bg-slate-100 {
	background-color: var(--slate-100) !important;
}

/* ==========================================================================
   Text & Border Utilities
   ========================================================================== */
.text-navy {
	color: var(--unsoed-navy) !important;
}

.text-gold {
	color: var(--unsoed-gold) !important;
}

.text-gold-dark {
	color: var(--unsoed-gold-dark) !important;
}

.border-navy {
	border-color: var(--unsoed-navy) !important;
}

.border-gold {
	border-color: var(--unsoed-gold) !important;
}

/* ==========================================================================
   Custom Buttons
   ========================================================================== */
.btn-gold {
	background-color: var(--unsoed-gold);
	color: var(--unsoed-navy-dark);
	font-weight: 600;
	border: 1px solid var(--unsoed-gold);
	transition: var(--transition-smooth);
	box-shadow: 0 2px 4px rgba(244, 180, 0, 0.2);
}

.btn-gold:hover,
.btn-gold:focus,
.btn-gold:active {
	background-color: var(--unsoed-gold-dark);
	border-color: var(--unsoed-gold-dark);
	color: var(--unsoed-navy-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-gold);
}

.btn-navy {
	background-color: var(--unsoed-navy);
	color: #ffffff;
	font-weight: 600;
	border: 1px solid var(--unsoed-navy);
	transition: var(--transition-smooth);
}

.btn-navy:hover,
.btn-navy:focus,
.btn-navy:active {
	background-color: var(--unsoed-navy-dark);
	border-color: var(--unsoed-navy-dark);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-elevated);
}

.btn-outline-gold {
	border: 2px solid var(--unsoed-gold);
	color: var(--unsoed-gold);
	font-weight: 600;
	background: transparent;
	transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
	background-color: var(--unsoed-gold);
	color: var(--unsoed-navy-dark);
}

.btn-outline-navy {
	border: 2px solid var(--unsoed-navy);
	color: var(--unsoed-navy);
	font-weight: 600;
	background: transparent;
	transition: var(--transition-smooth);
}

.btn-outline-navy:hover {
	background-color: var(--unsoed-navy);
	color: #ffffff;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge-gold {
	background-color: rgba(244, 180, 0, 0.15);
	color: #b45309;
	border: 1px solid rgba(244, 180, 0, 0.4);
	font-weight: 600;
}

.badge-navy {
	background-color: rgba(13, 44, 84, 0.1);
	color: var(--unsoed-navy);
	border: 1px solid rgba(13, 44, 84, 0.25);
	font-weight: 600;
}

/* ==========================================================================
   Card Styling & Hover Animations
   ========================================================================== */
.card-unsoed {
	border: 1px solid var(--slate-200);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: var(--shadow-soft);
	transition: var(--transition-smooth);
	overflow: hidden;
}

.card-hover:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-elevated);
	border-color: rgba(13, 44, 84, 0.2);
}

/* ==========================================================================
   Navbar Styling
   ========================================================================== */
.navbar-unsoed {
	background: rgba(13, 44, 84, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 2px solid var(--unsoed-gold);
	transition: var(--transition-smooth);
}

.navbar-unsoed .nav-link {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	padding: 0.5rem 1rem;
	transition: var(--transition-smooth);
}

.navbar-unsoed .nav-link:hover,
.navbar-unsoed .nav-link.active {
	color: var(--unsoed-gold);
}

@media (min-width: 992px) {
	.navbar-unsoed .dropdown-menu {
		border: 1px solid rgba(13, 44, 84, 0.1);
		box-shadow: 0 12px 32px rgba(7, 28, 56, 0.15);
		border-radius: 0.75rem;
		padding: 0.5rem;
		min-width: 270px;
		animation: navDropdownFadeIn 0.2s ease-out;
	}

	.navbar-unsoed .dropdown-item {
		padding: 0.65rem 1rem;
		font-weight: 500;
		color: var(--slate-800);
		border-radius: 0.5rem;
		transition: var(--transition-fast);
	}

	.navbar-unsoed .dropdown-item:hover,
	.navbar-unsoed .dropdown-item:focus {
		background-color: rgba(244, 180, 0, 0.12);
		color: var(--unsoed-navy);
	}

	.navbar-unsoed .dropdown-item.active {
		background-color: rgba(244, 180, 0, 0.2);
		color: var(--unsoed-navy-dark);
		font-weight: 600;
	}

	.navbar-unsoed .dropdown-divider {
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		margin: 0.4rem 0;
	}
}

@keyframes navDropdownFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Decorations & Accent Lines
   ========================================================================== */
.accent-line-gold {
	width: 60px;
	height: 4px;
	background: var(--unsoed-gold);
	border-radius: 2px;
	display: inline-block;
}

.accent-line-center {
	margin: 0.5rem auto 1.5rem auto;
}

/* ==========================================================================
   Glassmorphism Helper
   ========================================================================== */
.glass-panel {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-panel-dark {
	background: rgba(13, 44, 84, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

/* ==========================================================================
   Netlify-Inspired Modern Elements & Mobile-First Extensions
   ========================================================================== */

/* Modern Hero Section */
.hero-netlify {
	background: linear-gradient(135deg, #071c38 0%, #0d2c54 50%, #163e72 100%);
	position: relative;
	overflow: hidden;
	color: #ffffff;
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero-netlify::before {
	content: "";
	position: absolute;
	top: -30%;
	right: -20%;
	width: 600px;
	height: 600px;
	background: radial-gradient(
		circle,
		rgba(244, 180, 0, 0.15) 0%,
		rgba(244, 180, 0, 0) 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.hero-netlify-title {
	font-size: clamp(1.85rem, 4.5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.hero-netlify-subtitle {
	font-size: clamp(0.95rem, 2vw, 1.15rem);
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.6;
}

/* 3 Quick Pillar Cards */
.pillar-card {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 1rem;
	padding: 1.25rem;
	transition: var(--transition-smooth);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	height: 100%;
}

.pillar-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 20px -3px rgba(13, 44, 84, 0.12);
	border-color: rgba(244, 180, 0, 0.5);
}

/* Modern Unit Usaha Card (Netlify Inspired) */
.unit-card-netlify {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 1.15rem;
	overflow: hidden;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.05),
		0 2px 4px -2px rgba(0, 0, 0, 0.03);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.unit-card-netlify:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 28px -4px rgba(13, 44, 84, 0.14);
	border-color: rgba(13, 44, 84, 0.25);
}

.unit-card-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--slate-100);
}

.unit-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.unit-card-netlify:hover .unit-card-img-wrap img {
	transform: scale(1.05);
}

/* Category Badges */
.badge-rentable {
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	font-weight: 700;
	font-size: 0.725rem;
	padding: 0.35rem 0.65rem;
	border-radius: 9999px;
}

.badge-production {
	background-color: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
	font-weight: 700;
	font-size: 0.725rem;
	padding: 0.35rem 0.65rem;
	border-radius: 9999px;
}

/* Feature Checklist */
.unit-feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--slate-600);
}

.unit-feature-item i {
	color: #10b981;
	font-size: 1rem;
	flex-shrink: 0;
}

/* Horizontal Scroll without Scrollbars (Smooth Touch Swipe) */
.scrollbar-none {
	-ms-overflow-style: none; /* IE/Edge */
	scrollbar-width: none; /* Firefox */
	-webkit-overflow-scrolling: touch;
}

.scrollbar-none::-webkit-scrollbar {
	display: none; /* Chrome/Safari/Brave */
}

/* Mobile Sticky Bottom Action Bar */
.mobile-booking-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(13, 44, 84, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 2px solid var(--unsoed-gold);
	padding: 0.75rem 1rem;
	z-index: 1040;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Touch & Layout Ergonomics */
@media (max-width: 991.98px) {
	.navbar-unsoed .navbar-collapse {
		background: var(--unsoed-navy-dark);
		border-radius: 1rem;
		padding: 1.25rem;
		margin-top: 0.75rem;
		border: 1px solid rgba(255, 255, 255, 0.1);
		box-shadow: var(--shadow-elevated);
	}

	.navbar-unsoed .nav-link {
		padding: 0.75rem 1rem;
		border-radius: 0.5rem;
		font-size: 1rem;
		display: flex;
		align-items: center;
	}

	.navbar-unsoed .nav-link:hover,
	.navbar-unsoed .nav-link.active {
		background: rgba(244, 180, 0, 0.15);
		color: var(--unsoed-gold) !important;
	}

	.navbar-unsoed .dropdown-menu {
		background: rgba(7, 28, 56, 0.95);
		border: 1px solid rgba(255, 255, 255, 0.12);
		margin-top: 0.35rem;
		border-radius: 0.75rem;
		padding: 0.5rem;
		box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
	}

	.navbar-unsoed .dropdown-item {
		color: rgba(255, 255, 255, 0.92);
		padding: 0.65rem 0.85rem;
		border-radius: 0.5rem;
		font-size: 0.95rem;
		transition: var(--transition-fast);
	}

	.navbar-unsoed .dropdown-item:hover,
	.navbar-unsoed .dropdown-item:focus {
		background: rgba(244, 180, 0, 0.18);
		color: var(--unsoed-gold);
	}

	.navbar-unsoed .dropdown-item.active {
		background: rgba(244, 180, 0, 0.25);
		color: var(--unsoed-gold);
		font-weight: 600;
	}

	.navbar-unsoed .dropdown-divider {
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		margin: 0.5rem 0;
	}
}

@media (max-width: 575.98px) {
	.btn-mobile-full {
		width: 100%;
	}

	.unit-card-netlify {
		border-radius: 1rem;
	}

	.hero-netlify {
		padding-top: 2.25rem;
		padding-bottom: 2.75rem;
	}

	.hero-netlify-title {
		font-size: 1.75rem;
		line-height: 1.25;
	}

	.hero-netlify-subtitle {
		font-size: 0.95rem;
		line-height: 1.5;
	}

	.pillar-card {
		padding: 1.15rem;
	}

	.navbar-logo-img {
		height: 38px !important;
	}

	.navbar-brand-title {
		font-size: 0.825rem !important;
		letter-spacing: 0.02em !important;
	}

	.navbar-brand-sub {
		font-size: 0.62rem !important;
		letter-spacing: 0.04em !important;
	}
}

@media (min-width: 576px) {
	.navbar-logo-img {
		height: 48px;
	}
}

/* Horizontal pill scroll on touch devices */
.scroll-touch-x {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	white-space: nowrap;
	padding-bottom: 0.35rem;
}

.scroll-touch-x::-webkit-scrollbar {
	display: none;
}

/* Mobile-Friendly Profile Quick Nav */
.profile-mobile-nav {
	display: flex;
	overflow-x: auto;
	gap: 0.5rem;
	padding: 0.5rem 0;
	-webkit-overflow-scrolling: touch;
}

.profile-mobile-nav .btn {
	white-space: nowrap;
	font-size: 0.85rem;
	padding: 0.45rem 0.9rem;
	flex-shrink: 0;
}

/* ==========================================================================
   Organizational Chart (Bagan Organisasi)
   ========================================================================== */
.org-chart-wrapper {
	position: relative;
	padding: 0.5rem 0;
}

/* ==========================================================================
   Bespoke Institutional Refinements (Anti-AI Template Polish)
   ========================================================================== */
.tracking-wider {
	letter-spacing: 0.08em;
}

.tracking-widest {
	letter-spacing: 0.12em;
}

.badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.backdrop-blur {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hover-gold {
	transition: color 0.2s ease-in-out;
}

.hover-gold:hover {
	color: var(--unsoed-gold) !important;
}

/* Premium Institutional Page Header */
.page-header-unsoed {
	background: linear-gradient(140deg, #06172e 0%, #0d2c54 60%, #153b6c 100%);
	position: relative;
	overflow: hidden;
	color: #ffffff;
	border-bottom: 2px solid rgba(244, 180, 0, 0.3);
}

.page-header-unsoed::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(244, 180, 0, 0.12) 0%, rgba(244, 180, 0, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

/* Institutional Breadcrumb on Dark Header */
.breadcrumb-dark {
	--bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.4);
	margin-bottom: 0.75rem;
}

.breadcrumb-dark .breadcrumb-item a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.2s;
}

.breadcrumb-dark .breadcrumb-item a:hover {
	color: var(--unsoed-gold);
}

.breadcrumb-dark .breadcrumb-item.active {
	color: var(--unsoed-gold);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Gallery Refinements */
.gallery-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--slate-200);
}

.gallery-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover .gallery-card-thumb img {
	transform: scale(1.06);
}

.bg-gradient-scrim {
	background: linear-gradient(to top, rgba(7, 28, 56, 0.88) 0%, rgba(7, 28, 56, 0.35) 55%, transparent 100%);
}

/* ==========================================================================
   BPU Bespoke Gallery Lightbox Card Modal
   ========================================================================== */
.modal-card-dialog {
	max-width: 760px;
	width: 94%;
	margin: 1.75rem auto;
}

.gallery-card-modal .modal-content {
	border-radius: 20px;
	box-shadow: 0 25px 60px -10px rgba(7, 28, 56, 0.45);
	overflow: hidden;
	background-color: #ffffff;
	border: 1px solid rgba(13, 44, 84, 0.12);
}

.gallery-card-modal-stage {
	position: relative;
	background: radial-gradient(circle at center, #142844 0%, #091524 100%);
	min-height: 360px;
	max-height: 66vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.gallery-card-modal-img {
	max-height: 62vh;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.modal-card-close {
	width: 36px;
	height: 36px;
	background: rgba(13, 27, 46, 0.72) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
	transition: all 0.2s ease;
	cursor: pointer;
}

.modal-card-close:hover {
	background: #ef4444 !important;
	color: #ffffff !important;
	border-color: #ef4444 !important;
	transform: scale(1.08);
}

.card-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(13, 27, 46, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.2s ease;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 10;
}

.card-lightbox-nav:hover {
	background: var(--unsoed-gold);
	color: var(--unsoed-navy);
	border-color: var(--unsoed-gold);
	transform: translateY(-50%) scale(1.08);
}

.card-lightbox-nav.prev {
	left: 14px;
}

.card-lightbox-nav.next {
	right: 14px;
}

.modal-backdrop.gallery-modal-backdrop {
	background-color: rgba(7, 28, 56, 0.8) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	opacity: 1 !important;
}

@media (max-width: 767.98px) {
	.modal-card-dialog {
		margin: 1rem auto;
		width: 95%;
	}
	.gallery-card-modal-stage {
		min-height: 280px;
		max-height: 52vh;
	}
	.gallery-card-modal-img {
		max-height: 48vh;
	}
	.card-lightbox-nav {
		width: 38px;
		height: 38px;
		font-size: 1rem;
	}
	.card-lightbox-nav.prev {
		left: 8px;
	}
	.card-lightbox-nav.next {
		right: 8px;
	}
}


