.bgimage {
    background-image: url('https://images.squarespace-cdn.com/content/v1/5f9c4976896349619c5b3d7b/1705660633318-NUZTRL5W48EGODM2Q2J4/MKT_AxStation_HomepageBanner_3.jpg?format=2500w'); /* Replace with your image URL */
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-90%, -50%);
    color: white;
    text-align: center;
  }
  
  .text-overlay h1 {
    font-size: 4em !important; /* Ensure the size is applied */
  }
  
  @media (max-width: 480px) {
    .text-overlay h1 ,#s1{
      font-size: 1.5em !important; /* Ensure the size is applied */
    }
    i {
      font-size: smaller;
  }
  .d-flex{overflow-x: auto;}
    
  }

  /* Bootstrap Card Styles */
.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto; /* Enable horizontal scrolling if needed */
}

.card {
  flex: 1;
  width: 20%; /* Adjust width for all cards */
  min-width: 160px; /* Ensure a minimum width for smaller screens */
  margin: 10px; /* Margin for spacing */
  flex-shrink: 0; /* Prevent shrinking on smaller screens */
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); /* Translate on hover */ }
.card img {
  width: 100%;
  height: 250px; /* Adjust height for a better aspect ratio */
  object-fit: cover;
}

.card-body {
  padding: 15px;
}

.card-title {
  font-size: 1.2em;
  margin-bottom: 0;
}
  