/* ========================================
   Header Menu Base Styles
   ======================================== */
header.header {
	position: relative;
	background-color: var(--dark-white);
	z-index: 100;
}

@media (min-width: 1440px) {
	.logo, .header-search {
		width:30%;
	}
	.header-search {
		justify-content: flex-end;
	}
	.header-menu {
		width: 40%;
		display:flex;
		justify-content: center;
		align-items: center;
	}
}

@media (min-width: 1600px) {
	.logo, .header-search {
		width:25%;
	}
	.header-menu {
		width: 50%;
	}
}

.header-search {
	form {
		input {
			max-width: 90px;
		}
	}
}

@media (min-width: 1440px) {
	.header-search {
		form {
			input {
				max-width: 100px;
			}
		}
	}
}

@media (max-width: 991px) {
	header.header {
		position: sticky;
		top: 0;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}
}

.header-menu .nav {
	height: 100%;
}

@media (max-width: 991px) {
	.header-menu {
		position: fixed;
		top: 0;
		right: 0;
		width: 100%;
		max-width: 100vw;
		height: 100vh;
		background-color: var(--dark-white);
		z-index: 1000;
		transform: translateX(100%);
		transition: transform 0.3s ease, top 0.3s ease;
		overflow-y: auto;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
		padding: 87px 24px 24px 24px;
		display: block;
	}
	
	.header-menu.is-open {
		transform: translateX(0);
	}
	
	.header-menu .nav {
		flex-direction: column;
		height: auto;
		gap: 0;
	}
	
	.header-menu .nav > li {
		width: 100%;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}
	
	.header-menu .mega-menu-toggle {
		width: 100%;
		padding: 16px;
		justify-content: space-between;
		text-align: left;
		cursor: pointer;
		position: relative;
	}
	
	.header-menu .mega-menu-toggle::after {
		content: '\e313';
		font-family: 'Material Icons';
		font-size: 20px;
		transition: transform 0.3s ease;
		transform: rotate(0deg);
	}
	
	.header-menu .mega-menu-toggle[aria-expanded="true"]::after {
		transform: rotate(180deg);
	}
	
	.header-menu .mega-flyout {
		position: static;
		width: 100%;
		display: none;
		box-shadow: none;
		background-color: var(--very-light-gray);
		padding: 0;
		margin: 0;
		transform: none;
		opacity: 1;
		visibility: visible;
	}
	
	.header-menu .mega-flyout-inner {
		padding: 16px;
		max-width: 100%;
		margin: 0;
		gap: 20px;
	}
	
	.header-menu .mega-flyout.is-visible {
		display: block;
	}
	
	.header-menu .products-menu-list,
	.header-menu .services-menu-list,
	.header-menu .resources-menu-list,
	.header-menu .company-menu-list {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	
	.header-menu .products-menu-list > li,
	.header-menu .services-menu-list > li,
	.header-menu .resources-menu-list > li {
		margin-bottom: 12px;
		padding-bottom: 12px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}
	
	.header-menu .products-menu-list > li:last-child,
	.header-menu .services-menu-list > li:last-child,
	.header-menu .resources-menu-list > li:last-child,
	.header-menu .company-menu-list > li:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}
	
	.header-menu .products-menu-list a,
	.header-menu .services-menu-list a,
	.header-menu .resources-menu-list a,
	.header-menu .company-menu-list a {
		display: block;
		padding: 8px 0;
		/* color: var(--black); */
		font-size: 14px;
		font-weight: 500;
		text-decoration: none;
	}
	
	.header-menu .products-menu-list a:hover,
	.header-menu .services-menu-list a:hover,
	.header-menu .resources-menu-list a:hover,
	.header-menu .company-menu-list a:hover {
		color: var(--very-dark-blue);
	}
	
	.header-menu .sub-menu {
		margin-top: 8px;
		padding-left: 16px;
		list-style: none;
	}
	
	.header-menu .sub-menu a {
		font-size: 13px;
		color: var(--very-dark-gray);
	}
	
	/* Mobile flyout content blocks */
	.header-menu .featured-product-block,
	.header-menu .resource-content-block,
	.header-menu .description-block {
		margin-bottom: 20px;
	}
	
	.header-menu .featured-product-image,
	.header-menu .resource-image {
		height: 180px;
		margin-bottom: 12px;
	}
	
	.header-menu .featured-product-content h4,
	.header-menu .resource-content h3 {
		font-size: 20px;
		margin-bottom: 12px;
	}
	
	.header-menu .certification-link,
	.header-menu .testing-link,
	.header-menu .consulting-link {
		margin-bottom: 16px;
	}
	
	/* Mobile products menu card */
	.header-menu .products-menu-card {
		width: 100%;
		padding-right: 0;
		margin-bottom: 16px;
	}
	
	.header-menu .products-menu-thumb-wrap {
		height: 80px;
		width: 80px;
		flex: 0 0 80px;
		max-width: 80px;
	}
	
	.header-menu .products-menu-text a {
		font-size: 15px;
		padding: 0 0 4px 0;
	}
	
	.header-menu .products-menu-description {
		font-size: 13px;
		margin-top: 4px;
	}
	
	/* Mobile company quick links */
	.header-menu .company-quick-links-wrapper {
		padding: 16px;
		background-color: var(--very-light-gray);
		margin-top: 16px;
	}
	
	.header-menu .company-quick-links-heading {
		font-size: 11px;
		margin-bottom: 16px;
		padding-bottom: 12px;
	}
	
	/* Mobile services flyout columns */
	.header-menu .mega-services_flyout .left-column,
	.header-menu .mega-services_flyout .right-column {
		padding: 16px 0;
	}
	
	.header-menu .mega-services_flyout .right-column {
		margin-top: 0;
		padding-top: 16px;
	}
	
	/* Mobile resources menu wrapper */
	.header-menu .resources-menu-wrapper {
		margin-bottom: 16px;
	}
	
	.header-menu .resources-menu-list a {
		font-size: 20px;
	}
}

.mega-menu-toggle {
	padding: 10px;
	height: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	gap: 5px;
	color: var(--black);
	font-weight: 500;
}

.mega-menu-toggle::after {
	content: '\e313';
	font-family: 'Material Icons';
	font-size: 20px;
	transition: transform 0.3s ease;
}

@media (min-width: 992px) {
	.mega-menu-toggle:hover::after {
		transform: rotate(-180deg);
	}
}

/* ========================================
   Mega Flyout Container
   ======================================== */
.mega-flyout {
	position: absolute;
	width: 100dvw;
	background: var(--dark-white);
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1000;
	box-shadow: 0 30px 44px 0 rgba(0, 0, 0, 0.25);
	display: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mega-flyout.is-visible {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media all and (min-width: 992px) {
	.mega-flyout .view-all-link {
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translate(-50%, 0);
	}
}

.mega-flyout-inner {
	margin: 0 auto;
	max-width: 1320px;
	padding: 20px 24px;
}

@media all and (min-width: 992px) {
	.mega-flyout-inner {
		padding: 40px 24px;
	}
}

@media all and (min-width: 1200px) {
	.mega-flyout-inner {
		padding: 60px 24px;
	}
}

/* ========================================
   Company Flyout Styles
   ======================================== */
.mega-company_flyout {
	padding: 0;
	flex-wrap: wrap;
}

.mega-company_flyout .description-block {
	padding: 24px;
}

.mega-company_flyout .company-quick-links-wrapper {
	padding: 24px;
	width: 100%;
	background-color: var(--very-light-gray);
}

.company-quick-links-heading {
	color: var(--very-dark-gray);
	font-size: 12px;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 0.72px;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
	padding-bottom: 20px;
	margin-bottom: 20px;
}

@media all and (min-width: 992px) {
	.mega-company_flyout .description-block {
		padding: 40px 24px;
	}
	.mega-company_flyout .company-quick-links-wrapper {
		padding: 40px 24px;
	}
}

@media all and (min-width: 1200px) {
	.mega-company_flyout {
		flex-wrap: nowrap;
	}
	.mega-company_flyout .description-block {
		padding: 60px 24px;
	}
	.mega-company_flyout .company-quick-links-wrapper {
		padding: 60px 24px;
	}
}

/* ========================================
   Services Flyout Styles
   ======================================== */
.mega-services_flyout h4 {
	color: var(--very-dark-gray);
	font-size: 12px;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 0.72px;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
	padding-bottom: 20px;
	margin-bottom: 20px;
}

@media (max-width: 991px) {
	.mega-services_flyout .left-column {
		padding: 20px 0;
	}
	.mega-services_flyout .right-column {
		padding: 20px;
		margin-top: 20px;
	}
	.services-menu-wrapper {
		margin-top: 20px;
	}
}

.mega-services_flyout .left-column .certification-link,
.mega-services_flyout .left-column .testing-link {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mega-services_flyout .certification-block {
	margin-bottom: 40px;
}

.certification-link-title,
.testing-link-title {
	color: #005EB8;
	font-size: 16px;
	font-weight: 700;
	line-height: 130%;
	text-transform: capitalize;
	text-decoration: none;
}

.certification-link-title:hover,
.testing-link-title:hover {
	text-decoration: underline;
}

.testing-inner-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mega-services_flyout .right-column {
	background-color: var(--very-light-gray);
}

@media all and (min-width: 992px) {
	.mega-services_flyout {
		padding: 0;
	}
	.mega-services_flyout .left-column {
		padding: 40px 40px 60px 40px;
	}
	.mega-services_flyout .right-column {
		padding: 40px 40px 60px 30px;
	}
	.testing-inner-block {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px;
	}
	.testing-inner-block .testing-link {
		width: calc(50% - 10px);
	}
}

@media all and (min-width: 1200px) {
	.mega-services_flyout .left-column {
		padding: 60px 60px 80px 0;
	}
	.mega-services_flyout .right-column {
		padding: 60px 60px 80px 30px;
	}
}

.consulting-link-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.consulting-image-link {
	height: 100px;
	width: 100px;
	border-radius: 18px;
	overflow: hidden;
}

.consulting-title {
	color: #202020;
	font-size: 22px;
	font-weight: 500;
	line-height: 130%;
	text-decoration: none;
}

.consulting-content {
	color: #202020;
	font-size: 15px;
	font-weight: 400;
	line-height: 150%;
}

.consulting-link-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

@media all and (min-width: 992px) {
	.consulting-link-item {
		flex-direction: row;
		gap: 20px;
	}
	.consulting-image-link {
		height: 140px;
		width: 100%;
		flex: 0 0 140px;
		max-width: 140px;

	}
	.consulting-link-content {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-start;
		gap: 10px;
	}
}

/* ========================================
   Products Menu Layout
   ======================================== */
.products-menu-list {
	list-style: none;
	margin: 0;
	padding: 20px 0;
}

@media (max-width: 991px) {
	.products-menu-list > li {
		display: flex;
		flex-direction: column;
		padding: 20px 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.125);
	}
	.products-menu-list > li:last-child {
		border-bottom: none;
	}
	.products-menu-list .sub-menu {
		list-style: none;
		padding: 0;
		margin-top: 12px;
	}
	.products-menu-list .sub-menu li {
		margin-bottom: 4px;
		padding: 0;
	}
	.products-menu-list .sub-menu a {
		display: inline-flex;
		padding: 4px 0;
		text-decoration: none;
		align-items: center;
		gap: 5px;
		color: var(--black);
		font-weight: 500;
		font-size: 14px;
		text-transform: capitalize;
	}
	.products-menu-list .sub-menu a:hover {
		color: var(--very-dark-blue);
	}
	.products-menu-list .sub-menu a::after {
		content: '\e5c8';
		font-family: 'Material Icons';
		font-size: 16px;
		transition: transform 0.3s ease;
	}
}

@media all and (min-width: 992px) {
	.products-menu-list {
		flex: 0 0 auto;
		width: 66.6666666667%;
		order: 2;
		padding: 0 20px 20px 0;
	}
	.products-menu-list > li {
		display: flex;
		align-items: flex-start;
		padding: 20px 20px 20px 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.125);
		flex-direction: row;
		flex-wrap: nowrap;
	}
	.products-menu-list > li:last-child {
		border-bottom: none;
	}
	.products-menu-list .sub-menu {
		width: 40%;
		list-style: none;
		padding: 0;
	}
	.products-menu-list .sub-menu li {
		margin-bottom: 0;
		padding: 0;
	}
	.products-menu-list .sub-menu a {
		display: inline-flex;
		padding: 2px 0;
		text-decoration: none;
		align-items: flex-start;
		gap: 5px;
		color: var(--black);
		font-weight: 500;
		font-size: 14px;
		text-transform: capitalize;
	}
	.products-menu-list .sub-menu a:hover {
		color: var(--very-dark-blue);
	}
	.products-menu-list .sub-menu a::after {
		content: '\e5c8';
		font-family: 'Material Icons';
		font-size: 16px;
		transition: transform 0.3s ease;
	}
}

@media all and (min-width: 1200px) {
	.products-menu-list {
		padding: 0 50px 20px 0;
	}
	.products-menu-list .sub-menu a {
		align-items: center;
	}
}

.products-menu-card {
	width: 100%;
}

@media (max-width: 991px) {
	.products-menu-card {
		display: flex;
		flex-direction: row;
		gap: 16px;
		align-items: flex-start;
	}
}

@media all and (min-width: 992px) {
	.products-menu-card {
		width: 60%;
		padding-right: 20px;
	}
}

.products-menu-thumb-wrap {
	height: 100px;
	width: 100px;
	flex: 0 0 100px;
	max-width: 100px;
}

@media (max-width: 991px) {
	.products-menu-thumb-wrap {
		display:none;
	}
}

.products-menu-thumb-wrap img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.products-menu-text {
	flex: 1 1 auto;
}

@media (max-width: 991px) {
	.products-menu-text {
		min-width: 0;
	}
}

.products-menu-text a {
	color: #005EB8;
	font-size: 16px;
	font-weight: 700;
	line-height: 130%;
	padding: 4px 0 8px 0;
	text-decoration: none;
}

.products-menu-text a:hover,
.products-menu-text a:focus {
	text-decoration: underline;
}

.products-menu-description {
	color: var(--black);
	font-size: 14px;
	font-weight: 400;
	line-height: 150%;
}

.featured-product-image {
	height: 225px;
	border-radius: 24px 24px 0 0;
	overflow: hidden;
}

@media (max-width: 991px) {
	.featured-product-image {
		height: 200px;
	}
}

.featured-product-content {
	background-color: var(--very-light-gray);
	border-radius: 0 0 24px 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
}

@media (max-width: 991px) {
	.featured-product-content h4 {
		font-size: 24px;
	}
}

.featured-product-content h4 {
	font-size: 32px;
	font-weight: 700;
	line-height: 130%;
}

.featured-product-content p {
	color: var(--black);
	font-size: 15px;
	font-weight: 400;
	line-height: 150%;
}

@media all and (min-width: 992px) {
	.featured-product-image {
		height: 330px;
	}
	.featured-product-content {
		padding: 30px;
	}
}

/* ========================================
   Resources Menu Layout
   ======================================== */
.resources-menu-list {
	list-style: none;
	margin: 0;
	padding: 20px 0;
}

@media (max-width: 991px) {
	.resources-menu-wrapper {
		margin-bottom: 20px;
	}
	.resources-menu-list a {
		font-size: 22px;
	}
}

.resources-menu-list > li {
	margin-bottom: 12px;
}

.resources-menu-list a {
	color: var(--dark-blue);
	font-size: 26px;
	font-weight: 700;
	line-height: 130%;
	text-decoration: none;
}

.resources-menu-list a:hover,
.resources-menu-list a:focus {
	color: var(--very-dark-blue);
}

@media all and (min-width: 992px) {
	.resources-menu-list {
		padding: 0 20px 20px 0;
	}
}

@media all and (min-width: 1200px) {
	.resources-menu-list {
		padding: 0 50px 20px 0;
	}
}

.resource-image {
	height: 225px;
	border-radius: 24px 24px 0 0;
	overflow: hidden;
}

.resource-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

@media (max-width: 991px) {
	.resource-image {
		width: 100%;
	}
}

.resource-content {
	padding: 24px;
}

@media (max-width: 991px) {
	.resource-content-block {
		margin-bottom: 20px;
	}
}

.resource-content h3 {
	color: var(--black);
	font-size: 22px;
	font-weight: 500;
	line-height: 130%;
}

.resource-content p {
	color: var(--black);
	font-size: 15px;
	font-weight: 400;
	line-height: 150%;
}

@media all and (min-width: 992px) {
	.resource-image {
		height: 250px;
		width: auto;
		max-width: 337px;
	}
}

/* ========================================
   Company Menu Layout
   ======================================== */
.company-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 991px) {
	.company-menu-list li {
		margin-bottom: 8px;
	}
	.company-menu-list a {
		font-size: 16px;
	}
}

.company-menu-list li {
	margin-bottom: 0;
	padding: 0;
}

.company-menu-list a {
	display: inline-flex;
	padding: 2px 0;
	text-decoration: none;
	align-items: center;
	gap: 5px;
	color: var(--black);
	font-weight: 500;
	font-size: 14px;
	text-transform: capitalize;
}

.company-menu-list a:hover {
	color: var(--very-dark-blue);
}

.company-menu-list a::after {
	content: '\e5c8';
	font-family: 'Material Icons';
	font-size: 16px;
	transition: transform 0.3s ease;
}

/* ========================================
   Desktop Menu Styles
   ======================================== */
@media all and (min-width: 992px) {
	.desktop-menu .dropdown-menu li {
		position: relative;
	}
	.desktop-menu .nav-item .submenu {
		display: none;
		position: absolute;
		left: 100%;
		top: -7px;
	}
	.desktop-menu .nav-item .submenu-left {
		right: 100%;
		left: auto;
	}
	.desktop-menu .dropdown-menu > li:hover {
		background-color: #f1f1f1;
	}
	.desktop-menu .dropdown-menu > li:hover > .submenu {
		display: block;
	}
}

.desktop-menu .dropdown-menu {
	padding: 0;
	width: 290px;
	margin-top: 36px;
}

.desktop-menu .dropdown-menu li a:not(:hover) {
	background-color: #00396D;
	color: white;
}

.desktop-menu .dropdown-menu li a:hover {
	background-color: var(--very-dark-blue);
	color: var(--white);
}

.desktop-menu .nav-link.text-very-dark-gray {
	color: var(--very-dark-gray);
}

.desktop-menu .nav-link[aria-expanded="true"],
.nav-link.active-nav-link {
	color: var(--very-dark-blue);
}

/* ========================================
   Mobile Menu Styles
   ======================================== */
@media (max-width: 991px) {
	.dropdown-menu .dropdown-menu {
		margin-left: 0.7rem;
		margin-right: 0.7rem;
		margin-bottom: 0.5rem;
	}
}

/* Mobile Nav Toggle Button (Hamburger) */
.mobile-nav-toggle {
	background: transparent;
	border: none;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	position: relative;
	z-index: 1001;
}

.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	position: relative;
}

.hamburger-line {
	display: block;
	height: 2px;
	width: 100%;
	background-color: var(--black);
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Background Overlay */
.mobile-nav-background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-background.is-active {
	opacity: 1;
	visibility: visible;
}

/* Prevent body scroll when menu is open */
html.mobile-menu-open {
	overflow: hidden;
}

body.mobile-menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
}

@media (min-width: 992px) {
	.mobile-nav-background,
	.header-menu-mobile {
		display: none !important;
	}
}

/* ========================================
   Utility Classes
   ======================================== */
.logo {
	padding: 20px 0;
	display: block;
	img {
		height: auto;
	}
	@media (min-width: 1440px) {
		img {
			height: 63px;
		}
	}
}

.logo-size {
	width: 180px;
	height: 50px;
}

.w-24px {
	width: 24px;
}

.fw-500 {
	font-weight: 500;
}

.pb-110px {
	padding-bottom: 110px;
}

.menu-footer {
	background-color: #0057a8;
}

.menu-footer-text * {
	color: white;
}

.navigation-holder {
	position: fixed;
	top: 0;
	background: white;
	left: 0;
	right: 0;
}

.navbar-toggler:focus {
	box-shadow: none;
}

.footer-nav-transition:not(.collapsing) {
	transition: height 0.35s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
	background: transparent;
}