    nav {
        position: sticky;
        top: 0;
        z-index: 9999;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 50px !important;
    }

    .nav-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 15px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        transition: opacity 0.2s ease;
    }

    .logo-link:hover {
        opacity: 0.95;
    }

    .logo {
        height: 42px;
        max-width: 220px;
        width: auto;
        object-fit: contain;
        display: block;
        transition: transform 0.2s ease;
    }

    .logo-link:hover .logo {
        transform: scale(1.02);
    }

    @media (max-width: 992px) {
        .logo {
            height: 38px;
            max-width: 190px;
        }
    }

    @media (max-width: 768px) {
        .logo {
            height: 34px;
            max-width: 160px;
        }
        .mobile-branding-item .logo {
            height: 38px;
            max-width: 180px;
        }
    }

    @media (max-width: 480px) {
        .logo {
            height: 30px;
            max-width: 140px;
        }
    }

    .nav-menu {
        display: flex;
        list-style: none;
        gap: 8px;
        align-items: center;
        flex: 1;
        justify-content: center;
        margin: 0;
        padding: 0;
        z-index: 1002;
    }

    .mobile-branding-item {
        display: none;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        display: block;
        padding: 10px 18px;
        color: #2d3748;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .nav-link:hover {
        background: #f7fafc;
        color: #667eea;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-toggle {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .dropdown-toggle::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 260px;
        max-width: 300px;
        background: #ffffff;
        backdrop-filter: blur(20px);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 8px;
        margin-top: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid #e2e8f0;
        z-index: 10000;
        max-height: 440px;
        overflow-y: auto;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Sub-Menu Accordion Toggle Groups */
    .nav-sub-group {
        margin-bottom: 4px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .nav-sub-group:last-child {
        margin-bottom: 0;
    }

    button.nav-sub-toggle {
        all: unset;
        box-sizing: border-box;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        font-family: inherit;
    }

    button.nav-sub-toggle:hover {
        background: #eef2ff;
        color: #6366f1;
        border-color: #c7d2fe;
    }

    .nav-sub-group.open > button.nav-sub-toggle {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        color: #6366f1;
        border-color: #c7d2fe;
        box-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
    }

    .nav-sub-arrow {
        display: inline-block;
        font-size: 1rem;
        line-height: 1;
        color: #94a3b8;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
        font-weight: 700;
    }

    .nav-sub-group.open .nav-sub-arrow {
        transform: rotate(90deg);
        color: #6366f1;
    }

    .nav-sub-items {
        display: none;
        padding: 4px 0 4px 6px;
        flex-direction: column;
        gap: 2px;
    }

    .nav-sub-group.open > .nav-sub-items {
        display: flex;
        animation: navSubSlide 0.2s ease forwards;
    }

    @keyframes navSubSlide {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-item {
        display: block;
        padding: 7px 12px;
        color: #334155;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.88rem;
        font-weight: 500;
        transition: all 0.15s ease;
    }

    .dropdown-item:hover {
        background: #f1f5f9;
        color: #6366f1;
        transform: translateX(3px);
    }

    .hamburger {
        display: none;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 2000;
        position: relative;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: #2d3748;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }

        .mobile-overlay {
            display: block;
        }

        .nav-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 280px;
            height: 100vh;
            background: #ffffff;
            flex-direction: column;
            padding: 20px 0;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
            gap: 0;
            overflow-y: auto;
            transition: right 0.3s ease;
            z-index: 1002;
            align-items: flex-start;
            justify-content: flex-start;
        }

        .nav-menu.active {
            right: 0;
        }

        .mobile-branding-item {
            display: flex;
            align-items: center;
            padding: 0 24px 20px;
            width: 100%;
            border-bottom: 1px solid #edf2f7;
            margin-bottom: 10px;
            /* Ensure it doesn't overlap with Hamburger */
            min-height: 60px;
        }

        .mobile-branding-item .logo {
            height: 32px;
        }

        .nav-item {
            width: 100%;
            border-bottom: 1px solid #f7fafc;
        }

        .nav-link {
            width: 100%;
            padding: 16px 24px;
            border-radius: 0;
            font-size: 1rem;
        }

        .dropdown-menu {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            border: none;
            margin: 0;
            padding: 0;
            background: #f7fafc;
            border-radius: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .dropdown.active .dropdown-menu {
            max-height: 400px;
        }

        .dropdown-toggle::after {
            margin-left: auto;
            transform: rotate(0deg);
        }

        .dropdown.active .dropdown-toggle::after {
            transform: rotate(180deg);
        }

        .dropdown-item {
            padding: 12px 24px 12px 40px;
            border-radius: 0;
        }

        .dropdown-category {
            padding: 12px 24px 8px 40px;
        }
    }

    @media (max-width: 480px) {
        .nav-container {
            padding: 12px 10px;
        }

        .logo {
            height: 32px;
        }

        .nav-menu {
            width: 280px;
            /* Kept 280px for consistent width */
        }
    }

    /* Accessibility Skip Link */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: #667eea;
        color: white;
        padding: 8px 16px;
        z-index: 10001;
        text-decoration: none;
        font-weight: bold;
        transition: top 0.3s;
        border-radius: 0 0 8px 0;
    }

    .skip-link:focus {
        top: 0;
        outline: 2px solid #fff;
    }

    /* Cookie Consent Banner */
    #cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #2d3748;
        color: white;
        padding: 16px 20px;
        display: none;
        /* Hidden by default, JS toggles flex */
        justify-content: space-between;
        align-items: center;
        z-index: 10000;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    #cookie-banner.visible {
        display: flex;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    #cookie-banner p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    #cookie-banner button {
        background: #667eea;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        white-space: nowrap;
        transition: background 0.2s;
    }

    #cookie-banner button:hover {
        background: #5a67d8;
    }

    @media (max-width: 600px) {
        #cookie-banner {
            flex-direction: column;
            text-align: center;
        }
