.fedex-nav {
    background-color: #4d148c;
    color: white;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    /* Adding a font recommendation, though user didn't specify */
}

.fedex-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 970px;
    /* Increased max-width for better spacing */
    margin: 0 auto;
}

/* Left: Logo */
.fedex-logo-link {
    display: flex;
    align-items: center;
}

.fedex-logo {
    height: 24px;
    /* Slightly adjusted size */
    vertical-align: middle;
}

/* Center: Links */
.fedex-nav-links {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}

.fedex-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: capitalize;
    transition: opacity 0.3s;
    letter-spacing: 0.5px;
}

.fedex-nav-links a:hover {
    opacity: 0.8;
}

/* Right: Login & Mobile Toggle */
.fedex-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fedex-login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: capitalize;
}

.fedex-login-text {
    /* Visible on desktop */
}

.fedex-user-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('https://www.fedex.com/content/dam/fedex-com/common/sprite-placeholder.png');
    background-position: -6px -170px;
    /* Approximate position based on sprite usage, might need tuning */
    background-size: 350px;
    /* Scaling the sprite */
    background-repeat: no-repeat;
    border-radius: 50%;
    /* Optional: circular icon background if desired */
}

/* Mobile Toggle */
.fedex-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.fedex-mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 992px) {

    /* Tablet breakpoint */
    .fedex-nav-links {
        display: none;
        /* Hidden by default on mobile/tablet */
        position: absolute;
        top: 80px;
        /* Below the nav bar */
        left: 0;
        width: 100%;
        background-color: #4d148c;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .fedex-nav-links.active {
        display: flex;
    }

    .fedex-nav-links a {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
        display: block;
    }

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

    /* Hide Login Text on small screens if needed, user said "hide the nav items on mobile" */
    /* User requested: hide nav items. Login is separate? Let's keep login visible or icon only? */
    /* "hide the nav items on mobile" usually refers to the main links. */

    /* Adjustments for centered layout collapsing */
    .fedex-nav-container {
        justify-content: space-between;
    }

    /* .fedex-login-text {
        display: none;
    } */
}