/* Desktop Menu Banner - Only applies above 840px */
@media screen and (min-width: 841px) {
    #header {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 10000 !important;
    }

    /* Add space below header for logo */
    #logo_row {
        margin-top: 4em;
    }

    /* Hide the "Menu" dropdown label on desktop */
    #nav > ul > li > a.icon.fa-angle-down {
        display: none !important;
        pointer-events: none !important;
    }

    /* Make the submenu visible and horizontal on desktop */
    #nav > ul > li > ul {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: inherit !important;
    }

    /* Prevent dropotron classes from interfering */
    .dropotron {
        display: none !important;
        pointer-events: none !important;
    }

    /* Remove hover effects from top-level nav items (like Home) */
    #nav > ul > li > a {
        background: none !important;
        pointer-events: auto !important;
    }

    #nav > ul > li > a:hover {
        background: none !important;
    }

    /* Style top-level menu items */
    #nav > ul > li > ul > li {
        display: inline-flex !important;
        position: relative;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Style all navigation links in the banner */
    #nav > ul > li > ul > li > a {
        display: inline-block;
        padding: 0 1.2em;
        height: 2em;
        line-height: 2em;
        border: 0 !important;
        border-radius: 6px;
        color: black;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        background: none !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    #nav > ul > li > ul > li > a:hover {
        background-color: rgba(232, 153, 128, 0.3) !important;
        color: #040270;
    }

    /* Style nested submenu container (About Us) */
    #nav > ul > li > ul > li > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        padding: 0.5em 0;
        margin-top: 0.5em;
        min-width: 180px;
        z-index: 1000;
    }

    /* Show submenu on hover */
    #nav > ul > li > ul > li:hover > ul {
        display: block;
    }

    /* Style nested submenu items */
    #nav > ul > li > ul > li > ul > li {
        display: block !important;
        padding: 0;
    }

    #nav > ul > li > ul > li > ul > li > a {
        display: block;
        padding: 0.5em 1.2em;
        height: auto;
        line-height: 1.5;
        border-top: solid 1px rgba(0, 0, 0, 0.05) !important;
        border-radius: 0;
        white-space: nowrap;
    }

    #nav > ul > li > ul > li > ul > li:first-child > a {
        border-top: 0 !important;
    }

    #nav > ul > li > ul > li > ul > li > a:hover {
        background: rgba(232, 153, 128, 0.4);
        color: #040270;
    }

    /* Add a small arrow indicator for items with submenus */
    #nav > ul > li > ul > li > a[href="#"]::after {
        content: ' ▾';
        font-size: 0.8em;
        opacity: 0.6;
        margin-left: 0.3em;
    }

    /* Adjust header height for better spacing */
    #header {
        height: 3.5em;
        line-height: 3.5em;
    }

    #header nav {
        line-height: 3.5em;
    }
}

/* Mobile - Keep existing behavior (no changes needed) */
@media screen and (max-width: 840px) {
    /* Mobile menu stays exactly as it is - using the navPanel system */
}

