/* CEPC Modern Navigation — Version 1.0 */

/* Main navigation */
#navigation {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Top-level menu items */
#navigation > li {
    position: relative;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Top-level links */
#navigation > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 5px;
    background: transparent !important;
    color: #30343b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

/* Override old theme link colors */
#navigation > li > a span {
    color: inherit !important;
    font: inherit !important;
    background: transparent !important;
    border: 0 !important;
}

/* Hover and active page */
#navigation > li > a:hover,
#navigation > li:hover > a,
#navigation > li.current-menu-item > a,
#navigation > li.current_page_item > a,
#navigation > li.current-menu-ancestor > a {
    color: #d50028 !important;
    background: #fff2f4 !important;
}

/* Contact Us as a red button */
#navigation > li:last-child > a {
    background: #d50028 !important;
    color: #ffffff !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

#navigation > li:last-child > a:hover {
    background: #ae0020 !important;
    color: #ffffff !important;
}

/* Dropdown menus */
#navigation li ul {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-top: 3px solid #d50028 !important;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 9999;
}

#navigation li ul li a {
    color: #30343b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

#navigation li ul li a:hover {
    color: #d50028 !important;
    background: #fff2f4 !important;
}

/* Keep navigation usable on narrower screens */
@media (max-width: 1100px) {
    #navigation {
        gap: 2px;
    }

    #navigation > li > a {
        padding: 8px !important;
        font-size: 13px !important;
    }
}
