/* Phorte Home Testimonials - Snippet 234 CSS */

.ph-testimonials {
  padding: 80px 0;
  background-color: #ffffff;
  font-family: var(--e-global-typography-text-font-family, Poppins), sans-serif;
  color: #181818;
}

.ph-testimonials * {
  box-sizing: border-box;
}

.ph-testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

/* Setas de Navegação Circulares (Forçado !important) */
.ph-slider-controls {
  display: flex;
  gap: 12px;
}

.ph-slider-control {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(242, 61, 67, 0.3) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #f23d43 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.ph-slider-control:hover,
.ph-slider-control:focus {
  background-color: #f23d43 !important;
  background: #f23d43 !important;
  color: #ffffff !important;
  border-color: #f23d43 !important;
  box-shadow: 0 6px 16px rgba(242, 61, 67, 0.25) !important;
}

.ph-slider-control svg {
  width: 18px !important;
  height: 18px !important;
  color: inherit !important;
  stroke: currentColor !important;
}

/* Track de Vídeos (Forçado 1 Única Linha Horizontal) */
.ph-testimonials__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  margin-bottom: 64px !important;
  padding-bottom: 12px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.ph-testimonials__track::-webkit-scrollbar {
  display: none !important;
}

.ph-testimonial-card-video {
  flex: 0 0 calc(33.333% - 16px) !important;
  width: calc(33.333% - 16px) !important;
  min-width: 300px !important;
  max-width: 380px !important;
  scroll-snap-align: start !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 991px) {
  .ph-testimonial-card-video {
    flex: 0 0 calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    min-width: 280px !important;
  }
}

@media (max-width: 640px) {
  .ph-testimonial-card-video {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 260px !important;
  }
}

.ph-testimonial-video {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.ph-testimonial-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

/* Botão Play (Estático sem mover no hover) */
.ph-testimonial-video__play {
  position: relative;
  z-index: 2;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: #10b84a !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 8px 24px rgba(16, 184, 74, 0.4) !important;
  border: none !important;
  transform: none !important; /* Não move o botão no hover */
}

.ph-testimonial-video__play:hover {
  transform: none !important; /* Mantém estático no hover */
  background-color: #0ea240 !important;
}

.ph-testimonial-video__play svg {
  width: 22px !important;
  height: 22px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}

.ph-testimonial-video__duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
}

.ph-testimonial-video__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.ph-testimonial-video__caption strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.ph-testimonial-video__caption span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
}

.ph-testimonial-quote {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bloco Inferior: Depoimentos em Texto */
.ph-testimonials__written-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: #181818;
}

.ph-testimonials__written-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .ph-testimonials__written-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ph-testimonials__written-grid {
    grid-template-columns: 1fr;
  }
}

.ph-written-card {
  background-color: #f7f7f8;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  max-height: 280px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ph-written-card__quote-icon {
  color: #f23d43;
  margin-bottom: 12px;
}

.ph-written-card__quote-icon svg {
  fill: currentColor;
}

.ph-written-card__quote {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: #2c2c2c;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ph-written-card__author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
}

.ph-written-card__author strong {
  font-size: 15px;
  font-weight: 900;
  color: #181818;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-written-card__role {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f23d43;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
