.TestimonialsC {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--PMGR_32px) 0;
  gap: var(--PMGR_48px);
}

.TestMonP1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--PMGR_24px);
}

.TestMonP1T {
  color: var(--color_blue);
  font-size: var(--font_20px);
}

.TestMonP1P {
  font-size: var(--font_20px);
}

.TestMonP2 {
  display: flex;
  gap: var(--PMGR_24px);
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 var(--PMGR_12px);
}

.TestMonP2S1 {
  width: 0;
  max-width: 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 500ms ease;
}

.TestMonP2S1.visible {
  width: 30vw;
  max-width: 35vw;
  opacity: 1;
  transform: scale(1);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 177%;
  overflow: hidden;
  border-radius: var(--PMGR_12px);
  opacity: 0;
  transition: opacity 500ms ease;
}

.TestMonP2S1.visible .video-wrap {
  opacity: 1;
}

.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.center-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 6;
  font-weight: 700;
}

.center-btn img,
.hover-pause img {
  width: 3vw;
}

.hover-pause {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: none;
  z-index: 6;
  font-size: 14px;
  cursor: pointer;
}

.side-btn {
  position: absolute;
  bottom: -3%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 6;
  font-weight: 700;
}

.side-btn img {
  width: 4vw;
}

.side-left {
  left: 2%;
}

.side-right {
  right: 2%;
}

.close-btn {
  display: none;
}

.video-caption {
  font-size: var(--font_16px);
  color: #fff;
  text-align: center;
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  pointer-events: none;
}

.video-wrap.empty-state {
  background: #000;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.video-wrap.empty-state .video-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
  width: 90%;
}

.TestMonP2S2C {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--PMGR_24px);
}

.TestMonP2S2CT {
  font-size: var(--font_16px);
}

.TestMonP2S2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.TestMonP2S2L {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 35vw;
  gap: var(--PMGR_16px);
  transition: all 500ms ease;
}

.TestMonP2S2L img {
  width: 10vw;
  aspect-ratio: 3 / 2;
  border-radius: var(--PMGR_12px);
  cursor: pointer;
  box-sizing: border-box;
  border: 1px solid #b0d2ff;
  object-fit: cover;
  transition: all 500ms ease;
}

.TestMonP2S2L img.active {
  width: 20.6vw !important;
  aspect-ratio: 3 / 2;
  z-index: 30;
  object-fit: cover;
  transform: scale(1.05);
}

.TestMonP2S2L.slide-right {
  transform: translateX(20px);
  transition: all 500ms ease;
}

@media (max-width: 768px) {
  .TestMonP2 {
    padding: 0;
    gap: var(--PMGR_12px);
  }

  .TestMonP1P {
    text-align: center;
    width: 80vw;
  }

  .TestMonP2S2L {
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 4px;
    margin-left: -12px;
    /* Offset parent padding if any */
  }

  .TestMonP2S2L img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    object-fit: cover;
  }

  .TestMonP2S2L img.active {
    width: 100% !important;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transform: scale(1.02);
  }

  .TestMonP2S1.visible {
    width: 100vw;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    z-index: 1000;
    background: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .TestimonialsContainer.video-open {
    height: 100vw;
    transition: height 0.5s ease;
    overflow: hidden;
  }

  .TestMonP2S1.visible .video-wrap {
    padding-top: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    margin-top: 0;
  }

  .video-caption {
    top: 2%;
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .video-wrap.empty-state .video-caption {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    font-size: 1.1rem;
    width: 90%;
  }

  .center-btn img,
  .hover-pause img {
    width: 10vw;
  }

  .side-btn img {
    width: 12vw;
  }

  .side-btn {
    bottom: 3%;
    transform: translateY(0);
  }

  .side-left {
    left: 10%;
  }

  .side-right {
    right: 10%;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: auto;
    left: auto;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    padding: 6px;
    z-index: 1100;
    cursor: pointer;
  }

  .close-btn img {
    width: 9vw;
    display: block;
  }
}