/* 
Theme Name: HMDG Elementor Child Theme
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor Theme and Used By HMDG Team
Author: HMDG TEAM
Author URI:https://hmdg.co.uk
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
}

a {
    text-decoration: none !important;
}

/* Embed Grayscale Map */
.mapembed-gray iframe {
    width: 100%;
    filter: grayscale(100%);
    height: 500px;
    margin-bottom: -8px;
}

.mapembed-notgray iframe {
    width: 100%;
    height: 500px;
    margin-bottom: -8px;
}

@media (max-width:767px) {

    .mapembed-gray iframe,
    .mapembed-notgray iframe {
        height: 300px;
        ;
    }
}

/* BUTTON PULSE EFFECT */
/*pulse button on hover*/
.pulse-btn-hover a.elementor-button-link:hover {
    animation: pulse-animation 2s infinite;
}

/*pulse button not hover*/
.pulse-btn-not-hover a.elementor-button-link {
    animation: pulse-animation 2s infinite;
}

/*Elementor icon pulse effect*/
.icononly-pulse-effect .elementor-icon {
    animation: pulse-animation 2s infinite;
}

/*button with text and description pulse effect*/
.icon-with-text-description-pulse-effect .elementor-icon-box-icon .elementor-icon {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
}

/* BUTTON EFFECT OUTLINE */
/* Outline Outward button hover effect*/
.outline-outward a.elementor-button-link {
    display: inline-block;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    box-shadow: 0 0 1px transparent;

    cursor: pointer;
}

.outline-outward a.elementor-button-link:before {
    content: '';
    position: absolute;
    border: #fff solid 1px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition-duration: .3s;
    transition-property: top right bottom left;
}

.outline-outward a.elementor-button-link:hover:before {
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
}

/* end */

/* ADD MEGA MENU DROPDOWN A SCROLL BAR */
/* CLASS NAME mega-menu-overflow */
@media (min-width:1024px) {
    .mega-menu-overflow {
        height: 500px;
        overflow-y: scroll;
    }

    .mega-menu-overflow::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        margin: 10px !important;
        border-radius: 10px;
        background-color: #F5F5F5;
    }

    .mega-menu-overflow::-webkit-scrollbar {

        width: 5px;
        background-color: #F5F5F5;
    }

    .mega-menu-overflow::-webkit-scrollbar-thumb {

        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        background-color: #555;
    }
}

/* ADD SUB MENU COLUMN 2 CLASS NAME sub-column-2 */
@media (min-width:768px) {
    .elementor-nav-menu--main .elementor-nav-menu li.menu-item.sub-column-2 ul.sub-menu {
        column-count: 2
    }
}

.elementor-slideshow__footer {
    display: none;
}


/* class name "pop-up-menu" add this class to wordpress menu inside elementor pop up to resolve issues */
.pop-up-menu .elementor-nav-menu--main .elementor-nav-menu ul.sub-menu {
    position: unset;
    width: unset;
    min-width: unset;
    max-width: unset;
}

.pop-up-menu .elementor-nav-menu .sub-arrow {
    margin-left: auto;
    margin-right: 0px;
}

/* .pop-up-close */
.pop-up-close.elementor-popup-modal .dialog-close-button {
    padding: 10px;
    background-color: var(--primary_color);

}

.pop-up-close.elementor-popup-modal .dialog-close-button svg {
    fill: var(--white);
}

.pop-up-close.elementor-popup-modal .dialog-close-button:hover {
    background-color: var(--primary_color);
}

.pop-up-close .elementor-nav-menu li{
    margin-bottom: 5px;
}

/* HERO VH class name hero-vh */
@media (min-width:1920px) and (min-height:1200px) {
    .hero-vh {
        min-height: 900px !important;
    }
}

/* Resolving background video to safari */
body.e--ua-safari .hero-video .elementor-background-video-container {
    display: none;
}


/* 
 * Class Name: "custom-mega"
 * Description: Add triangle arrow dropdown to elementor mega menu. Just add the class custom-mega to elementor mega menu and set the mega menu DISTANCE FROM CONTENT to 35px
 *  */
.custom-mega nav.e-n-menu ul.e-n-menu-heading li.e-n-menu-title button[aria-expanded="true"]:before {
    content: "";
    display: block;
    position: absolute;
    width: 0px;
    height: 0px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgb(255, 255, 255);
    bottom: -48px;
    left: 50%;
    transform: rotate(90deg);
    opacity: 1;
    transition: opacity 600ms ease 0s;
    margin-left: -30px;
}

/* End  */


/* For regular menu add class name "web-menu-items" to wordpress menu*/
.web-menu-items .elementor-nav-menu--main ul.elementor-nav-menu li.menu-item a.elementor-item.has-submenu[aria-expanded="true"]:before {
    content: "";
    display: block;
    position: absolute;
    width: 0px;
    height: 0px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgb(255, 255, 255);
    bottom: -40px;
    left: 50px;
    transform: rotate(90deg);
    opacity: 1;
    margin-left: -20px;
    background-color: transparent;
    animation: arrow-opacity 1s;

}

/* WordPress Reg Menu Add Dropdown ClassName "menu-dropdown-padding"  */
.menu-dropdown-padding .elementor-nav-menu--main .elementor-nav-menu ul {
    padding: 10px;
}

@keyframes arrow-opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* "overflow-loop-carousel" - Make the loop carousel overflow left and right */
.overflow-loop-carousel .swiper {
    overflow: visible;
}

/* Make the CTA description hidden and show on hover. Just add this class name. "hide-cta-description" to container and "card" to cta widget */
.hide-cta-description .card .elementor-cta__description {
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
    height: 0;
    overflow: hidden;
}

.hide-cta-description:hover .card .elementor-cta__description {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

/* End */
/* Safari accordion fix */
.elementor-widget-n-accordion .e-n-accordion-item-title-icon span>svg {
    width: 20px
}

/* end */

.elementor-nav-menu li.menu-item-has-children .sub-arrow {
    margin-left: auto;
    margin-right: 0px;
}

/* Make icon box whole clickable */
.elementor-icon-box-title a::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

input[type=date]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus, 
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=url]:focus,
select:focus, textarea:focus{
	box-shadow:unset !important;
}

/* If Primary menu is transparent and white background on scroll add this class name to menu "dark-menu-items-onscroll" so that the  menu  items will change to dark during on scroll, it also includes the toggle */
#header.elementor-sticky--active.elementor-sticky--effects .dark-menu-items-onscroll  nav.elementor-nav-menu--main ul.elementor-nav-menu li.menu-item:not(.current-menu-item) a.elementor-item:not(:hover){
	color:var(--body_color);
}
#header.elementor-sticky--active.elementor-sticky--effects .dark-menu-items-onscroll .elementor-icon svg{
	fill:var(--body_color);
}
/* end */

/* MAKE CAROUSEL LOOP OVERFLOW TO RIGHT */
@media (min-width:1200px){
	.overflow-right .swiper {
			overflow:visible;
			clip-path: inset(0 -50vw 0 0);
	}
}


/* Grid Full Width last column mobile
 * "grid-last-item-fullwidth-mobile"
 *  */
@media (max-width:767px){
	.grid-last-item-fullwidth-mobile .elementor-element:last-child{
		grid-column: 1 / -1;
	}
}

/* =========CARD BUTTON + =========
 * Default Position bottom right*/
/* SERVICES */
.card-cta .elementor-cta__bg-wrapper:after {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    background:var(--white) url(/wp-content/uploads/2024/09/add-line.svg) no-repeat center center / 24px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 9;
    transition: all 0.3s var(--animate-cubic);
}
.card-cta:hover .elementor-cta__bg-wrapper:after {
    transform: rotate(90deg) !important;
}
/* Card Top Right  add class name "cta-top-right" after card-cta */
.card-cta.cta-top-right .elementor-cta__bg-wrapper:after{
	bottom:unset !important;
	top:40px !important;
}
/* Card Bottom left  add class name "cta-bottom-left" after card-cta */
.card-cta.cta-bottom-left .elementor-cta__bg-wrapper:after{
	right:unset !important;
	left:40px !important;
}
/* Card Top left  add class name "cta-top-left" after card-cta */
.card-cta.cta-top-left .elementor-cta__bg-wrapper:after{
	bottom:unset !important;
	top:40px !important;
	right:unset !important;
	left:40px !important;
}

/* Card Overlay "card-overlay"*/
.card-overlay .elementor-cta__bg-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.65) 100%) !important;
}
/* END OF CARD SETTINGS */