/* ============================
   Custom header (header.php) 
   ============================*/

#page-container {
	padding-top: 0 !important;
	overflow: visible !important;
}

.pai-header {
	background: #ffffff;
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.25s ease;
}

/* Top bar */
.pai-header-topbar {
	background-color: #28A7DE;
	color: #ffffff;
}

.pai-header-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pai-header-contact {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pai-header-contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.5s;
    font-weight: 400;
    line-height: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pai-header-contact a:hover {
	color: #050b4f;
}

.pai-header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pai-header-social a {
    color: #ffffff;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    justify-content: center;
}

.pai-header-social a:hover {
    color: #ffffff;
    background-color: #091d3e;
    border-color: #091d3e;
}

/* Main row */
.pai-header-main {
	background: #f7f9fc;
}

#pai-header.is-stuck {
	box-shadow: 0 4px 20px rgba(5, 11, 79, 0.1);
}



.pai-header-main-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.pai-header-logo {
	display: block;
	flex: 0 0 auto;
}

.pai-header-logo img {
	display: block;
	height: 42px;
	width: auto;
}

.pai-header-nav {
	flex: 1 1 auto;
}

.pai-header-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.pai-header-menu li a {
    position: relative;
    display: inline-block;
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 5px;
    transition: color 0.2s ease;
    line-height: 1;
}

.pai-header-menu li a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background-color: #28A7DE;
	transition: right 0.25s ease;
}

.pai-header-menu li a:hover,
.pai-header-menu li.current-menu-item > a,
.pai-header-menu li.current_page_item > a,
.pai-header-menu li.current-menu-ancestor > a {
	color: #28A7DE;
}

.pai-header-menu li a:hover::after,
.pai-header-menu li.current-menu-item > a::after,
.pai-header-menu li.current_page_item > a::after,
.pai-header-menu li.current-menu-ancestor > a::after {
	right: 0;
}

/* Products dropdown (desktop) */
/* Vertical padding sits on the items so the hover area spans the full header height
   and the dropdown opens flush with the header's bottom edge. */
.pai-header-menu > li {
	padding: 25px 0;
}

.pai-header-menu .sub-menu li {
	padding: 0;
}

.pai-header-menu li.menu-item-has-children {
	position: relative;
}

.pai-header-menu li.menu-item-has-children > a {
	padding-right: 16px;
}

.pai-header-menu li.menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 0;
	top: 4px;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.pai-header-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	min-width: 280px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(5, 11, 79, 0.14);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 999;
}

/* hover bridge so the menu doesn't close while moving the cursor down */
.pai-header-menu .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

.pai-header-menu li.menu-item-has-children:hover > .sub-menu,
.pai-header-menu li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.pai-header-menu .sub-menu li {
	display: block;
}

.pai-header-menu .sub-menu li a {
	display: block;
	padding: 11px 22px;
	font-size: 15px;
	line-height: 1.3;
	white-space: nowrap;
}

.pai-header-menu .sub-menu li a::after {
	display: none;
}

.pai-header-menu .sub-menu li a:hover {
	background: #f3f9fd;
	color: #28A7DE;
}

/* Products dropdown (mobile panel) */
.pai-header-mobile-menu li.menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.pai-header-mobile-menu li.menu-item-has-children > a {
	flex: 1 1 0;
	min-width: 0;
}

/* Chevron button that slides the sub-menu open/closed */
.pai-sub-toggle {
	flex: 0 0 48px;
	position: relative;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #f0f2f7;
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.pai-sub-toggle::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #050b4f;
	border-bottom: 2px solid #050b4f;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform 0.3s ease, border-color 0.2s ease;
}

.is-sub-open > .pai-sub-toggle::before {
	transform: translate(-50%, -30%) rotate(-135deg);
	border-color: #28A7DE;
}

.is-sub-open > .pai-sub-toggle,
.is-sub-open > a {
	border-bottom-color: #28A7DE;
}

.pai-header-mobile-menu .sub-menu {
	flex: 0 0 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	background: #f7f9fc;
	transition: max-height 0.35s ease;
}

.pai-header-mobile-menu .sub-menu li a {
	padding: 12px 0 12px 20px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.pai-header-cta {
	flex: 0 0 auto;
	padding: 25px 0;
}

.pai-header-cta-btn {
	position: relative;
    display: inline-block;
    background-color: #28A7DE;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 26px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.25s ease;
    line-height: 1;
}

.pai-header-cta-btn:hover {
	background-color: #050b4f;
	color: #ffffff;
}

/* Hamburger toggle button - hidden on desktop */
.pai-header-toggle {
	display: none;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.pai-header-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #050b4f;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.pai-header-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.pai-header-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.pai-header-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile slide-down panel - hidden by default, shown via JS toggle */
.pai-header-mobile-panel {
	display: none;
	background: #ffffff;
	border-top: 1px solid #eef0f5;
	padding: 20px 30px 30px;
}

.pai-header-mobile-panel.is-open {
	display: block;
}

/* Overlay the page instead of pushing it down (sticky header is the containing block) */
@media (max-width: 980px) {
	.pai-header-mobile-panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 100%);
		overflow-y: auto;
		box-shadow: 0 12px 24px rgba(5, 11, 79, 0.12);
	}
}

.pai-header-mobile-menu {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.pai-header-mobile-menu li a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid #f0f2f7;
	color: #050b4f;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
}

.pai-header-mobile-menu li a:hover,
.pai-header-mobile-menu li.current-menu-item > a,
.pai-header-mobile-menu li.current_page_item > a,
.pai-header-mobile-menu li.current-menu-ancestor > a {
	color: #28A7DE;
	border-bottom-color: #28A7DE;
}

/* Site-wide convention: add the "pai-btn-arrow" class to any Divi Button module
   (Advanced > CSS ID & Classes) to auto-append an arrow icon after its label.
   See pai-header.js for the script that injects the <img>. */
.pai-btn-arrow .et_pb_button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.pai-btn-arrow-icon {
    width: auto;
    height: 16px;
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}

.pai-header-mobile-cta {
	display: block;
	text-align: center;
}


/* ---- Tablet / mobile (<=980px) ---- */
@media (max-width: 980px) {
	.pai-btn-arrow-icon {
		height: 14px;
	}
	.pai-header-nav,
	.pai-header-cta,
	.pai-header-topbar {
		display: none;
	}

	.pai-header-toggle {
		display: flex;
	}

	.pai-header-main-inner {
		padding: 25px 20px;
		justify-content: space-between;
	}

	.pai-header-logo img {
		height: 34px;
	}

	.pai-header-topbar-inner {
		padding: 8px 20px;
	}

	.pai-header-contact a {
		font-size: 12px;
	}
}

@media (max-width: 767px) {
	.banner-adjust-thumb .text-circle-inner {
		right: 30px;
		top: -50px;
		width: 100px;
		height: 100px;
	}
	.banner-adjust-thumb .text-circle-inner .text-circle {
		width: 88px;
	}
}

@media (max-width: 480px) {
	.pai-header-contact {
		gap: 12px;
	}

	.pai-header-mobile-panel {
		padding: 16px 20px 24px;
	}
}
