
/* Reset and base styles with higher specificity */
.custom-mega-menu,
.cynet-mega-menu {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 9999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius:8px;
}

/* Container */
.custom-mega-menu .mega-menu-container,
.cynet-mega-menu .mega-menu-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

/* Brand */
.custom-mega-menu .menu-brand,
.cynet-mega-menu .menu-brand {
    display: inline-block !important;
    padding: 15px 20px !important;
    margin: 0 !important;
}

.custom-mega-menu .menu-brand a,
.cynet-mega-menu .menu-brand a {
    color: #364B6A !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.custom-mega-menu .menu-brand a:hover,
.cynet-mega-menu .menu-brand a:hover {
    color: #0d2f52 !important;
}

/* Main menu list */
.custom-mega-menu .mega-menu-list,
.cynet-mega-menu .mega-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.custom-mega-menu .mega-menu-list > .menu-item,
.cynet-mega-menu .mega-menu-list > .menu-item {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Menu links */
.custom-mega-menu .menu-link,
.cynet-mega-menu .menu-link {
    display: flex !important;
    align-items: center !important;
    padding: 18px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.custom-mega-menu .menu-link:hover,
.cynet-mega-menu .menu-link:hover {
    color: #8CC313 !important;
    background-color: #f8f9fa !important;
}

/* Dropdown icon */
.custom-mega-menu .dropdown-icon,
.cynet-mega-menu .dropdown-icon {
    margin-left: 6px !important;
    font-size: 8px !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.custom-mega-menu .has-dropdown:hover .dropdown-icon,
.cynet-mega-menu .has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg) !important;
}

/* Top-level items: make them relative so the dropdown can be absolute to each one */
.custom-mega-menu > li,
.custom-mega-menu > .menu-item,
.cynet-mega-menu > li,
.cynet-mega-menu > .menu-item {
    position: relative;
}


/* Mega Dropdown */
/*.custom-mega-menu .mega-dropdown,*/
/*.cynet-mega-menu .mega-dropdown {*/
/*    position: absolute !important;*/
/*    top: 100% !important;*/
/*    left: 0 !important;*/
/*    width: 60vw !important;*/
/*    max-width: 100vw !important;*/
/*    background: #fff !important;*/
/*    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;*/
/*    opacity: 0 !important;*/
/*    visibility: hidden !important;*/
/*    transform: translateY(-10px) !important;*/
/*    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;*/
/*    z-index: 9998 !important;*/
/*    border-top: 3px solid #8CC313 !important;*/
/*    margin: 0 !important;*/
/*    padding: 0 !important;*/
/*}*/

/* Mega Dropdown */
.custom-mega-menu .mega-dropdown,
.cynet-mega-menu .mega-dropdown {
    position: absolute !important;
    top: 100% !important;

    /* Center under parent item */
    left: 5% !important;
    transform: translateX(-50%) translateY(-10px) !important;

    width: 40vw;
    max-width: 100vw !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9998 !important;
    border-top: 3px solid #8CC313 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-mega-menu .has-mega-dropdown:hover .mega-dropdown,
.cynet-mega-menu .has-mega-dropdown:hover .mega-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    /*transform: translateY(0) !important;*/
     transform: translateX(-30%) translateY(0) !important;
}

.custom-mega-menu .mega-dropdown-inner,
.cynet-mega-menu .mega-dropdown-inner {
    padding: 10px 10px !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
}

.custom-mega-menu .mega-dropdown-columns,
.cynet-mega-menu .mega-dropdown-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mega columns */
.custom-mega-menu .mega-column,
.cynet-mega-menu .mega-column {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-mega-menu .mega-column-title,
.cynet-mega-menu .mega-column-title {
    margin: 0 0 15px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #364B6A;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e5e7eb !important;
    line-height: 1.4 !important;
}

.custom-mega-menu .mega-column-title a,
.cynet-mega-menu .mega-column-title a {
    color: #0d2f52 !important;
    text-decoration: none !important;
}

.custom-mega-menu .mega-column-title a:hover,
.cynet-mega-menu .mega-column-title a:hover {
    color: #8cc313 !important;
}

.custom-mega-menu .mega-column-list,
.cynet-mega-menu .mega-column-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-mega-menu .mega-column-list li,
.cynet-mega-menu .mega-column-list li {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.custom-mega-menu .mega-column-list a,
.cynet-mega-menu .mega-column-list a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    display: block !important;
    padding: 6px 0 !important;
    transition: all 0.2s ease !important;
    padding-left: 0 !important;
    position: relative !important;
    line-height: 1.4 !important;
}

.custom-mega-menu .mega-column-list a:hover,
.cynet-mega-menu .mega-column-list a:hover {
    color: #8CC313 !important;
    padding-left: 8px !important;
}

.custom-mega-menu .mega-column-list a::before,
.cynet-mega-menu .mega-column-list a::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 2px !important;
    background: #8CC313 !important;
    transition: width 0.3s ease !important;
}

.custom-mega-menu .mega-column-list a:hover::before,
.cynet-mega-menu .mega-column-list a:hover::before {
    width: 4px !important;
}

/* Regular Dropdown (for nested items) */
.custom-mega-menu .sub-menu,
.cynet-mega-menu .sub-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    min-width: 220px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 9997 !important;
}

.custom-mega-menu .has-dropdown:hover > .sub-menu,
.cynet-mega-menu .has-dropdown:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.custom-mega-menu .sub-menu .menu-item,
.cynet-mega-menu .sub-menu .menu-item {
    position: relative !important;
}

.custom-mega-menu .sub-menu .menu-link,
.cynet-mega-menu .sub-menu .menu-link {
    padding: 10px 20px !important;
    font-size: 13px !important;
}

/* Active state */
.custom-mega-menu .menu-item.current-menu-item > .menu-link,
.custom-mega-menu .menu-item.current-menu-ancestor > .menu-link,
.cynet-mega-menu .menu-item.current-menu-item > .menu-link,
.cynet-mega-menu .menu-item.current-menu-ancestor > .menu-link {
    color: #8CC313 !important;
}

.custom-mega-menu .menu-item.current-menu-item > .menu-link::after,
.custom-mega-menu .menu-item.current-menu-ancestor > .menu-link::after,
.cynet-mega-menu .menu-item.current-menu-item > .menu-link::after,
.cynet-mega-menu .menu-item.current-menu-ancestor > .menu-link::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 16px !important;
    right: 16px !important;
    height: 3px !important;
    background: #8CC313 !important;
}

/* CTA Button (Register Now) */
.custom-mega-menu .cta-item,
.cynet-mega-menu .cta-item {
    margin-left: auto !important;
}

.custom-mega-menu .cta-button,
.cynet-mega-menu .cta-button {
    display: inline-block !important;
    padding: 10px 24px !important;
    background: #8CC313 !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #8CC313 !important;
    line-height: 1.4 !important;
}

.custom-mega-menu .cta-button:hover,
.cynet-mega-menu .cta-button:hover {
    background: #0d2f52 !important;
    border-color: #0d2f52 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(26, 84, 144, 0.3) !important;
}

/* Mobile Toggle Button */
.custom-mega-menu .mega-menu-toggle,
.cynet-mega-menu .mega-menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    padding: 10px !important;
    cursor: pointer !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    margin-top:-50px;
    transform: translateY(-50%) !important;
    z-index: 10000 !important;
}

.custom-mega-menu .mega-menu-toggle span,
.cynet-mega-menu .mega-menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
}

.custom-mega-menu .mega-menu-toggle.active span:nth-child(1),
.cynet-mega-menu .mega-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.custom-mega-menu .mega-menu-toggle.active span:nth-child(2),
.cynet-mega-menu .mega-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.custom-mega-menu .mega-menu-toggle.active span:nth-child(3),
.cynet-mega-menu .mega-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-mega-menu .has-mega-dropdown:hover .mega-column,
.cynet-mega-menu .has-mega-dropdown:hover .mega-column {
    animation: fadeInUp 0.4s ease forwards !important;
}

.custom-mega-menu .mega-column:nth-child(1),
.cynet-mega-menu .mega-column:nth-child(1) { animation-delay: 0.05s !important; }
.custom-mega-menu .mega-column:nth-child(2),
.cynet-mega-menu .mega-column:nth-child(2) { animation-delay: 0.1s !important; }
.custom-mega-menu .mega-column:nth-child(3),
.cynet-mega-menu .mega-column:nth-child(3) { animation-delay: 0.15s !important; }
.custom-mega-menu .mega-column:nth-child(4),
.cynet-mega-menu .mega-column:nth-child(4) { animation-delay: 0.2s !important; }
.custom-mega-menu .mega-column:nth-child(5),
.cynet-mega-menu .mega-column:nth-child(5) { animation-delay: 0.25s !important; }

/* Sticky behavior */
.custom-mega-menu.scrolled,
.cynet-mega-menu.scrolled {
    position: sticky !important;
    top: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.custom-mega-menu.hide-on-scroll,
.cynet-mega-menu.hide-on-scroll {
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease !important;
}

body.menu-open {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
.custom-mega-menu .mega-menu-toggle,
.cynet-mega-menu .mega-menu-toggle {
display: block !important;
}

.custom-mega-menu .mega-menu-list,
.cynet-mega-menu .mega-menu-list {
display: none !important;
flex-direction: column !important;
position: absolute !important;
top: 100% !important;
left: -20px !important;
right: -19px !important;
background: #fff !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
max-height: 80vh !important;
overflow-y: auto !important;
width:100vw;
z-index: 9999 !important;
}

.custom-mega-menu .mega-menu-list.active,
.cynet-mega-menu .mega-menu-list.active {
    display: grid !important;
}



.custom-mega-menu .mega-dropdown-columns,
.cynet-mega-menu .mega-dropdown-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap:5px !important;
    margin: 0 !important;
    padding: 0 !important;
}


.custom-mega-menu .mega-dropdown,
.cynet-mega-menu .mega-dropdown {
position: relative !important;
width: 100vw !important;
max-width: 100% !important;
box-shadow: none !important;
border-top: 1px solid #e5e7eb !important;
border-bottom: 1px solid #e5e7eb !important;
}

.custom-mega-menu .mega-dropdown-columns,
.cynet-mega-menu .mega-dropdown-columns {
grid-template-columns: 1fr !important;
}

.custom-mega-menu .mega-dropdown-inner,
.cynet-mega-menu .mega-dropdown-inner {
    margin-left: 100px !important;
}

.custom-mega-menu .sub-menu,
.cynet-mega-menu .sub-menu {
position: static !important;
box-shadow: none !important;
transform: none !important;
padding-left: 20px !important;
border-left: 2px solid #e5e7eb !important;
margin-left: 20px !important;
}

.custom-mega-menu .has-dropdown .mega-dropdown,
.custom-mega-menu .has-dropdown .sub-menu,
.cynet-mega-menu .has-dropdown .mega-dropdown,
.cynet-mega-menu .has-dropdown .sub-menu {
display: none !important;
}

.custom-mega-menu .has-dropdown.active .mega-dropdown,
.custom-mega-menu .has-dropdown.active .sub-menu,
.cynet-mega-menu .has-dropdown.active .mega-dropdown,
.cynet-mega-menu .has-dropdown.active .sub-menu {
display: block !important;
opacity: 1 !important;
visibility: visible !important;
}

.custom-mega-menu .cta-item,
.cynet-mega-menu .cta-item {
margin-left: 0 !important;
padding: 10px 20px !important;
}
}

@media (max-width: 768px) {
.custom-mega-menu .menu-link,
.cynet-mega-menu .menu-link {
padding: 14px 16px !important;
font-size: 14px !important;
}

.custom-mega-menu .mega-column-title,
.cynet-mega-menu .mega-column-title {
font-size: 14px !important;
padding-left:20px;
}

.custom-mega-menu .mega-column-list a,
.cynet-mega-menu .mega-column-list a {
font-size: 13px !important;
}
}