/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.6455
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 */

.elementor .secondary-btn {
    background-color: #d6001d00 !important;
	border-color: white !important;
}

.elementor .tertiary {
    color: var(--Black) !important;
    border-color: var(--Red) !important;
    background-color: var(--white) !important;
}

body .elementor .dark-btn {
    color: var(--white) !important;
    border-color: var(--Black) !important;
    background-color: var(--Black) !important;
}

.elementor .hero {
    overflow: visible !important;
}


/* store gallery */
.custom-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 20px;
}

.custom-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  aspect-ratio: 1 / 1;
}

.custom-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}





/* Force display block and smooth transition */
div.elementor .image-box .background-hover-zoom,
div.elementor .image-box .background-hover-zoom img {
  display: block !important;
  transition: transform 0.3s ease-in-out !important;
}

/* Force zoom state on hover */
div.elementor .image-box:hover .background-hover-zoom,
div.elementor .image-box:hover .background-hover-zoom img {
  transform: scale(1.2) !important;
}

/* Nav portal link */
.portal-link {
	
}

header .portal-link a {
	margin: 10px;
	background: white;
    border-radius: 5px;
    margin: 10px 10px 10px 0px;
    color: black !important;
}

header .portal-link { transition: all .3s; }

@media (min-width: 1291px) {
header .portal-link:hover {
transform: scale(1.1);
}
}

/* Remove underline pseudo-element on hover for portal link anchor */
li.portal-link a.elementor-item::after,
li.portal-link a.elementor-item::before {
    display: none !important;
    content: none !important;
    background-color: transparent !important;
}


/* ==========================================================================
   1. Remove Hover Line on Employee Portal Link
   ========================================================================== */
.elementor-widget-nav-menu .elementor-nav-menu--main .portal-link .elementor-item::after {
    display: none !important;
}

/* ==========================================================================
   2. Hamburger & Full-Width Dropdown Fix (1290px Breakpoint) - Header Only
   ========================================================================== */
@media (max-width: 1290px) {
    /* Hide desktop horizontal menu in header */
    header .elementor-widget-nav-menu .elementor-nav-menu--main {
        display: none !important;
    }

    /* Keep parent relative so dropdown starts exactly below header */
    header .elementor-widget-nav-menu {
        position: relative !important;
    }

    /* Force show hamburger toggle & center vertically */
    header .elementor-widget-nav-menu .elementor-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

    /* Make dropdown visible when active */
    header .elementor-widget-nav-menu .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Stretch LEFT instead of RIGHT to bypass hidden overflow */
    header .elementor-widget-nav-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        position: absolute !important;
        top: 100% !important; 
        right: -10px !important; /* Anchors to right edge, offsetting standard column padding */
        left: auto !important; /* Clears the lock that caused it to stretch the wrong way */
        width: calc(100vw - 20px) !important; /* Fixed spaces around minus sign for valid CSS */
        max-width: 100vw !important;
        z-index: 999999 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
        padding: 10px;
    }
}


