/*
Theme Name: D4D Theme Child
Theme URI: http://www.d4designstudios.com
Description: D4D  Child is a child theme of D4D Visual Builder, created by D4D Team
Author: D4D Team
Author URI: https://www.d4designstudios.com/
Template: d4d-theme
Version: 1.0.0
Text Domain: d4d-textdomain
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

button:focus {
	outline: none !important;
}
a {
	outline: none;
}

html,body
{
    width: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 
}
a {
	color:#19395F;
	text-decoration: none;
}
a:hover {
	color: #201F5F;
}

.post-state {
	display: none !important;
}

/*-------------------------------------------------------------------
Page Loader
--------------------------------------------------------------------*/
.d4d_page_loader {
	position:fixed;
	display:block;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:99999;
	text-align: center;
	background: #183B68 url('svg-loaders/oval.svg') no-repeat center center;
	background-position: center center;
	background-size: 60px 60px;
}

/*============================*/
/* Main Header */
/*============================*/

.d4d-main-header.she-header {
    padding: 20px 0;
    background-color: #FFFFFF;
    -webkit-box-shadow: 0 0 14px 0 rgba(0,0,0,.2);
            box-shadow: 0 0 14px 0 rgba(0,0,0,.2);
}
.d4d-menu .elementor-nav-menu--main .menu-item-has-children .sub-menu.elementor-nav-menu--dropdown {
	width: auto;
	min-width: 140px;
	margin-left: 2px;
	margin-top: 14px;
	
}
ul.elementor-nav-menu--dropdown a, ul.elementor-nav-menu--dropdown a:focus, ul.elementor-nav-menu--dropdown a:hover {
	border:none !important;
}

.homemenu::after {
	position: absolute;
	content: '';
    background-color: transparent !important;
	width: 100%;
	height: 0px;
	left: 0;
	bottom: 0px;
	transform-origin: 100% 0%;
	transition: transform .5s;
	transform: scaleY(0);
}
.homemenu:before {
	position: absolute;
	content: '';
    background-color: transparent !important;
	width: 0px;
	height: 0px;
	left: 50%;
	bottom: -40px;
	border-radius: 50%;
	transform-origin: 100% 0%;
	transform: translateX(-50%) scaleY(0);
	transition: transform .5s;
}

.inernalmenu .homelogo img {
    background: #183B68 !important;
    border-radius: 50%;
    padding: 20px
}

.homemenu .homelogo img {
    background: transparent !important;
    padding: 20px;
}
.homemenu.elementor-sticky--effects:after {
	position: absolute;
	content: '';
    background-color: #183B68 !important;
	width: 100%;
	height: 170px;
	left: 0;
	bottom: 0px;
	transform-origin: 100% 0%;
	transform: scaleY(1);
	transition: transform .5s;
}
.homemenu.elementor-sticky--effects:before {
	position: absolute;
	content: '';
    background-color: #183B68 !important;
	width: 170px;
	height: 170px;
	left: 50%;
	bottom: -50px;
	border-radius: 50%;
	transform-origin: 100% 0%;
	transform: translateX(-50%) scaleY(1);
	transition: transform .5s;
}

.inernalmenu .fa-chevron-down:before,
.homemenu .fa-chevron-down:before {
	content: url('assets/arrow-down-white.svg');
}

.inernalmenu .elementor-nav-menu .sub-arrow,
.homemenu .elementor-nav-menu .sub-arrow {
	padding-left: 5px;
}

/* Logo Slider */

.logoslider .swiper .elementor-swiper-button-prev {
	left: -5px !important;
}
.logoslider .swiper .elementor-swiper-button-next {
	right: -5px !important;
}

/* Humburger Menu */
#hummenu .elementor-menu-toggle,
#hummenu .elementor-menu-toggle:focus,
#hummenu .elementor-menu-toggle:visited {
    background-color: transparent;
}

#hummenu .fa-angle-down:before {
	content: url('assets/arrow-down.svg') !important;
}

#hummenu .highlighted .fa-angle-down:before {
	content: url('assets/arrow-down-white.svg') !important;
}

#hummenu .elementor-menu-toggle .eicon-menu-bar:before {
    position: absolute;
    -webkit-transform: translate(-100%, -45%);
    -ms-transform: translate(-100%, -45%);
    transform: translate(-100%, -45%);
    content: url('assets/ham-open.svg');
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    transition: all 0.5s linear;
    z-index: 9999;
}
#hummenu .elementor-menu-toggle.elementor-active .eicon-close:before {
    position: absolute;
    -webkit-transform: translate(-100%, -45%);
    -ms-transform: translate(-100%, -45%);
    transform: translate(-100%, -45%);
    content: url('assets/ham-close.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 9999;
}
/*============================*/
/* Partial Image CSS          */
/*============================*/

.fullimageright .elementor-column-wrap,
.fullimageleft .elementor-column-wrap {
	width: auto;
}
.fullimageright .elementor-widget-wrap,
.fullimageleft .elementor-widget-wrap {
	width: auto;
}
@media screen and (max-width:979px) {
	.fullimageleft > div { margin-left:auto !important; }
	.fullimageright > div { margin-right:auto !important; }
}
@media only screen and (max-width: 479px) {
	.fullimageleft > div,
	.fullimageright > div { margin-left:0 !important; margin-right:0 !important; }
}
/* Elementor Toggle Icon Plus Minus */
.elementor-toggle .elementor-tab-title .elementor-toggle-icon .elementor-toggle-icon-opened,
.elementor-toggle .elementor-tab-title .elementor-toggle-icon .elementor-toggle-icon-closed {
    display: block;
    font-size: 40px;
    margin-top: -10px;
}

/*============================*/
/* Slider Homepage            */
/*============================*/
.swiper-slide-contents {
    margin-top: 100px !important;
}
.mainslider .swiper-pagination {
	bottom: 40px !important;
}

/* d4d widgets wrap styling */
.d4d-widget [type=submit] {
/* 	color: #000!important; */
/* 	border: 1px solid #000!important; */
}
.d4d-widget [type=submit]:hover,
.d4d-widget [type=submit]:focus {
/* 	background-color: #ffa600!important; */
/* 	color: #fff!important; */
}
.d4d-widget {
	margin-bottom: 40px;
}

.d4d-widget .widget-title {
	font-size: 18px;
	text-transform: uppercase;
	font-weight: 400;
}

.widget ul, .widget ol {
	padding-left: 0;
	list-style: none;
	margin: 0;
}
.widget li { margin-bottom: 0; }
	.widget_pages ul li,
	.widget_nav_menu ul li,
	.widget_categories ul li,
	.widget_archive ul li {
	display: block;
	padding: 2px 0;
	text-align: right;
}
.widget_pages ul li a,
.widget_nav_menu ul li a,
.widget_categories ul li a,
.widget_archive ul li a {
	position: relative;
	float: left;
	padding: 2px 0;
	color: #222222;
	border-bottom: 1px solid #e1e1e1;
	border-color: rgba(0,0,0,0.1);
}

.widget_pages ul li a:hover,
.widget_nav_menu ul li a:hover,
.widget_categories ul li a:hover,
.widget_archive ul li a:hover {
	color: #3F3F3F;
}
.widget_pages ul li::after,
.widget_nav_menu ul li::after,
.widget_categories ul li::after,
.widget_archive ul li::after {
	clear: both;
	display: block;
	content: "";
}
.widget_pages ul li a:after,
.widget_nav_menu ul li a:after,
.widget_categories ul li a:after,
.widget_archive ul li a:after {
	content: '';
	border-bottom: 1px solid #e1e1e1;
	border-color: rgba(0,0,0,0.1);
	position: absolute;
	bottom: 0;
	height: 1px;
	width: 0%;
	left: 0;
	-webkit-transition: all 200ms linear;
	-o-transition: all 200ms linear;
	transition: all 200ms linear;
}
.widget_pages ul li a:hover:after,
.widget_nav_menu ul li a:hover:after,
.widget_categories ul li a:hover:after,
.widget_archive ul li a:hover:after {
	width: 100%;
	border-color: #3F3F3F;
}
.widget_pages ul.children,
.widget_nav_menu ul.children,
.widget_categories ul.children,
.widget_archive ul.children { clear: both; padding: 5px 0 0 10px; }

.widget_pages ul.children li,
.widget_nav_menu ul.children li,
.widget_categories ul.children li,
.widget_archive ul.children li { padding: 5px 0; }

.widget_nav_menu ul.children li,
.widget_nav_menu ul.children li a,
.widget_pages ul.children li,
.widget_pages ul.children li a,
.widget_categories ul.children li,
.widget_categories ul.children li a,
.widget_archive ul.children li,
.widget_archive ul.children li a { line-height: 1; padding-left: 8px;}

table thead th {
	background-color:#F3F5F7;
	color: #ffffff;
}

/* WordPress Clanedar */
#wp-calendar { border: none; }
#wp-calendar tbody td,
#wp-calendar th,
#wp-calendar table,
#wp-calendar th,
#wp-calendar td,
#wp-calendar caption,
#wp-calendar tbody td {
	background-color: transparent !important;
	border: none !important;
}
#wp-calendar tbody td a {
	display: block;
	width: 38px;
	height: 38px;
	color: #000000;
	padding: 6px;
	border: 1px solid #3F3F3F;
	border-radius: 50%;
}
#wp-calendar tbody td {
	width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	vertical-align: middle;
}
#wp-calendar tbody td { text-align: center; }
#wp-calendar th {
	font-weight: 300;
	text-align: center;
}
#wp-calendar caption { font-weight: bold; color: inherit; }
#wp-calendar tfoot tr a { color: inherit; }
#wp-calendar tfoot #prev { text-align: left;}
#wp-calendar tfoot #next { text-align: right;}

#wp-calendar tbody tr:nth-child(odd) {
	background: rgba(0, 0, 0, 0.023);
}

/* Regular Loop Blog */
.elementor-loop-container div:last-child section {
    border-bottom:0 !important; 
}


/*============================*/
/* Google Map CSS             */
/*============================*/
.gm-style .gm-style-iw-c {
	background-color: #122E54 !important;
	border-radius: 0 !important;
}
.gm-style .gm-style-iw {
	color: #ffffff !important;
	font-size: 16px !important;
	line-height:28px !important;
	padding: 20px !important;
}

.gm-style .gm-style-iw p:last-child {
	margin-bottom: 0;
}

.gm-style .gm-style-iw-d {
	overflow: hidden !important;
}

.gm-style .gm-style-iw-tc::after {
	background:#122E54 !important;
}

.gm-ui-hover-effect>span {
    pointer-events: none;
    display: block;
    width: 20px !important;
    height: 20px !important;
    background-color: #ffffff;
    right: 8px;
    position: relative;
    top: 6px;
}

/*============================*/
/* Custom Divider             */
/*============================*/
.clefs-divider .fa-circle::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    top: -5px;
    background: url('https://lesclefsdor.swiss/wp-content/uploads/2023/04/logo-02.png');
    background-size: 70px;
    background-position: 50% 0%;
    background-repeat: no-repeat;
}

/*============================*/
/* Custom Blog Posts          */
/*============================*/

.blog-posts-filter-wrap {
    margin-bottom: 40px;
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    justify-content: center;
	gap: 30px;

}

.blog-filter-cat,
.blog-filter-search {
	position: relative;
    flex-basis: 250px;
}
.blog-filter-cat::before {
    position: absolute;
    top: 50%;
    content: '';
    background-image: url('assets/arrow-down.svg');
    width: 22px;
    height: 22px;
    right: 10px;
    background-size: 22px;
    margin-top: -11px;
	z-index: 0;
}

.blog-filter-cat select {
    border: 1px solid #cccccc;
    border-radius: 0 !important;
    appearance: none;
    position: relative;
    background: transparent;
}
.blog-filter-cat select:focus {
    outline: none;
    border: 1px solid #cccccc;
}

.blog-filter-search input {
	border: 1px solid #cccccc !important;
	border-radius: 0 !important;
}

#custom-blog-posts-results {
    opacity: 0;
}

#custom-blog-posts-results.show {
    opacity: 1;
}

.custom-blog-posts-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.custom-blog-posts-item.show {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0px 0px 20px rgba(0,0,0,0.2);
}
.custom-blog-posts-content-wrap {
	padding:0 20px 20px 20px;
}

#custom-blog-posts-results {
	--columns:3;
	--gap:30px;
	--gap-count:calc( var(--columns) - 1 );
	display:flex;
	gap:var(--gap);
	flex-wrap: wrap;
}

.custom-blog-posts-item {
	flex-basis: calc( calc( 100% / var(--columns) ) - calc( var(--gap) / var(--columns) * var(--gap-count) ) );
}


.custom-blog-post-thumb { margin-bottom: 25px; }

.custom-blog-post-title { font-size: 19px; font-weight: 600; margin-bottom: 15px; }
.custom-blog-post-title a { color: #000000; transition: all 0.3s linear; }
.custom-blog-post-title a:hover { color: #112746; }

.custom-blog-post-date { color: #000000; font-weight: 500; font-size: 16px; margin-bottom: 5px; }

.custom-blog-post-content{ color: #000000; font-size: 15px; }

.custom-blog-post-content .morelink { color:#000000; border-bottom: 1px solid #000000; transition: all 0.2s linear;}
.custom-blog-post-content .morelink:hover { color:#F4D283; border-bottom: 1px solid #F4D283; }

@media (max-width: 992px) {
	#custom-blog-posts-results{
		--columns:2;
	}
}
@media (max-width: 767px) {
	#custom-blog-posts-results{
		--columns:1;
	}
}

/*============================*/
/* Responsive CSS             */
/*============================*/

/* This media query targets screens with a maximum width of 1024px */

@media only screen and (max-width: 1024px) {
	.d4d-menu .elementor-nav-menu li:after,
	li.current-menu-item:after,
	.elementor-sub-item:after {
		display: none;
	}
	.d4d-menu .menu-item ul.sub-menu {
		background: transparent!important;
	}
	.d4d-menu .elementor-sub-item {
		border-left: 0px;
		padding: 5px !important;
	}
	.d4d-menu .elementor-nav-menu li a,
	.d4d-menu .sub-menu li a {
		width: 100%;
		color: #fff;
	}
	.elementor-sticky--effects .elementor-container .elementor-widget-wrap section.elementor-inner-section {
		margin-top: -24px!important;
	}

	#hummenu svg {
		font-size: 40px;
		margin-top:10px;
	}
	/* D4D custom dropdown menu */
	#hummenu .elementor-nav-menu--dropdown .elementor-nav-menu {
		width: 70%;
		max-width: 800px;
		margin: 0 auto;
	}
	#hummenu nav.elementor-nav-menu--dropdown {
		top: 0 !important;
		margin:0;
		position: fixed !important;
		width: 100vw !important;
		height: 100vh !important;
		background-color: rgba(24, 59, 104,0.93) !important;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		z-index: 10;
	}
	#hummenu .elementor-menu-toggle {
		z-index: 999;
		padding:0;
		position: relative;
		top: -6px;
	}

	#hummenu .elementor-nav-menu--dropdown .elementor-item-active {
		color:#F3F5F7;
	}
	#hummenu .sub-menu li { padding-left:0 !important; }

	.d4d-menu .elementor-nav-menu--dropdown a.elementor-sub-item { margin-left: 0px!important; }
	
	#hummenu .elementor-nav-menu--dropdown .elementor-nav-menu a {
		text-align: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		-webkit-transition: all 0.23s ease-in-out;
		-o-transition: all 0.23s ease-in-out;
		transition: all 0.23s ease-in-out;
	}

	#hummenu .elementor-nav-menu--dropdown .elementor-nav-menu li:last-child a {
		border-bottom: none !important;
	}
	#hummenu .menu-item a.elementor-item {
		border-bottom: 1px solid rgba(255,255,255,0.2);
	}
	#hummenu .elementor-nav-menu--dropdown .mb-show {
		display: block !important;
	}
	#hummenu .elementor-nav-menu--dropdown ul {
		width: 40%;
	}

	
	.elementor-nav-menu__align-right .elementor-nav-menu, .elementor-nav-menu__align-right .elementor-nav-menu--layout-vertical>ul>li>a {
		justify-content: center !important
	}
	#hummenu .elementor-menu-toggle.elementor-active .eicon-close:before{
		margin-right:0 !important;
		right: -50% !important;
		transform: translate(50%,-50%);
	}
	#hummenu .elementor-menu-toggle .eicon-menu-bar:before {
		width: 70px;
		transform: translate(-40%,-50%);
		overflow: hidden;
	}
}

.playleft .elementor-custom-embed-play {
	top: inherit;
	left: 20px;
	bottom: 40px;
	transform: inherit;
}
.vcarousel.elementor-widget-video .elementor-custom-embed-image-overlay img {
	height: 100%;
	max-height: 145px !important;
	object-fit: contain !important;
}
.vcarousel.elementor-widget-video .elementor-custom-embed-image-overlay {
	object-fit: cover;
	height: 100%;
}

.custom-blog-post-thumb img {
    width: 100%;
    object-fit: cover;
    max-height: 220px;
	display:flex;
}