/*
Theme Name: WHF
Theme URI: https://example.com/
Description: Child theme for Divi.
Author: WHF
Template: Divi
Version: 1.0.0
Text Domain: whf
*/

/*set the defautl background color of the header section*/
.pa-header {
	background: transparent;
	-webkit-transition: background-color 0.2s ease-out;
	-moz-transition: background-color 0.2s ease-out;
	-o-transition: background-color 0.2s ease-out;
	transition: background-color 0.2s ease-out;
}


/*set the background color of the fixed header when scrolling*/
.pa-fixed-header {
	background-color: #06465e!important;
	-webkit-transition: background-color 0.2s ease-out;
	-moz-transition: background-color 0.2s ease-out;
	-o-transition: background-color 0.2s ease-out;
	transition: background-color 0.2s ease-out;
}

/*change hamburger icon to x when mobile menu is open*/

#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: 'M'
}


/*adjust the new toggle element which is added via jQuery*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 44px;
	height: 100%;
	padding: 0 !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 999;
	background-color: transparent;

}
.et_pb_menu .menu-item:hover > a,
.et_pb_menu .et_pb_menu__menu .et-menu-nav .et-menu .menu-item.current_page_item > a{
	color: #66c1bf!important;
}

/*some code to keep everyting positioned properly*/

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}


/*remove default background color from menu items that have children*/

.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}


/*hide the submenu by default*/

ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
	display: none !important;
	visibility: hidden !important;
}


/*show the submenu when toggled open*/

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}


/*adjust the toggle icon position and transparency*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}


/*submenu toggle icon when closed*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
	top: 0px;
	position: relative;
	font-family: "ETModules";
	content: '3';
	color: #ffffff;
	background: #06465e;
	border-radius: 50%;
	padding: 0px;
}


/*submenu toggle icon when open*/

ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: '2';
}

/*adjust the position of the hamburger menu*/

.mobile_menu_bar {
	position: relative;
	display: block;
	bottom: 0px;
	line-height: 0;
}


/*force the background color and add a rounded border*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
	background-color: #06465e!important;
	border-radius: 10px;
}


/*edit the Divi submenu*/
.et_pb_menu li ul {
	border-top: none;
	border-radius: 15px;
	width: 20vw;
	padding-right: 0%;

}


/*edit the Divi submenu list items*/
.et_pb_menu li li {
	padding-top: 2%;
	padding-left: 5%;
	padding-right: 0%;
	padding-bottom: 2.5%;
	opacity: 1;

}


/*edit the Divi submenu links*/
.et_pb_menu li li a {
	width: 15vw;


}


/*edit the default Divi mobile menu header*/
#main-header {
	padding: 0!important;
	padding-top: 100px;

}

/*edit the Divi mobile menu logo image*/
.et_pb_menu__logo img {
	width: 65%;
	max-width: 200px;

}

/*edit the Divi mobile menu dropdown*/
.et_mobile_menu {
	border-top: 0px;
	padding-left: 2%!important;
	padding-top: 10%!important;
	width: 130%;
	margin-left: -6%;
	border-radius: 15px;

}

/*Divi mobile menu parent links*/
.et_mobile_menu li a {
	padding-top: 2vw;
	padding-left: 5vw;
	padding-right: 5vw;
	opacity: 1;
	width: 100%;

}


/*Divi mobile menu submenu links*/
.et_mobile_menu .menu-item-has-children li a {
	padding-left: 10vw;
	padding-right: 50px;
	width: 500px;
	max-width: 500px;

}
/** Language switcher  */
.language-switcher-for-divi-polylang .lsdp-wrapper.dropdown::after {
	font-family: ETmodules;
	content: "3";
	font-size: 16px;
	position: absolute;
	right: 8px;
	font-weight: 800;
	border-width: 0 !important;
	top: 14px;
	color: #fff;
}

.language-switcher-for-divi-polylang .lsdp-wrapper.dropdown ul {
	background: #06465e;
	border-radius: 15px;
	padding: 20px;
	margin-top: -14px;
}
/** Newsletter  */
.whf-newsletter-shortcode .cr_form,
.whf-newsletter-shortcode .cr_body,
.whf-newsletter-shortcode .cr_page,
.whf-newsletter-shortcode .formbox {
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.whf-newsletter-shortcode .cr_body.formbox {
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.whf-newsletter-shortcode .editable_content {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
}
.whf-newsletter-shortcode .newsletter-field,
.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] {
	grid-column: 1 / -1;
	width: 100% !important;
}
.whf-newsletter-shortcode .cr_ipe_item .itemname {
	display: none !important;
}
.whf-newsletter-shortcode .firstname {
	order: 1;
}
.whf-newsletter-shortcode .lastname {
	order: 2;
}
.whf-newsletter-shortcode .email {
	order: 3;
}
.whf-newsletter-shortcode .privacy {
	order: 4;
}
.whf-newsletter-shortcode .submit_container {
	order: 5;
}

.whf-newsletter-shortcode .cr_ipe_item input[type="text"],
.whf-newsletter-shortcode .cr_ipe_item input[type="email"] {
	width: 100% !important;
	padding-block: 14px !important;
	padding-inline: 18px !important;
	font-size: 0.9vw;
	line-height: 1.5;
	color: #dbeaf2 !important;
	background-color: rgba(6, 70, 94, 0.5) !important;
	border: 0 !important;
	border-radius: 12px;
}
.whf-newsletter-shortcode .cr_ipe_item.privacy * {
	font-size: 0.9vw;
}
.whf-newsletter-shortcode .cr_ipe_item input[type="text"]:hover,
.whf-newsletter-shortcode .cr_ipe_item input[type="text"]:active,
.whf-newsletter-shortcode .cr_ipe_item input[type="text"]:focus,
.whf-newsletter-shortcode .cr_ipe_item input[type="email"]:hover,
.whf-newsletter-shortcode .cr_ipe_item input[type="email"]:active,
.whf-newsletter-shortcode .cr_ipe_item input[type="email"]:focus {
	background-color: #06465e !important;
}

.whf-newsletter-shortcode .cr_ipe_item input[type="text"]::placeholder,
.whf-newsletter-shortcode .cr_ipe_item input[type="email"]::placeholder {
	color: #dbeaf2;
	opacity: 1;
}

.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] {
	color: #fff !important;
	font-size: 18px;
}

.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] .itemname {
	display: block !important;
	margin: 0 0 6px 0;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
}

.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] a {
	color: #ffffff !important;
	text-decoration: underline !important;
}

.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] a:hover,
.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] a:focus {
	color: #ffffff !important;
}

.whf-newsletter-shortcode .cr_ipe_item[rel="checkbox"] input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
}

.whf-newsletter-shortcode .cr_ipe_item[rel="button"] {
	grid-column: 1 / -1;
	width: 100% !important;
	margin-left: 0 !important;
}

.whf-newsletter-shortcode .submit_container {
	display: flex !important;
	justify-content: flex-end !important;
}

.whf-newsletter-shortcode .submit_container .cr_button {
	width: auto !important;
	min-width: 50% !important;
	max-width: 100%;
	color: #136f8b !important;
	border-width: 0 !important;
	border-radius: 100px;
	font-size: 1.1vw;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	background-color: #ffffff !important;
	padding-top: 5% !important;
	padding-right: 4em !important;
	padding-bottom: 5% !important;
	padding-left: 4em !important;
}

.whf-newsletter-shortcode .submit_container .cr_button:hover {
	background-color: #66c1bf !important;
	opacity: 1 !important;
}

@media (min-width: 981px) {
	.whf-newsletter-shortcode .editable_content {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.whf-newsletter-shortcode .newsletter-field.firstname,
	.whf-newsletter-shortcode .newsletter-field.lastname {
		grid-column: auto;
	}
}


@media (max-width: 980px) {
	.et_mobile_menu .menu-item-has-children>a:first-child::after,
	.et_mobile_menu .page_item_has_children>a:first-child::after,
	.et_mobile_menu.et-menu .menu-item-has-children>a:first-child::after,
	.et_mobile_menu.et-menu .page_item_has_children>a:first-child::after {
		content: none !important;
		display: none !important;
	}
	.language-switcher-for-divi-polylang .lsdp-wrapper.dropdown::after {
		top: 10px;
	}
	.whf-newsletter-shortcode .cr_ipe_item input[type="text"],
	.whf-newsletter-shortcode .cr_ipe_item input[type="email"] {
		font-size: 24px;
	}

	.whf-newsletter-shortcode .submit_container .cr_button {
		font-size: 16px;
	}
	.whf-newsletter-shortcode .newsletter-field {
		margin-bottom: 3%;
	}
}
@media (max-width: 520px) {
	.whf-newsletter-shortcode .cr_ipe_item input[type="text"],
	.whf-newsletter-shortcode .cr_ipe_item input[type="email"],
	.whf-newsletter-shortcode .cr_ipe_item.privacy * {
		font-size: 3.8vw;
	}
}
