/* Dropdown Container */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    top: 100%;
    /* Position directly below the parent link */
    left: 0;
    padding: 10px 0;
    border-top: 2px solid #1e9bd7;
    /* Accent color from homepage.css */
    border-radius: 0 0 4px 4px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #ffffff !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px !important;
    text-align: left;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #333;
    color: #1e9bd7 !important;
    padding-left: 20px;
    /* Slight indentation on hover */
}

/* Show the dropdown menu on hover */
.nav-item-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Mobile Sidebar Dropdown Styles */
.mobile-dropdown-container {
    padding-left: 20px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    width: 100%;
    margin-top: -10px;
    /* Pull closer to parent */
    margin-bottom: 10px;
    border-left: 2px solid rgba(30, 155, 215, 0.3);
    /* faint accent line */
}

.mobile-dropdown-container.active {
    display: flex;
}

.mobile-dropdown-item {
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 8px 0 !important;
    margin-bottom: 5px !important;
    color: #ccc !important;
    border-bottom: none !important;
}

.mobile-dropdown-item:hover {
    color: #1e9bd7 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}