/*
 Theme Name:     BDK Child Theme
 Theme URI:      https://www.bording.dk
 Description:    BDK Child Theme
 Author:         Bording Danmark
 Author URI:     https://www.bording.dk
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
#screenshot {
    width: 1200px;
    height: 900px;
    background: url('screenshot.png') no-repeat center center;
    background-size: cover;
}
/* =Theme Admin customization ends here
------------------------------------------------------- */

body {
	font-family: "merel", sans-serif;
	font-weight: 400;
	font-style: normal;
}
h1, h2, h3, h4, h5, h6 {
  	font-family: "merel", sans-serif;
	font-weight: 700;
	font-style: normal;
}

a {
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}

/* ==================================================== */
/*             MOBILE MENU Collapse                     */
/* ==================================================== */

/*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: '\4d';
}

/*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: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}

/*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: 10px;
	position: relative;
	font-family: "ETModules";
	content: '\33';
	color: #00d263;
	background: #f0f3f6;
	border-radius: 50%;
	padding: 3px;
}

/*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: '\32';
}

/*add point on top of the menu submenu dropdown*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}

/*adjust the position of the hamburger menu*/

.mobile_menu_bar {
	position: relative;
	display: block;
	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: #ffffff!important;
	border-radius: 10px;
}

@media (max-width: 980px) {
    .et_pb_menu .et_mobile_nav_menu {
        margin: 0px -6px 0px 6px;
    }
}


/*this sets the height of the image module*/
.nms-full-height-image-column {
	height: 100%;
}

/*this sets the height of the image container*/

.nms-full-height-image-column .et_pb_image_wrap {
	height: 100%;
}

/*this sets the height and fit of the actual image*/
.nms-full-height-image-column img {
	object-fit: cover;
	height: 100%;
}

/*Number circle*/
.number-circle {
	display: inline-flex;
	align-items: center;
}
.number-circle span {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: #336A55;
    border-radius: 24px;
    color: #fff;
	margin-right: 16px;
}
/*Icon with text box*/
.icon-with-text .et_pb_blurb_container {
    vertical-align: middle !important;
}
/*two-column-number-grid*/
.two-column-number-grid .et_pb_column {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, auto));
	grid-gap: 24px;
}

/*two-column-grid*/
@media (min-width: 981px) {
	.two-column-grid .et_pb_column {
		margin-right: 24px !important;
	}
}
@media (max-width: 980px) {
    .two-column-grid .et_pb_column:first-child {
        margin-bottom: 24px !important;
    }
	.two-column-number-grid .et_pb_column {
		grid-template-columns: repeat(1, minmax(0, auto));
	}
	.nyheader-grid .et_pb_ajax_pagination_container {
		grid-template-columns: repeat(2, minmax(0, auto)) !important;
	}
	.nms-kontakt-person .et_pb_team_member {
		display: flex;
		flex-direction: row;
	}
	.nms-kontakt-person .et_pb_team_member_image {
		margin: 0 30px 0 0;
		max-width: 200px;
	}
}
@media (max-width: 450px) {
	.nyheader-grid .et_pb_ajax_pagination_container {
		grid-template-columns: repeat(1, minmax(0, auto)) !important;
	}
	.nms-kontakt-person .et_pb_team_member {
		display: flex;
		flex-direction: column;
	}
	.nms-kontakt-person .et_pb_team_member_image {
		margin: 0 0 12px 0;
		max-height: 308px;
		max-width: 100% !important;
	}
	.text-quote blockquote  {
		padding: 60px 0 0 0;
	}
	.text-quote blockquote:before {
		content: "“";
		font-size: 120px;
		font-weight: 700;
		margin: -25px 0 0 0 !important;
	}
}
/*blockquote */
.text-quote blockquote  {
	border: none;	
	margin: 0px;
}
.text-quote blockquote:before {
    content: "“";
    font-size: 120px;
    font-weight: 700;
    position: absolute;
    margin: 15px 0 0 -65px;
	color: #FAF9F6;
	opacity:0.7;
}
/*Nyheader grid */
.nyheader-grid .et_pb_ajax_pagination_container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, auto));
	grid-gap: 30px;
}
.nyheader-grid .et_pb_post {
	margin-bottom: 0px !important;
}
/*Nyheader meta published icon */
.blog-meta-icons .post-meta .published {
    position: absolute;
    top: 0px;
}
.blog-meta-icons .post-meta .published:before {
    content: "\e023";
	font-family: ETMODULES;
	color: #fff;
	font-weight: bold;
	margin-right: 10px;
}
.blog-meta-icons .entry-title {
    margin-top: 44px !important;
}

/*NMS kontact person*/
.employee-email, .employee-tel, .employee-linkedin {
	color: #302D28;
	display: inline-flex;
	align-items: center;
	line-height: 31px;
}
.employee-email, .employee-linkedin {
	text-decoration: underline !important;
}
.employee-email::before, .employee-tel::before, .employee-linkedin::before {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
	background-size: cover;
}
.employee-email::before {
	content: url(/wp-content/uploads/2024/10/mail.svg);
}
.employee-tel::before {
	content: url(/wp-content/uploads/2024/10/phone.svg);
}
.employee-linkedin::before {
	content: url(/wp-content/uploads/2024/10/linkedin.svg);
}
.nms-kontakt-person .et_pb_team_member_image {
	max-height: 308px;
}
.nms-kontakt-person .et_pb_team_member_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* Gravity form custom style*/

.contact-us .gform_footer {
	justify-content: center;
}
.contact-us .gform_fields {
	row-gap: 25px !important;
}
.contact-us .sms-box .textarea {
	min-height: 90px !important;
	min-block-size: 5rem !important;
}
.contact-us input:focus, .textarea:focus {
	outline: 2px solid #668F80;
	box-shadow: 0px 0px 4px #668F80;
}
.contact-us input.text, .contact-us input.title, .contact-us input[type=email], .contact-us input[type=tel], .contact-us input[type=text], .contact-us select {
	min-height: 56px !important;
}

.contact-us input.text, .contact-us input.title, .contact-us input[type=email], .contact-us input[type=password], .contact-us input[type=tel], .contact-us input[type=text], .contact-us select, .contact-us textarea {
	color:#302D28 !important;
	border: 1px solid #00452B !important;
	border-radius: 4px !important;
	font-weight: 500;
	background-color: #F6F3ED;
	font-size: 16px
}
body .gform_wrapper input::placeholder,
body .gform_wrapper textarea::placeholder {
 	color: #595753!important;
}

.contact-us .gform_button {
	opacity: 1 !important;
}

.gform-loader {
	display: none !important;
}
div#gform_1_validation_container {
    color: #D31F13;
	background-color: #F6F3ED;
}
div#gform_confirmation_message_1 {
    text-align: center;
    font-weight: bold;
    border: 1px solid #084E5E;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 50px;
    box-shadow: 1px 1px 15px rgb(0, 0, 0, 0.2);
}

.gform_wrapper .gfield_label span {
  	display: none;
}

/* Initially hide the label */
.gform_wrapper .gfield_label {
	display: none;
	transition: 0.5s;
}
/* Class to show the label */
.gform_wrapper .gfield_label.show-label {
  	position: absolute;
    display: block;
    left: 10px;
   /* margin-top: -12px;
    background: linear-gradient(180deg, rgba(0, 69, 43, 1) 0%, #F6F3ED 57%);*/
    color: #302D28;
    padding: 0px 4px;
}

/* Hide placeholder when input is focused */
.gform_wrapper .gfield input:focus::placeholder,
.gform_wrapper .gfield textarea:focus::placeholder {
  opacity: 0;
  transition: opacity 0.3s ease; 
}

/* Apply red border to input fields when there is an error */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
    border-color: #D31F13 !important;
    box-shadow: 0 0 5px rgba(211, 31, 19, 0.5); /* Optional: Add red glow */
}

/* Customize error message styles */
.gform_wrapper .validation_message {
    color: #D31F13; 
}
/* Submit buttons custom style */
.gform_button {
    background-color: #DCE17C !important;
    color: #00452B !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 24px !important;
    padding: 10px 24px !important;
}
.gform_button:hover {
    background-color: #E3E796 !important;
    padding: 10px 24px !important;
}
/* .gform_footer SPAN:after
{
 color: #FFFFFF;
 content: "f105";
 font-family: FontAwesome;
 font-size: 20px;
 z-index: 100; 
 margin-left: -70px;
} */
/* inline buttons */
.ft-inline-buttons .et_pb_button_module_wrapper {
  display: inline-block;
}