nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #ffffff;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1c700742;
}
/* ------------------------------------- */
nav ul li {
    position: relative;
}

nav ul li ul {
    position: absolute;
    top: 100%;
    right: -20%;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
}

nav ul li:hover > ul {
    display: flex;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
}

nav ul li ul li a:hover {
    background-color: #f8f9fa; 
    color: #667eea;
}