.scrollable-container {
  position: relative;
}

.hero-nav-prev,
.hero-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Hidden by default */
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-left' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.hero-nav-next {
  right: 0;
  margin-right: 25px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.hero-nav-prev {
  margin-left: 25px;
}

.scrollable-container:hover .hero-nav-prev,
.scrollable-container:hover .hero-nav-next {
  display: block;
}

.scrollable-content {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
  scrollbar-width: none; /* for Firefox */
  -ms-overflow-style: none; /* for Internet Explorer and Edge */
}

.scrollable-content::-webkit-scrollbar {
  display: none; /* for Chrome, Safari, and Opera */
}
@media screen and (max-width: 767px) {
  .scrollable-container:hover .hero-nav-prev,
  .scrollable-container:hover .hero-nav-next {
    display: none;
  }
}
