/* Primary navigation — desktop dropdowns + mobile accordion */

.site-container {
	width: 100%;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

@media (min-width: 1024px) {
	.nav-inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 1.5rem;
	}
	.nav-links-group {
		justify-content: center;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.nav-links-group::-webkit-scrollbar { display: none; }
}

.nav-links-group {
	display: none;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: wrap;
}

@media (min-width: 1024px) {
	.nav-links-group {
		display: flex;
	}
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	border-radius: 0.375rem;
	transition: color 0.15s, background 0.15s;
	white-space: nowrap;
	border: none;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
}

.nav-link:hover,
.nav-link.active {
	color: #2b3260;
}

.nav-link--toggle svg {
	transition: transform 0.2s;
}

.nav-dropdown.open > .nav-link--toggle svg,
.nav-dropdown:hover > .nav-link--toggle svg {
	transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown {
	position: relative;
}

.nav-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	min-width: 13rem;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	box-shadow: 0 10px 40px -12px rgba(30, 34, 53, 0.18);
	padding: 0.35rem 0;
	z-index: 60;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
	display: block;
}

.nav-dropdown-link,
.nav-dropdown-flyout-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
}

.nav-dropdown-link:hover,
.nav-dropdown-flyout-link:hover {
	background: #f4f5f9;
	color: #2b3260;
}

.nav-dropdown-item {
	position: relative;
}

.nav-dropdown-item.has-flyout > .nav-dropdown-link {
	padding-right: 0.75rem;
}

.nav-dropdown-flyout {
	display: none;
	position: absolute;
	left: calc(100% - 2px);
	top: 0;
	min-width: 12rem;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	box-shadow: 0 10px 40px -12px rgba(30, 34, 53, 0.18);
	padding: 0.35rem 0;
	z-index: 61;
}

.nav-dropdown-item.has-flyout:hover > .nav-dropdown-flyout {
	display: block;
}

.nav-flyout-arrow {
	opacity: 0.45;
	flex-shrink: 0;
}

/* CTA button */
.dt-enroll-btn {
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.5rem 1.15rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	background-color: #2b3260;
	color: #f9f9fb;
	transition: background-color 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}

.dt-enroll-btn:hover {
	background-color: #1a2050;
	color: #f9f9fb;
}

@media (min-width: 768px) {
	.dt-enroll-btn {
		display: inline-flex;
	}
}

/* Mobile menu */
#mobile-menu {
	display: none;
	flex-direction: column;
	gap: 0;
	padding: 0.5rem 0 1rem;
}

#mobile-menu.open {
	display: flex;
}

.mob-nav-item,
.mob-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.75rem 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	background: none;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}

.mob-nav-item:hover,
.mob-nav-link:hover {
	color: #2b3260;
}

.mob-nav-item .arr {
	transition: transform 0.2s;
}

.mob-nav-item.is-open .arr {
	transform: rotate(90deg);
}

.mob-submenu {
	display: none;
	padding-bottom: 0.25rem;
}

.mob-submenu.open {
	display: block;
}

.mob-submenu .mob-nav-link {
	font-size: 0.875rem;
	color: #64748b;
}

@media (max-width: 1023px) {
	#site-header.dt-menu-active {
		background: #ffffff !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	#mobile-menu.open {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: var(--dt-header-height, 4.5rem);
		z-index: 49;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		min-height: calc(100dvh - var(--dt-header-height, 4.5rem));
		background: #ffffff !important;
		padding: 0.5rem 1.5rem 1.5rem;
	}

	body.dt-menu-open {
		overflow: hidden;
		background: #ffffff;
	}
}

@media (min-width: 1024px) {
	.dt-hamburger {
		display: none !important;
	}
}
