/* =============================================
   COMPLETE HEADER CSS - DIAGONAL DESIGN STYLE
   ============================================= */

:root {
    --primary: #43d3d3;
    --primary-dark: #006262;
    --primary-booking: #0078ff;
    --primary-taxi: #f1b800;
    --primary-shop: #ff2d2d;
    --primary-property: #008a20;
    --primary-job: #FB8B24;
    --primary-adz: #999999;
    --dark: #2c2c2c;
    --dark-gray: #3a3a3a;
    --light: #ffffff;
    --gray: #666666;
    --border: #e0e0e0;
    --primary-transt: rgba(122, 198, 255, 0.39);
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    max-width: 100%;
}

/* =============================================
   MAIN HEADER - DIAGONAL BACKGROUND DESIGN
   ============================================= */

.header-area {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    overflow-x: hidden;
    max-width: 100vw;
}

.main-header {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.header-area .main-header {
    padding: 0.001rem;
}

/* Diagonal Background Wrapper */
.header-bg-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    background-color: #e9e9e9;
}




.container {
    width: 100%;
    max-width: 1780px;
    margin: 0 auto;
    padding: 0 20px;
    /*overflow-x: hidden;*/
    bottom: 70px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    gap: 20px;
    position: relative;
    z-index: 2;
    max-width: 1780px;
    margin: 0 auto;
    padding: 0 32px;
    overflow-x: hidden;
}

/* =============================================
   LOGO SECTION - LEFT SIDE (ON DARK BACKGROUND)
   ============================================= */

.logo-section {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

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

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* =============================================
   DESKTOP NAVIGATION (HOME PAGE) - CENTER
   ============================================= */

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.category-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.category-item {
    display: inline-block;
}

.category-link {
    display: block;
    padding: 8px 18px;
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-link:hover {
    background: #f5f5f5;
    color: var(--primary-dark);
}

.category-link.active {
    background: var(--primary);
    color: var(--light);
}

/* =============================================
   SERVICE SWITCHER - HORIZONTAL ICON STYLE (INNER PAGES)
   ============================================= */

.service-switcher {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.service-nav-wrapper {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    background: transparent;
    max-width: 100%;
}

.service-link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px;
    height: 51px;
    min-width: 170px;
    max-width: 210px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    flex: 1 1 160px;
    background: #ffffff;
    border: 1.5px solid #e3e6ea;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    /* Icon Badge - Neutral Rounded Square */

    .service-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        position: relative;
        border-radius: 10px;
    }

    .service-icon img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        transition: all 0.25s ease;
    }

    /* Service Name - Right of the Icon, Wraps to Two Lines Like a Compact Label */

    .service-name {
        font-size: 14px;
        font-weight: 800;
        color: #23262b;
        text-align: left;
        line-height: 1.25;
        letter-spacing: 0.1px;
        text-transform: capitalize;
        transition: all 0.25s ease;
        white-space: normal;
        min-width: 0;
        overflow-wrap: break-word;
    }

    /* Hover State */

    .service-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
        border-color: #cfd4da;
    }


    /* Active State - Border & Tinted Fill in the Page's Theme Color */

    .service-link.active {
        background: color-mix(in srgb, var(--primary) 100%, #ffffff);
        border-color: var(--primary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }



    .service-link.active .service-name {
        color: #14151a;
        font-weight: 800;
    }

    /* =============================================
       HEADER ACTIONS - RIGHT SIDE (ON CYAN BACKGROUND)
       ============================================= */

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
        position: relative;
        z-index: 3;
    }

    /* Simple Clean Button Style */

    .action-btn {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 19px;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        cursor: pointer;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .action-btn:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-2px);
        color: var(--primary);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .action-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .action-btn i {
        transition: all 0.3s ease;
        color: var(--primary-shop);
    }

    .action-btn:hover i {
        transform: scale(1.1);
    }

    /* Notification Badge - Clean Pulse Animation */

    .notification-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 9px;
        height: 9px;
        background: #ff3b3b;
        border-radius: 50%;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 6px rgba(255, 59, 59, 0.6);
        animation: notificationPulse 2s ease-in-out infinite;
    }

    @keyframes notificationPulse {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.2);
            opacity: 0.9;
        }
    }

    /* Account & Login Buttons - Solid Primary Color */

    .account-btn,
    .login-btn {
        background: var(--light);
        color: #ffffff;
        font-weight: 600;
        border: none;
        box-shadow: 0 4px 15px rgba(67, 211, 211, 0.3);
    }

    .account-btn:hover,
    .login-btn:hover {
        background: var(--light);
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(67, 211, 211, 0.4);
    }

    .account-btn:active,
    .login-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(67, 211, 211, 0.3);
    }

    /* =============================================
       MOBILE MENU TOGGLE BUTTON
       ============================================= */

    .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2.5px;
        background: var(--light);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.08);
    }

    .mobile-menu-toggle:hover span {
        background: var(--light);
    }

    /* =============================================
       MOBILE SIDEBAR
       ============================================= */

    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--light);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 10000;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        background: var(--light);
    }

    .sidebar-logo {
        height: 40px;
        width: auto;
    }

    .sidebar-close {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        cursor: pointer;
        font-size: 18px;
        color: var(--light);
        transition: all 0.2s ease;
    }

    .sidebar-close:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: rotate(90deg);
    }

    /* =============================================
       MOBILE SERVICES SECTION - ROW LAYOUT
       ============================================= */

    .mobile-services-section {
        padding: 20px;
        background: linear-gradient(135deg, rgba(67, 211, 211, 0.05) 0%, rgba(67, 211, 211, 0.02) 100%);
        border-bottom: 1px solid rgba(67, 211, 211, 0.15);
    }

    .mobile-section-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-section-title i {
        color: var(--primary);
        font-size: 16px;
    }

    .mobile-services-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-service-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 251, 0.9) 100%);
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(67, 211, 211, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .mobile-service-row:hover {
        transform: translateX(4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        border-color: rgba(67, 211, 211, 0.3);
    }

    .mobile-service-row:active {
        transform: translateX(2px);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    }

    /* Active Page State - Solid Primary Color Fill */

    .mobile-service-row.active {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    .mobile-service-row.active .mobile-service-icon {
        background-color: rgb(255, 255, 255);
    }

    .mobile-service-row.active .mobile-service-name {
        color: var(--light);
    }

    .mobile-service-row.active .mobile-service-desc {
        color: rgba(255, 255, 255, 0.85);
    }

    .mobile-service-row.active .mobile-service-arrow {
        color: var(--light);
    }

    .mobile-service-row.active:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateX(4px);
    }

    .mobile-service-row.active:hover .mobile-service-desc {
        color: rgba(255, 255, 255, 0.85);
    }

    .mobile-service-row.active:hover .mobile-service-arrow {
        color: var(--light);
    }

    .mobile-service-icon {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: all 0.3s ease;
        padding: 6px;
    }

    .mobile-service-row:hover .mobile-service-icon {
        transform: scale(1.08);
    }

    .mobile-service-icon img {
        width: 46px;
        height: auto;
        object-fit: contain;
    }

    .mobile-service-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-service-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--dark);
        letter-spacing: 0.2px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-service-desc {
        font-size: 12px;
        font-weight: 500;
        color: #8b939a;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-service-row:hover .mobile-service-desc {
        color: var(--primary);
    }

    .mobile-service-arrow {
        flex-shrink: 0;
        font-size: 13px;
        color: #b8bfc4;
        transition: all 0.3s ease;
    }

    .mobile-service-row:hover .mobile-service-arrow {
        color: var(--primary);
        transform: translateX(3px);
    }

    .sidebar-nav {
        flex: 1;
        padding: 20px;
    }

    .sidebar-menu {
        list-style: none;
    }

    .sidebar-item {
        margin-bottom: 8px;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 8px;
        background: transparent;
        color: var(--dark);
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .sidebar-link:hover {
        background: #f5f5f5;
        color: var(--primary);
        padding-left: 20px;
    }

    .sidebar-link i {
        font-size: 12px;
        opacity: 0.6;
    }

    .sidebar-footer {
        padding: 18px 20px 24px;
        border-top: 1px solid rgba(67, 211, 211, 0.15);
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: linear-gradient(180deg, rgba(67, 211, 211, 0.03) 0%, rgba(67, 211, 211, 0.06) 100%);
    }

    .sidebar-footer-caption {
        margin: 0 0 4px;
        font-size: 12px;
        font-weight: 600;
        color: #8b939a;
        text-align: center;
        letter-spacing: 0.2px;
    }

    .sidebar-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 13px 20px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
    }

    .sidebar-btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        transition: all 0.25s ease;
    }

    .sidebar-btn-icon i {
        font-size: 13px;
    }

    .sidebar-btn.primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: var(--light);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    .sidebar-btn.primary .sidebar-btn-icon {
        background: rgba(255, 255, 255, 0.2);
    }

    .sidebar-btn.primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .sidebar-btn.primary:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .sidebar-btn.outline {
        background: var(--light);
        color: var(--primary);
        border-color: rgba(67, 211, 211, 0.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .sidebar-btn.outline .sidebar-btn-icon {
        background: rgba(67, 211, 211, 0.12);
    }

    .sidebar-btn.outline:hover {
        background: var(--primary);
        color: var(--light);
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(67, 211, 211, 0.25);
    }

    .sidebar-btn.outline:hover .sidebar-btn-icon {
        background: rgba(255, 255, 255, 0.2);
    }

    .sidebar-btn.outline:active {
        transform: translateY(0);
    }

    /* Mobile Overlay */

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* =============================================
       SCROLLBAR STYLING
       ============================================= */

    .mobile-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .mobile-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-sidebar::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .mobile-sidebar::-webkit-scrollbar-thumb:hover {
        background: #bbb;
    }

    /* =============================================
       RESPONSIVE BREAKPOINTS
       ============================================= */

    /* Large Desktop */
    @media (max-width: 1440px) {
        .service-nav-wrapper {
            gap: 6px;
        }

        .service-link {
            height: 50px;
            min-width: 130px;
            max-width: 170px;
            padding: 6px 12px 6px 6px;
            gap: 8px;
            flex-basis: 140px;
        }

    }

    /* Desktop */
    @media (max-width: 1024px) {
        .service-nav-wrapper {
            gap: 5px;
        }

        .service-link {
            height: 44px;
            min-width: 105px;
            max-width: 140px;
            padding: 4px 8px 4px 4px;
            gap: 5px;
            flex-basis: 110px;
        }

        .service-icon {
            width: 28px;
            height: 28px;
        }

        .service-icon img {
            width: 18px;
            height: 18px;
        }

        .service-name {
            font-size: 10.5px;
        }

    }

    /* Tablet */
    @media (max-width: 991px) {
        .desktop-nav,
        .service-switcher {
            display: none;
        }

        .mobile-menu-toggle {
            display: flex;
        }

        .header-actions .action-btn:not(.account-btn):not(.login-btn):not(.mobile-menu-toggle) {
            display: none;
        }


        .header-bg-wrapper::after {
            width: 25%;
        }
    }

    /* Mobile */
    @media (max-width: 768px) {
        .header-wrapper {
            height: 65px;
            padding: 0 16px;
        }

        .secondary-nav-wrapper {
            padding: 0 16px;
        }

        .logo-img {
            height: 38px;
        }

        .action-btn {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }

        .container {
            padding: 0 15px;
        }


        /* Mobile Services Rows - tablet sizing */
        .mobile-service-row {
            padding: 9px 10px;
            gap: 12px;
        }

        .mobile-service-icon {
            width: 60px;
            height: 60px;
        }

        .mobile-service-icon img {
            width: 40px;
            height: auto;
        }

        .mobile-service-name {
            font-size: 14px;
        }

        .mobile-service-desc {
            font-size: 11px;
        }
    }

    @media (max-width: 576px) {
        .logo-img {
            height: 35px;
        }

        .header-actions {
            gap: 8px;
        }

        .action-btn,
        .mobile-menu-toggle {
            width: 38px;
            height: 38px;
        }

        /* Mobile Services Rows - small mobile sizing */
        .mobile-services-section {
            padding: 15px;
        }

        .mobile-services-list {
            gap: 6px;
        }

        .mobile-service-row {
            padding: 8px 10px;
            gap: 10px;
        }

        .mobile-service-icon {
            width: 56px;
            height: 56px;
        }

        .mobile-service-icon img {
            width: 30px;
            height: auto;
        }

        .mobile-service-name {
            font-size: 13px;
        }

        .mobile-service-desc {
            font-size: 10px;
        }

        .mobile-section-title {
            font-size: 13px;
            margin-bottom: 12px;
        }
    }

    @media (max-width: 425px) {
        .logo-img {
            height: 32px;
        }

        .action-btn,
        .mobile-menu-toggle {
            width: 36px;
            height: 36px;
        }

        .mobile-sidebar {
            width: 280px;
        }


        /* Mobile Services Rows - very small screens */
        .mobile-service-row {
            padding: 8px 10px;
            gap: 10px;
        }

        .mobile-service-icon {
            width: 54px;
            height: 54px;
        }

        .mobile-service-icon img {
            width: 40px;
            height: auto;
        }

        .mobile-service-name {
            font-size: 12px;
        }

        .mobile-service-desc {
            font-size: 10px;
        }
    }

    @media (max-width: 320px) {
        .mobile-sidebar {
            width: 100%;
        }

        /* Mobile Services Rows - 320px */
        .mobile-services-section {
            padding: 12px;
        }

        .mobile-services-list {
            gap: 6px;
        }

        .mobile-service-row {
            padding: 7px 8px;
            gap: 8px;
        }

        .mobile-service-icon {
            width: 50px;
            height: 50px;
        }

        .mobile-service-icon img {
            width: 40px;
            height: auto;
        }

        .mobile-service-name {
            font-size: 12px;
        }

        .mobile-service-desc {
            display: none;
        }

        .mobile-section-title {
            font-size: 12px;
            margin-bottom: 10px;
        }
    }

    /* =============================================
       SECONDARY NAVIGATION BAR - MODERN CLEAN DESIGN
       ============================================= */

    .secondary-nav-bar {
        position: relative;
        z-index: 999;
        padding: 2px 0;
        background-color: var(--light);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .secondary-nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 32px;
        overflow: visible;
        max-width: 1800px;
        margin: 0 auto;
        gap: 25px;
    }

    /* Browse Section - Hidden for clean look */

    .secondary-nav-browse {
        display: none;
    }

    /* Secondary Nav burger toggle - hidden on desktop, shown on mobile */
    .secondary-nav-toggle {
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 2px solid var(--primary);
        border-radius: 25px;
        background: #ffffff;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 2px 3px 5px rgba(172, 172, 172, 0.46);
    }

    .secondary-nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0 auto;
        background: var(--primary);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .secondary-nav-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .secondary-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .secondary-nav-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Navigation Menu - Horizontal Scroll Container */

    .secondary-nav-menu {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
        display: flex;
        justify-content: flex-start;
        padding: 15px 0 15px 0;
        scroll-behavior: smooth;
        /* Add smooth momentum scrolling on iOS */
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */

    .secondary-nav-menu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    /* Slide-in panel footer (logo + copyright) - hidden on desktop, shown only inside the mobile slide-in menu */
    .secondary-nav-footer {
        display: none;
    }

    .secondary-nav-list {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
        width: 100%;
    }

    .secondary-nav-item {
        display: inline-block;
        flex: 1 0 auto;
    }

    .secondary-nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        height: 36px;
        padding: 0 16px;
        box-sizing: border-box;
        background: #ffffff;
        color: #141414;
        font-weight: 800;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        white-space: nowrap;
        text-align: center;
        box-shadow: 2px 3px 5px rgba(172, 172, 172, 0.46);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        overflow: hidden;
        border: 2px solid #646464;
        border-radius: 5px;
    }


    /* Icon styling */

    .secondary-nav-link .nav-icon {
        font-size: 14px;
        color: var(--primary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .secondary-nav-link .link-text {
        position: relative;
        z-index: 2;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        flex: 1;
    }

    /* Gradient background effect on hover */

    .secondary-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    /*!* Hover State - Smooth lift with gradient *!*/
    /*.secondary-nav-link:hover {*/
    /*    border-color: var(--light);*/
    /*    transform: translateY(-2px);*/
    /*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    /*}*/

    .secondary-nav-link:hover::before {
        opacity: 1;
    }

    .secondary-nav-link:hover .nav-icon {
        transform: scale(1.1);
        color: #ffffff;
    }

    .secondary-nav-link:hover .link-text {
        color: #ffffff;
    }

    /* Active State - Bold gradient background */

    .secondary-nav-link.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        border-color: var(--primary);
        color: #ffffff;
        box-shadow: 0 3px 10px rgba(67, 211, 211, 0.3);
        transform: translateY(-1px);
    }

    .secondary-nav-link.active .nav-icon {
        color: #ffffff;
        animation: iconPulse 2s ease-in-out infinite;
    }

    .secondary-nav-link.active .link-text {
        color: #ffffff;
    }

    @keyframes iconPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.08);
        }
    }

    /* All Categories Button - Right */

    .secondary-nav-action {
        flex-shrink: 0;
        display: none; /* Hide for cleaner look - categories are in the nav */
    }

    .all-categories-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 28px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        border: 2px solid var(--primary);
        border-radius: 30px;
        color: #ffffff;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 4px 16px rgba(67, 211, 211, 0.3);
        white-space: nowrap;
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .all-categories-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .all-categories-btn .categories-text,
    .all-categories-btn .categories-icon {
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .categories-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        font-size: 14px;
    }

    .all-categories-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(67, 211, 211, 0.45);
    }

    .all-categories-btn:hover::before {
        width: 300px;
        height: 300px;
    }

    .all-categories-btn:hover .categories-icon {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    .all-categories-btn:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(67, 211, 211, 0.3);
    }

    /* =============================================
       SECONDARY NAV - RESPONSIVE DESIGN
       ============================================= */

    @media (max-width: 1200px) {
        .secondary-nav-link {
            height: 36px;
            box-sizing: border-box;
            padding: 8px 12px;
            font-size: 13px;
            gap: 6px;
        }

        .secondary-nav-list {
            gap: 14px;
        }
    }

    @media (max-width: 1024px) {
        .secondary-nav-bar {
            padding: 7px 0;
        }

        .secondary-nav-list {
            gap: 12px;
        }

        .secondary-nav-link {
            height: 34px;
            font-size: 12px;
        }
    }

    @media (max-width: 768px) {
        .secondary-nav-bar {
            padding: 6px 0;
            position: relative;
            overflow: visible;
            z-index: 1500;
        }

        /* Show burger toggle on the left */
        .secondary-nav-toggle {
            display: flex;
            order: 1;
        }

        .secondary-nav-wrapper {
            justify-content: space-between;
            position: relative;
            gap: 10px;
            padding: 0 12px;
        }

        /* Push actions to the right, grouped next to the logo */
        .secondary-actions {
            order: 2;
            margin-left: auto;
        }

        .secondary-logo-section {
            order: 3;
        }

        /* Slide-in side panel (same style as mobile-sidebar) */
        .secondary-nav-overlay {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .secondary-nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .secondary-nav-menu {
            position: fixed !important;
            top: 0;
            left: -100%;
            width: 300px;
            max-width: 85vw;
            height: 100vh;
            display: flex !important;
            flex-direction: column;
            flex: 0 0 auto;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 70px 16px 24px !important;
            margin: 0;
            background: var(--light, #ffffff);
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
            z-index: 10001;
            transition: left 0.3s ease;
        }

        .secondary-nav-menu.open {
            left: 0;
        }

        .secondary-nav-close {
            display: flex !important;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 16px;
            right: 16px;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--primary, #141414);
            border: none;
            color: #ffffff;
            font-size: 18px;
            cursor: pointer;
            z-index: 2;
            transition: transform 0.2s ease;
        }

        .secondary-nav-close:hover {
            transform: rotate(90deg);
        }

        .secondary-nav-list {
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 10px;
            width: 100%;
        }

        .secondary-nav-item {
            width: 100%;
            flex: 0 0 auto;
        }

        .secondary-nav-link {
            width: 100%;
            height: auto;
            min-height: 42px;
            justify-content: flex-start;
            font-size: 13px;
            padding: 10px 16px;
        }

        /* Footer block pinned to the bottom of the slide-in panel */
        .secondary-nav-footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
        }

        .secondary-nav-footer-logo {
            max-width: 110px;
            height: auto;
            object-fit: contain;
            opacity: 0.9;
        }

        .secondary-nav-footer-text {
            margin: 0;
            font-size: 11px;
            line-height: 1.4;
            color: #8a8a8a;
            text-align: center;
            letter-spacing: 0.2px;
        }
    }

    /* Overlay & close icon hidden on desktop */
    .secondary-nav-overlay,
    .secondary-nav-close {
        display: none;
    }

    @media (max-width: 576px) {
        .secondary-nav-link {
            height: 30px;
            font-size: 9px;
            letter-spacing: 0.3px;
        }

        .secondary-nav-list {
            gap: 6px;
        }
    }

    /* All Categories Button Responsive */
    @media (max-width: 1024px) {
        .all-categories-btn {
            padding: 8px 18px;
            font-size: 12px;
            height: 32px;
        }
    }

    @media (max-width: 991px) {
        .secondary-nav-bar {
            padding: 6px 0;
        }

        .secondary-nav-menu {
            padding: 0 12px;
        }

        .secondary-nav-list {
            gap: 8px;
            flex-wrap: nowrap;
        }

        .secondary-nav-link {
            height: 36px;
            box-sizing: border-box;
            padding: 8px 12px;
            font-size: 11px;
            gap: 4px;
        }

        .secondary-nav-link .link-text {
            max-width: 100%;
        }

        .secondary-nav-link .nav-icon {
            font-size: 11px;
        }

        .categories-text {
            display: none;
        }

        .all-categories-btn {
            width: 36px;
            height: 36px;
            padding: 0;
            justify-content: center;
            border-radius: 50%;
        }

        .categories-icon {
            background: transparent;
            width: 16px;
            height: 16px;
            font-size: 12px;
        }
    }

    @media (max-width: 768px) {
        .secondary-nav-bar {
            padding: 5px 0;
        }

        .secondary-nav-list {
            gap: 5px;
        }

        .secondary-nav-link {
            height: 36px;
            box-sizing: border-box;
            padding: 8px 10px;
            font-size: 10px;
            gap: 4px;
        }

        .secondary-nav-link .link-text {
            max-width: 100%;
        }

        .secondary-nav-link .nav-icon {
            font-size: 10px;
        }
    }

    @media (max-width: 576px) {
        .secondary-nav-bar {
            padding: 5px 0;
        }

        .secondary-nav-menu {
            padding: 0 10px;
        }

        .secondary-actions {
            gap: 6px;
        }
    }

    /* =============================================
       POST AD BUTTON - DYNAMIC PRIMARY COLOR
       ============================================= */
    .post-ad-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 18px;
        background: var(--primary);
        color: #ffffff !important;
        font-weight: 600;
        font-size: 13px;
        text-transform: none;
        letter-spacing: 0;
        border-radius: 18px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: visible;
        white-space: nowrap;
        width: 115px;
        flex-shrink: 0;
    }

    .post-ad-btn::before {
        display: none;
    }

    .post-ad-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        color: #ffffff !important;
    }

    .post-ad-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .post-ad-btn i {
        font-size: 14px;
        color: #ffffff;
        transition: transform 0.3s ease;
    }

    .post-ad-btn .action-text {
        position: relative;
        z-index: 1;
        color: #ffffff;
        font-weight: 600;
    }

    .post-ad-btn:hover i {
        transform: scale(1.1);
    }

    /* Responsive Post Ad Button */
    @media (max-width: 1024px) {
        .post-ad-btn {
            width: auto;
            min-width: 0;
            padding: 6px 14px;
            font-size: 12px;
            gap: 5px;
        }
    }

    @media (max-width: 768px) {
        .post-ad-btn .action-text {
            display: none;
        }

        .post-ad-btn {
            width: 38px;
            height: 38px;
            padding: 0;
            justify-content: center;
            border-radius: 50%;
        }

        .post-ad-btn i {
            font-size: 16px;
        }
    }

    /* =============================================
       CREATE BUSINESS BUTTON - DYNAMIC PRIMARY COLOR
       ============================================= */
    .create-business-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 18px;
        background: var(--primary);
        color: #ffffff !important;
        font-weight: 600;
        font-size: 13px;
        text-transform: none;
        letter-spacing: 0;
        border-radius: 18px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: visible;
        white-space: nowrap;
        width: auto;
        min-width: 115px;
        height: 38px;
        flex-shrink: 0;
    }

    .create-business-btn::before {
        display: none;
    }

    .create-business-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        color: #ffffff !important;
    }

    .create-business-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .create-business-btn i {
        font-size: 14px;
        color: #ffffff;
        transition: transform 0.3s ease;
    }

    .create-business-btn .action-text {
        position: relative;
        z-index: 1;
        color: #ffffff;
        font-weight: 600;
    }

    .create-business-btn:hover i {
        transform: scale(1.1);
    }

    /* Responsive Create Business Button */
    @media (max-width: 1024px) {
        .create-business-btn {
            min-width: 0;
            padding: 6px 14px;
            font-size: 12px;
            gap: 5px;
        }
    }

    @media (max-width: 768px) {
        .create-business-btn .action-text {
            display: none;
        }

        .create-business-btn {
            width: 38px;
            height: 38px;
            padding: 0;
            justify-content: center;
            border-radius: 50%;
        }

        .create-business-btn i {
            font-size: 16px;
        }
    }

    /* =============================================
       SECONDARY NAV - LOGO SECTIONS (LEFT & RIGHT)
       ============================================= */

    .secondary-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .secondary-logo-section {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .secondary-logo-section .logo-img {
        max-width: 180px;
        height: 35px;
        display: block;
    }

    /* Invisible Logo Card (Left Side) - Matches Right Logo Size */
    .invisible-logo {
        visibility: hidden;
        pointer-events: none;
    }

    .invisible-logo-card {
        width: 180px;
        height: 60px; /* Approximate height to match logo */
        display: block;
    }

    /* Responsive Logo Sections */
    @media (max-width: 1200px) {
        .secondary-logo-section .logo-img {
            max-width: 150px;
        }

        .invisible-logo-card {
            width: 150px;
            height: 50px;
        }
    }

    @media (max-width: 1024px) {
        .secondary-logo-section .logo-img {
            max-width: 130px;
        }

        .invisible-logo-card {
            width: 130px;
            height: 43px;
        }
    }

    @media (max-width: 768px) {
        .secondary-logo-section .logo-img {
            max-width: 110px;
        }

        .invisible-logo-card {
            width: 110px;
            height: 37px;
        }
    }

    @media (max-width: 576px) {
        .secondary-logo-section {
            display: none; /* Hide both logo sections on mobile */
        }

        .invisible-logo {
            display: none;
        }
    }