/* ================================================
   HOME TESTIMONIALS SECTION - FULL WIDTH
   INLINE VIDEO PLAYER (NO LIGHTBOX)
   ================================================ */

.pps-testimonials-section {
  padding: 10rem 0;
  background: #111111;
  color: #ffffff;
  font-family: "Montserrat", system-ui, sans-serif;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
}

.pps-testimonials-section.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.pps-testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HEADING ========== */

.pps-testimonials-heading {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.pps-testimonials-heading.testimonials-animate {
  opacity: 1;
  transform: translateY(0);
}

.pps-testimonials-heading-bg {
  position: static;
  display: block;
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  color: rgb(39, 39, 39);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  margin-bottom: -3.5rem;
  font-family: "BeyondInfinity", "Beyond Infinity", cursive;
  z-index: 0;
}

.pps-testimonials-heading-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.pps-testimonials-underline {
  width: 180px;
  height: 18px;
  margin: 1.5rem auto 22px;
  position: relative;
}

.pps-testimonials-underline::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 0;
  height: 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1418 125'><path d='M1412.29 72.17c-11.04-5.78-20.07-14.33-85.46-25.24-22.37-3.63-44.69-7.56-67.07-11.04-167.11-22.06-181.65-21.24-304.94-30.56C888.78 1.39 822.57 1.1 756.44 0c-46.63-.11-93.27 1.56-139.89 2.5C365.5 13.55 452.86 7.68 277.94 23.15 202.57 33.32 127.38 45.01 52.07 55.69c-11.23 2.41-22.63 4.17-33.71 7.22C6.1 66.33 5.64 66.19 3.89 67.79c-7.99 5.78-2.98 20.14 8.72 17.5 33.99-9.47 32.28-8.57 178.06-29.66 4.26 4.48 7.29 3.38 18.42 3.11 13.19-.32 26.38-.53 39.56-1.12 53.51-3.81 106.88-9.62 160.36-13.95 18.41-1.3 36.8-3.12 55.21-4.7 23.21-1.16 46.43-2.29 69.65-3.4 120.28-2.16 85.46-3.13 234.65-1.52 23.42.99 1.57-.18 125.72 6.9 96.61 8.88 200.92 27.94 295.42 46.12 40.87 7.91 116.67 23.2 156.31 36.78 3.81 1.05 8.28-.27 10.51-3.58 3.17-3.72 2.66-9.7-.78-13.13-3.25-3.12-8.14-3.44-12.18-5.08-17.89-5.85-44.19-12.09-63.67-16.56l26.16 3.28c23.02 3.13 46.28 3.92 69.34 6.75 10.8.96 25.43 1.81 34.34-4.39 2.26-1.54 4.86-2.75 6.21-5.27 2.76-4.59 1.13-11.06-3.59-13.68ZM925.4 23.77c37.64 1.4 153.99 10.85 196.64 14.94 45.95 5.51 91.89 11.03 137.76 17.19 24.25 4.77 74.13 11.21 101.72 18.14-11.87-1.15-23.77-1.97-35.65-3.06-133.46-15.9-266.8-33.02-400.47-47.21Z' fill='%23f36e36'></path></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.pps-testimonials-subtitle {
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ========== TESTIMONIALS ROW - FULL WIDTH, SCROLLS LEFT ========== */

.pps-testimonials-row-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 1rem 0;
  margin-bottom: 4rem;
}

.pps-testimonials-track {
  display: inline-flex;
  gap: 2rem;
  padding-left: 2rem;
  animation: pps-testimonials-scroll-ltr 60s linear infinite;
  will-change: transform;
}

.pps-testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes pps-testimonials-scroll-ltr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========== TESTIMONIAL CARD ========== */

.pps-testimonial-card {
  width: 340px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 24px;
  border: 1px solid rgba(243, 110, 54, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pps-testimonial-card:hover {
  width: 420px;
  height: 540px;
  z-index: 100;
  border-color: #f36e36;
  background: rgba(255, 255, 255, 0.08);
}

.pps-card-front {
  padding: 1.8rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pps-testimonial-card:hover .pps-card-front {
  opacity: 0;
  pointer-events: none;
}

.pps-card-expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.2s;
  display: flex;
  flex-direction: column;
}

.pps-testimonial-card:hover .pps-card-expanded {
  opacity: 1;
  pointer-events: all;
}

.pps-expanded-image {
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  border-bottom: 3px solid #f36e36;
}

.pps-expanded-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pps-expanded-content {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
}

.pps-expanded-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #f36e36;
}

.pps-expanded-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.pps-expanded-testimonial {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-style: italic;
}

.pps-testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.pps-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f36e36;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.pps-avatar-initial {
  display: block;
}

.pps-reviewer-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.pps-reviewer-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.pps-testimonial-short {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* Modern standard (add for future-proofing) */
  line-clamp: 3;
}


/* ========== VIDEO CAROUSEL - FULL WIDTH, SCROLLS RIGHT ========== */

.pps-videos-row-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 1rem 0;
}

.pps-videos-track {
  display: inline-flex;
  gap: 2rem;
  padding-left: 2rem;
  animation: pps-videos-scroll-rtl 50s linear infinite;
  will-change: transform;
}

.pps-videos-track:hover {
  animation-play-state: paused;
}

@keyframes pps-videos-scroll-rtl {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ========== VIDEO CARD - INLINE PLAYER ========== */

.pps-video-card {
  width: 380px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(243, 110, 54, 0.2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
}

.pps-video-card:hover {
  border-color: #f36e36;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(243, 110, 54, 0.25);
}

/* Expand when playing - 16:9 aspect ratio (original video size) */
.pps-video-card.playing {
  width: 640px;
  height: 360px;
  z-index: 1000;
  cursor: default;
  transform: translateY(0);
}

/* Thumbnail View */
.pps-video-thumbnail-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: all;
}

.pps-video-card.playing .pps-video-thumbnail-view {
  opacity: 0;
  pointer-events: none;
}

.pps-video-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1a1a;
}

.pps-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pps-video-card:hover .pps-video-thumb img {
  transform: scale(1.08);
}

.pps-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.pps-video-card:hover .pps-video-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.pps-video-play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f36e36;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  transition: all 0.3s ease;
  padding-left: 4px;
  box-shadow: 0 4px 15px rgba(243, 110, 54, 0.4);
}

.pps-video-card:hover .pps-video-play-icon {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(243, 110, 54, 0.6);
}

.pps-video-info {
  padding: 1.2rem;
}

.pps-video-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.3;
}

.pps-video-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Video Player View */
.pps-video-player-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pps-video-card.playing .pps-video-player-view {
  opacity: 1;
  pointer-events: all;
}

.pps-video-player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.pps-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Close Button */
.pps-video-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pps-video-close-btn:hover {
  background: #f36e36;
  border-color: #f36e36;
  transform: rotate(90deg) scale(1.1);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .pps-testimonials-section {
    padding: 6rem 0;
  }

  .pps-testimonials-heading-bg {
    font-size: 4rem;
    margin-bottom: -2rem;
  }

  .pps-testimonials-heading-title {
    font-size: 2.2rem;
  }

  .pps-testimonial-card {
    width: 300px;
  }

  .pps-testimonial-card:hover {
    width: 380px;
    height: 500px;
  }

  .pps-video-card {
    width: 340px;
    height: 300px;
  }

  /* Smaller expanded size on tablets */
  .pps-video-card.playing {
    width: 560px;
    height: 315px;
  }
}

@media (max-width: 768px) {
  .pps-video-card {
    width: 320px;
    height: 280px;
  }

  .pps-video-thumb {
    height: 180px;
  }

  /* Mobile: Expand to near full width */
  .pps-video-card.playing {
    width: 90vw;
    height: calc(90vw * 9 / 16);
    max-width: 500px;
    max-height: 281px;
  }
}

@media (max-width: 600px) {
  .pps-testimonials-section {
    padding: 5rem 0 3rem;
  }

  .pps-testimonials-container {
    padding: 0 1rem;
  }

  .pps-testimonials-heading-bg {
    font-size: 3rem;
    margin-bottom: -1.5rem;
  }

  .pps-testimonials-heading-title {
    font-size: 1.8rem;
  }

  .pps-testimonials-subtitle {
    font-size: 0.95rem;
  }

  .pps-testimonials-track,
  .pps-videos-track {
    padding-left: 1rem;
  }

  .pps-testimonial-card {
    width: 280px;
    height: 220px;
  }

  .pps-testimonial-card:hover {
    width: 320px;
    height: 480px;
  }

  .pps-video-card {
    width: 300px;
    height: 260px;
  }

  .pps-video-thumb {
    height: 170px;
  }

  .pps-video-card.playing {
    width: 95vw;
    height: calc(95vw * 9 / 16);
    max-width: 480px;
    max-height: 270px;
  }

  .pps-video-play-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .pps-video-close-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 400px) {
  .pps-testimonial-card {
    width: 260px;
  }

  .pps-testimonial-card:hover {
    width: 300px;
    height: 460px;
  }

  .pps-video-card {
    width: 280px;
    height: 240px;
  }

  .pps-video-card.playing {
    width: 98vw;
    height: calc(98vw * 9 / 16);
  }
}
