:root {
    --nav-bg:         #0F1B4C;
    --nav-accent:     #E35415;
    --nav-text:       rgba(255, 255, 255, 0.85);
    --nav-text-hover: #ffffff;
    --nav-height:     56px;
}

/* ── BAR ──────────────────────────────────────── */
.nav-bar {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--nav-accent);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    position: relative;
}

/* ── BRAND ────────────────────────────────────── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-iith-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.15s;
}
.nav-iith-link:hover { opacity: 1; text-decoration: none; }

.nav-iith-logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-brand-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.nav-ee-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.15s;
    opacity: 0.92;
}
.nav-ee-link:hover { opacity: 1; text-decoration: none; }

.nav-ee-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.nav-ee-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── LINKS (desktop) ──────────────────────────── */
.nav-links {
    display: flex;
    align-items: stretch;
    height: var(--nav-height);
    gap: 0;
}

.nav-link {
    color: var(--nav-text);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none;
    padding: 0 0.9rem;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--nav-text-hover);
    border-bottom-color: var(--nav-accent);
    text-decoration: none;
}

/* ── DROPDOWN ─────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-drop-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    color: var(--nav-text);
    font-size: 0.85rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    padding: 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.nav-drop-btn:hover {
    color: var(--nav-text-hover);
    border-bottom-color: var(--nav-accent);
}

.nav-drop-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 200;
}

.nav-dropdown:hover .nav-drop-content {
    display: block;
}

.nav-drop-content a {
    display: block;
    color: var(--nav-bg);
    font-size: 0.83rem;
    font-weight: 400;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s, color 0.1s;
}

.nav-drop-content a:last-child { border-bottom: none; }

.nav-drop-content a:hover {
    background: #f4f4f4;
    color: var(--nav-accent);
    text-decoration: none;
}

/* ── HAMBURGER — hidden on desktop ───────────── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .nav-ee-label { display: none; }
}

/* ── MOBILE ───────────────────────────────────── */
@media (max-width: 800px) {
    .nav-hamburger {
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        background: var(--nav-bg);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
        z-index: 999;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-left: none;
        margin-bottom: 0;
    }

    .nav-dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-drop-btn {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 0;
        justify-content: space-between;
    }

    /* On mobile, dropdown shown via JS class, not CSS hover */
    .nav-dropdown:hover .nav-drop-content {
        display: none;
    }

    .nav-dropdown.drop-open .nav-drop-content {
        display: block;
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
        min-width: 100%;
    }

    .nav-dropdown.drop-open .nav-drop-content a {
        color: rgba(255,255,255,0.75);
        background: transparent;
        padding: 0.6rem 2.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.82rem;
    }

    .nav-dropdown.drop-open .nav-drop-content a:hover {
        background: rgba(255,255,255,0.07);
        color: #ffffff;
    }
}

/* ── DISABLED LINKS (v1 build — pages not yet live) ── */
a.nav-disabled,
button.nav-disabled-btn {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
