Why isn't my background image loading in my CSS file?

I’m having difficulty getting the background image to load on my webpage in the .home class. The following code is used to set the background image, but it is not working.

.home {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-image: url(../wordpress/img/online-training.jpg);
  background-size: cover;
  background-position: center;
}

The following code is used to display the .home class on the page.

<section class="home" id="home">
  <div class="content">
    <span>Take The Right Step <br>For Your Business</span>
    
    <p>Tax associate is a leading consultancy firm that provides simple, effective company registration and accounting solutions to enterprises in ireland</p>
    
    <a href="#" class="btn">Get Started</a>
  </div>
</section>

The issue may be caused by the incorrect image path. Make sure that the image file online-training.jpg is located in the correct directory relative to your CSS file. If the image file is located in a different directory than ../wordpress/img/, adjust the path accordingly.

If the image file path is correct, then the issue may be due to caching. Try clearing your browser cache or do a hard refresh (Ctrl + F5) to ensure that the updated background image is loaded.

If the issue still persists, check if there are any conflicting styles or errors in your CSS that may be affecting the background image.