/* ============================================================
   Infinite Testimonial Layout
   ============================================================ */
.grwp-layout-infinite-testimonial {
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}

.grwp-layout-infinite-testimonial.grwp-itc-dark {
  background: radial-gradient(circle at 20% 0%, rgba(99,102,241,.2), transparent 40%), #070a12;
  border: 1px solid rgba(129,140,248,.24);
}

.grwp-layout-infinite-testimonial.grwp-itc-light {
  background: radial-gradient(circle at 20% 0%, rgba(99,102,241,.08), transparent 40%), #f8fafc;
  border: 1px solid #dbeafe;
}

.grwp-layout-infinite-testimonial .grwp-itc-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.grwp-layout-infinite-testimonial .grwp-itc-row {
  display: flex;
  gap: 14px;
  width: max-content;
}

.grwp-layout-infinite-testimonial .grwp-itc-row-a {
  animation: grwp-itc-scroll-a 36s linear infinite;
  padding-top: 16px;
}

.grwp-layout-infinite-testimonial .grwp-itc-row-b {
  animation: grwp-itc-scroll-b 42s linear infinite;
  padding-bottom: 16px;
}

.grwp-layout-infinite-testimonial:hover .grwp-itc-row {
  animation-play-state: paused;
}

@keyframes grwp-itc-scroll-a {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes grwp-itc-scroll-b {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.grwp-layout-infinite-testimonial .grwp-itc-card {
  width: 320px;
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid;
  padding: 16px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-card {
  background: linear-gradient(145deg, rgba(15,23,42,.95), rgba(24,24,38,.92));
  border-color: rgba(148,163,184,.28);
  box-shadow: 0 8px 24px rgba(2,6,23,.35);
}

.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-card {
  background: #ffffff;
  border-color: #dbeafe;
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
}

.grwp-layout-infinite-testimonial .grwp-itc-card:hover {
  transform: translateY(-3px);
}

.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-card:hover {
  border-color: rgba(167,139,250,.6);
  box-shadow: 0 12px 28px rgba(2,6,23,.5);
}

.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(59,130,246,.18);
}

.grwp-layout-infinite-testimonial .grwp-itc-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}

.grwp-layout-infinite-testimonial .grwp-itc-text {
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 15px;
}

.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-text,
.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-author strong,
.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-biz-meta strong {
  color: #f8fafc;
}

.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-author small,
.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-biz-meta span {
  color: #cbd5e1;
}

.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-text,
.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-author strong,
.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-biz-meta strong {
  color: #0f172a;
}

.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-author small,
.grwp-layout-infinite-testimonial.grwp-itc-light .grwp-itc-biz-meta span {
  color: #475569;
}

.grwp-layout-infinite-testimonial .grwp-itc-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grwp-layout-infinite-testimonial .grwp-itc-author > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.grwp-layout-infinite-testimonial .grwp-itc-author small {
  font-size: 12px;
}

.grwp-layout-infinite-testimonial .grwp-itc-footer {
  margin-top: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.grwp-layout-infinite-testimonial .grwp-itc-footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.grwp-layout-infinite-testimonial .grwp-itc-footer .grwp-powered-by {
  text-align: right !important;
}

.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-footer .grwp-powered-by .grwp-powered-text {
  color: #ffffff !important;
}

.grwp-layout-infinite-testimonial.grwp-itc-dark .grwp-itc-footer .grwp-powered-by .grwp-brand-link {
  background: linear-gradient(135deg, #a855f7, #c084fc, #e9d5ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.grwp-layout-infinite-testimonial .grwp-itc-biz {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.grwp-layout-infinite-testimonial .grwp-itc-biz-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,.35);
}

.grwp-layout-infinite-testimonial .grwp-itc-biz-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  font-weight: 800;
}

.grwp-layout-infinite-testimonial .grwp-itc-biz-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grwp-layout-infinite-testimonial .grwp-itc-biz-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .grwp-layout-infinite-testimonial .grwp-itc-card {
    width: 260px !important;
  }

  .grwp-layout-infinite-testimonial .grwp-itc-footer {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .grwp-layout-infinite-testimonial .grwp-itc-biz {
    width: 100% !important;
  }

  .grwp-layout-infinite-testimonial .grwp-itc-footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .grwp-layout-infinite-testimonial .grwp-itc-footer .grwp-powered-by {
    text-align: right !important;
    font-size: 10px !important;
  }
}
