/* GP Job Pro style custom header */

.iti-custom-header .top-bar,
.iti-custom-header .site-header,
.iti-custom-header .main-navigation,
.iti-custom-header .mobile-header-navigation,
.iti-custom-header .navigation-stick {
	display: none !important;
}

.iti-site-header {
	--iti-header-navy: #0a1f44;
	--iti-header-navy-light: #123066;
	--iti-header-blue: #2563eb;
	--iti-header-orange: #f97316;
	--iti-header-yellow: #facc15;
	--iti-header-border: #e2e8f0;
	--iti-header-text: #1e293b;
	--iti-header-muted: #64748b;
	font-family: 'Jost', sans-serif;
	position: relative;
	z-index: 1000;
}

.iti-header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Top bar */
.iti-header-topbar {
	background: var(--iti-header-navy);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.78rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.iti-header-topbar .iti-header-container {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 38px;
}

.iti-header-topbar__left,
.iti-header-topbar__right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.iti-header-topbar__right {
	justify-content: flex-end;
}

.iti-header-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	white-space: nowrap;
}

.iti-header-topbar__item:hover,
.iti-header-topbar__item:focus {
	color: #fff;
}

.iti-header-topbar__ticker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

.iti-header-ticker__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--iti-header-yellow);
	color: #111827;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

.iti-header-ticker__text {
	color: #fff;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.iti-header-dark-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.92);
	user-select: none;
}

.iti-header-dark-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.iti-header-dark-toggle__switch {
	width: 34px;
	height: 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	position: relative;
	transition: background 0.2s ease;
}

.iti-header-dark-toggle__switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.iti-header-dark-toggle input:checked + .iti-header-dark-toggle__switch {
	background: var(--iti-header-yellow);
}

.iti-header-dark-toggle input:checked + .iti-header-dark-toggle__switch::after {
	transform: translateX(16px);
}

.iti-header-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	white-space: nowrap;
}

.iti-header-login:hover,
.iti-header-login:focus {
	color: #fff;
}

.iti-header-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.iti-header-user__name,
.iti-header-logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 4px 10px;
	transition: background 0.2s ease, color 0.2s ease;
}

.iti-header-user__name {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	max-width: 180px;
}

.iti-header-user__name span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.iti-header-user__name:hover,
.iti-header-user__name:focus {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.iti-header-logout {
	color: rgba(255, 255, 255, 0.88);
}

.iti-header-logout:hover,
.iti-header-logout:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

/* Site-wide auth toast (login/register success) */
.iti-auth-toast {
	position: sticky;
	top: 0;
	z-index: 1100;
	padding: 0 16px;
	margin: 0;
}

.iti-auth-toast__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 0 0 12px 12px;
	font-size: 0.88rem;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.iti-auth-toast__inner p {
	margin: 0;
	flex: 1;
}

.iti-auth-toast__close {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	opacity: 0.75;
}

.iti-auth-toast__close:hover {
	opacity: 1;
}

.iti-auth-toast--success .iti-auth-toast__inner {
	background: #ecfdf5;
	color: #15803d;
	border: 1px solid #bbf7d0;
	border-top: 0;
}

.iti-auth-toast--error .iti-auth-toast__inner {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-top: 0;
}

/* Main header row */
.iti-header-main {
	background: #fff;
	border-bottom: 1px solid var(--iti-header-border);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.iti-header-main .iti-header-container {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	min-height: 78px;
}

.iti-header-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	min-width: 0;
}

.iti-header-brand__logo img,
.iti-header-brand__logo .custom-logo {
	max-height: 52px;
	width: auto;
	display: block;
}

/* ITI Wala brand lockup */
.iti-header-brand {
	gap: 10px;
}

.iti-brand-logo {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.iti-brand-logo img {
	display: block;
	width: auto;
	height: auto;
	object-fit: contain;
}

.iti-brand-logo--header img {
	width: 56px;
	height: 56px;
}

.iti-brand-logo--footer img {
	width: 52px;
	height: 52px;
}

.iti-brand-mascot {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #1e3a8a, #0a1f44 70%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--iti-header-orange);
}

.iti-brand-mascot__ring {
	position: absolute;
	inset: -3px;
	border: 3px dashed rgba(249, 115, 22, 0.45);
	border-radius: 50%;
}

.iti-brand-mascot__wrench {
	color: #fff;
	font-size: 1.15rem;
	transform: rotate(-35deg);
}

.iti-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.iti-brand-name {
	display: inline-flex;
	align-items: flex-start;
	gap: 2px;
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: -0.02em;
}

.iti-brand-name__iti {
	color: var(--iti-header-navy);
}

.iti-brand-name__wala {
	color: var(--iti-header-orange);
}

.iti-brand-name__cap {
	font-size: 0.62rem;
	color: var(--iti-header-orange);
	margin-top: 1px;
}

.iti-brand-pill {
	display: inline-block;
	width: fit-content;
	margin-top: 2px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--iti-header-navy);
	color: #fff;
	font-size: 0.56rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.iti-brand-tagline {
	font-size: 0.58rem;
	font-weight: 600;
	color: var(--iti-header-blue);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.iti-header-brand__icon {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.iti-header-brand__icon .fa-briefcase {
	font-size: 1.2rem;
}

.iti-header-brand__icon .fa-magnifying-glass {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	color: var(--iti-header-blue);
	font-size: 0.58rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.iti-header-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.iti-header-brand__text strong {
	font-size: 1.15rem;
	line-height: 1.1;
	color: var(--iti-header-navy);
	letter-spacing: 0.02em;
}

.iti-header-brand__text small {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--iti-header-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.iti-header-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: stretch;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	min-width: 0;
	transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.iti-header-search:focus-within {
	border-color: var(--iti-header-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.iti-header-search input[type='search'] {
	border: 0;
	padding: 0 16px;
	font-size: 0.86rem;
	color: var(--iti-header-text);
	background: transparent;
	min-width: 0;
}

.iti-header-search input[type='search']:focus {
	outline: none;
}

.iti-header-search button {
	border: 0;
	background: var(--iti-header-blue);
	color: #fff;
	cursor: pointer;
	font-size: 0.95rem;
	transition: background-color 0.2s ease;
}

.iti-header-search button:hover,
.iti-header-search button:focus {
	background: #1d4ed8;
}

.iti-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.iti-header-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	white-space: nowrap;
	transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.18s ease;
}

.iti-header-action-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iti-header-action-btn:active {
	transform: translateY(0);
}

.iti-header-action-btn--whatsapp {
	background: #16a34a;
}

.iti-header-action-btn--whatsapp:hover,
.iti-header-action-btn--whatsapp:focus {
	background: #15803d;
	color: #fff;
}

.iti-header-action-btn--telegram {
	background: var(--iti-header-blue);
}

.iti-header-action-btn--telegram:hover,
.iti-header-action-btn--telegram:focus {
	background: #1d4ed8;
	color: #fff;
}

.iti-header-notify {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--iti-header-text);
	text-decoration: none;
	background: #fff;
}

.iti-header-notify__badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.iti-header-mobile-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: var(--iti-header-navy);
	cursor: pointer;
}

/* Navigation bar */
.iti-header-nav {
	background: var(--iti-header-navy);
	border-bottom: 3px solid rgba(250, 204, 21, 0.15);
}

.iti-header-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 2px;
}

.iti-header-nav__list > li > a,
.iti-header-nav__more-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 12px 14px;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.iti-header-nav__list > li > a:hover,
.iti-header-nav__list > li > a:focus,
.iti-header-nav__more-toggle:hover,
.iti-header-nav__more-toggle:focus {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.iti-header-nav__list > li.is-active > a {
	color: var(--iti-header-yellow);
	box-shadow: inset 0 -3px 0 var(--iti-header-yellow);
}

.iti-header-nav__more {
	position: relative;
}

.iti-header-nav__more.is-active > .iti-header-nav__more-toggle,
.iti-header-nav__more.is-open > .iti-header-nav__more-toggle {
	color: var(--iti-header-yellow);
	box-shadow: inset 0 -3px 0 var(--iti-header-yellow);
}

.iti-header-nav__caret {
	font-size: 0.68rem;
	opacity: 0.85;
}

.iti-header-nav__dropdown {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--iti-header-border);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 30;
}

.iti-header-nav__more.is-open .iti-header-nav__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iti-header-nav__dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	color: var(--iti-header-text);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
}

.iti-header-nav__dropdown a:hover,
.iti-header-nav__dropdown a:focus {
	background: #f8fafc;
	color: var(--iti-header-blue);
}

.iti-header-nav__dropdown i {
	width: 16px;
	color: var(--iti-header-blue);
	text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
	.iti-header-topbar .iti-header-container {
		grid-template-columns: 1fr;
		justify-items: center;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.iti-header-topbar__left,
	.iti-header-topbar__right {
		justify-content: center;
	}

	.iti-header-main .iti-header-container {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			'brand toggle'
			'search search'
			'actions actions';
		gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.iti-header-brand {
		grid-area: brand;
	}

	.iti-header-mobile-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		grid-area: toggle;
		justify-self: end;
	}

	.iti-header-search {
		grid-area: search;
	}

	.iti-header-actions {
		grid-area: actions;
		justify-content: center;
		flex-wrap: wrap;
	}

	.iti-header-nav {
		display: none;
	}

	.iti-header-nav.is-open {
		display: block;
	}

	.iti-header-nav__list {
		flex-direction: column;
		align-items: stretch;
		padding: 8px 0 12px;
	}

	.iti-header-nav__list > li > a,
	.iti-header-nav__more-toggle {
		width: 100%;
	}

	.iti-header-nav__dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: rgba(255, 255, 255, 0.06);
		display: none;
		margin-top: 0;
	}

	.iti-header-nav__more.is-open .iti-header-nav__dropdown {
		display: block;
	}

	.iti-header-nav__dropdown a {
		color: rgba(255, 255, 255, 0.92);
	}

	.iti-header-nav__dropdown a:hover,
	.iti-header-nav__dropdown a:focus {
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}
}

@media (max-width: 640px) {
	.iti-header-topbar__left span,
	.iti-header-dark-toggle span:first-child,
	.iti-header-login span,
	.iti-header-logout span {
		display: none;
	}

	.iti-header-user__name {
		max-width: 120px;
		padding: 4px 8px;
	}

	.iti-header-action-btn span {
		display: none;
	}

	.iti-header-action-btn {
		width: 38px;
		height: 38px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.iti-header-search {
		grid-template-columns: minmax(0, 1fr) 44px;
	}
}

/* GeneratePress overrides */
.inside-article .iti-site-header a {
	text-decoration: none;
}

.inside-article .iti-site-header .iti-header-brand__text strong {
	color: var(--iti-header-navy) !important;
}

.inside-article .iti-site-header .iti-header-nav__list > li > a,
.inside-article .iti-site-header .iti-header-nav__more-toggle,
.inside-article .iti-site-header .iti-header-topbar__item,
.inside-article .iti-site-header .iti-header-login {
	color: rgba(255, 255, 255, 0.92) !important;
}

.inside-article .iti-site-header .iti-header-nav__list > li.is-active > a {
	color: var(--iti-header-yellow) !important;
}

.inside-article .iti-site-header .iti-header-action-btn,
.inside-article .iti-site-header .iti-header-search button {
	color: #fff !important;
}

.inside-article .iti-site-header .iti-header-nav__dropdown a {
	color: var(--iti-header-text) !important;
}
