/* Clean Navigation Styles - Deduplicated */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    padding: 0.5rem 0;
    transition: all 0.3s ease-in-out;
    margin: 0;
    border: none;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: hidden;
    position: relative;
}

.navbar__logo img {
    width: 8rem;
    height: auto;
}

.navbar__nav-list {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.navbar__nav-items {
    list-style: none;
}

.navbar__nav-items a:not(.navbar__disabled) {
    text-decoration: none;
    color: #000000;
}

.navbar__nav-items a:hover {
    color: #10397B;
}

.navbar__disabled {
    text-decoration: none !important;
    color: #73738C !important;
    cursor: default !important;
}

.navbar__nav-links {
    text-decoration: none;
    color: #000000;
    font-weight: 400;
}

.navbar__nav-links:hover {
    text-decoration: none;
    color: #10397B;
}

.navbar__nav-modules {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar__menubar-button {
    display: none;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar__menubar-button:hover {
    background-color: rgba(16, 57, 123, 0.1);
}

.hamburger-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hamburger-icon.active {
    transform: rotate(45deg);
}

.navbar__menubar-button .hamburger-icon::before {
    content: '☰';
    transition: all 0.3s ease;
}

.navbar__menubar-button.active .hamburger-icon::before {
    content: '✕';
}

.navbar__nav-button {
    border: none;
    border-radius: 20px;
    text-decoration: none;
    padding: 0.3rem 1rem;
    color: #ffffff;
    background-color: #10397B;
    font-weight: 600;
}

/* Dropdown Styles */
.navbar__dropdown {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.navbar__dropdown a {
    text-decoration: none;
    color: #000000;
}

.navbar__dropdown-toggle {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    color: #000000;
}

.navbar__dropdown-toggle::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.navbar__dropdown.show .navbar__dropdown-toggle::after {
    transform: rotate(180deg);
}

.navbar__dropdown-toggle:hover {
    color: #10397B !important;
    transform: translateY(-1px);
}

.navbar__dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(0);
    width: 100vw;
    max-width: none;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 4px solid #10397B;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 2999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, padding 0.4s ease;
    visibility: hidden;
    opacity: 0;
    border-radius: 0;
    transform-origin: top center;
    backface-visibility: hidden;
    will-change: max-height, opacity, padding;
    display: block;
}

.navbar__dropdown.show .navbar__dropdown-menu {
    display: block;
    visibility: visible;
    max-height: calc(100vh - 70px);
    opacity: 1;
    padding: 2rem 0;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.navbar__dropdown:not(.show) .navbar__dropdown-menu {
    max-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.navbar__dropdown-menu .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: auto;
}

.navbar__dropdown-menu .dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
    padding-bottom: 1rem;
}

.navbar__dropdown-menu .dropdown-section {
    overflow: hidden;
    word-wrap: break-word;
    padding: 0;
}

.navbar__dropdown-menu .dropdown-section h3 {
    color: #10397B;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #10397B;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar__dropdown-menu .dropdown-section h3:hover {
    color: #0E387A;
    transform: translateX(3px);
}

.navbar__dropdown-menu .dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar__dropdown-menu .dropdown-section li {
    margin-bottom: 0.4rem;
}

.navbar__dropdown-menu a {
    display: block;
    padding: 1.1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 57, 123, 0.1);
}

.navbar__dropdown-menu li:hover a,
.navbar__dropdown-menu a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #10397B 0%, #0E387A 50%, #2c5aa0 100%);
    border-left-color: #007bff;
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 57, 123, 0.4), 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar styling */
.navbar__dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.navbar__dropdown-menu::-webkit-scrollbar-track {
    background: rgba(240, 240, 240, 0.5);
    border-radius: 4px;
}

.navbar__dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10397B, #007bff);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.navbar__dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0E387A, #0056b3);
}

/* Desktop overrides */
@media (min-width: 992px) {
    .navbar__nav-modules {
        position: static;
        transform: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
        background: transparent;
    }
    
    .navbar__nav-list {
        position: static;
        transform: none;
        visibility: visible;
        opacity: 1;
        max-height: none;
        overflow: visible;
        flex-direction: row;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}

/* Desktop hover behavior */
@media (min-width: 1025px) {
    .navbar__dropdown:hover .navbar__dropdown-menu:not(.js-controlled) {
        display: block;
        visibility: visible;
        max-height: calc(100vh - 70px);
        padding: 2rem 0;
        opacity: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .navbar__dropdown-menu {
        bottom: auto;
    }
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .navbar__dropdown-menu .container {
        max-width: 960px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .navbar__dropdown-menu .container {
        max-width: 720px;
        padding: 2rem 1rem;
    }
    
    .navbar__dropdown-menu .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile and Tablet Styles */
@media (max-width: 991px) {
    .navbar__menubar-button {
        display: block;
    }
    
    .navbar__nav-modules {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: transparent;
        visibility: hidden;
        opacity: 0;
        z-index: 9999;
        overflow: hidden;
        transform: translateY(-10px);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .navbar__nav-modules.showbg {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar__nav-list {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, visibility 0.3s ease-in-out;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-top: none;
        visibility: hidden;
        opacity: 0;
    }
    
    .navbar__nav-list.showlist {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }
    
    .navbar__nav-items {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar__nav-items:last-child {
        border-bottom: none;
    }
    
    .navbar__nav-items a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .navbar__nav-items a:hover {
        background-color: #f8f9fa;
        color: #10397B;
        padding-left: 22px;
        border-left: 3px solid #10397B;
    }
    
    /* Mobile dropdown styles */
    .navbar__dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        margin: 0;
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        border-top: 1px solid #e9ecef;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .navbar__dropdown.show .navbar__dropdown-menu {
        max-height: 80vh;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }
    
    .navbar__dropdown:not(.show) .navbar__dropdown-menu {
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
    }
    
    .navbar__dropdown-menu .container {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .navbar__dropdown-menu .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .navbar__dropdown-menu a {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 0;
    }
    
    .navbar__dropdown-menu a:hover {
        background-color: #e9ecef;
        padding-left: 22px;
        transform: translateX(2px);
        border-left: 3px solid #10397B;
    }
}

@media (max-width: 768px) {
    .navbar__dropdown-menu .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .navbar__dropdown-menu .container {
        padding: 1.5rem;
    }
    
    .navbar__dropdown.show .navbar__dropdown-menu {
        animation: mobileAccordionSlide 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }
    
    .navbar__dropdown-menu .dropdown-section {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet-specific adjustments */
@media (max-width: 991px) and (min-width: 769px) {
    .navbar__nav-items a {
        font-size: 1.1rem;
        padding: 18px 25px;
    }
    
    .navbar__dropdown-menu .container {
        padding: 2rem 2rem;
    }
    
    .navbar__dropdown-menu a {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes mobileAccordionSlide {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        max-height: 80vh;
        transform: translateY(0);
    }
}

/* Icon fallbacks */
.navbar__dropdown-menu .fas.fa-laptop-code:before { 
    content: "💻";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fab.fa-html5:before { 
    content: "🌐";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fab.fa-php:before { 
    content: "🐘";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-paint-brush:before { 
    content: "🎨";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-users:before { 
    content: "👥";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-cogs:before { 
    content: "⚙️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-user-plus:before { 
    content: "👤";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-chart-bar:before { 
    content: "📊";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-graduation-cap:before { 
    content: "🎓";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-dollar-sign:before { 
    content: "💰";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-megaphone:before { 
    content: "📢";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-search-plus:before { 
    content: "🔍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.navbar__dropdown-menu .fas.fa-list-ul:before { 
    content: "📋";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-modal.show {
    display: flex;
}

.login-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.login-modal__container {
    position: relative;
    z-index: 2;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.login-modal__content {
    background: #fff;
    border-radius: 18px;
    padding: 38px 32px 32px 32px;
    box-shadow: 0 16px 48px rgba(16,57,123,0.13), 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal__close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    border: 2px solid #e9ecef;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.login-modal__close:hover {
    background: #e9ecef;
    color: #10397B;
    box-shadow: 0 4px 16px rgba(16,57,123,0.08);
}

.login-modal__header {
    text-align: center;
    margin-bottom: 30px;
}

.login-modal__header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.login-modal__header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.login-modal__buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-modal__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
}

.login-modal__button--recruiter {
    background: #007bff;
    color: white;
}

.login-modal__button--recruiter:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
}

.login-modal__button--jobseeker {
    background: #28a745;
    color: white;
}

.login-modal__button--jobseeker:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
}

@media (max-width: 480px) {
    .login-modal__container {
        padding: 15px;
    }

    .login-modal__content {
        padding: 25px 20px;
    }

    .login-modal__header h2 {
        font-size: 22px;
    }

    .login-modal__button {
        font-size: 15px;
        padding: 14px 18px;
    }
}