This question has been asked in many different ways. Check out Dr. R.C Sproul’s response defining what the word “world” means and the different types of God’s love. This QA was is from the “R.C. Sproul: Questions and Answers #1” from the Ligonier Ministries channel.
Take note that the answer is in a short time constraint and may have explained it further for better understanding. Go to the “Ligonier Ministries” youtube channel and check out more from Dr. R.C. Sproul and Ligonier Ministries; Subscribe to their channel!
Also, visit their website @ https://www.ligonier.org/ for tons of learning materials available in a wide range of media platforms.