/* -----------------------------------------
   Base Container
----------------------------------------- */
.vidaium-mega-menu {
    position: relative;
    direction: rtl;
    font-family: inherit;
}

/* -----------------------------------------
   Trigger Button
----------------------------------------- */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 15px;
    transition: all .25s ease;
}

.menu-trigger__icon {
    display: inline-flex;
}

.menu-trigger__label {
    display: inline-block;
}

/* -----------------------------------------
   Panel Container
----------------------------------------- */
.vidaium-mega-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0,0,0,0.15);
    display: none;
    padding: 25px;
    z-index: 9999;
    transition: opacity .25s ease, transform .25s ease;
    transform: translateY(8px);
    opacity: 0;
}

.vidaium-mega-panel.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.vidaium-mega-menu.is-open .vidaium-mega-panel {
    display: flex;
}

/* -----------------------------------------
   Columns Layout
   (RTL-first)
----------------------------------------- */
.vidaium-col-parents {
    width: 25%;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.vidaium-col-children {
    width: 45%;
    padding: 0 20px;
}

.vidaium-col-image {
    width: 30%;
    padding-right: 20px;
}

/* -----------------------------------------
   PARENT LIST
----------------------------------------- */
.vidaium-parent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vidaium-parent-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    border-radius: 6px;
    transition: all .2s ease;
}

.vidaium-parent-item:hover {
    background: #f5f5f5;
    color: #000;
}

.vidaium-parent-item.is-active {
    background: #e8f0ff;
    color: #1a73e8;
    font-weight: 600;
}

/* -----------------------------------------
   CHILDREN COLUMN
----------------------------------------- */
.vidaium-subgroups {
    display: none;
}

.vidaium-subgroups.is-active {
    display: block;
}

/* -----------------------------------------
   Level 2 Items
----------------------------------------- */
.vidaium-subgroup {
    margin-bottom: 25px;
}

.vidaium-child-link--level-2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.vidaium-child-link--level-2:hover {
    background: #f5f5f5;
    color: #1a73e8;
}

/* -----------------------------------------
   Level 3 Items
----------------------------------------- */
.vidaium-sub-list {
    list-style: none;
    padding: 0 15px 0 0;
    margin: 0;
}

.vidaium-child-link--level-3 {
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: all .2s ease;
}

.vidaium-child-link--level-3:hover {
    background: #f5f5f5;
    color: #1a73e8;
}

/* -----------------------------------------
   IMAGE COLUMN
----------------------------------------- */
.vidaium-preview-wrapper {
    display: none;
}

.vidaium-preview-wrapper.is-active {
    display: block;
}

.vidaium-preview-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: all .25s ease;
}


.elementor-widget-vidalium_mega_menu_dynamic {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
}

