/* =====================================
   VIDEO GALLERY CAROUSEL STYLES
   ===================================== */

/* Section Container */
.video-gallery-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.video-gallery-section .sec-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.video-gallery-section .subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

/* Filter Tabs */
.vg-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.vg-tab {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.vg-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.vg-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.vg-tab:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Carousel Wrapper */
.vg-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Grid Layout - Vertical 3 items */
.vg-grid-carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 500px;
  position: relative;
}

/* Video Item */
.vg-item {
  display: none;
  position: relative;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vg-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.vg-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.vg-item:hover::before {
  opacity: 0.6;
}

.vg-item:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* Play Icon */
.vg-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 2;
}

.vg-item:hover .vg-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
}

.vg-play-icon svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Navigation Buttons */
.vg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 24px;
  color: #333;
  outline: none;
}

.vg-nav:hover:not(.disabled) {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.vg-nav:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.vg-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.vg-nav-prev {
  left: 0;
}

.vg-nav-next {
  right: 0;
}

/* Pagination Dots */
.vg-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.vg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.vg-dot:hover {
  background: #2563eb;
  transform: scale(1.2);
}

.vg-dot.active {
  background: #2563eb;
  width: 30px;
  border-radius: 6px;
}

.vg-dot:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Video Modal */
.vg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vg-modal.active {
  opacity: 1;
}

.vg-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.vg-modal.active .vg-modal-content {
  transform: scale(1);
}

.vg-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  outline: none;
}

.vg-modal-close:hover {
  background: #2563eb;
  color: #fff;
  transform: rotate(90deg);
}

.vg-modal-close:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.vg-modal-title {
  color: #fff;
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
}

.vg-modal iframe {
  width: 100%;
  height: 500px;
  border-radius: 8px;
}

/* CTA Social Buttons */
.vg-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.vg-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
}

.vg-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.vg-cta-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.vg-cta-yt {
  background: #ff0000;
  color: #fff;
}

.vg-ico {
  display: flex;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-gallery-section {
    padding: 50px 0;
  }

  .vg-carousel-wrapper {
    padding: 0 50px;
  }

  .vg-nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .vg-item {
    height: 130px;
  }

  .vg-modal iframe {
    height: 350px;
  }

  .vg-tabs {
    gap: 8px;
  }

  .vg-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .vg-cta {
    flex-direction: column;
    align-items: center;
  }

  .vg-cta-btn {
    width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .vg-carousel-wrapper {
    padding: 0 40px;
  }

  .vg-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .vg-item {
    height: 110px;
  }

  .vg-play-icon svg {
    width: 50px;
    height: 50px;
  }

  .vg-modal-content {
    padding: 15px;
  }

  .vg-modal iframe {
    height: 250px;
  }

  .video-gallery-section .sec-title h2 {
    font-size: 28px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vg-item {
  animation: fadeInUp 0.4s ease forwards;
}

/* Accessibility */
.vg-item:focus-visible,
.vg-tab:focus-visible,
.vg-nav:focus-visible,
.vg-dot:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}