.nav-links > li.nav-item-has-dropdown {
    position: relative;
}

@media (min-width: 769px) {
    /* Invisible bridge so moving from “Resources” to the menu does not leave the hover target */
    .nav-links > li.nav-item-has-dropdown::before {
        content: '';
        position: absolute;
        left: -0.5rem;
        right: -0.5rem;
        top: 100%;
        height: 0.65rem;
    }
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    font: inherit;
    color: rgba(242, 237, 228, 0.82);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    line-height: inherit;
}

.nav-dropdown-trigger:hover,
.nav-item-has-dropdown.is-active > .nav-dropdown-trigger {
    color: #e2c990;
}

.nav-caret {
    font-size: 0.65rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.nav-item-has-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.45rem 0;
    position: absolute;
    top: 100%;
    margin-top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 11.5rem;
    background: #12151c;
    border: 1px solid rgba(200, 168, 112, 0.28);
    border-radius: 0.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    z-index: 1003;
}

.nav-dropdown-menu li {
    margin: 0;
    border: none !important;
    width: auto !important;
    text-align: left !important;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    color: rgba(242, 237, 228, 0.9) !important;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(200, 168, 112, 0.12);
    color: #e2c990 !important;
}

@media (min-width: 769px) {
    .nav-item-has-dropdown:hover .nav-dropdown-menu,
    .nav-item-has-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-item-has-dropdown {
        width: 100%;
    }

    .nav-dropdown-trigger {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.15rem;
        color: #e2c990 !important;
        font-weight: 600 !important;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.35);
        padding: 0;
    }

    .nav-item-has-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        text-align: center !important;
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
    }
}
