/*******************
 * Carousel Styles *
 *******************/

.video-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
  margin: 0 auto;
}

.video-carousel-track {
  display: flex;
  flex-wrap: nowrap;

  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* display only 1 video on mobile */
.video-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 0.5rem;
  position: relative;
}

/* display 2 videos on tablet and PC */
@media screen and (min-width: 768px) {
  .video-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}


/** adjust the height of the card content **/
.video-slide .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* min-height: 450px; */
}

.video-slide .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.video-slide .card-content p {
  margin-top: auto;
}
/****************************************/

.video-slide video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.label {
  position: absolute;
  top: 10px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-btn.left {
  left: 15px;
}

.carousel-btn.right {
  right: 15px;
}

.carousel-dots {
  margin-top: 1rem;
}

.carousel-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots .dot.active {
  background-color: #333;
}

