/* navbar.css */
.nav-section {
    width: 25%;
    display: flex;
    position: relative;
    height: auto;
    background-color: transparent;
    z-index: 1000;
    padding-top: 0;
    box-shadow: none;
    transform: none;
}

.vertical-line {
    width: 2px;
    background-color: #9c9c9c;
    position: relative;
    margin-right: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #585858;
    border-radius: 50%;
    position: absolute;
    left: -4px;
    transition: top 0.3s ease;
}

.navlist {
    flex-grow: 1;
    background-color: #fff;
    padding: 20px 0;
}

.navlist ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navlist li {
    color: #464646;
}

.navlist a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px 20px;
}

.navlist a:hover {
    color: inherit;
}

/* Responsive Design */

/* For tablets and smaller devices */
@media (max-width: 768px) {
    .header-right {
        display: flex;
        align-items: center;
    }

    .nav-button {
        order: 2; /* Ensure the navbar/hamburger-menu is most-right */
    }

    .login-button {
        order: 1; /* Ensure the login-button is to the left of the navbar/hamburger-menu */
    }

    .nav-section {
        display: none; /* Initially hide the nav-section */
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 40%;
        background-color: rgba(0, 0, 0, 0.8); /* Slight background shadow */
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-section.active {
        display: flex; /* Show nav-section when active */
        transform: translateX(0); /* Slide in from the right */
    }

    .vertical-line {
        height: auto;
        margin-right: 0;
    }

    .dot {
        display: block; /* Ensure dot is visible in overlay */
    }
}

/* For larger devices */
@media (min-width: 769px) {
    .nav-button {
        display: none; /* Hide hamburger icon on larger screens */
    }

    .header-right {
        display: flex;
        justify-content: flex-end;
    }

    .login-button {
        order: 1; /* Ensure the login-button is most-right */
    }

    .nav-section {
        display: flex; /* Ensure nav-section is visible on larger screens */
        position: relative; /* Reset position */
        top: auto; /* Reset top */
        right: auto; /* Reset right */
        height: auto; /* Reset height */
        background-color: transparent; /* Reset background color */
        z-index: 1000;
        padding-top: 0; /* Reset padding */
        box-shadow: none; /* Reset box shadow */
        transform: none; /* Reset transform */
    }
}