/* Dora Mega Menu - Frontend Styles */
.dora-mega-menu {
    position: relative;
    width: 100%;
    z-index: 500;
}

.dora-mega-menu-overlay {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.dora-mega-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.dora-mega-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #374151;
    transition: all 0.3s ease;
}

.dora-mega-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.dora-mega-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.dora-mega-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.dora-mega-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.dora-mega-menu-list li:first-child {
    display: none;
}

.dora-mega-menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.dora-mega-menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #374151;
/* 	font-family: --wp--preset--font-family--brother-1816; */
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dora-mega-menu-link:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.dora-mega-menu-indicator {
    font-size: 10px;
    transition: transform 0.2s ease;
    line-height: 0;
}

.dora-mega-menu-panel {
    position: fixed;
    top: unset;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0;
}

.dora-mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.dora-mega-menu[data-trigger="hover"] .dora-mega-menu-item:hover .dora-mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dora-mega-menu[data-trigger="hover"] .dora-mega-menu-item:hover .dora-mega-menu-indicator {
    transform: rotate(180deg);
}

.dora-mega-menu[data-trigger="click"] .dora-mega-menu-item.active .dora-mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dora-mega-menu[data-trigger="click"] .dora-mega-menu-item.active .dora-mega-menu-indicator {
    transform: rotate(180deg);
}

.dora-mega-menu[data-trigger="click"] .dora-mega-menu-item.active .dora-mega-menu-link {
    color: #2563eb;
    background: #f3f4f6;
}

.dora-mega-menu-empty {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
}

@media only screen and (min-width: 1025px) {
    .dora-mega-menu-panel {
        margin-top: 23px !important;
    }

    .dora-mega-menu-list {
        gap: 20px;
    }

    .dora-mega-menu-link {
        padding: 0 !important;
    }
}

@media (max-width: 1024px) {
    .dora-mega-menu-toggle {
        display: flex;
    }

    .dora-mega-menu-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 82px;
        left: 0;
        width: 80%;
        height: 100%;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .dora-mega-menu-list.active {
        display: flex;
    }

    .dora-mega-menu-overlay.active {
        display: block;
    }

    .dora-mega-menu-panel {
        position: absolute;
        top: 0;
        width: 100%;
        overflow-y: scroll;
    }

    .dora-mega-menu-content {
        padding: 16px;
    }

    .dora-mega-menu-link {
        padding: 0.75rem 1rem;
    }

    .dora-mega-menu-item {
        width: 100%;
    }

    .dora-mega-menu-item .dora-mega-menu-panel {
        display: none;
    }

    .dora-mega-menu-item.active .dora-mega-menu-panel {
        display: block;
    }

    .dora-mega-menu-list li:first-child {
        display: block;
    }
}

.dora-mega-menu-panel .wp-block-columns {
    margin-bottom: 0;
}

.dora-mega-menu-panel h2,
.dora-mega-menu-panel h3,
.dora-mega-menu-panel h4 {
    margin-top: 0;
}

.dora-mega-menu-panel a {
    color: #2563eb;
    text-decoration: none;
}

.dora-mega-menu-panel a:hover {
    text-decoration: underline;
}