/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 5%;
    border-bottom: 1px solid #D2D2D7;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1D1D1F;
    font-size: 1.1rem;
    font-weight: 600;
}
.logo img {
    height: 45px;
    margin-right: 12px;
    border-radius: 50%;
    display: block;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.nav-links li {
    padding-left: 30px;
    position: relative;
}
.nav-links a {
    color: #1D1D1F;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #4A2E7A;
}
.dropdown .dropbtn {
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 12px;
    margin-top: 0px; /* Small visual gap, less likely to cause hover issues */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* Soft shadow for separation */
    border: 1px solid #D2D2D7;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.dropdown-content a {
    color: #1D1D1F;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-content a:hover {
    background-color: #F5F5F7;
    color: #4A2E7A;
}
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.dropbtn .fa-chevron-down {
    font-size: 0.75em;
    margin-left: 6px;
    transition: transform 0.3s ease;
}
.dropdown:hover .dropbtn .fa-chevron-down {
    transform: rotate(180deg);
}
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 2px; background-color: #1D1D1F; border-radius: 5px; transition: all 0.3s ease; }
@media (max-width: 992px) {
    .logo span { 
        display: none; 
    }
    .logo img { 
        height: 40px; 
        margin-right: 0;
        display: block;
        border-radius: 50%;
    }
    .logo a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 4px;
        min-width: 40px;
        min-height: 40px;
    }
    .navbar {
        padding: 8px 4%;
        position: relative;
    }
    .hamburger { 
        display: flex; 
    }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        background-color: white; 
        position: absolute; 
        top: 70px; 
        right: 0; 
        width: 100%; 
        text-align: center; 
        box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
        padding-bottom: 20px; 
    }
    .nav-links.active { 
        display: flex; 
    }
    .nav-links li { 
        padding: 15px 0; 
    }
    .dropdown-content { 
        position: static; 
        display: none; 
        box-shadow: none; 
        background-color: #f9f9f9; 
        width: 100%; 
        border: none; 
        margin-top: 15px; 
    }
    .dropdown:hover .dropdown-content { 
        display: none; 
    }
    .dropdown.active .dropdown-content { 
        display: block; 
    }
}
