.mks-header-university-search {
	position: relative;
	width: min(100%, var(--mks-search-width, 320px));
	max-width: 100%;
	height: var(--mks-search-height, 38px) !important;
	min-height: 0 !important;
	max-height: var(--mks-search-height, 38px) !important;
	display: block !important;
	z-index: 120;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mks-header-university-search form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	width: 100%;
	height: var(--mks-search-height, 38px) !important;
	min-height: 0 !important;
	max-height: var(--mks-search-height, 38px) !important;
	padding: 0 !important;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.78);
	border-radius: 9px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(37, 12, 88, 0.18);
	overflow: hidden;
}

.mks-header-university-search label {
	position: relative;
	display: block;
	height: 100% !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0;
}

.mks-header-university-search svg {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 19px;
	height: 19px;
	fill: #6d28d9;
	transform: translateY(-50%);
	pointer-events: none;
}

.mks-header-university-search input[type="search"] {
	width: 100%;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 12px 10px 44px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	color: #172033 !important;
	font: inherit;
	font-size: 13px;
	box-shadow: none !important;
	outline: 0;
}

.mks-header-university-search input::placeholder {
	color: #747b8c;
}

.mks-header-university-search form:focus-within {
	border-color: #f6d44a;
	box-shadow: 0 0 0 4px rgba(246, 212, 74, 0.2), 0 10px 28px rgba(37, 12, 88, 0.22);
}

.mks-header-university-search button {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	box-sizing: border-box;
	margin: 0;
	padding: 7px 14px;
	border: 0;
	border-radius: 0;
	background: #f6d44a;
	color: #281154;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.site-header-section:has(.mks-header-university-search),
.site-header-item:has(.mks-header-university-search),
.header-html:has(.mks-header-university-search),
.header-widget-area:has(.mks-header-university-search) {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	align-self: center !important;
}

/* Kadence may wrap pasted shortcode output in a code block. Neutralize that
 * wrapper so it cannot add a grey background, padding, or header-row height. */
.header-html-inner pre:has(.mks-header-university-search),
.header-html-inner code:has(.mks-header-university-search) {
	display: block !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit !important;
	white-space: normal !important;
	overflow: visible !important;
}

.mks-header-university-search button:hover,
.mks-header-university-search button:focus {
	background: #ffe36a;
}

.mks-header-university-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	display: grid;
	gap: 2px;
	max-height: min(420px, 65vh);
	margin: 0;
	padding: 7px;
	border: 1px solid #e0d8f2;
	border-radius: 13px;
	background: #ffffff;
	box-shadow: 0 18px 46px rgba(30, 17, 58, 0.25);
	list-style: none;
	overflow: auto;
}

.mks-header-university-search__results[hidden] {
	display: none;
}

.mks-header-university-search__results li {
	margin: 0;
	padding: 0;
}

.mks-header-university-search__results a {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 9px 10px;
	border-radius: 9px;
	color: #172033;
	text-decoration: none;
}

.mks-header-university-search__results a:hover,
.mks-header-university-search__results a:focus {
	background: #f5f0ff;
	color: #5420cb;
}

.mks-header-university-search__initial {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: #6d28d9;
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
}

.mks-header-university-search__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.mks-header-university-search__copy strong,
.mks-header-university-search__copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mks-header-university-search__copy strong {
	font-size: 13px;
	line-height: 1.3;
}

.mks-header-university-search__copy small {
	color: #6b7280;
	font-size: 11px;
}

@media (max-width: 1024px) {
	.mks-header-university-search input[type="search"] {
		height: 100% !important;
		min-height: 0 !important;
		padding-left: 38px !important;
		font-size: 12px;
	}

	.mks-header-university-search button {
		height: 100%;
		min-height: 0;
		padding-inline: 10px;
		font-size: 11px;
	}

	.mks-header-university-search svg {
		left: 11px;
		width: 17px;
		height: 17px;
	}
}

@media (max-width: 620px) {
	.mks-header-university-search button {
		width: 38px;
		padding: 0;
		font-size: 0;
	}

	.mks-header-university-search button::after {
		content: "Go";
		font-size: 10px;
		font-weight: 900;
	}

	.mks-header-university-search input[type="search"] {
		padding-right: 6px !important;
	}
}
