/* Header Styles */
header {
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid #f1f5f9;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	width: 100%;
}

/* Add padding to body to prevent content from going under fixed header */
body {
	padding-top: 80px;
}

/* If intro-block exists, adjust spacing */
body:has(header + [class*="intro"]) {
	padding-top: 0;
}

header .header-container {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 24px;
	height: 80px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Logo Section */
header #logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

header #logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
    gap: 0;
	transition: opacity 0.2s;
	flex-direction: column;
}

header #logo a:hover {
	opacity: 0.8;
}

header #logo img {
	height: 30px;
	display: block;
}

header #logo span {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
	display: block;
}

header #logo_partner {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	margin-inline-start: 20px;
}

header #logo_partner a {
	display: flex;
	align-items: center;
	line-height: 0;
}

header #logo_partner img {
	max-width: 108px;
	max-height: 48px;
	height: auto;
	display: block;
}

/* Menu Section */
header #menu {
	display: flex;
	align-items: center;
	gap: 32px;
	flex: 1;
	justify-content: center;
}

header #menu ul,
header #menu .mod-menu,
header #menu .nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 32px;
}

header #menu li,
header #menu .nav-item {
	margin: 0;
	padding: 0;
}

header #menu a {
	color: #475569;
	font-weight: 500;
	text-decoration: none;
	padding: 4px 0;
	transition: color 0.2s;
	border-bottom: 2px solid transparent;
	display: inline-block;
}

header #menu a:hover {
	color: #2563eb;
}

header #menu a.active,
header #menu li.active a,
header #menu li.current a,
header #menu .nav-item.active a,
header #menu .nav-item.current a {
	color: #2563eb;
	font-weight: 700;
	border-bottom-color: #2563eb;
}

/* Auth Buttons Section */
header .header-auth {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

header .enter-link {
	margin: 0;
}

header .enter-link a {
	color: #475569;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

header .enter-link a:hover {
	color: #2563eb;
}

header .header-register-btn {
	background: #2563eb;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 9999px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
	display: inline-block;
}

header .header-register-btn:hover {
	background: #1d4ed8;
	box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
	transform: translateY(-1px);
}

/* Mobile Menu Button */
header .mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #475569;
	transition: color 0.2s;
}

header .mobile-menu-btn:hover {
	color: #2563eb;
}

header .mobile-menu-btn svg {
	display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 100;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
	display: flex;
	opacity: 1;
}

.mobile-menu-close {
	position: absolute;
	top: 24px;
	right: 24px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 12px;
	color: #475569;
	transition: color 0.2s, transform 0.2s;
	z-index: 101;
}

.mobile-menu-close:hover {
	color: #2563eb;
	transform: rotate(90deg);
}

.mobile-menu-close svg {
	display: block;
}

.mobile-menu-content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 24px 24px;
	overflow-y: auto;
}

.mobile-menu-nav {
	width: 100%;
	max-width: 600px;
	text-align: center;
}

.mobile-menu-nav ul,
.mobile-menu-nav .mod-menu,
.mobile-menu-nav .nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.mobile-menu-nav li,
.mobile-menu-nav .nav-item {
	margin: 0;
	padding: 0;
	width: 100%;
}

.mobile-menu-nav a,
.mobile-menu-auth a {
	color: #1e293b;
	font-size: 24px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 0;
	display: block;
	transition: color 0.2s;
	border-bottom: 2px solid transparent;
}

.mobile-menu-nav a:hover,
.mobile-menu-auth a:hover {
	color: #2563eb;
}

.mobile-menu-nav a.active,
.mobile-menu-nav li.active a,
.mobile-menu-nav li.current a,
.mobile-menu-nav .nav-item.active a,
.mobile-menu-nav .nav-item.current a {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

/* Mobile Menu Auth Buttons - styled as regular menu items */
.mobile-menu-auth {
	width: 100%;
	max-width: 600px;
	margin-top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.mobile-menu-login,
.mobile-menu-register {
	color: #1e293b;
	font-size: 24px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 0;
	display: block;
	transition: color 0.2s;
	border-bottom: 2px solid transparent;
	width: 100%;
	text-align: center;
}

.mobile-menu-login:hover,
.mobile-menu-register:hover {
	color: #2563eb;
}

/* Responsive - Hide desktop menu and auth, show mobile button */
@media (max-width: 1096px) {
	header #menu {
		display: none;
	}
	
	header .header-auth {
		display: none;
	}
	
	header .mobile-menu-btn {
		display: block;
	}

	.mobile-menu-nav a, .mobile-menu-auth a {
		font-size: 20px;
	}
	.mobile-menu-nav a.active, .mobile-menu-nav li.active a, .mobile-menu-nav li.current a, .mobile-menu-nav .nav-item.active a, .mobile-menu-nav .nav-item.current a{
		border:none;
	}
}

@media (max-width: 600px) {
	header #logo_partner{
		margin-inline-start: 0;
	}
	header #logo_partner img {
		max-width: 100px;
	}
}