/* Header Container */
.dr1016header {
	background-color: #009688;
	color: #fff;
	padding: 15px 30px;
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap; /* allow wrapping on smaller screens */
}

/* Logo and Title */
.dr1016header .logo-title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0; /* don't shrink */
}

.dr1016header .logo {
	width: 90px;
	height: 90px;
}

/* Menu Toggle (for Mobile) */
.dr1016header .menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	user-select: none;
	z-index: 1100;
}

.dr1016header .menu-toggle span {
	height: 3px;
	width: 25px;
	background: #fff;
	margin: 4px 0;
	border-radius: 2px;
	transition: background-color 0.3s ease;
}

/* Navigation Wrapper */
.dr1016header nav {
	position: relative;
	overflow-x: auto;
	max-width: 100%;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	flex-grow: 1; /* take remaining space */
	margin-left: 20px;
}

/* Webkit Scrollbar Styling for Desktop Nav */
.dr1016header nav::-webkit-scrollbar {
	height: 6px;
}

.dr1016header nav::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.dr1016header nav::-webkit-scrollbar-track {
	background: transparent;
}

/* Optional fade effect at right side */
.dr1016header nav::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 100%;
	background: linear-gradient(to left, #009688, transparent);
	pointer-events: none;
}

/* Desktop Nav List */
.dr1016header nav ul {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	gap: 20px;
	padding: 0;
	margin: 0;
	white-space: nowrap;
	transition: max-height 0.3s ease;
}

/* Navigation Links */
.dr1016header nav a {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s;
}

.dr1016header nav a:hover {
	color: #ffe082;
}

/* ============================
   MOBILE VIEW STYLES
============================= */
@media ( max-width : 768px) {
	.dr1016header {
		padding: 15px 20px;
		flex-wrap: nowrap; /* keep single row */
		display: flex;
		justify-content: flex-start; /* align left */
		align-items: center;
		width: 100%;
	}
	.dr1016header .logo-title {
		order: 1;
		margin-right: auto; /* push menu-toggle right */
	}
	.dr1016header .menu-toggle {
		display: flex;
		order: 2;
		margin-left: auto; /* keep hamburger right */
	}
	.dr1016header nav {
		flex-grow: 0;
		margin-left: 0;
		width: auto;
		overflow: visible;
	}
	.dr1016header nav ul {
		display: none;
		flex-direction: column;
		background: #00796b;
		position: fixed;
		top: 60px; /* below header */
		right: 0;
		left: 0;
		margin: 0;
		padding: 0;
		border-radius: 0 0 8px 8px;
		max-height: 0;
		overflow-y: auto;
		z-index: 1001;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
		scrollbar-width: thin;
		scrollbar-color: #ccc #00796b;
		transition: max-height 0.4s ease, padding 0.3s ease;
	}
	.dr1016header nav ul.active {
		display: flex;
		max-height: 80vh;
		padding: 15px 20px;
	}
	.dr1016header nav ul li {
		margin: 10px 0;
	}
	.dr1016header nav ul::-webkit-scrollbar {
		width: 6px;
	}
	.dr1016header nav ul::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 3px;
	}
	.dr1016header nav ul::-webkit-scrollbar-track {
		background: #00796b;
	}
	.dr1016header .logo-title h1 {
		font-size: 1.1rem;
	}
	.dr1016header .logo-title p {
		font-size: 0.75rem;
	}
}