.navbar {
	position: fixed;
	top: 20px;
	left: 20px;
	right: 20px;
	width: calc(100% - 40px);
	height: 37px;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
/* 	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
	border: .5px solid #878584;
	z-index: 1000;
}

.nav-links {
	display: flex;
	list-style: none;
	padding: 0;
}

.brand {
	font-family: "R-sans-Heavy", "Helvetica Neue", Arial, sans-serif;  
	letter-spacing: -.3px;
	font-size: 16px;
}

.brand a {
	color: #000;
	text-decoration: none;
}

.nav-links li {
	margin: 0 15px;
	cursor: pointer;
}

.nav-links li a,
div.language a {
	color: #333333;
	text-decoration: none;
	padding: 8px 0px;
}

.nav-links li a:hover {
	color: #000;
}


.nav-links li.active {
	font-family: "AF-serif-Medium", serif;
}

.dropdown {
	position: relative;
}

.dropdown-content {
	display: none;
	position: absolute;
	top: 28px;
	left: 0;
	background: white;
	border: .5px solid #878584;
/* 	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
	list-style: none;
	padding: 16px;
	width: 230px;
/* 	min-width: 120px; */
}

.dropdown:hover .dropdown-content,
.dropdown-content li:hover {
	display: block;
}

.dropdown-content li { 
	padding: 4px 0 8px;
}


.dropdown-content li.active {
	font-family: "AF-serif-Medium", "Helvetica Neue", Arial, sans-serif !important;
}

.menu-toggle {
	display: none;
	width: 30px;
	height: 30px;
	position: relative;
	cursor: pointer;
}

.menu-toggle div {
	position: absolute;
	width: 100%;
	height: 1px;
	background: #878584;
	transition: all 0.3s;
	z-index: 1100; 
}

.menu-toggle div:nth-child(1) {
	top: 0;
}

.menu-toggle div:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.menu-toggle div:nth-child(3) {
	bottom: 0;
}

#menu-toggle:checked + .menu-toggle div:nth-child(1) {
	transform: rotate(45deg) translateY(10px);
}

#menu-toggle:checked + .menu-toggle div:nth-child(2) {
	opacity: 0;
}

#menu-toggle:checked + .menu-toggle div:nth-child(3) {
	transform: rotate(-45deg) translateY(-10px);
}

@media (max-width: 992px) {
	.nav-links, .language {
		display: none;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: white;
		padding-bottom: 15px;
		text-align: center;
		justify-content: center;
		align-items: center;
		z-index: 1000; 
	}

	#menu-toggle:checked ~ .nav-links {
		display: flex;
		margin: 0;
	}

	.menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		height: 16px;
	}
}


@media (max-width: 992px) {
	.dropdown-content {
		display: block;
		position: static; /* Prevents absolute positioning issues */
		width: 100%; /* Ensures it takes the full width */
		padding: 0;
		background: none;
		border: none;
	}

	.dropdown-content li {
		padding: 0;
		text-align: center;
		margin: 0;
	}

	.dropdown:hover .dropdown-content {
		display: block; /* Ensure it stays visible */
	}
}
