* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background: #f5f5f5;
    }
    .mobile-auth-section {
    display: none;
}

    .level1-bar {
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 24px;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1003;
        height: 56px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }

    .level1-left {
        display: flex;
        align-items: self-end;
        gap: 12px;
        flex-shrink: 0;
    }

    .level1-logo img {
        height: 38px;
        width: auto;
    }

    .site-name {
        color: #053270;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .level1-products {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        justify-content: center;
    }

    .prod-label {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #94a3b8;
        margin-right: 4px;
        white-space: nowrap;
    }

    .prod-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 13px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        border: 1.5px solid transparent;
        transition: all 0.2s;
        line-height: 1;
    }

    .prod-link i {
        font-size: 10px;
    }

    .prod-taxai {
        color: #063170;
        border-color: #fde68a;
        background: #fff;
    }

    .prod-taxai:hover {
        background: #0066cc;
        color: #fff;
        border-color: #0066cc;
    }

    .prod-cma {
        color: #063170;
        border-color: #fde68a;
        background: #fff;
    }

    .prod-cma:hover {
        background: #0066cc;
        color: #fff;
        border-color: #0066cc;
    }

    .prod-audit {
        color: #063170;
        border-color: #fde68a;
        background: #fff;
    }

    .prod-audit:hover {
        background: #0066cc;
        color: #fff;
        border-color: #0066cc;
    }

    .prod-nca {
        color: #063170;
        border-color: #fde68a;
        background: #fff;
    }

    .prod-nca:hover {
        background: #0066cc;
        color: #fff;
        border-color: #0066cc;
    }

    /* Right-side utilities */
    .level1-right {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        position: relative;
    }

    /* Auth buttons */
    .level1-auth {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .btn-l1 {
        padding: 6px 16px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        border: none;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        transition: all 0.2s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
    }

    .btn-l1-login {
        background: transparent;
        color: #053270;
        border: 1.5px solid #053270 !important;
    }

    .btn-l1-login:hover {
        background: #053270;
        color: #fff;
    }

    .btn-l1-register {
        background: #053270;
        color: #fff;
    }

    .btn-l1-register:hover {
        background: #03245a;
    }

    /* ── Google Translate wrapper — sits AFTER auth buttons ── */
    .translate-wrap {
        position: relative;
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        border-radius: 5px;
        padding: 5px 12px;
        cursor: pointer;
        transition: background 0.2s;
        user-select: none;
        white-space: nowrap;
    }

    .translate-wrap:hover {
        background: #e2e8f0;
    }

    .translate-wrap i {
        color: #053270;
        font-size: 13px;
    }

    .translate-wrap>span {
        color: #053270;
        font-size: 11px;
        font-weight: 600;
    }

    /* Language dropdown — styled like image 2 */
    .translate-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        background: #1e293b;
        border-radius: 6px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
        min-width: 180px;
        z-index: 2000;
        overflow: hidden;
        padding: 4px 0;
    }

    .translate-wrap.active .translate-dropdown {
        display: block;
    }

    /* Hide the actual Google widget visually but keep it functional */
    #google_translate_element {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .lang-list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 300px;
        overflow-y: auto;
    }

    .lang-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        color: #e2e8f0;
        font-size: 13px;
        cursor: pointer;
        transition: background 0.15s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .lang-list li:last-child {
        border-bottom: none;
    }

    .lang-list li:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .lang-list li.active-lang {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-weight: 600;
    }

    .lang-list li .check-icon {
        font-size: 10px;
        color: #38bdf8;
        visibility: hidden;
        margin-left: auto;
    }

    .lang-list li.active-lang .check-icon {
        visibility: visible;
    }

    /* User profile (logged in) */
    .level1-user {
        display: none;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .level1-user.visible {
        display: flex;
    }

    .user-name-l1 {
        color: #053270;
        font-size: 13px;
        font-weight: 600;
    }

    .user-avatar-l1 {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: linear-gradient(135deg, #053270, #0066cc);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        border: 2px solid #e2e8f0;
    }

    .l1-profile-dropdown {
        display: block;
        /* always in DOM */
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: all 0.2s ease;

        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: #fff;
        border-top: 3px solid #0066cc;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        border-radius: 0 0 6px 6px;
        z-index: 2000;
    }


    .l1-profile-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .level1-user {
        padding-bottom: 2px;
        /* creates invisible hover bridge */
    }

    .l1-profile-dropdown a {
        display: block;
        padding: 11px 16px;
        color: #1f3f6b;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: all 0.2s;
    }

    .l1-profile-dropdown a:hover {
        background: #f0f4ff;
        color: #0066cc;
        padding-left: 20px;
    }

    .l1-profile-dropdown .logout-link {
        color: #dc3545 !important;
    }

    .l1-profile-dropdown .logout-link:hover {
        background: #fff0f0;
    }

    .level2-bar {
        background: #0549a8;
        display: flex;
        align-items: center;
        overflow: hidden;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 1002;
        height: 32px;
    }

    .news-label {
        background: #e83b3b;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        padding: 0 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap;
        flex-shrink: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .marquee-track {
        flex: 1;
        overflow: hidden;
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .marquee-inner {
        display: flex;
        white-space: nowrap;
        animation: marqueeScroll 80s linear infinite;
    }

    .marquee-inner:hover {
        animation-play-state: paused;
    }

    .marquee-item {
        color: rgba(255, 255, 255, 0.88);
        font-size: 14px;
        padding-right: 50px;
        display: inline-flex;
        transition: color 0.2s;
        white-space: nowrap;
        word-spacing: 6px;
    }

    .marquee-item::before {
        content: "◆";
        color: #f0a500;
        margin-right: 8px;
        font-size: 9px;
    }

    @keyframes marqueeScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    .level3-bar {
        background: rgba(5, 50, 112, 0.92);
        display: flex;
        align-items: stretch;
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        z-index: 1001;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        height: 50px;
        transition: all 0.3s ease;
        /* CRITICAL: allow dropdowns to overflow */
        overflow: visible;
    }

    .level3-bar.scrolled {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e0e0e0;
    }

    .l3-nav {
        display: flex;
        align-items: stretch;
        flex: 1;
        margin-left: 20px;
        /* allow dropdowns to overflow */
        overflow: visible;
    }

    .l3-nav-item {
        display: flex;
        align-items: center;
        position: relative;
        overflow: visible;
    }

    .l3-nav-link {
        display: block;
        padding: 0 16px;
        height: 50px;
        line-height: 50px;
        color: #fff;
        font-weight: 700;
        font-size: 12px;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        background: transparent;
    }

    .level3-bar.scrolled .l3-nav-link {
        color: #1f3f6b;
    }

    .l3-nav-link:hover {
        background: rgba(0, 102, 204, 0.25);
        color: #fff;
    }

    .level3-bar.scrolled .l3-nav-link:hover {
        background: rgba(0, 102, 204, 0.1);
        color: #053270;
    }

    .l3-nav-link.has-arrow::after {
        content: " ▾";
        font-size: 9px;
    }

    /* ── MEGA MENU — fixed to be fully visible ── */
    .mega-menu-item:hover>.mega-menu-trigger {
        background: #0066cc;
        color: #fff !important;
    }

    .mega-menu-content {
        display: none;
        position: fixed;
       
        left: 50%;
        top: 138px;
       
        background: #fff;
        border-top: 3px solid #0066cc;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
        z-index: 1010;
        padding: 20px;
        grid-template-columns: repeat(3, 1fr);
        transform: translateX(-50%);
        width: 92vw;
        max-width: 1100px;
        border-radius: 0 0 8px 8px;
    }

    .mega-menu-item:hover .mega-menu-content {
        display: grid;
    }

    .mega-menu-column {
        padding: 0 14px;
        border-right: 1px solid #eee;
    }

    .mega-menu-column:last-child {
        border-right: none;
    }

    .mega-menu-column h4 {
        margin: 0 0 12px;
        font-size: 11px;
        font-weight: 800;
        color: #1f3f6b;
        text-transform: uppercase;
        border-bottom: 3px solid #0066cc;
        padding-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .mega-menu-column ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mega-menu-column a {
        color: #1f3f6b;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        display: block;
        padding: 7px 10px;
        border-radius: 4px;
        margin: 2px 0;
        transition: all 0.2s;
    }

    .mega-menu-column a:hover {
        background: #f0f4ff;
        color: #0066cc;
        padding-left: 14px;
    }

    /* ── Simple dropdown ── */
    .simple-dropdown:hover>.l3-nav-link {
        background: #0066cc;
        color: #fff !important;
    }

    .dropdown-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border-top: 3px solid #0066cc;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        min-width: 190px;
        border-radius: 0 0 6px 6px;
        z-index: 1010;
    }

    .simple-dropdown:hover .dropdown-list {
        display: block;
    }

    .dropdown-list a {
        display: block;
        padding: 11px 16px;
        color: #1f3f6b;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: all 0.2s;
    }

    .dropdown-list a:last-child {
        border-bottom: none;
    }

    .dropdown-list a:hover {
        background: #f0f4ff;
        color: #0066cc;
        padding-left: 20px;
    }

    /* Subscribe button in nav */
    .l3-right {
        display: flex;
        align-items: center;
        padding: 0 14px;
        flex-shrink: 0;
    }

    .btn-subscribe-nav {
        background: #28a745;
        color: #fff;
        border: 2px solid #28a745;
        border-radius: 4px;
        padding: 8px 18px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        transition: all 0.2s;
    }

    .btn-subscribe-nav:hover {
        background: #218838;
        border-color: #218838;
        transform: translateY(-1px);
        color: #fff;
    }

    /* HAMBURGER (mobile only) */
    .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        background: none;
        border: none;
        padding: 10px;
        margin-left: auto;
        z-index: 1004;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: #053270;
        border-radius: 2px;
        display: block;
        transition: all 0.3s;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(11px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-11px);
    }

    /* Page body offset */
    .page-body {
        margin-top: 140px;
    }

    /* SUPPORT WIDGET */
    .support {
        display: flex;
        position: fixed;
        z-index: 9998;
        bottom: 20px;
        left: 5px;
        flex-direction: column;
    }

    .support a {
        display: flex;
        flex-direction: row;
        background: #25d366;
        padding: 10px;
        border-radius: 20px;
        align-items: center;
        margin-bottom: 10px;
        text-decoration: none;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    }

    .support a:hover {
        background: #1ebe5d;
        transform: scale(1.05);
    }

    .support a i {
        font-size: 18px;
        color: #fff;
        margin-right: 8px;
    }

    .support a span {
        display: none;
        font-size: 13px;
        color: #fff;
        font-weight: 500;
    }

    .support a:hover span {
        display: block;
    }

    @media (max-width: 768px) {
        .level1-bar {
            padding: 6px 14px;
            height: 56px;
        }

        .site-name {
            font-size: 13px;
        }

        .level1-logo img {
            height: 32px;
        }

        .translate-wrap {
            display: none;
        }

        .level1-products {
            display: none !important;
        }

        /* hide product pills on mobile */
        .level1-auth,
        .level1-user {
            display: none !important;
        }

        .hamburger {
            display: flex;
        }

        .level2-bar {
            top: 56px;
        }

        .level3-bar {
            display: none;
        }

        /* Mobile drawer */
        .mobile-nav-drawer {
            display: none;
            position: fixed;
            top: 88px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(5, 50, 112, 0.97);
            z-index: 1000;
            overflow-y: auto;
            flex-direction: column;

        }
        

        .mobile-nav-drawer.open {
            display: flex;
        }

        .mobile-nav-link {
            display: block;
            padding: 14px 20px;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            text-decoration: none;
            transition: background 0.2s;
        }

        .mobile-nav-link:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .mobile-auth-section {
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            margin-top: auto;
          
        }

        .mobile-auth-section a {
            display: block;
        }

        .mobile-auth-section button {
            width: 100%;
            padding: 12px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .page-body {
            margin-top: 88px;
        }
    }

    /* Tablet (769–1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .l3-nav-link {
            padding: 0 10px;
            font-size: 11px;
        }

        .site-name {
            font-size: 14px;
        }

        .btn-subscribe-nav {
            padding: 7px 12px;
            font-size: 10px;
        }
    }
   @media (min-width: 769px) {
    .mobile-nav-drawer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}
 