/* Background container setup */
.background-container {
    background-image: linear-gradient(rgba(14, 14, 19, 0.808), rgba(48, 51, 58, 0.6)), url('../img/Career/BGG.webp');
    background-size: cover;
    background-position: center;
    height: 60vh; /* Half of the page height */
    display: flex;
    justify-content: center; /* Center elements horizontally */
    align-items: center; /* Center elements vertically */
    padding-right: 30px;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Positioning and styling the image */
.background-container img {
    position: absolute; /* Position image absolutely inside container */
    left: 30px; /* Position from the left */
    top: 5%; /* Position from the top */
    transform: translateY(-50%); /* Center image vertically */
    width: 10%; /* Set width to 30% */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50px; /* Round corners */
}

/* Button container styling */
.buttons {
    display: flex;
    flex-direction: row; /* Arrange buttons horizontally */
    justify-content: center; /* Center buttons horizontally */
    gap: 20px; /* Space between buttons */
    position: absolute; /* Position buttons absolutely */
    bottom: 30%; /* Position buttons from bottom */
    transform: translateY(50%); /* Adjust for vertical centering */
}

/* Styling for individual buttons */
.btn {
    background-color: #60e0af;
    color: white;
    border: rgb(102, 97, 97);
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #79da8e;
}

/* Centered heading style */
h1 {
    position: absolute;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    font-weight: bold;
}
/* Create an animation effect for the images */

/* .animation {
    overflow: hidden;  
    width: 100%;  
    height: 300px;  
    position: relative;
  }
  
  .slider {
    display: flex; 
    width: 100%;
    height: 200px;
    animation: slide 10s linear infinite;  
  }
  
  .slider img {
  
    width: 100%;  
     
  } */
  .annnimation {
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Enable snap scrolling */
    height: 200px; /* Adjust height for smaller screens */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.annnimation::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.slider {
  width: 20%;
 height: 200px;
  /* height: 100px; */
    /* width: auto;  */
    /* Adjust width to fit the content */
    animation: none; /* Disable animation on mobile */
    display: flex; /* Display images in a row */
}

.slider img {
    width: auto; /* Maintain the natural size of images */
    flex: 0 0 80%; /* Each image takes up 80% of the container width */
    scroll-snap-align: center; /* Snap each image to the center */
    margin-right: 10px; /* Add spacing between images */
    object-fit: cover; /* Maintain aspect ratio */
}
  
  @keyframes slide {
    0% {
      transform: translateX(0); /* Start at the first image */
    }
    100% {
      transform: translateX(-400%); /* Slide through all images (negative width of 4 images) */
    }
  }
  @media (max-width: 500px) {
  
    .btn {
      font-size: 10px;
  
  }
    h1 {
      font-size: 1rem;
  }
  /* .animation {
    width: 400px;  
      height: 100px;  
    }
    .slider {
      width: 50%;
      height: 100px;
      animation: slide 10s linear infinite; 
    }
    .slider img {
      width: 50%;
    } */
    /* Responsive settings for mobile view */

  }
  /* Responsive styles for mobile */
/* Responsive styles for mobile */
@media (max-width: 500px) {
  /* Responsive styles for mobile */
@media (max-width: 500px) {
  .annnimation {
      overflow-x: auto; /* Enable horizontal scrolling */
      scroll-snap-type: x mandatory; /* Enable snap scrolling */
      height: 100px; /* Adjust height for smaller screens */
      -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
      scrollbar-width: none; /* Hide scrollbar for Firefox */
  }

  .annnimation::-webkit-scrollbar {
      display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
  }

  .slider {
    width: 50%;
    height: 100px;
      /* width: auto;  */
      /* Adjust width to fit the content */
      animation: none; /* Disable animation on mobile */
      display: flex; /* Display images in a row */
  }

  .slider img {
      width: auto; /* Maintain the natural size of images */
      flex: 0 0 80%; /* Each image takes up 80% of the container width */
      scroll-snap-align: center; /* Snap each image to the center */
      margin-right: 10px; /* Add spacing between images */
      object-fit: cover; /* Maintain aspect ratio */
  }
}

}
  

