header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12.5px;
}

.logo img:first-child {
    width: 40px;
    height: 40px;
}

.logo img:last-child {
    width: 121.25px;
    height: 40px;
    margin-left: 10px;
}

.logo a {
    text-decoration: none;
}

.desktop-nav {
    display: none;
}

.desktop-login-btn {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
}

.mobile-menu-toggle img {
    width: 24px; /* Icon size from Figma */
    height: 24px; /* Icon size from Figma */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0; /* Keep top at 0 as transform handles positioning */
    left: 0; /* Align to the left edge */
    width: 100%; /* Take full width of the screen */
    height: min(480px, 100vh);
    background-color: #ffffff;
    z-index: 1000;
    transform: translateY(-100%); /* Start off-screen above */
    -webkit-transform: translateY(-100%); /* Safari */
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1); /* Transition transform property */
    -webkit-transition: -webkit-transform 400ms cubic-bezier(0.4, 0, 0.2, 1); /* Safari */
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateY(0); /* Slide into view */
    -webkit-transform: translateY(0); /* Safari */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Added shadow to open state */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e5e2;
    margin-bottom: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-close img {
    width: 24px; /* Close icon size from Figma */
    height: 24px; /* Close icon size from Figma */
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    text-decoration: none;
    color: #181b18;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #3F473E; /* fill_HBFTXJ */
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    padding: 8px 12px;
    display: block; /* Make links block-level for easier tapping */
}

.mobile-nav ul li a.current-page {
    background-color: #F9FFC7; /* Active background color */
    color: #353B34; /* Active text color */
}

.mobile-menu .mobile-login-btn {
    margin-top: 35px;
    width: auto; /* Adjust width to content */
    align-self: flex-start; /* Align to the left */
    padding: 6px 18px;
    border-radius: 8px; /* From Figma */
    background-color: #181B18;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    border: 2px solid;
    border-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%) 1;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05), inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.logo a.current-page {
    background-color: #F9FFC7; /* Active background color from Figma */
    border-radius: 6px;
    color: #353B34; /* Active text color from Figma */
}

/* Desktop Media Query */
@media (min-width: 1280px) {
    header {
        padding: 40px 80px;
        max-width: 1440px; /* Limit header width */
        margin: 0 auto; /* Center the header */
        box-sizing: border-box; /* Include padding in the total width */
        width: 100%;
    }

    .desktop-nav {
        display: block;
    }

    .desktop-nav ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 40px;
    }

    .desktop-nav a {
        text-decoration: none;
        color: #181b18;
        font-size: 18px;
        font-weight: 500;
    }

    .desktop-nav ul li a {
        text-decoration: none;
        color: #3F473E; /* fill_Q04QWX */
        font-weight: 600; /* style_QOANBK */
        font-size: 16px; /* style_QOANBK */
        line-height: 1.5em; /* style_QOANBK */
        padding: 8px 12px; /* Add padding for clickable area */
        border-radius: 6px; /* Add border-radius */
    }

    .desktop-nav ul li a.current-page {
        background-color: #F9FFC7; /* Active background color */
        color: #353B34; /* Active text color */
    }

    header .desktop-login-btn {
        display: block;
        padding: 6px 18px;
    }

    .mobile-menu-toggle,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    .mobile-menu {
        padding: 20px;
        height: min(440px, 100vh);
    }
}
