/* ==========================================================================
   ASK Digital Agency - Feedback / YouTube Videos Section
   Reference Match: Centered FEEDBACK Pill + Seamless 3-Card Carousel
   ========================================================================== */

.video-testimonials-section {
  position: relative;
  background-color: #000000;
  padding: 80px 0 90px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feedback-main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* 1. Header Area: Centered Pill Title */
.feedback-header-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.feedback-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1.5px solid #98E209;
  color: #ffffff;
  padding: 8px 32px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(152, 226, 9, 0.12);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.video-testimonials-section.is-visible .feedback-pill-badge {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Carousel Container */
.feedback-carousel-container {
  position: relative;
  width: 100%;
  padding: 0 52px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.video-testimonials-section.is-visible .feedback-carousel-container {
  opacity: 1;
  transform: translateY(0);
}

.video-testimonials-swiper {
  width: 100%;
  overflow: hidden;
  padding: 12px 0 16px;
  cursor: grab;
}

.video-testimonials-swiper:active {
  cursor: grabbing;
}

/* 3. Video Card */
.feedback-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0d10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.feedback-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(152, 226, 9, 0.4);
  box-shadow: 0 16px 36px -5px rgba(0, 0, 0, 0.9), 0 0 24px rgba(152, 226, 9, 0.12);
}

/* 4. Video Facade Player Box (16:9) */
.feedback-video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.feedback-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.92);
}

.feedback-card:hover .feedback-video-poster {
  transform: scale(1.03);
  filter: brightness(1);
}

/* 5. Top YouTube Header Bar */
.feedback-yt-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.feedback-yt-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-yt-title-wrap {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.feedback-yt-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.feedback-yt-channel {
  font-size: 11px;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.feedback-yt-more {
  flex-shrink: 0;
  color: #ffffff;
  opacity: 0.85;
  display: flex;
  align-items: center;
}

/* 6. Centered Red Play Button */
.feedback-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yt-play-svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, filter 0.25s ease;
  display: block;
}

.feedback-card:hover .yt-play-svg {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 16px rgba(255, 0, 0, 0.5));
}

/* 7. Active Embedded Iframe */
.feedback-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 5;
}

/* 8. Navigation Buttons */
.feedback-arrow-btn {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid #98E209;
  color: #98E209;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 12px rgba(152, 226, 9, 0.2);
}

.feedback-arrow-prev {
  left: 12px;
}

.feedback-arrow-next {
  right: 12px;
}

.feedback-arrow-btn:hover:not(:disabled) {
  background: #98E209;
  color: #000000;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9), 0 0 20px rgba(152, 226, 9, 0.45);
}

.feedback-arrow-btn:disabled,
.feedback-arrow-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* 9. Pagination Indicators */
.feedback-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.feedback-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 5px;
  border-radius: 9999px;
  background: #383a42;
  opacity: 1;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-pagination .swiper-pagination-bullet-active {
  width: 38px;
  background: #98E209;
  box-shadow: 0 0 12px rgba(152, 226, 9, 0.55);
}

/* 10. Responsive Breakpoints */
@media (max-width: 1024px) {
  .feedback-carousel-container {
    padding: 0 44px;
  }
  .feedback-arrow-btn {
    width: 38px;
    height: 38px;
  }
  .feedback-arrow-prev {
    left: 4px;
  }
  .feedback-arrow-next {
    right: 4px;
  }
}

@media (max-width: 768px) {
  .video-testimonials-section {
    padding: 60px 0 70px 0;
  }
  .feedback-header-box {
    margin-bottom: 28px;
  }
  .feedback-carousel-container {
    padding: 0 36px;
  }
  .feedback-arrow-btn {
    width: 36px;
    height: 36px;
  }
  .feedback-arrow-prev {
    left: 0;
  }
  .feedback-arrow-next {
    right: 0;
  }
  .feedback-pagination {
    margin-top: 24px;
  }
  .feedback-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
  }
  .feedback-pagination .swiper-pagination-bullet-active {
    width: 30px;
  }
}

@media (max-width: 576px) {
  .video-testimonials-section {
    padding: 48px 0 56px 0;
  }
  .feedback-carousel-container {
    padding: 0 12px;
  }
  .feedback-arrow-btn {
    display: none; /* Rely on fluid touch swipe on mobile */
  }
  .feedback-pill-badge {
    padding: 6px 24px;
    font-size: 12px;
  }
  .feedback-yt-title {
    font-size: 11.5px;
  }
  .feedback-yt-channel {
    font-size: 10px;
  }
  .yt-play-svg {
    width: 48px;
    height: 34px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .feedback-pill-badge,
  .feedback-carousel-container,
  .feedback-card,
  .feedback-arrow-btn,
  .feedback-pagination .swiper-pagination-bullet {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
