/*
Theme Name: Sightic
Theme URI: https://www.sightic.com
Template: hello-elementor
Author: Md Tanzib Hossain
Author URI: https://tanzibhossain.com
Description: Sightic theme based on Hello Elementor as a child theme.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 1.0.0.1780324181
Updated: 2026-06-01 14:29:41
*/
/* =========================
   BASE MENU
========================= */
.mega-split-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
/* TOP LEVEL ITEMS */
.mega-split-menu > li:first-child {
	border-top: 1px solid var(--e-global-color-primary);
}
.mega-split-menu > li {
    width: 100%;
    position: relative;
    transition: width 0.35s ease, background 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
	border-bottom: 1px solid var(--e-global-color-primary);
}
/* LINK */
.mega-split-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    text-decoration: none;
	font-family: var(--e-global-typography-b0bfbe3-font-family), Sans-serif;
    font-size: var(--e-global-typography-b0bfbe3-font-size);
    font-weight: var(--e-global-typography-b0bfbe3-font-weight);
    line-height: var(--e-global-typography-b0bfbe3-line-height);
    color: var(--e-global-color-primary);
}
/* =========================
   SUBMENU INDICATOR CARET
========================= */
.mega-split-menu .menu-caret {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
}
/* =========================
   HOVER SPLIT ANIMATION
   Split only when hovering a PARENT that has a submenu
========================= */
/* shrink all items only while a submenu-parent is hovered */
.mega-split-menu:has(> li.menu-item-has-children:hover) > li {
    width: 50%;
}
/* expand the hovered parent and let its panel escape */
.mega-split-menu > li.menu-item-has-children:hover {
    width: 50%;
    overflow: visible;
}
/* highlight on hover — applies to every item, no width change */
.mega-split-menu > li:hover {
    background: var(--e-global-color-primary);
}
.mega-split-menu > li:hover > a {
    color: var(--e-global-color-accent);
}
/* =========================
   SUBMENU PANEL (RIGHT SIDE)
   NOTE: Walker outputs .mega-sub-menu — match it here
========================= */
.mega-split-menu .mega-sub-menu {
    position: absolute;
    top: -1px;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.35s ease;
    pointer-events: none;
    list-style: none;
    margin: 0;
	padding: 0;
}
.mega-split-menu .mega-sub-menu li {
	border-bottom: 1px solid var(--e-global-color-primary);
}
.mega-split-menu .mega-sub-menu li:first-child {
	border-top: 1px solid var(--e-global-color-primary);
}

.mega-split-menu .mega-sub-menu > li:hover {
    background: var(--e-global-color-primary);
}
.mega-split-menu .mega-sub-menu > li:hover > a {
	color: var(--e-global-color-accent);
}
.mega-split-menu .mega-sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    text-decoration: none;
    font-family: var(--e-global-typography-b0bfbe3-font-family), Sans-serif;
    font-size: var(--e-global-typography-b0bfbe3-font-size);
    font-weight: var(--e-global-typography-b0bfbe3-font-weight);
    line-height: var(--e-global-typography-b0bfbe3-line-height);
    color: var(--e-global-color-primary);
}
.mega-split-menu .mega-sub-menu a:hover {
    color: var(--e-global-color-accent);
}
/* SHOW SUBMENU ON HOVER */
.mega-split-menu > li:hover > .mega-sub-menu {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
/* SUBMENU ITEMS */
.mega-split-menu .mega-sub-menu li {
    
}
/* nested submenu links: keep caret right-aligned too */
.mega-split-menu .mega-sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
}

/* OFFCANVAS MENU */
@media (max-width: 1024px) {

    /* disable split effect inside the popup */
    .mega-split-menu > li {
        width: 100% !important;
        overflow: visible;
		display: flex;
    	flex-direction: column;
    }

    /* submenus always open, stacked under their parent */
    .mega-split-menu .mega-sub-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: block;
        box-shadow: none;
        padding: 0;
    }
	
	.mega-split-menu .mega-sub-menu li {
		border-top: 1px solid var(--e-global-color-primary);
		border-bottom: none;
	}
	
	.mega-split-menu .mega-sub-menu a {
		padding: 18px 60px;
	}
	.mega-split-menu > li:hover {
		background: inherit;
	}
	.mega-split-menu > li:hover > a {
		color: inherit;
	}
	.mega-split-menu .mega-sub-menu > li:hover {
		background: inherit;
	}
	.mega-split-menu .mega-sub-menu > li:hover > a {
		color: inherit;
	}
}