﻿:root {
    --primary: #0d6efd;
    --dark-blue: #012970;
    --navy: #013289;
    --text: #444444;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --danger: #dc3545; /* Clean and consistent with Bootstrap */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(13, 110, 253, 0.1) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-blue);
    font-weight: 600;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--primary);
    }
.main-navbar {
    background: var(--dark-blue);
    padding: 0.6rem 0;
    position: relative;
    z-index: 1000;
    /* Start fully visible, right under mini-navbar */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.5s ease;
}

    .main-navbar.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        /* Start from above and slide down */
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0,0,0,.1);
        z-index: 1050;
    }

.mini-navbar {
    height: 20px;
        background: linear-gradient(135deg, var(--light-gray) 0%, rgba(13, 110, 253, 0.1) 100%);
    color: black;
    font-size: 14px;
    position: relative;
    z-index: 1100;
    transition: transform .5s ease, opacity .4s ease;
/*    background-color: #01255c;*/
}


.main-navbar.fixed {
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-navbar.hide {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.5s ease;
}

body.fixed-nav .content-wrapper {
    padding-top: 80px;
}
/* Navbar */
.navbar {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
}

.navbar-brand img {
    height: 48px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
      
    }

/* Move Home, About, Contact slightly left */
.navbar-nav .nav-item:not(.dropdown):not(.btn-item) {
    margin-left: -6px;
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0;
    margin-top: 2.1px;
    min-width: 220px;
    overflow: hidden;
    font-size: 0.9rem;
    background: white;
}

.dropdown-item {
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: #333;
}

    .dropdown-item:hover {
        background-color: #f0f4ff;
        color: var(--primary);
        padding-left: 1.6rem;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

.jobs-dropdown {
    display: flex;
    width: 100%;
}

.jobs-col {
    flex: 1;
    padding: 0.8rem;
}

    .jobs-col.left {
        border-right: 1px solid #ddd;
        background-color: #f9f9fb;
    }

    .jobs-col h6 {
        color: var(--dark-blue);
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        font-weight: 600;
    }

.nested-dropdown-menu {
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Buttons */
.btn-login,
.btn-signup {
    border-radius: 25px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

    .btn-login:hover {
        background-color: white;
        color: var(--primary);
    }

.btn-signup {
    background-color: white;
    color: var(--primary);
    border: 2px solid white;
}

    .btn-signup:hover {
        background-color: transparent;
        color: white;
    }

footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 20px;
    margin-top: 20px;
}

    footer a {
        color: rgba(255, 255, 255, 0.8);
    }

        footer a:hover {
            color: white;
        }

.footer-col h5 {
    color: white;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}

    .footer-col h5::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background-color: white;
    }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .social-icons a:hover {
        background-color: white;
        color: var(--primary);
        transform: translateY(-3px);
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 18px;
    margin-top: 35px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

    .overlay.show {
        display: block;
    }

/* Sidebar styles */
.sidebar-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: var(--dark-blue);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1055;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 20px;
    overflow-y: auto;
    color: white;
}

    .sidebar-modal.show {
        right: 0;
    }

    /* Dropdown menu in sidebar */
    .sidebar-modal .dropdown-menu {
        background: rgba(255, 255, 255, 0.1) !important;
        border: none;
        border-radius: 8px;
        margin-top: 0;
        padding: 0.5rem 0;
        width: 100%;
        max-height: 200px;
        /* Limit height to prevent overflow */
        overflow-y: auto;
        /* Enable scrolling for many options */
        scrollbar-width: none;
        /* Hide scrollbar in Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar in IE/Edge */
    }

        /* Hide scrollbar in Webkit browsers (Chrome, Safari) */
        .sidebar-modal .dropdown-menu::-webkit-scrollbar {
            display: none;
        }

    /* Force dropdown to open below */
    .sidebar-modal .dropdown-menu {
        position: static !important;
        /* Keep your existing static positioning */
        transform: none !important;
        /* Prevent upward positioning */
        top: auto !important;
        /* Ensure it stays below */
    }

    /* Dropdown items */
    .sidebar-modal .dropdown-item {
        color: #fff !important;
        padding: 0.4rem 1.5rem;
        font-size: 0.9rem;
    }

        .sidebar-modal .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            padding-left: 1.8rem;
        }

    .sidebar-modal .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
        color: rgba(255, 255, 255, 0.7);
    }

/* Your existing sidebar styles (unchanged) */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

    .sidebar-header img {
        height: 40px;
    }

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    opacity: 0.9;
    transition: opacity 0.2s;
}

    .sidebar-close:hover {
        opacity: 1;
    }

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

    .sidebar-menu .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding-left: 0.5rem;
    }

.sidebar-menu .collapse .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    padding-left: 1.8rem !important;
}

    .sidebar-menu .collapse .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.15);
    }

.sidebar-menu .btn-login,
.sidebar-menu .btn-signup {
    color: white;
    border-color: white;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
}

    .sidebar-menu .btn-login:hover {
        background: white;
        color: var(--primary);
    }

.sidebar-menu .btn-signup {
    background: white;
    color: var(--primary);
}

    .sidebar-menu .btn-signup:hover {
        background: transparent;
        color: white;
    }
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* smaller height */
}

.modern-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary, #00b5ef);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 181, 239, 0.2);
}

    .modern-spinner::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
        border: 3px solid transparent;
        border-top: 3px solid var(--navy, #292075);
        border-radius: 50%;
        animation: spinReverse 1.2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
        opacity: 0.7;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    to {
        transform: rotate(-360deg);
    }
}



/* initial hidden state so element never flashes before animation runs */
.card-init-hidden {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

/* the slide-up animation (same as you already have) */
.card-slide-up {
    animation: cardSlideUp 0.6s ease-out forwards;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-init-hidden {
        opacity: 1;
        transform: none;
    }

    .card-slide-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
