@charset "UTF-8"; 


/* ========================================================================
** 
**            P A G E   N A V I G A T I O N  
**          
** ========================================================================
**
**  ___________<ul  "main-menu">______________________________________
** |_____________|li _page_item _|_page_item_has_children_|_____li_a__|  
**                               |________________________|   
**        <ul class='children'>  |___li_page_item _a______|  
*/

.headnav-box { 
	border-top: 20px solid white;/* as margin */
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 100;
	width: 100%;
/*	height: 100%;*/
}

/*ul*/ .main-menu {
	list-style: none; 
	display: none;
	flex-direction: column;
} /* /* page_item */
.main-menu li {
	margin: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.main-menu > li a {
	line-height: 0.75em;display:block;
}

.main-menu a {
	text-decoration: none;
	font-weight: 600;
	color: #333;min-height:2rem; 
}

.main-menu a:hover,
.main-menu a:focus {
	color: #0070f3;
	outline: none;
}

/* ========== SUBMENU (WordPress style) ========== */
.page_item_has_children {
	position: relative;
	width: 100%; 
	text-align: center;
}/*******************************************************************************************************
===========================================================================================================
*/
 


.page_item_has_children {
	position: relative;
	width: 100%;/********************************************  min-height:16rem;    */
	text-align: center;
}

.children {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 2px solid;
	border-radius: 4px;
	box-shadow: 0 4px 6px black;
	z-index: 1000;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	line-height: 0;
	pointer-events: none;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
		/********************************************************************* most important height !!!!  */
	height:auto;min-height:300px;
}

.main-menu > li ul li {
	border-bottom: 1px solid #DDD !important;min-height:2em;
	}

.main-menu > li > ul li a {
	 
	text-decoration: none;
	min-height:2em;  line-height:2em;
	/*  white-space: nowrap; */
	display:block; width:100%; height:100%;
	font-size: 0.95em; text-align:center;min-height:2rem;min-height:2rem;
}

.main-menu > li > ul li:hover,
.main-menu > li > ul li:focus {
	outline: none; min-height:2rem;min-height:2rem;
}



	/* ========== MOBILE: Submenu behavior ========== */
@media (max-width: 768px) {
	.main-menu > li{ height:2rem !important;margin:0 !important;}
	.main-menu ul *,.main-menu > li {margin:0 !important;padding:0; gap:0;}
	.main-menu > li > ul li a {
	min-height:3em; line-height:3em; width:100%;ine-height:1.2rem;display:block;
}
	.page_item_has_children > a {
		position: relative;
		z-index: 2;
	}



	.page_item_has_children:focus-within > .children,
	.page_item_has_children:hover > .children {
		max-height: 500px;
		opacity: 1;
		line-height: normal;
		pointer-events: auto;
		margin-top: -2.6em !important;
	}

	.children {
		width: 100%;
		position: static;
		text-align: center;
	}
}

/* ========== DESKTOP: Submenu behavior ========== */
@media (min-width: 768.01px) {
	.headnav-box,
	nav,
	.main-menu {
		overflow: visible !important;
	}

	.page_item_has_children {
		position: relative;
		width: auto;
		text-align: center;
	}

	.children {
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		min-width: 180px;
		width: max-content;
		text-align: left;
		border: 1px solid #DDD;
		border-radius: 0;
		box-shadow: 1px 1px 5px #000;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	.page_item_has_children:hover > .children,
	.page_item_has_children:focus-within > .children {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.main-menu {
		display: flex !important;
		flex-direction: row;
		gap: 2rem;
	}

	.main-menu li {
		margin: 0;
		position: relative;
		min-height: 1.5rem;
		line-height: 1.5rem;
	}

	.main-menu > li > ul li a {
		margin: 0;
		width: 100%;
		display: block;
		padding-left: 0.5em;
	}

	nav {
		display: flex;
		align-items: center;
		gap: 2rem;
		margin-left: auto;
	}

	.headnav-box {
		justify-content: flex-end;
		margin: 0 auto;
		width: 100%;
	}
}








/* ========== HAMBURGER ICON ========== */
#menu__toggle {
	display: none;
}

.menu__btn {
	display: block;
	width: 30px;
	height: 25px;
	cursor: pointer;
	position: relative;
	left: 2rem;
	z-index: 101;
}

.menu__btn span,
.menu__btn span::before,
.menu__btn span::after {
	position: absolute;
	content: '';
	width: 100%;
	height: 3px;
	background: #333;
	transition: 0.3s;
}

.menu__btn span {
	top: 50%;
	transform: translateY(-50%);
}

.menu__btn span::before {
	top: -10px;
}

.menu__btn span::after {
	top: 10px;
}

#menu__toggle:checked + .menu__btn span {
	transform: rotate(45deg);
}

#menu__toggle:checked + .menu__btn span::before {
	transform: rotate(90deg);
	top: 0;
}

#menu__toggle:checked + .menu__btn span::after {
	display: none;
}

#menu__toggle:checked ~ nav .main-menu {
	display: flex;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #092D47; /* like it was ul bg.. */
	padding: 1rem 0;
	text-align: center;
	z-index: 99;
	flex-direction: column;
	box-sizing: border-box;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (max-width: 768px) {
	#menu__toggle:not(:checked) ~ nav .main-menu {
		display: none;
	}

	ul.main-menu {
		border-left: none !important;
		margin: 0;
		padding: 0;
	}

	.page_item_has_children > .children {
		left: 0;
		margin-left: 0;
		 
	}

	.page_item_has_children:hover > .children,
	.page_item_has_children:focus-within > .children {
		margin-top: 0;
	}
}









/* ================================ 
****         SEARCH FORM
** ================================
*/  
.search-form {
  position: relative;
  margin-top: 0rem;
  margin-right: 2px;
  text-align: center;
}

.search-field {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-field:focus,
.search-field:active {
  outline: none;
  border-color: #999;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-field:focus::placeholder,
.search-field:active::placeholder {
  color: transparent;
}

.search-submit,
.search-submit:hover {
  position: absolute;
  right: 0.5rem;
  top:35%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background-repeat: no-repeat; background-position:50% 50%;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490.4 490.4'><path fill='darkgrey' d='M484.1,454.796l-110.5-110.6c29.8-36.3,47.6-82.8,47.6-133.4c0-116.3-94.3-210.6-210.6-210.6S0,94.496,0,210.796 s94.3,210.6,210.6,210.6c50.8,0,97.4-18,133.8-48l110.5,110.5c12.9,11.8,25,4.2,29.2,0C492.5,475.596,492.5,463.096,484.1,454.796z M41.1,210.796c0-93.6,75.9-169.5,169.5-169.5s169.6,75.9,169.6,169.5s-75.9,169.5-169.5,169.5S41.1,304.396,41.1,210.796z'/></svg>");
}
@media screen and (max-width:768px){
	.search-submit,
.search-submit:hover {
   top:35%;
 }
}

.search-form .search-field:focus + .search-submit,
.search-form .search-field:active + .search-submit {
  visibility: hidden;
}
.search-field:focus {
  outline: none;
  border: 1px solid #ccc; /* keep same border without black */
  box-shadow: none;
}
.search-field:focus::placeholder,
.search-field:active::placeholder {
  color: transparent;
}
/*If your button is not immediately after the input, you might need a different selector, like:*/
.search-form:focus-within .search-submit {
  visibility: hidden;
}

.search-submit:hover,
.search-submit:focus {
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.7); /* bright blue glow */
  border-radius: 50%; /* optional: make the glow round */
}

@media (max-width: 768px) {
	.search-form {
	margin-top: 1rem;
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	}
	.search-field {
	width: 100%;
	}
	.search-submit {
	right: 0.75rem;
	}
}

/* // Completely hide hamburger toggle and label in desktop view */
	@media (min-width: 768px) {
	.menu__btn,
	#menu__toggle {
	display: none !important;
	}
	.headnav-box {
	justify-content: flex-start; /* keep other items aligned correctly */
	}
	.main-menu {
	display: flex !important;
	flex-direction: row;
	gap: 2rem;
	}
	.main-menu li {
	margin: 0;
	position: relative;
	}
	nav {
	display: flex;
	align-items: center;
	gap: 2rem;
	}
}

