/* Video Gallery Section */
.video-gallery {
  background-image: url('../media/images/facilities&amenities/13.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  scroll-margin-top: 68px;
}

/* Dark overlay for the background */
.video-gallery::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Very light dark overlay */
  backdrop-filter: blur(1px); /* Minimal blur effect */
  z-index: 0;
}

.video-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Modern pattern overlay */
.video-gallery .container {
  position: relative;
}

.video-gallery .container {
  position: relative;
}

/* Video Filters */
.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 12px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.video-filters .video-btn-filter {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  color: #333;
  font-size: 24px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  font-weight: 600;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-filters .video-btn-filter:hover {
  background: #f8f9fa;
  border-color: #008374;
  color: #008374;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-filters .video-btn-filter.active {
  background-color: #008374 !important;
  border-color: #008374 !important;
  color: white !important;
  box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
  transform: translateY(-1px);
}

/* Video Gallery Container */
.video-gallery-container {
  position: relative;
  margin-top: 20px;
}

.video-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2;
  pointer-events: none;
}

.video-navigation button {
  background: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.video-navigation button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-navigation button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.2);
}

.video-navigation button:hover::before {
  opacity: 1;
}

.video-navigation button i {
  color: #008374;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.video-navigation button:hover i {
  transform: scale(1.1);
}

.video-navigation button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.video-navigation button.disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Video Items */
.video-items-container {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Ensure section title and content are above the overlay */
.video-gallery h2,
.video-gallery .video-filters,
.video-gallery .row {
  position: relative;
  z-index: 1;
}

.video-gallery h2 {
  color: white;
}

.video-items {
  display: flex;
  transition: transform 0.3s ease;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -5px;
}

.video-item {
  display: block;
  padding: 5px;
  flex: 0 0 auto;
  width: 33.333%;
  max-width: 420px;
  margin: 0;
}

.video-item.hidden {
  display: none;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 1);
}

.video-title {
  font-size: 20px;
  color: white;
  margin-top: 18px;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 600;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.video-item:hover .video-title {
  color: #c1f5d1;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Mobile Responsive */
@media screen and (max-width: 767px) {
  .video-item {
    width: 100%;
    max-width: 100%;
    padding: 5px;
  }
  
  .video-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .video-items {
    gap: 5px;
  }

  .video-filters .video-btn-filter {
    font-size: 18px;
    padding: 8px 20px;
    margin: 6px;
    min-width: 140px;
  }

  .video-title {
    font-size: 18px;
    margin-top: 12px;
    margin-bottom: 6px;
  }
}

@media screen and (min-width: 768px) {
  .video-filters {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .video-filters .video-btn-filter {
    padding: 4px 10px;
    margin: 2px;
    font-size: 15px;
  }
}
