/* Testimonial Video Section */
.testimonial-video-section {
  padding: 60px 140px;
  background-color: var(--color-bg-base);
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 60vh; */
}

.testimonial-video-container {
  width: 100%;
  /* max-width: 560px; */
  margin: 0 auto;
}

.testimonial-video-card {
  background-color: var(--color-bg-gray-light);
  border-radius: 20px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

/* .testimonial-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
} */
.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
/* Profile Picture */
.testimonial-video-profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 0.18px solid var(--Border-Border, #e0e0e0);
  background-color: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.testimonial-video-profile.profile-error,
.testimonial-video-profile:has(img[style*="display: none"]) {
  background-color: var(--color-bg-gray);
}

.testimonial-video-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.testimonial-video-profile-img[style*="display: none"],
.testimonial-video-profile-img:not([src]) {
  display: none !important;
}

/* Quote */
.testimonial-video-quote {
  text-align: center;
  width: 100%;
}

.testimonial-video-quote-text {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: var(--font-weight-regular);
  line-height: 120%;
  color: var(--color-text-primary-100);
  margin: 0;
  /* quotes: '"' '"'; */
  /* width: 720px; */
}
/* 
.testimonial-video-quote-text::before {
  content: open-quote;
}

.testimonial-video-quote-text::after {
  content: close-quote;
} */

/* Attribution */
.testimonial-video-attribution {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-video-name {
  font-family: var(--font-family);
  font-size: var(--font-size-h5-desktop);
  line-height: 110%;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary-100);
  margin: 0;
}

.testimonial-video-title {
  font-family: var(--font-family);
  font-size: var(--font-size-b1-desktop);
  line-height: 150%;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary-100);
  margin: 0;
}

/* Play Video Button */
.testimonial-video-play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-heading);
  color: var(--color-outline-button-text);
  border: none;
  border-radius: 62px;
  /* padding: 12px 20px; */
  font-family: var(--font-family);
  font-size: var(--font-size-b1-desktop);
  font-weight: var(--font-weight-regular);
  cursor: pointer;
  transition: all 0.3s ease;
  /* width: 180px;
  height: 56px; */
  padding: 8px 8px 8px 32px;
  /* min-width: 180px;
  
  margin-top: 4px; */
}

.testimonial-video-play-button:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.testimonial-video-play-button:active {
  transform: translateY(0);
}

.testimonial-video-play-text {
  color: var(--color-bg-base);
  white-space: nowrap;
}

.testimonial-video-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.testimonial-video-play-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video Lightbox Styles (if not already included) */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.video-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.video-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 10000;
  padding: 20px;
}

.video-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  transition: transform 0.3s ease;
}

.video-lightbox-close:hover {
  transform: scale(1.1);
}

.video-lightbox-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-lightbox-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .testimonial-video-section {
    padding: 60px 40px;
    min-height: auto;
  }

  .testimonial-video-card {
    padding: 48px 40px;
    gap: 24px;
  }

  .testimonial-video-quote-text {
    font-size: 28px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .testimonial-video-section {
    padding: 40px 24px;
  }

  .testimonial-video-container {
    max-width: 100%;
  }

  .testimonial-video-card {
    padding: 32px 24px;
    gap: 24px;
    border-radius: 16px;
  }

  .testimonial-video-profile {
    width: 100px;
    height: 100px;
  }

  .testimonial-video-quote-text {
    font-size: 20px;
    line-height: 130%;
  }

  .testimonial-video-play-button {
    padding: 8px 8px 8px 32px;
    /* min-width: 160px; */
    font-size: var(--font-size-b2-desktop);
  }

  .video-lightbox-content {
    width: 95%;
    max-width: 400px;
    padding: 10px;
  }

  .video-lightbox-close {
    top: -35px;
  }

  .video-lightbox-iframe-wrapper {
    padding-bottom: 177.78%; /* 9:16 vertical aspect ratio for mobile */
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .testimonial-video-card {
    padding: 40px 20px;
    gap: 32px;
  }

  .testimonial-video-profile {
    width: 100px;
    height: 100px;
  }

  .testimonial-video-quote-text {
    font-size: var(--font-size-h6-desktop);
    width: 100%;
  }

  .testimonial-video-play-button {
    padding: 8px 8px 8px 32px;
    min-width: 140px;
    gap: 6px;
  }

  .testimonial-video-play-icon {
    width: 36px;
    height: 36px;
  }
}
