/* ==========================================================================
   VERKA NEW HEADER DESIGN — restyles the EXISTING header.php markup.
   No PHP/menu logic changed — only visual classes below.
   Scoped under body.verka-new-header so it can be toggled independently.
   ========================================================================== */

body.verka-new-header {
	--vh-navy: #161f6e;
	--vh-navy-deep: #11164f;
	--vh-text: #ffffff;
	overflow-x: hidden;
}

body.verka-new-header .site-header {
	max-width: 100vw;
}

/* ---------- TOP THIN BAR (Customer Care+Intranet ... Skip+utilities) ---------- */
body.verka-new-header .fixed-header {
	background: var(--vh-navy);
}

body.verka-new-header .fixed-header > .container > .row:first-child {
	background: var(--vh-navy-deep);
	display: block; /* neutralise any Bootstrap row flex/float so our nested flex controls layout */
}

body.verka-new-header .fixed-header > .container > .row:first-child > [class*="col-"] {
	float: none;
	width: 100%;
	max-width: 100%;
	flex: none;
}

body.verka-new-header .top-right {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 0;
	padding-left: 230px; /* clears the absolutely-positioned logo box */
	flex-wrap: nowrap;
	width: 100%;
}

body.verka-new-header .top-right .cc-intranet-group,
body.verka-new-header .top-right .utility-right-group,
body.verka-new-header .top-right .top-solcial-icon {
	flex-shrink: 0;
}

body.verka-new-header .top-right .utility-right-group {
	flex-wrap: nowrap;
}

/* Left cluster: Customer Care + Intranet */
body.verka-new-header .cc-intranet-group {
	display: flex;
	align-items: center;
	gap: 18px;
	order: 1;
}

/* Right cluster: Skip link, font resize, dark icon, language, search */
body.verka-new-header .utility-right-group {
	display: flex;
	align-items: center;
	gap: 8px;
	order: 2;
	margin-left: auto;
	white-space: nowrap;
}

body.verka-new-header .utility-divider {
	color: rgba(255,255,255,.35);
	font-size: 13px;
}

/* Social icons sit at far right, after utility group, on the same row */
body.verka-new-header .top-solcial-icon {
	order: 3;
}

body.verka-new-header .skip-to-main-visible {
	color: #fff;
	font-size: 13px;
	opacity: .9;
	white-space: nowrap;
}

body.verka-new-header .skip-to-main-visible:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Customer Care link */
body.verka-new-header .top-single-menu.cc-menu a {
	color: #fff;
	font-size: 13.5px;
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: .9;
	white-space: nowrap;
}

/* Intranet pill dropdown */
body.verka-new-header .Intranet__modifier {
	position: relative;
}

body.verka-new-header .Intranet__modifier .emailBtn {
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.5);
	color: #fff;
	border-radius: 20px;
	padding: 4px 14px 4px 14px;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

body.verka-new-header .Intranet__modifier .emailBtn::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #fff;
	margin-left: 4px;
}

body.verka-new-header #emailLogin {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 110%;
	left: 0;
	min-width: 170px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	display: none;
	z-index: 50;
}

body.verka-new-header #emailLogin.showdata {
	display: block;
}

body.verka-new-header #emailLogin li a {
	display: block;
	padding: 8px 16px;
	color: #1a1a2e;
	font-size: 13.5px;
}

body.verka-new-header #emailLogin li a:hover {
	background: #f3f5fa;
}

/* Text resize: +A | A | -A — plain text per design, no button box/border.
   !important used because the theme's base stylesheet styles these as
   boxed buttons; this guarantees the new flat-text look wins. */
body.verka-new-header .manage-section {
	display: flex;
	align-items: center;
	gap: 14px;
}

body.verka-new-header .font-manage {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

body.verka-new-header .font-manage li {
	list-style: none;
}

body.verka-new-header .font-manage li a {
	color: #fff !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	opacity: .9;
	white-space: nowrap;
	display: inline-block;
}

body.verka-new-header .font-manage li a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* divider lines between +A / A / -A, matching the design's "|" separators */
body.verka-new-header .font-manage li {
	position: relative;
}

body.verka-new-header .font-manage li + li::before {
	content: '|';
	color: rgba(255,255,255,.4);
	position: absolute;
	left: -7px;
}

/* Color-blind / dark mode toggle — plain moon outline icon, no white circle,
   per design (just the icon, no button background). */
body.verka-new-header .color-manage {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

body.verka-new-header .color-manage li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	position: relative;
	overflow: hidden;
}

/* Hide the theme's original icon image — replaced with a pure CSS
   crescent-moon outline below so it always matches the design exactly,
   regardless of what that source image actually looks like. */
body.verka-new-header .color-manage li a img {
	display: none;
}

/* Pure CSS crescent-moon icon (dark-mode toggle), per design.
   Built from a solid white circle with a second, offset navy circle
   placed on top to "bite" out the crescent shape. */
body.verka-new-header .color-manage li a {
	background: #fff;
	border-radius: 50%;
}

body.verka-new-header .color-manage li a::after {
	content: '';
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--vh-navy);
	top: 1px;
	left: 5px;
}

/* Language: single dropdown trigger (e.g. "English ▾") that reveals the
   <ul> of language options on click. The <ul> keeps both <li> items in the
   DOM (for the existing nth-child cookie-switch JS in footer.php) but only
   the first one is visible by default; opening the dropdown reveals the rest. */
body.verka-new-header .lang-dropdown {
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

body.verka-new-header .lang-dropdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}

body.verka-new-header .lang-dropdown ul li {
	display: none;
}

body.verka-new-header .lang-dropdown ul li:first-child {
	display: block;
}

body.verka-new-header .lang-dropdown ul li a {
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
}

body.verka-new-header .lang-dropdown .lang-arrow {
	color: #fff;
	font-size: 11px;
	opacity: .8;
	transition: transform .15s ease;
}

body.verka-new-header .lang-dropdown.open .lang-arrow {
	transform: rotate(180deg);
}

/* When open, show both language options stacked as a small dropdown card */
body.verka-new-header .lang-dropdown.open ul {
	position: absolute;
	top: 130%;
	left: 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	padding: 6px 0;
	min-width: 110px;
	z-index: 999;
}

body.verka-new-header .lang-dropdown.open ul li {
	display: block;
}

body.verka-new-header .lang-dropdown.open ul li a {
	color: #1a1a2e;
	display: block;
	padding: 7px 14px;
	font-size: 13.5px;
}

body.verka-new-header .lang-dropdown.open ul li a:hover {
	background: #f3f5fa;
}

/* Search icon */
body.verka-new-header .search-form-head {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

body.verka-new-header .search-form-head .searchBTn {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.4);
	position: relative;
}

/* Pure CSS magnifying glass icon — does not depend on the FontAwesome
   icon font loading, so it always renders consistently. The <i class="fa
   fa-search"> markup is kept in the HTML for accessibility/semantics but
   visually hidden here. */
body.verka-new-header .search-form-head .searchBTn i.fa-search {
	display: none;
}

body.verka-new-header .search-form-head .searchBTn::before {
	content: '';
	width: 8px;
	height: 8px;
	border: 1.5px solid #fff;
	border-radius: 50%;
	position: absolute;
	top: 6px;
	left: 6px;
}

body.verka-new-header .search-form-head .searchBTn::after {
	content: '';
	width: 1.5px;
	height: 5px;
	background: #fff;
	position: absolute;
	transform: rotate(45deg);
	top: 13px;
	left: 13px;
}

body.verka-new-header #search__modifier {
	position: fixed !important;
	top: 90px;
	right: 16px;
	left: auto;
	background: #fff;
	border-radius: 8px;
	padding: 16px 14px 14px;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	display: none;
	z-index: 999;
	width: 290px;
	max-width: calc(100vw - 32px);
}

body.verka-new-header #search__modifier.showdata {
	display: block !important;
}

body.verka-new-header #search__modifier form {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
}

body.verka-new-header #search__modifier label {
	flex: 1;
	margin: 0;
}

body.verka-new-header #search__modifier input[type="search"],
body.verka-new-header #search__modifier input[type="text"] {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13.5px;
	box-sizing: border-box;
}

body.verka-new-header #search__modifier input[type="submit"] {
	background: var(--vh-navy);
	color: #fff;
	border: none;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12.5px;
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
}

body.verka-new-header #search__modifier .closeSearch {
	position: absolute;
	top: 6px;
	right: 6px;
	background: var(--vh-navy);
	color: #fff;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	cursor: pointer;
}

/* Social icons in top bar — scoped strictly to header's top-right bar
   so footer.php's .top-solcial-icon (used in the site footer) is untouched. */
body.verka-new-header .top-right .top-solcial-icon {
	order: 3;
}

body.verka-new-header .top-right .top-solcial-icon ul {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
}

body.verka-new-header .top-right .top-solcial-icon .iconA a {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 11px;
}

/* ---------- LOGO BOX (top-left, overlaps navy bar) ---------- */
body.verka-new-header .site-header {
	position: relative;
}

body.verka-new-header .verka-logo-box {
	background: #fff;
	display: inline-flex;
	align-items: center;
	padding: 14px 26px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
}

body.verka-new-header .verka-logo-box .c_verkalogo img {
	height: 44px;
	width: auto;
}

/* push the fixed-header content down/right so the logo box has room
   and doesn't overlap the menu row underneath it */
body.verka-new-header .fixed-header {
	padding-top: 0;
}

/* ---------- LOGO + MAIN NAV ROW ---------- */
body.verka-new-header .homepage__modifier {
	display: flex;
	align-items: stretch;
	background: var(--vh-navy);
	position: relative;
	padding: 0;
}

body.verka-new-header .site-branding {
	display: none; /* logo now rendered via .verka-logo-box above the fixed-header, not in this empty placeholder */
}

body.verka-new-header .ab-main-nav {
	display: flex;
	align-items: center;
	width: 100%;
	padding-left: 230px; /* clears the absolutely-positioned logo box */
}

body.verka-new-header #site-navigation.main-navigation {
	width: 100%;
}

body.verka-new-header #primary-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0 24px;
	flex-wrap: wrap;
}

body.verka-new-header #primary-menu > li {
	position: relative;
}

body.verka-new-header #primary-menu > li > a {
	color: #fff;
	font-size: 14.5px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
}

body.verka-new-header #primary-menu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: .85;
	margin-left: 2px;
}

body.verka-new-header #primary-menu > li.current-menu-item > a,
body.verka-new-header #primary-menu > li > a:hover {
	font-weight: 700;
}

/* Submenu / child dropdown — visual only, toggle logic stays in existing JS */
body.verka-new-header #primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0,0,0,.15);
	z-index: 60;
	display: none;
}

body.verka-new-header #primary-menu > li:hover > .sub-menu {
	display: block;
}

body.verka-new-header #primary-menu .sub-menu li a {
	display: block;
	padding: 9px 18px;
	color: #1a1a2e;
	font-size: 13.5px;
}

body.verka-new-header #primary-menu .sub-menu li a:hover {
	background: #f3f5fa;
	color: var(--vh-navy);
}

/* Hamburger (mobile slide nav trigger) */
body.verka-new-header .slide-nav {
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

body.verka-new-header .slide-nav img {
	width: 26px;
}

/* ==========================================================================
   INNER PAGES HEADER (.inner-header) — same visual treatment as the
   homepage .fixed-header, since internal pages (About Us, Contact, etc.)
   use a separate PHP block with different class names but should look
   identical per the new design.
   ========================================================================== */
body.verka-new-header .inner-header {
	background: var(--vh-navy);
}

body.verka-new-header .inner-header > .container > .row:first-child {
	background: var(--vh-navy-deep);
	display: block;
}

body.verka-new-header .inner-header > .container > .row:first-child > [class*="col-"] {
	float: none;
	width: 100%;
	max-width: 100%;
	flex: none;
}

body.verka-new-header .inner-header .top-right {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 0;
	padding-left: 230px; /* clears the absolutely-positioned logo box */
	flex-wrap: nowrap;
	width: 100%;
}

body.verka-new-header .inner-header .cc-intranet-group,
body.verka-new-header .inner-header .utility-right-group {
	flex-shrink: 0;
}

body.verka-new-header .inner-header .innerHeader__modifier {
	display: flex;
	align-items: center;
	width: 100%;
}

body.verka-new-header .inner-header .site-branding {
	display: none; /* logo rendered via .verka-logo-box, not this empty placeholder */
}

body.verka-new-header .inner-header .ab-main-nav {
	display: flex;
	align-items: center;
	width: 100%;
	padding-left: 230px;
}

/* ==========================================================================
   FOOTER — new design (govt logos strip, 4-column grid, bottom bar)
   ========================================================================== */
body.verka-new-header .verka-new-footer {
	background: #fff;
	font-family: inherit;
}

/* ---------- Govt logos strip ---------- */
body.verka-new-header .govt-logos-section {
	padding: 36px 0;
	border-top: 1px solid #eee;
}

body.verka-new-header .govt-logos-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

body.verka-new-header .govt-logos-row .logo-nav {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f1f2f5;
	color: #555;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
}

body.verka-new-header .govt-logos-row .logo-nav:hover {
	background: #e4e6ec;
}

/* Viewport: clips the track so only one "page" (4 items) shows at a time */
body.verka-new-header .govt-logos-viewport {
	flex: 1;
	overflow: hidden;
}

body.verka-new-header .govt-logos-track {
	display: flex;
	align-items: center;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

body.verka-new-header .govt-logos-track::-webkit-scrollbar {
	display: none;
}

/* Each item takes exactly 1/4 of the viewport width, so 4 always fit
   per page regardless of how many total items exist in the track. */
body.verka-new-header .govt-logos-track .govt-logo-item {
	flex: 0 0 25%;
	width: 25%;
	box-sizing: border-box;
}

body.verka-new-header .govt-logo-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 44px;
	border-right: 1px solid #e3e3e3;
	height: 54px;
}

body.verka-new-header .govt-logo-item:last-of-type {
	border-right: none;
}

body.verka-new-header .govt-logo-item img {
	max-height: 46px;
	width: auto;
}

/* ---------- Main footer grid ---------- */
body.verka-new-header .footer-main {
	position: relative;
	overflow: hidden;
	padding: 48px 0 0;
}

body.verka-new-header .footer-blob {
	position: absolute;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: #f4eef8;
	z-index: 0;
}

body.verka-new-header .footer-blob.blob-left {
	left: -160px;
	top: 0;
}

body.verka-new-header .footer-blob.blob-right {
	right: -170px;
	bottom: -140px;
}

body.verka-new-header .footer-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
	gap: 30px;
	padding-bottom: 36px;
}

body.verka-new-header .footer-col .footer-logo img {
	height: 32px;
	margin-bottom: 16px;
}

body.verka-new-header .footer-col p {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.7;
	margin: 0 0 14px;
}

body.verka-new-header .footer-badges {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 6px;
}

body.verka-new-header .footer-badges img {
	height: 26px;
}

body.verka-new-header .footer-col h4 {
	font-size: 16px;
	font-weight: 700;
	color: #14142b;
	margin: 0 0 18px;
}

body.verka-new-header .footer-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.verka-new-header .footer-link-list li {
	margin-bottom: 13px;
}

body.verka-new-header .footer-link-list li a {
	color: #4a4f5a;
	font-size: 14.5px;
}

body.verka-new-header .footer-link-list li a:hover {
	color: var(--vh-accent-blue, #1f7bd6);
}

body.verka-new-header .footer-contact p {
	color: #4a4f5a;
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 12px;
}

body.verka-new-header .footer-social {
	margin-top: 6px;
}

body.verka-new-header .footer-social ul,
body.verka-new-header .footer-social ul.list-unstyled {
	display: flex !important;
	gap: 10px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.verka-new-header .footer-social ul li {
	display: inline-flex !important;
	list-style: none !important;
}

body.verka-new-header .footer-social .iconA a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #d8dbe2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: #20232b !important;
	font-size: 14px;
	background: #fff;
}

body.verka-new-header .footer-social .iconA a i {
	font-size: 14px;
	color: inherit;
}

body.verka-new-header .footer-social .iconA a:hover {
	background: #f3f5fa;
}

/* ---------- Bottom bar ---------- */
body.verka-new-header .footer-bottom-bar {
	position: relative;
	z-index: 1;
	border-top: 1px solid #ececec;
}

body.verka-new-header .footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	font-size: 13.5px;
	color: #4a4f5a;
	flex-wrap: wrap;
}

body.verka-new-header .footer-bottom a {
	color: var(--vh-accent-blue, #1f7bd6);
	font-weight: 600;
}

body.verka-new-header .visitor-count-wrap {
	display: inline-flex;
	gap: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	body.verka-new-header .footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	body.verka-new-header .govt-logo-item {
		padding: 0 22px;
	}
}

@media (max-width: 600px) {
	body.verka-new-header .footer-grid {
		grid-template-columns: 1fr;
	}
	body.verka-new-header .footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}
	body.verka-new-header .govt-logos-row {
		gap: 8px;
	}
	body.verka-new-header .govt-logo-item {
		border-right: none;
		padding: 6px 10px;
	}
	/* On small screens show 2 per page instead of 4, since 4 logos
	   side by side would be too cramped to read. */
	body.verka-new-header .govt-logos-track .govt-logo-item {
		flex: 0 0 50%;
		width: 50%;
	}
}
@media (max-width: 991px) {
	body.verka-new-header .top-right,
	body.verka-new-header .inner-header .top-right {
		justify-content: center;
		padding-left: 0 !important;
		flex-wrap: wrap;
		row-gap: 8px;
	}
	body.verka-new-header .cc-intranet-group,
	body.verka-new-header .utility-right-group {
		order: initial;
		margin-left: 0;
		flex-wrap: wrap;
		justify-content: center;
	}
	body.verka-new-header #primary-menu {
		display: none; /* existing slide-out #mySidenav handles mobile nav already */
	}
	body.verka-new-header .slide-nav {
		display: flex;
		margin-left: auto;
		padding: 0 20px;
	}
	body.verka-new-header .homepage__modifier,
	body.verka-new-header .innerHeader__modifier {
		justify-content: space-between;
	}
	body.verka-new-header .verka-logo-box {
		position: relative;
		width: 100%;
		justify-content: center;
	}
	body.verka-new-header .ab-main-nav,
	body.verka-new-header .inner-header .ab-main-nav {
		padding-left: 0 !important;
	}
}

@media (max-width: 480px) {
	body.verka-new-header .utility-right-group {
		gap: 6px;
	}
	body.verka-new-header .skip-to-main-visible {
		font-size: 11.5px;
	}
	body.verka-new-header .language-switch ul li a,
	body.verka-new-header .font-manage li a {
		font-size: 12px;
	}
}