/* Danukala mega menu: the single owner of desktop menu styles. */
.danu-mega-menu {
    --menu-ink: #17346e;
    --menu-cyan: #18b5cf;
    --menu-muted: #66758a;
    --menu-line: #e7edf3;
    position: fixed;
    z-index: 3001;
    top: var(--danu-mega-menu-top, 145px);
    right: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(170px, 14vw, 218px);
    grid-template-areas: "content sidebar";
    width: min(75vw, 1320px);
    max-width: calc(100vw - 24px);
    height: min(600px, 74dvh, calc(100dvh - var(--danu-mega-menu-top, 145px) - 14px));
    min-height: 0;
    overflow: hidden;
    direction: ltr;
    color: var(--menu-ink);
    background: #fff;
    border: 1px solid var(--menu-line);
    border-top: 3px solid var(--menu-cyan);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 48px rgba(19, 43, 87, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

    .danu-mega-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

.danu-mega-menu__sidebar {
    grid-area: sidebar;
    min-width: 0;
    overflow-y: auto;
    direction: rtl;
    background: #f5f9fc;
    border-left: 1px solid var(--menu-line);
    scrollbar-width: thin;
}

.danu-mega-menu__root {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 16px);
    min-height: 49px;
    margin: 4px 8px;
    padding: 7px 10px;
    border: 0;
    border-radius: 10px;
    color: var(--menu-ink);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-align: right;
    cursor: pointer;
}

    .danu-mega-menu__root:hover,
    .danu-mega-menu__root.is-active {
        color: #0d6686;
        background: #e8f8fc;
    }

    .danu-mega-menu__root.is-active {
        box-shadow: inset -3px 0 var(--menu-cyan);
    }

.danu-mega-menu__root-icon {
    display: inline-grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #157fa2;
    background: #fff;
    font-size: 16px;
}

.danu-mega-menu__root-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.danu-mega-menu__root-arrow {
    color: #8ba3b5;
    font-size: 12px;
}

.danu-mega-menu__body {
    grid-area: content;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 18px;
    direction: rtl;
    scrollbar-width: thin;
}

.danu-mega-menu__panel {
    display: none;
}

    .danu-mega-menu__panel.is-active {
        display: block;
    }

.danu-explorer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--menu-line);
}

.danu-explorer__heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.danu-explorer__heading-icon {
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #17346e, #18b5cf);
    font-size: 17px;
}

.danu-explorer__eyebrow {
    color: #148daa;
    font-size: 11px;
    font-weight: 700;
}

.danu-explorer__heading h2 {
    margin: 0;
    color: var(--menu-ink);
    font-size: 18px;
    line-height: 1.5;
}

.danu-explorer__heading p {
    margin: 0;
    color: var(--menu-muted);
    font-size: 12px;
}

.danu-explorer__all {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--menu-line);
    border-radius: 9px;
    color: var(--menu-ink);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .danu-explorer__all:hover,
    .danu-explorer__all:focus-visible {
        color: #087d9a;
        border-color: #b8e8f3;
    }

.danu-explorer__quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 9px 0;
}

.danu-explorer__quick-label {
    margin-left: 4px;
    color: var(--menu-muted);
    font-size: 11px;
}

.danu-explorer__quick-links a {
    padding: 5px 10px;
    border-radius: 999px;
    color: #14617c;
    background: #edf9fc;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.danu-explorer__layout {
    display: grid;
    grid-template-areas: "spotlight categories";
    grid-template-columns: clamp(170px, 15vw, 215px) minmax(0, 1fr);
    gap: 18px;
    direction: ltr;
    align-items: start;
}

.danu-mega-menu__groups {
    grid-area: categories;
    min-width: 0;
    direction: rtl;
    column-count: 3;
    column-gap: 22px;
    column-rule: 1px solid #edf2f6;
}

.danu-mega-menu__group {
    display: inline-block;
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    break-inside: avoid;
}

.danu-mega-menu__group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    margin-bottom: 5px;
    padding-right: 8px;
    border-right: 3px solid var(--menu-cyan);
    color: var(--menu-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    text-decoration: none;
}

.danu-mega-menu__group ul {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.danu-mega-menu__group li {
    min-width: 0;
}

    .danu-mega-menu__group li > a {
        display: block;
        padding: 4px 7px;
        border-radius: 6px;
        color: #526174;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.55;
        text-decoration: none;
        overflow-wrap: anywhere;
        transition: color .14s ease, background-color .14s ease;
    }

        .danu-mega-menu__group li > a:hover,
        .danu-mega-menu__group li > a:focus-visible {
            color: #087d9a;
            background: #f0fafc;
        }

/* The advertising slot is deliberately retained, including its markup. */
.danu-explorer__spotlight {
    grid-area: spotlight;
    position: sticky;
    top: 0;
    overflow: hidden;
    min-height: 282px;
    padding: 12px;
    direction: rtl;
    border: 1px solid #a6e1ef;
    border-radius: 13px;
    background: linear-gradient(155deg, #e5faff, #d6f0fa);
    color: var(--menu-ink);
}

.danu-explorer__spotlight-visual {
    position: relative;
    height: 155px;
}

.danu-explorer__spotlight-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    border: 1px dashed #8ed8e8;
    border-radius: 10px;
    background: #f3fdff;
    text-align: center;
}

.danu-explorer__advertise-icon {
    font-size: 31px;
    color: #158ba6;
}

.danu-explorer__advertise-message {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.danu-explorer__spotlight-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    border-radius: 8px;
    color: #fff;
    background: #168da9;
    font-size: 10px;
    font-weight: 700;
}

.danu-explorer__spotlight-content {
    padding: 13px 4px 4px;
}

.danu-explorer__spotlight-status {
    color: #08766d;
    font-size: 11px;
}

.danu-explorer__spotlight-content strong {
    display: block;
    margin: 8px 0 15px;
    font-size: 14px;
    line-height: 1.6;
}

.danu-explorer__spotlight-content a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    background: #167fa0;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.danu-mega-menu a:focus-visible,
.danu-mega-menu button:focus-visible {
    outline: 2px solid var(--menu-cyan);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .danu-mega-menu__groups {
        column-count: 2;
    }

    .danu-explorer__layout {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .danu-mega-menu__body {
        padding-inline: 14px;
    }
}

@media (max-width: 900px) {
    .danu-explorer__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "categories" "spotlight";
    }

    .danu-explorer__spotlight {
        position: static;
        min-height: 245px;
    }

    .danu-mega-menu__body {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .danu-mega-menu,
    .danu-category-backdrop {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .danu-mega-menu {
        transition: none;
    }
}
