nav {
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(18, 38, 63, 0.10);
    border-bottom: 1px solid rgba(20, 51, 96, 0.08);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
    padding: 0;
    width: 100%;
    font-weight: bold;
    z-index: auto;
}

nav ul li {
    position: relative;
    flex: 1 1 0;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    max-width: 220px;
    background: transparent;
    text-align: center;
    transition: all 0.2s ease;
}

nav ul li:hover {
    background: rgba(12, 70, 153, 0.07);
}

nav ul a {
    display: block;
    color: #163b70;
    text-decoration: none;
    font-family: 'helvetica', arial black;
    font-size: 1em;
    padding: 16px 10px;
    transition: all 0.2s ease;
}

nav ul a:hover {
    color: #0d47a1;
}

nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    background: white;
    box-shadow: 0 12px 22px rgba(18, 38, 63, 0.12);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    flex-direction: column;
    padding-top: 0;
    font-weight: bold;
    z-index: 50;
}

nav ul li:hover > ul {
    display: flex;
}

nav ul ul li {
    float: none;
    max-width: none;
    width: 100%;
    height: auto;
    text-align: center;
    border-bottom: 1px solid rgba(20, 51, 96, 0.08);
}

nav ul ul a {
    box-sizing: border-box;
    text-align: center;
    padding: 12px 14px;
    font-weight: 600;
}

html#CSD-CAL body,
html#GW-CAL body,
html#WCN-CAL body {
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

html#CSD-CAL nav,
html#GW-CAL nav,
html#WCN-CAL nav {
    background: #ffffff;
}

@media (max-width: 900px) {
    nav {
        overflow: visible;
        z-index: 100;
    }

    nav ul {
        flex-wrap: wrap;
        position: relative;
        z-index: 100;
    }

    nav ul li {
        flex: 1 1 45%;
        max-width: none;
        z-index: auto !important;
    }

    nav ul li:hover {
        z-index: 1000 !important;
    }

    nav ul li:hover > ul {
        z-index: 1001 !important;
    }
}

@media (max-width: 900px) {
    html#CSD-CAL_instructions #Image1,
    html#CSD-CAL_instructions #Text1,
    html#GW-CAL #Image1,
    html#GW-CAL #Image2,
    html#GW-CAL #Text1,
    html#WCN-CAL_instructions #Image1,
    html#WCN-CAL_instructions #Image2,
    html#WCN-CAL_instructions #Image3,
    html#WCN-CAL_instructions #Image4,
    html#WCN-CAL_instructions #Image5,
    html#WCN-CAL_instructions #Image6,
    html#WCN-CAL_instructions #Image7,
    html#WCN-CAL_instructions #Image8 {
        transform: translateX(-50%) translateY(90px);
    }

    html#CSD-CAL_instructions #Image1,
    html#GW-CAL #Image1,
    html#WCN-CAL_instructions #Image1 {
        top: 325px !important;
        transform: translateX(-50%) !important;
    }
}
