/* Video Testimonial Slider - Clean Rebuild */

/* Brand Palette */
.video-testimonials-slider-wrapper {
  --vt-bg: #2D2E33;
  --vt-accent: #C23532;
  --vt-text: #FFF;
  background: var(--vt-bg);
  color: var(--vt-text);
  padding: 72px 0;
}

/* Header */
.video-testimonials-slider-wrapper .vt-head { 
  text-align: center; 
  margin: 0 0 40px; 
}

.video-testimonials-slider-wrapper .vt-title {
  margin: 0; 
  line-height: 1.1; 
  letter-spacing: .2px;
  font-size: clamp(28px, 4vw, 56px);
}

.video-testimonials-slider-wrapper .vt-sub {
  margin: 10px auto 0; 
  opacity: .85; 
  max-width: 820px;
  font-size: clamp(14px, 1.6vw, 18px);
}

/* Main Container - Simple 3-Video Layout */
.video-testimonials-slider-wrapper .vt-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Video Cards */
.video-testimonials-slider-wrapper .vt-video-card {
  transition: all 0.4s ease;
}

.video-testimonials-slider-wrapper .vt-frame {
  position: relative; 
  border-radius: 20px; 
  overflow: hidden; 
  width: 100%; 
  height: 0; 
  transition: all 0.4s ease;
  cursor: pointer;
}

.video-testimonials-slider-wrapper .vt-media {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%;
}

.video-testimonials-slider-wrapper .vt-poster { 
  border: 0; 
  background: transparent; 
  padding: 0; 
  cursor: pointer; 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  display: block;
  border-radius: 20px;
}

.video-testimonials-slider-wrapper .vt-poster img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  border-radius: inherit;
}

.video-testimonials-slider-wrapper .vt-play {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  display: flex; 
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.video-testimonials-slider-wrapper .vt-poster:hover .vt-play { 
  transform: scale(1.1); 
}

/* Text Overlay */
.video-testimonials-slider-wrapper .vt-meta {
  position: absolute; 
  left: 20px; 
  right: 20px; 
  bottom: 20px; 
  z-index: 3;
  transition: opacity 0.4s ease;
}

.video-testimonials-slider-wrapper .vt-name { 
  font-weight: 800; 
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
  margin-bottom: 4px;
}

.video-testimonials-slider-wrapper .vt-company { 
  opacity: .9; 
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

/* Side Videos (Previous/Next) */
.video-testimonials-slider-wrapper .vt-side {
  flex: 0 0 200px;
  opacity: 0.7;
  transition: all 0.4s ease;
}

.video-testimonials-slider-wrapper .vt-side .vt-frame {
  padding-bottom: 75%; /* 4:3 aspect ratio for smaller videos */
}

.video-testimonials-slider-wrapper .vt-side .vt-name {
  font-size: 14px;
}

.video-testimonials-slider-wrapper .vt-side .vt-company {
  font-size: 12px;
}

.video-testimonials-slider-wrapper .vt-side:hover {
  opacity: 0.9;
  transform: translateY(-5px);
}

/* Active Video (Center) */
.video-testimonials-slider-wrapper .vt-main {
  flex: 0 0 400px;
  opacity: 1;
}

.video-testimonials-slider-wrapper .vt-main .vt-frame {
  padding-bottom: 60%; /* Slightly taller for hero effect */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-testimonials-slider-wrapper .vt-main .vt-name {
  font-size: clamp(18px, 2.2vw, 24px);
}

.video-testimonials-slider-wrapper .vt-main .vt-company {
  font-size: clamp(14px, 1.4vw, 16px);
}

/* Navigation Controls */
.video-testimonials-slider-wrapper .vt-controls {
  margin-top: 30px; 
  display: flex; 
  gap: 14px; 
  justify-content: center;
}

.video-testimonials-slider-wrapper .vt-prev,
.video-testimonials-slider-wrapper .vt-next-btn {
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  border: none;
  background: var(--vt-accent); 
  color: #fff; 
  display: flex; 
  align-items: center;
  justify-content: center;
  cursor: pointer; 
  position: relative; 
  box-shadow: 0 6px 18px rgba(194,53,50,.35);
  transition: transform 0.2s ease;
}

.video-testimonials-slider-wrapper .vt-prev:hover,
.video-testimonials-slider-wrapper .vt-next-btn:hover {
  transform: scale(1.1);
}

.video-testimonials-slider-wrapper .vt-prev span,
.video-testimonials-slider-wrapper .vt-next-btn span { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
  clip: rect(1px,1px,1px,1px); 
}

.video-testimonials-slider-wrapper .vt-prev::before,
.video-testimonials-slider-wrapper .vt-next-btn::before {
  content: ''; 
  display: block; 
  width: 10px; 
  height: 10px;
  border-top: 2px solid #fff; 
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}

.video-testimonials-slider-wrapper .vt-next-btn::before { 
  transform: rotate(135deg); 
}

/* Modal Styles */
.vt-modal {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 1000;
  display: flex; 
  justify-content: center; 
  align-items: center;
  background-color: rgba(0,0,0,0.8);
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.vt-modal.is-open { 
  opacity: 1; 
  visibility: visible; 
}

.vt-modal-backdrop { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.8); 
}

.vt-modal-content {
  position: relative; 
  width: 90%; 
  max-width: 800px; 
  max-height: 90vh;
  background: #fff; 
  border-radius: 12px; 
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex; 
  flex-direction: column;
}

.vt-modal-close {
  position: absolute; 
  top: 15px; 
  right: 15px; 
  width: 40px; 
  height: 40px;
  background: rgba(0,0,0,0.7); 
  border: none; 
  cursor: pointer;
  display: flex; 
  justify-content: center; 
  align-items: center;
  border-radius: 50%;
  z-index: 10;
  color: white;
  transition: background-color 0.2s ease;
}

.vt-modal-close:hover { 
  background: rgba(0,0,0,0.9); 
}

.vt-modal-video {
  position: relative; 
  width: 100%; 
  height: 0; 
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.vt-modal-video iframe {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  border: none;
}

/* Hide video data script */
.vt-video-data {
  display: none !important;
}

/* Mobile Responsive - Single Video Only */
@media (max-width: 768px) {
  .video-testimonials-slider-wrapper .vt-container {
    justify-content: center;
    gap: 0;
    padding: 10px;
  }
  
  /* Hide side videos completely on mobile */
  .video-testimonials-slider-wrapper .vt-side {
    display: none;
  }
  
  /* Center video takes full width on mobile */
  .video-testimonials-slider-wrapper .vt-main {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
  }
  
  .video-testimonials-slider-wrapper .vt-main .vt-frame {
    padding-bottom: 56.25%; /* 16:9 aspect ratio on mobile */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  /* Ensure navigation controls are visible and centered */
  .video-testimonials-slider-wrapper .vt-controls {
    margin-top: 20px;
    justify-content: center;
  }
  
  /* Adjust text sizes for mobile */
  .video-testimonials-slider-wrapper .vt-main .vt-name {
    font-size: 18px;
  }
  
  .video-testimonials-slider-wrapper .vt-main .vt-company {
    font-size: 14px;
  }
}