/* Site header (Views/Shared/_jobheader.cshtml): side menu, main nav, logo home-choice popup. Mobile-only header styles stay inline in the partial (server-side mobile check). */

.jrs-sidenav-v2 {
    width: 0;
    background: #fff;
    box-shadow: -8px 0 32px rgba(15,23,42,0.18);
    display: flex;
    flex-direction: column;
    padding-top: 0;
}
.jrs-sidenav-header {
    background: linear-gradient(125deg, #0f172a 0%, #1e1b4b 55%, #4338ca 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.jrs-sidenav-header::before {
    content: '';
    position: absolute;
    width: 140px; height: 140px;
    top: -70px; right: -30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}
.jrs-sidenav-logo { display: inline-flex; position: relative; z-index: 1; padding: 0 !important; }
.jrs-sidenav-logo img { width: 130px; filter: brightness(0) invert(1); }
.jrs-sidenav-close {
    color: #fff !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    position: relative; z-index: 1;
    opacity: 0.85;
    padding: 0 !important;
}
.jrs-sidenav-close:hover { opacity: 1; }

.jrs-sidenav-profile {
    text-align: center;
    padding: 22px 16px 14px;
    border-bottom: 1px solid #eef0f7;
    flex-shrink: 0;
}
.jrs-profile-avatar { display: inline-block; padding: 0 !important; }
.jrs-profile-avatar img {
    width: 76px; height: 76px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eef2ff;
    box-shadow: 0 4px 14px rgba(79,70,229,0.18);
}
.jrs-profile-name {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.95rem !important;
    color: #1e2432 !important;
    padding: 0 !important;
}

.jrs-sidenav-links {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 4px;
}
.jrs-sidenav-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 22px !important;
    font-size: 0.92rem !important;
    color: #374151 !important;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.jrs-sidenav-links a i { width: 18px; text-align: center; color: #6b7280; font-size: 0.92rem; transition: color .15s ease; }
.jrs-sidenav-links a:hover {
    background: #eef2ff;
    color: #4338ca !important;
    border-left-color: #4f46e5;
}
.jrs-sidenav-links a:hover i { color: #4f46e5; }
.jrs-badge-new {
    display: inline-block;
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
    background: #fef2f2; color: #dc2626;
    padding: 1px 6px; border-radius: 5px; margin-left: 4px;
}
.jrs-divider { border: none; border-top: 1px solid #eef0f7; margin: 8px 20px; }

.jrs-sidenav-actions {
    padding: 14px 18px 20px;
    border-top: 1px solid #eef0f7;
    display: flex; flex-direction: column; gap: 10px;
    flex-shrink: 0;
}
.jrs-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 14px !important; border-radius: 10px;
    font-size: 0.88rem !important; font-weight: 700;
    text-decoration: none !important;
    transition: transform .15s ease, opacity .15s ease;
}
.jrs-btn:hover { transform: translateY(-1px); opacity: 0.94; }
.jrs-btn-danger { background: linear-gradient(120deg, #dc2626, #ef4444); color: #fff !important; }
.jrs-btn-outline { background: #fff; color: #1e2432 !important; border: 1.5px solid #e5e7eb; }
.jrs-btn-outline i { color: #22c55e; }

@media screen and (max-height: 450px) {
    .jrs-sidenav-links a { padding: 8px 22px !important; }
}

#header.jrh-header-v2 {
    background: #fff;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid #eef0f7;
}
#header.jrh-header-v2::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8, #dc3545);
    opacity: 0.9;
    pointer-events: none;
}
/* Logo and menu on one row: with floats, a menu wider than the space left (e.g. Register +
   Login when signed out) dropped onto a second line under the logo. */
#header.jrh-header-v2 > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}
#header.jrh-header-v2 > .container > .float-left { float: none !important; flex: none; }
#header.jrh-header-v2 .main-nav { float: none !important; flex: 0 1 auto; min-width: 0; }
#header.jrh-header-v2 .main-nav > ul { display: flex; flex-wrap: nowrap; align-items: center; }
#header.jrh-header-v2 .main-nav > ul > li { float: none; margin: 0 1px; }
#header.jrh-header-v2 .main-nav a {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
#header.jrh-header-v2 .main-nav > ul > li#hideSignin { margin-left: 6px; }
#header.jrh-header-v2 .main-nav > ul > li > a.mt-2 { margin-top: 0 !important; }
/* xl screens below 1400px: a little tighter so the whole menu still fits on one line */
@media (max-width: 1399.98px) {
    #header.jrh-header-v2 .main-nav a { font-size: 13.5px; padding: 10px 9px; }
    #header.jrh-header-v2 .main-nav > ul > .drop-down > a:after { padding-left: 6px; }
    #header.jrh-header-v2 #hideprofile a,
    #header.jrh-header-v2 #hideSignin a { padding: 8px 16px !important; }
}
#header.jrh-header-v2 .main-nav a:hover,
#header.jrh-header-v2 .main-nav .active > a,
#header.jrh-header-v2 .main-nav li:hover > a {
    color: #4f46e5;
    background: #eef2ff;
    text-decoration: none;
}
#header.jrh-header-v2 .main-nav .drop-down > a:after { color: #9aa3b8; }
#header.jrh-header-v2 .main-nav .drop-down ul {
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    border: 1px solid #eef0f7;
    padding: 8px;
}
#header.jrh-header-v2 .main-nav .drop-down li { min-width: 210px; }
#header.jrh-header-v2 .main-nav .drop-down ul a {
    color: #374151;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
}
#header.jrh-header-v2 .main-nav .drop-down ul a:hover,
#header.jrh-header-v2 .main-nav .drop-down ul .active > a,
#header.jrh-header-v2 .main-nav .drop-down ul li:hover > a {
    color: #4338ca;
    background: #eef2ff;
}
#header.jrh-header-v2 .main-nav .drop-down .drop-down ul { left: calc(100% - 22px); }

#header.jrh-header-v2 #hideprofile a,
#header.jrh-header-v2 #hideSignin a {
    background: linear-gradient(120deg, #4f46e5, #6366f1) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    border-radius: 30px !important;
    box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.5);
    transition: transform .15s ease, opacity .15s ease;
}
#header.jrh-header-v2 #hideprofile a:hover,
#header.jrh-header-v2 #hideSignin a:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    color: #fff !important;
}
#header.jrh-header-v2 #hidesingup a {
    font-weight: 600;
    color: #4f46e5;
}
#header.jrh-header-v2 #hidesingup a:hover { color: #4338ca; }

.home-choice-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.65);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-choice-overlay.show {
    display: flex;
}

.home-choice-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 38px 32px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    animation: homeChoicePop 200ms ease;
    overflow: hidden;
}

.home-choice-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #4f46e5, #818cf8);
}

@keyframes homeChoicePop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.home-choice-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: #f3f4f6;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.home-choice-close:hover {
    background: #e5e7eb;
    color: #333;
}

.home-choice-modal h4 {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 22px;
    color: #1a1a1a;
}

.home-choice-modal p {
    margin: 0 0 24px;
    color: #6c757d;
    font-size: 14px;
}

.home-choice-options {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-choice-option {
    flex: 1;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 18px 24px;
    border-radius: 16px;
    border: 1.5px solid #eef0f7;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.home-choice-option:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
}

.home-choice-gov {
    background: linear-gradient(165deg, #fff 55%, #fef2f2 100%);
}

.home-choice-private {
    background: linear-gradient(165deg, #fff 55%, #eef2ff 100%);
}

.home-choice-gov:hover {
    border-color: #dc2626;
    box-shadow: 0 16px 30px -10px rgba(220, 38, 38, 0.35);
}

.home-choice-private:hover {
    border-color: #4f46e5;
    box-shadow: 0 16px 30px -10px rgba(79, 70, 229, 0.35);
}

.home-choice-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 12px;
    color: #9aa3b8;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity .15s ease, transform .15s ease;
}

.home-choice-option:hover .home-choice-arrow {
    opacity: 1;
    transform: translateX(0);
}

.home-choice-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.35);
}

.home-choice-icon-gov {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.home-choice-icon-private {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.home-choice-label {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
}

.home-choice-sub {
    font-size: 12px;
    color: #6c757d;
}
