.dropdown-menu[data-bs-popper] {
    top: 100%;
    /* left: 2rem; */
}

.navbar-expand-lg .navbar-collapse {
    margin-right: 3.5rem;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    border: 3px solid #2C80FA;
    width: 12rem;
}

.navbar-brand {
    flex: 0 0 auto;
    margin: 0 auto;
}

#user-info {
    display: flex;
    align-items: center;
    margin-right: 3.5rem;
    padding-right: 30px;
    text-transform: capitalize;
}

#user-dropdown-menu {
    top: 3.2rem;
    float: right;
    border: 3px solid #2C80FA;
    width: 12rem;
    /* transform: translateX(-30%); */
}

.user-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.navbar-toggler:focus {
    outline: none;
}

.navbar-nav .dropdown {
    position: relative;
    z-index: 1000;
}

#login-link {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    z-index: 1000;
    text-decoration-line: none;
    background-color: #2C80FA;
    color: white;
    border-radius: 3px;
}

#neet-button,
#login-button {
    border: 2px solid #2C80FA;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
    color: black;
    background-color: transparent;
}


/* Hover Effect for Neet and Login Buttons */

#neet-button:hover,
#login-button:hover {
    background-color: #2C80FA;
    color: white;
    border: 3px solid#09BD80;
    /* border: 3px solid#0065fd; */
}


/* Active State */

#neet-button.active,
#login-button.active {
    background-color: #2C80FA;
    color: white;
    /* border: 3px solid#0065fd; */
    border: 3px solid#09BD80;
}


/* Remove Button Styles for Small Screens */

@media (max-width: 991px) {
    #neet-button,
    #login-button {
        border: none;
        padding: 0;
        background: none;
        color: black;
        font-size: 16px;
        font-weight: normal;
        text-decoration: none;
        padding: 15px;
    }
    /* Remove Hover Effects for Small Screens */
    #neet-button:hover,
    #login-button:hover {
        background-color: transparent;
        color: #2C80FA;
        border: none;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        position: absolute;
        left: 1rem;
        top: 1rem;
        z-index: 1001;
    }
    #user-info {
        position: absolute;
        right: -1rem;
        top: 1.5rem;
        z-index: 1000;
        padding-right: 40px;
        display: flex !important;
        margin-right: 2.5rem;
    }
    .dropdown-menu[data-bs-popper] {
        top: 100%;
        /* left: -2rem; */
    }
    #user-dropdown-menu {
        top: 3.2rem;
        border: 3px solid #2C80FA;
        width: 10rem;
    }
}

@media (max-width: 550px) {
    #user-info {
        position: absolute;
        right: -1rem;
        top: 1.5rem;
        z-index: 1000;
        margin-right: 1.5rem;
    }
    .user-name {
        display: none;
    }
    .header-image {
        height: 4rem;
        width: 10rem;
        padding-left: 1.5rem;
        padding-top: 0.5rem;
    }
    .dropdown-menu[data-bs-popper] {
        top: 100%;
        left: -4rem;
    }
    #user-dropdown-menu {
        top: 3.2rem;
        border: 3px solid #2C80FA;
        width: 8rem;
    }
}

@media (max-width: 400px) {
    .user-name {
        display: none;
    }
    .navbar-brand {
        flex: 0 0 auto;
        margin: 0 0 0 3rem;
    }
    #user-dropdown-menu {
        top: 3.2rem;
        border: 3px solid #2C80FA;
        width: 7rem;
        /* left: -1px; */
    }
    #user-info {
        margin-right: 2.5rem;
    }
}

@media (max-width: 340px) {
    .header-image,
    .navbar-toggler {
        position: fixed;
    }
    #user-info {
        position: fixed;
        right: -1.5rem;
        top: 1.5rem;
        z-index: 1000;
    }
}

@media (max-width: 280px) {
    .header-image {
        display: none;
    }
}

@media (min-width: 550px) {
    .user-name-dropdown {
        display: none;
    }
}

@media (min-width: 992px) {
    .login-link {
        display: none;
    }
    #neet-menu {
        /* transform: translateX(-40%); */
        /* Adjust the alignment */
    }
    #login-menu {
        /* transform: translateX(-40%); */
        /* Adjust the alignment */
    }
}