/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
}

/* ================= NAVBAR ================= */
.navbar {
    padding: 15px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #2c7be5 !important;
}

.nav-link {
    font-weight: 500;
    margin-right: 18px;
    color: #333 !important;
}

.nav-link:hover {
    color: #2c7be5 !important;
}

/* ================= NORMAL DROPDOWNS (BLOG & SERVICES) ================= */
/* Keep Bootstrap behavior but allow hover on desktop */

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ================= MEGA MENU (JOBS ONLY) ================= */

.mega-menu {
    position: static;
}

/* hidden by default */
.mega-menu .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;

    padding: 25px 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);

    /* CRITICAL FIX */
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

/* show when hovering parent OR menu */
.mega-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* prevent Bootstrap conflicts */
.mega-menu .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* ================= MEGA GRID ================= */
.mega-menu-content .row > div {
    border-right: 1px solid #eee;
}

.mega-menu-content .row > div:last-child {
    border-right: none;
}

.mega-menu-content h6 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c7be5;
}

/* ================= ITEMS ================= */
.dropdown-item {
    font-size: 14px;
    color: #555;
    padding: 6px 0;
    transition: 0.2s;
}

.dropdown-item:hover {
    color: #2c7be5;
    padding-left: 5px;
}

/* ================= AUTH ================= */
.auth-links a {
    margin-left: 12px;
    font-size: 14px;
}

.btn-register {
    border: 1px solid #2c7be5;
    color: #2c7be5;
    padding: 6px 14px;
    border-radius: 6px;
}

.btn-register:hover {
    background: #2c7be5;
    color: white;
}

/* ================= ICON ================= */
.bi-bell {
    font-size: 18px;
    color: #333;
}

/* ================= MOBILE ================= */
@media (max-width: 992px) {

    /* disable hover behavior */
    .navbar .dropdown:hover > .dropdown-menu {
        display: none;
    }

    /* mega menu becomes normal dropdown */
    .mega-menu .dropdown-menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        display: none;
        padding: 15px;
    }

    .mega-menu .dropdown-menu.show {
        display: block !important;
    }

    .mega-menu-content .row > div {
        border: none;
        margin-bottom: 15px;
    }
}