/* Dropdown menu fix for static site */
/* Shows sub-menus on hover for desktop navigation */

/* CRITICAL: Remove overflow:hidden from nav container that clips dropdowns */
nav.menu-container,
.header-menu-1.menu-container,
header nav {
    overflow: visible !important;
}

/* Also fix parent divs with overflow:clip */
header .ct-container,
header .ct-container > div {
    overflow: visible !important;
}

/* CRITICAL: Parent menu items must be position:relative for absolute children */
/* Using element.class selector for high specificity */
li.menu-item.menu-item-has-children,
li.menu-item.page_item_has_children {
    position: relative !important;
}

/* Sub-menu base styling - must be absolute positioned and hidden by default */
li.menu-item-has-children > .sub-menu,
li.page_item_has_children > .sub-menu {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 9999 !important;
    min-width: 200px;
    background: #0F141A;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 0 !important;
    padding: 10px 0 !important;
}

/* Show sub-menu on hover - using element.class for specificity */
li.menu-item.menu-item-has-children:hover > .sub-menu,
li.menu-item.menu-item-has-children:focus-within > .sub-menu,
li.menu-item.page_item_has_children:hover > .sub-menu,
li.menu-item.page_item_has_children:focus-within > .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Sub-menu items */
li.menu-item-has-children > .sub-menu > .menu-item,
li.page_item_has_children > .sub-menu > .menu-item {
    display: block !important;
    width: 100%;
    position: relative !important;
}

li.menu-item-has-children > .sub-menu > .menu-item > a,
li.page_item_has_children > .sub-menu > .menu-item > a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

li.menu-item-has-children > .sub-menu > .menu-item > a:hover,
li.page_item_has_children > .sub-menu > .menu-item > a:hover {
    background: rgba(224, 122, 95, 0.2);
    color: #E07A5F;
}

/* ============================================= */
/* Fix for reveal animations on static site     */
/* The data-reveal attribute triggers scroll    */
/* animations that don't work without JS        */
/* ============================================= */

/* Override reveal animation - make all cards visible immediately */
[data-reveal],
.entry-card[data-reveal],
article[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ============================================= */
/* Site version number styling                   */
/* ============================================= */

.site-version {
    opacity: 0.5;
    font-size: 0.85em;
    margin-left: 10px;
}
