/* ==================================================================
   EduHire360 — Isolated Navbar Stylesheet
   All selectors are prefixed with .eh360-nav to prevent conflicts
   ================================================================== */


/* ==================================================================
EduHire360 — Isolated Navbar Stylesheet
================================================================== */

/* ------------------------------------------------------------------
   1. DEFENSIVE RESET
   Neutralizes any global rules from style.css / Bootstrap / page CSS
   that would otherwise leak into the navbar.
   MUST come before the navbar's own styles.
   ------------------------------------------------------------------ */
.eh360-nav-header,
.eh360-nav-header *,
.eh360-nav-header *::before,
.eh360-nav-header *::after {
    all: revert;
}

/* -------- Root wrapper -------- */
.eh360-nav-header {
    display: block;
    width: 100%;
    background: #ffffff;
    border-bottom: 4px solid #dc2626;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1000;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.eh360-nav-header *,
.eh360-nav-header *::before,
.eh360-nav-header *::after {
    box-sizing: border-box;
}

/* -------- Inner container (max-width) -------- */
.eh360-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    gap: 20px;
}

/* -------- Logo -------- */
.eh360-nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.eh360-nav-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* -------- Mobile hamburger button -------- */
/* -------- Mobile hamburger button -------- */

/* -------- Fallback bars if FontAwesome is blocked -------- */
.eh360-nav-toggle i:empty {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 14px;
}
.eh360-nav-toggle i:empty::before,
.eh360-nav-toggle i:empty::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}
.eh360-nav-toggle i:empty::before { top: 0; box-shadow: 0 6px 0 #ffffff; }
.eh360-nav-toggle i:empty::after  { bottom: 0; }


.eh360-nav-toggle {
    display: none;
    background: #dc2626;            /* solid red so it's always visible */
    border: 2px solid #dc2626;
    color: #ffffff;                 /* white icon */
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;             /* slightly bigger icon */
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.eh360-nav-toggle:hover,
.eh360-nav-toggle:focus {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
    outline: none;
}

/* Force the icon element itself to be white — some page CSS
   or FontAwesome defaults may override the parent's color. */
.eh360-nav-toggle i,
.eh360-nav-toggle i::before,
.eh360-nav-toggle .fa-bars,
.eh360-nav-toggle .fa-times {
    color: #ffffff !important;
    font-size: inherit;
    line-height: 1;
    pointer-events: none;
}

/* -------- Nav menu -------- */
.eh360-nav-menu {
    display: flex;
    align-items: center;
}

.eh360-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eh360-nav-item {
    margin: 0;
    padding: 0;
}

.eh360-nav-link {
    display: inline-block;
    padding: 10px 16px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.eh360-nav-link:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* -------- Action buttons (Register / Sign In) -------- */
.eh360-nav-link.eh360-nav-link-outline {
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 8px 20px;
    border-radius: 50px;
    margin-left: 8px;
    font-weight: 600;
}

.eh360-nav-link.eh360-nav-link-outline:hover {
    background: #dc2626;
    color: #ffffff;
}

.eh360-nav-link.eh360-nav-link-primary {
    background: #dc2626;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    margin-left: 8px;
    font-weight: 600;
    border: 2px solid #dc2626;
}

.eh360-nav-link.eh360-nav-link-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

/* -------- Responsive: Mobile -------- */
@media (max-width: 900px) {
    .eh360-nav-container {
        min-height: 70px;
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .eh360-nav-toggle {
        display: inline-flex;
    }

    .eh360-nav-menu {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
        border-top: 1px solid #f1f5f9;
        padding-top: 10px;
    }

    .eh360-nav-menu.eh360-nav-open {
        display: block;
    }

    .eh360-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .eh360-nav-item {
        width: 100%;
    }

    .eh360-nav-link {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .eh360-nav-link.eh360-nav-link-outline,
    .eh360-nav-link.eh360-nav-link-primary {
        margin-left: 0;
        margin-top: 6px;
        text-align: center;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .eh360-nav-logo img {
        max-width: 120px;
    }
}