/* Generic Horizontal Carousel Styles */
.h-carousel-wrapper {
  position: relative;
  padding: 0 30px; /* Add padding to make space for buttons */
}

.h-carousel-container {
  display: flex;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  /* Hide the scrollbar for a cleaner look */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.h-carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.h-carousel-item {
  /* Each card wrapper will snap to the start */
  scroll-snap-align: start;
  flex: 0 0 300px;
  margin-right: 20px;
}

.h-carousel-item:last-child {
  margin-right: 0;
}

/* Styles for the carousel buttons */
.h-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.h-carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.h-carousel-prev-btn {
  left: 0;
}

.h-carousel-next-btn {
  right: 0;
}

/* Custom styles for webinar cards inside carousel */
.webinar-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.webinar-card-link .card-img-top {
    height: 170px;
    object-fit: cover;
}
