/* Video Elements Styling */
.video-slider-container {
  position: relative;
  margin: 20px auto;
  max-width: 100%;
  overflow: hidden;
}

.video-swiper {
  position: relative;
  padding-bottom: 30px; /* Space for pagination dots */
}

.video-swiper .swiper-pagination {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.video-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 5px;
}

.video-swiper .swiper-button-next,
.video-swiper .swiper-button-prev {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-swiper .swiper-button-next:after,
.video-swiper .swiper-button-prev:after {
  font-size: 18px;
}

.video-card-preview {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.video-card-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.video-preview-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.video-thumbnail {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.video-preview-container:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none; /* Hide the overlay */
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-play-overlay i {
  color: white;
  font-size: 3rem;
  opacity: 0.8;
  display: none; /* Hide the play icon */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-preview-container:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.4);
  display: none; /* Keep hidden on hover */
}

.video-preview-container:hover .video-play-overlay i {
  transform: scale(1.1);
  opacity: 1;
  display: none; /* Keep hidden on hover */
}

.video-preview-container.active {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.video-preview-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Fix for modal video grid */
#allVideosModal .modal-body {
  padding: 20px;
}

#allVideosModal .video-card {
  margin-bottom: 20px;
}

#allVideosModal .video-card .video-thumbnail {
  border-radius: 8px 8px 0 0;
}

/* Video modal scroll top button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1060;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-3px);
}
