.fmm-mega-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.fmm-mega-menu.active {
    display: block;
}

.fmm-container {
    display: flex;
    max-width: 100vw;
    margin: 0 auto;
    height: 100%;
    justify-content: space-between; /* Ensure even spacing between columns */
}

.fmm-column {
    flex: 1;
    padding: 40px;
    color: #000;
    transition: flex 0.3s ease; /* Smooth transition for flex changes */
    min-height: 100%; /* Ensure columns fill the height */
}

.fmm-column-1 {
    background: #fff;
}

.fmm-column-2 {
    background: #fff;
}

.fmm-column-3 {
    background: #fff;
}

.fmm-column ul {
    list-style: none;
    padding: 0;
}

.fmm-column li {
    padding: 10px 0;
    cursor: pointer;
    position: relative; /* For potential hover overlays */
}

.fmm-column li.fmm-active-parent {
    background: #000;
    color: #fff;
    border-radius: 50px;
    padding-left: 20px;
}

/* Hover effect for all items */
.fmm-column li:hover {
    background: #000;
    color: #fff;
    border-radius: 50px;
    padding-left: 20px;
}

.fmm-custom-content {
    padding: 20px;
    width: 100%;
}

.fmm-column-2.custom-content-active,
.fmm-column-3.custom-content-active {
    flex: 3;
}

/* Ensure hover area covers the transition between columns */
.fmm-container:hover .fmm-column,
.fmm-column:hover {
    flex: 1.1; /* Slight expansion on hover to overlap edges */
}