.dev_mega_menu_toggle {
	background-color: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: start;
	gap: 0.5rem;
	font-size: 1rem;
	padding: 0;
	text-align: left;
	margin: 0;
}

@media (min-width: 980px) {
	.dev_mega_menu_toggle {
		flex-direction: row;
	}
}

.dev_mega_menu_toggle .open-icon,
.dev_mega_menu_toggle .close-icon {
	height: 1.25rem;
	width: 1.25rem;
	color: #333;
}

.dev_mega_menu_toggle .label {
	font-size: 16px;
	font-weight: 400;
	color: #333;
}

.dev_mega_menu {
	transition: all 0.2s cubic-bezier(0.32, 0.28, 0.22, 0.99);
	background: #fff;
	display: flex;
	visibility: hidden;
	opacity: 0;
	height: 100vh;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	overflow-y: scroll;

	&.open {
		visibility: visible;
		opacity: 1;
	}

	.logo-section {
		margin-top: 2rem;
	}

	.site-logo-menu {
		width: 175px;
		height: auto;
		object-fit: contain;
	}

	.dev_mega_menu_inner {
		display: flex;
		flex-direction: column;
		padding: 2rem 1rem;
		width: 100%;
		max-width: calc(1600px + 2rem);

		.dev_mega_menu_header {
			display: flex;
			justify-content: space-between;
			align-items: center;

			h2 {
				font-size: 1.5rem;
				font-weight: 600;
			}
		}
	}
}

@media screen and (min-width: 980px) {
	.dev_mega_menu {
		background: linear-gradient(
			90deg,
			#bdd1de 0,
			#bdd1de 33%,
			#eaeff2 0,
			#eaeff2 60%,
			#fff 0,
			#fff
		);
	}
}

.dev_mega_menu .dev_mega_menu_content {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 2rem;
}

@media (min-width: 980px) {
	.dev_mega_menu .dev_mega_menu_content {
		grid-template-columns: repeat(3, 1fr);
	}
}

.dev_mega_menu .submenu {
	display: none;
	padding-left: 1rem;
	margin-bottom: 1rem;

	&.open {
		display: block;
	}
}

.dev_mega_menu .menu-button {
	background-color: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 0.5rem;
	font-size: 1rem;
	font-weight: 400;
	padding: 0.5rem 0;
	text-align: left;
	margin: 0;
	color: #333;

	&:hover,
	&.active {
		font-weight: 600;
	}

	.menu-button-icon {
		height: 1rem;
		width: 1rem;
		color: #333;

		&.hidden {
			display: none;
		}
	}
}

.dev_mega_menu .menu-button.bigger {
	font-size: 1.25rem;

	.menu-button-icon {
		height: 1.25rem;
		width: 1.25rem;
	}
}

.dev_mega_menu .menu-item:has(> .menu-item-icon) {
	display: flex;
	gap: 0.5rem;
	align-items: center;

	.menu-item-icon {
		height: 1rem;
		width: 1rem;
		color: #333;
	}
}

.dev_mega_menu .menu-item-link {
	font-size: 1rem;
	font-weight: 400;
	color: #333;
	padding: 0.5rem 0;
	display: block;

	&.bigger {
		font-size: 1.25rem;
	}

	&:hover {
		font-weight: 600;
	}
}

.dev_mega_menu {
	.search-title {
		font-size: 1.25rem;
		font-weight: 400;
		margin-bottom: 1rem;
		line-height: 1;
		padding: 0;
		margin: 0;
	}

	.search-form {
		display: flex;
		align-items: center;
		margin-top: 0.25rem;
		border-bottom: 1px solid #333;
	}

	.search-input {
		background-color: transparent;
		padding: 1rem;
		border: none;
		color: inherit;
		font-size: 1.25rem;
		flex-grow: 1;

		&:focus {
			outline: 1px solid blue;
		}
	}

	.search-button {
		padding: 1rem;
		cursor: pointer;
		flex-shrink: 0;
		background-color: transparent;
		border: none;
		margin: 0;

		&:focus {
			outline: 1px solid blue;
		}
	}

	.search-button-icon {
		height: 1.25rem;
		width: 1.25rem;
	}

	.form-desc {
		font-size: 0.75rem;
		font-weight: 400;
		color: #444;
		margin-top: 0.5rem;
	}
}
