.hub_header {
	background-color: var(--secondary-200);
	padding: 0 !important;
}

.page-template-default .content > section.hub_header:first-child {
	margin-top: var(--header-height) !important;
}

.hub_header .container {
	padding-top: 96px;
	padding-bottom: 96px;
	text-align: center;
}

h1.hub_header__title {
	font-size: 52px;
	line-height: 64px;
	font-weight: 600;
	color: var(--primary-900);
	margin-bottom: 0;
}

.hub_header__subtitle {
	margin-top: 16px;
	font-size: 26px;
	line-height: 32px;
}

.hub__how_it_works_wrapper {
	position: relative;
}

.hub__how_it_works_wrapper:before {
	background-color: white;
	position: absolute;
	content: "";
	left: 0;
	bottom: 0;
	width: 100%;
	height: 50%;
}

.hub__how_it_works {
	position: relative;
	z-index: 1;
	width: 1256px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 32px;
	border-radius: 12px;
	border: 1px solid var(--neutral-400);
}

.hub_header__search {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 836px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 48px;
}

.hub_header__search_input {
	padding: 11px 14px !important;
	padding-right: 32px !important;
	padding-left: calc(14px + 20px + 8px) !important;
	border-radius: 8px;
	box-shadow: 0 1px 2px 0 rgba(84, 79, 99, 0.05);
	border: 1px solid #E4E4E4 !important;
	font-size: 16px;
	line-height: 24px !important;
	background-image: url(../../images/search-bar.svg);
	background-repeat: no-repeat;
	background-position: 14px center;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hub_header__search_input:hover {
	border-color: #C2D4F8 !important;
	outline: none;
}

.hub_header__search_input:focus {
	border-color: #C2D4F8 !important;
	box-shadow: 0 0 0 4px #E9EFFF;
	outline: none;
}

.hub_header__search_input::placeholder {
	color: var(--neutral-500);
}

.hub_header__search_button {
	padding: 12px 32px;
	border-radius: 8px;
	background-color: var(--primary-500-blue);
	color: white;
	box-shadow: none;
	border: none;
	display: flex;
	gap: 4px;
	align-items: center;
	cursor: pointer;
	font-size: 16px;
	line-height: 24px;
	transition: background-color 0.2s;
}

.hub_header__search_button:before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-image: url(../../images/search-white.svg);
}

.hub_header__search_button:hover {
	background-color: var(--primary-600);
}

.hub_header__search_button:active {
	background-color: var(--primary-900);
}

.hub_header__label {
	border: 1px solid var(--green-400);
	padding: 6px 14px;
	margin-bottom: 24px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	background-color: var(--green-200);
	font-size: 14px;
	line-height: 18px;
	font-weight: 600;
	color: var(--green-700);
}

.hub_header__label:before {
	content: "";
	display: block;
	width: 21px;
	height: 20px;
	background-image: url(../../images/label-checkmark.svg);
}

.hub__how_it_works_title {
	font-size: 26px;
	line-height: 32px;
	font-weight: 600;
	color: var(--primary-900);
	flex: 0 0 160px;
}

.hub__how_it_works {
	display: flex;
	align-items: center;
	background-color: white;
}

.hub__how_it_works_divider {
	width: 1px;
	background-color: var(--neutral-300);
	align-self: stretch;
	margin-left: 50px;
	margin-right: 50px;
}

.hub__how_it_works_steps {
	display: flex;
	gap: 24px;
}

.hub__how_it_works_step {
	display: flex;
	gap: 24px;
	flex: 1;
}

.hub__step_number {
	font-size: 52px;
	line-height: 48px;
	font-weight: 700;
	color: var(--secondary-900-blue);
}

.hub__how_it_works_step_title {
	margin-bottom: 4px;
	font-size: 20px;
	line-height: 32px;
	font-weight: 600;
	color: var(--primary-900);
}

.hub__how_it_works_step_subtitle {
	font-size: 16px;
	line-height: 24px;
	margin-top: 4px;
}

.hub_header.regular {
	position: relative;
	z-index: 2;
}

.hub_search_field_wrapper {
	flex: 1;
	position: relative;
}

.hub_search_results {
	position: relative;
}

.hub_search_results {
	position: absolute;
	left: 0;
	width: 100%;
	top: 100%;
	text-align: left;
	box-shadow: 0 4px 16px 0 #ECECF4;
	border: 1px solid #ECECF4;
	border-radius: 8px;
	background-color: white;
	padding: 8px;
	max-height: 256px;
	overflow-y: auto;
	display: none;
	z-index: 2;
}

#search_query:focus ~ .hub_search_results,
.hub_search_results:hover {
	display: block;
}

.hub_search_results:empty {
	display: none !important;
}

.hub_search_result_link {
	padding: 12px 16px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--neutral-700);
	border: none;
	display: block;
	border-radius: 8px;
	transition: background-color 0.2s, color 0.2s;
}

.hub_search_result_link:hover {
	color: var(--neutral-700);
	background-color: #F5F5F5;
}

.hub_search_result_link em {
	background-color: #e9efff;
	font-style: normal;
}

@media (max-width: 991px) and (min-width: 768px) {
	.hub__how_it_works {
		flex-direction: column;
	}

	.hub__how_it_works_divider {
		display: none;
	}

	.hub__how_it_works_title {
		flex: 1;
		margin-bottom: 32px;
	}
}

@media (max-width: 1080px) {
	.page-template-default .content > section.hub_header:first-child {
		margin-top: 76px !important;
	}
}

@media (min-width: 768px) {
	.page-template-default .content > section.hub_header:first-child {
		margin-top: calc(var(--header-height) - 0.5px) !important;
	}
}

@media (max-width: 767px) {
	.hub_header .container {
		padding-top: 48px;
		padding-bottom: 32px;
	}

	.hub__how_it_works {
		flex-direction: column;
	}

	.hub__how_it_works_steps {
		flex-direction: column;
	}

	.hub__how_it_works_divider {
		display: none;
	}

	.hub__how_it_works_title {
		flex: 1;
	}

	.hub_header__label {
		font-size: 12px;
		line-height: 16px;
	}

	h1.hub_header__title {
		font-size: 30px;
		line-height: 40px;
	}

	.hub_header__subtitle {
		font-size: 18px;
		line-height: 26px;
	}

	.hub_header__search {
		margin-top: 24px;
	}

	.hub_header__search {
		gap: 8px;
	}

	.hub_header__search_button_text {
		display: none;
	}

	.hub_header__search_button {
		padding: 12px 14px;
	}

	.hub__how_it_works {
		padding: 48px 20px;
	}

	.hub__how_it_works_title {
		font-size: 30px;
		line-height: 40px;
		margin-bottom: 32px;
	}

	.hub__step_number {
		font-size: 36px;
		line-height: 36px;
	}

	.hub__how_it_works_step {
		gap: 16px;
	}

	.hub__how_it_works_step_title {
		font-size: 18px;
		line-height: 26px;
	}

	.hub__how_it_works_wrapper:before {
		display: none;
	}

	.hub_header.regular {
		padding-bottom: 16px !important;
	}

	.hub__how_it_works {
		border-radius: 16px;
		border-color: var(--neutral-300);
	}
}
