.bgimage {
    background-image: url('https://www.intofilm.org/intofilm-production/scaledcropped/1096x548https%3A/s3-eu-west-1.amazonaws.com/images.cdn.filmclub.org/apollo-missions-image-1-national-geographic.jpg/apollo-missions-image-1-national-geographic.jpg'); /* Replace with your image URL */
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-80%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
  }
  
  .text-overlay h1 {
    font-size: 5em !important; /* Ensure the size is applied */
  }
  
  @media (max-width: 480px) {
    .text-overlay h1 {
      font-size: 2.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;
}
  