.pts-tw {
  --pts-tw-columns: 3;
  --pts-tw-accent: #41A5BF;
  --pts-tw-border: #e9e7f2;
  --pts-tw-muted: #666;
  --pts-tw-card: #fff;
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}

.pts-tw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center
}

.pts-tw-toolbar input,
.pts-tw-toolbar select {
  min-height: 42px;
  border: 1px solid var(--pts-tw-border);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff
}

.pts-tw-search {
  flex: 1 1 240px
}

.pts-tw-grid {
  display: grid;
  grid-template-columns: repeat(var(--pts-tw-columns), minmax(0, 1fr));
  gap: 24px
}

.pts-tw-card {
  position: relative;
  background: var(--pts-tw-card);
  border: 1px solid var(--pts-tw-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(25, 20, 60, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box
}

.pts-tw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(25, 20, 60, .12);
  z-index: 3
}

.pts-tw-priority-featured,
.pts-tw-priority-high,
.pts-tw-priority-pinned {
  border-color: rgba(65, 165, 191, .35);
  box-shadow: 0 16px 42px rgba(65, 165, 191, .14)
}

.pts-tw-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--pts-tw-accent);
  border-radius: 999px;
  padding: 5px 10px
}

.pts-tw-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-right: 72px
}

.pts-tw-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto
}

.pts-tw-logo {
  max-width: 72px;
  max-height: 34px;
  object-fit: contain;
  margin-left: auto
}

.pts-tw-meta {
  min-width: 0
}

.pts-tw-name {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 3px
}

.pts-tw-role,
.pts-tw-source {
  font-size: 13px;
  color: var(--pts-tw-muted);
  margin: 0
}

.pts-tw-rating {
  display: inline-flex;
  gap: 2px;
  margin: 8px 0 12px
}

.pts-tw-star {
  font-size: 18px;
  line-height: 1
}

.pts-tw-star.is-filled {
  color: #ffb400
}

.pts-tw-star.is-empty {
  color: #d9d7e5
}

.pts-tw-copy {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  flex-grow: 1
}

.pts-tw-read-more {
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: var(--pts-tw-accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0
}

.pts-tw-read-more:focus,
.pts-tw-page:focus {
  outline: 2px solid var(--pts-tw-accent);
  outline-offset: 3px
}

.pts-tw-verified {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pts-tw-accent);
  color: #fff;
  font-size: 12px
}

.pts-tw-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap
}

.pts-tw-page {
  border: 1px solid var(--pts-tw-border);
  background: #fff;
  border-radius: 10px;
  min-width: 38px;
  height: 38px;
  cursor: pointer
}

.pts-tw-page.is-active {
  background: var(--pts-tw-accent);
  color: #fff;
  border-color: var(--pts-tw-accent)
}

.pts-tw-status {
  font-size: 14px;
  color: var(--pts-tw-muted);
  margin: 8px 0
}

.pts-tw-empty {
  grid-column: 1/-1;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--pts-tw-border);
  border-radius: 16px;
  color: var(--pts-tw-muted)
}

.pts-tw-layout-masonry .pts-tw-grid {
  columns: var(--pts-tw-columns);
  display: block
}

.pts-tw-layout-masonry .pts-tw-card {
  break-inside: avoid;
  margin-bottom: 24px
}

.pts-tw-layout-carousel .pts-tw-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-top: 12px;
  margin-top: -12px;
  padding-bottom: 12px
}

.pts-tw-layout-carousel .pts-tw-card {
  min-width: calc(100% / var(--pts-tw-columns) - 24px);
  scroll-snap-align: start
}

.pts-tw-layout-accordion .pts-tw-grid {
  grid-template-columns: 1fr
}

.pts-tw-layout-featured_list .pts-tw-card:first-child {
  grid-column: span 2;
  min-height: 100%
}

.pts-tw-layout-directory {
  display: grid;
  grid-template-columns: 280px 1fr
}

.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap
}

@media(max-width:1024px) {
  .pts-tw {
    --pts-tw-columns: 2
  }

  .pts-tw-layout-featured_list .pts-tw-card:first-child {
    grid-column: span 1
  }
}

@media(max-width:767px) {
  .pts-tw {
    --pts-tw-columns: 1
  }

  .pts-tw-toolbar {
    display: grid
  }

  .pts-tw-head {
    padding-right: 0;
    align-items: flex-start
  }

  .pts-tw-logo {
    margin-left: 0
  }

  .pts-tw-layout-carousel .pts-tw-card {
    min-width: calc(100% / var(--pts-tw-columns, 1) - 24px)
  }

  .pts-tw-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px
  }
}

/* ==========================================================================
   NEW PREMIUM FEATURED TESTIMONIAL LAYOUTS
   ========================================================================== */

.pts-tw-new-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.pts-tw-featured-section {
  width: 100%;
}

.pts-tw-regular-section {
  width: 100%;
}

.pts-tw-regular-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--pts-tw-border);
  padding-bottom: 12px;
}

.pts-tw-regular-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}

/* Premium Card V2 (Used in new layouts) */
.pts-tw-card-v2 {
  position: relative;
  background: var(--pts-tw-card);
  border: 1px solid var(--pts-tw-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(25, 20, 60, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
}

.pts-tw-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(25, 20, 60, 0.08);
  border-color: rgba(65, 165, 191, 0.2);
  z-index: 3;
}

.pts-tw-card-featured {
  border-color: rgba(65, 165, 191, 0.25);
  box-shadow: 0 12px 30px rgba(65, 165, 191, 0.06);
}

/* Badge styling */
.pts-tw-featured-badge {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--pts-tw-accent);
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 10;
  letter-spacing: 0.5px;
}

.badge-pos-top_left {
  top: 16px;
  left: 16px;
}

.badge-pos-top_right {
  top: 16px;
  right: 16px;
}

.badge-pos-bottom_left {
  bottom: 16px;
  left: 16px;
}

.badge-pos-bottom_right {
  bottom: 16px;
  right: 16px;
}

/* Stars rating */
.pts-tw-card-stars {
  display: flex;
  margin-bottom: 12px;
}

/* Quote Icon in body */
.pts-tw-card-body {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pts-tw-quote-icon {
  color: rgba(65, 165, 191, 0.08);
  display: block;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

/* Quote Icon Positions */
.pts-tw-quote-icon.position-above_content {
  display: block;
  margin-bottom: 12px;
}

.pts-tw-quote-icon.position-before_content {
  float: left;
  margin-right: 12px;
  margin-bottom: 4px;
  line-height: 1;
}

.pts-tw-quote-icon.position-beside_content {
  margin-bottom: 0;
}

/* Watermark Quote placement */
.pts-tw-quote-icon.position-background {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.08;
  pointer-events: none;
  margin: 0;
  z-index: 1;
}

/* Side layout for beside content option */
.pts-tw-card-body:has(.position-beside_content),
.pts-tw-card:has(.position-beside_content) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.pts-tw-card-body:has(.position-beside_content) .pts-tw-quote-icon.position-beside_content,
.pts-tw-card:has(.position-beside_content) .pts-tw-quote-icon.position-beside_content {
  flex-shrink: 0;
  margin-bottom: 0;
}

.pts-tw-card-body:has(.position-beside_content) .pts-tw-copy,
.pts-tw-card:has(.position-beside_content) .pts-tw-copy {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.pts-tw-card-body:has(.position-beside_content) .pts-tw-read-more,
.pts-tw-card:has(.position-beside_content) .pts-tw-read-more {
  width: 100%;
}

.pts-tw-card-v2 .pts-tw-copy {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a68;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pts-tw-card-v2 .pts-tw-read-more {
  align-self: start;
}

/* Client identity flex container */
.pts-tw-client-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(25, 20, 60, 0.04);
  padding-top: 16px;
}

.pts-tw-client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pts-tw-client-details {
  flex-grow: 1;
  min-width: 0;
}

.pts-tw-client-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pts-tw-verified-check {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  margin-left: 4px;
  vertical-align: middle;
}

.pts-tw-client-role {
  display: block;
  font-size: 12px;
  color: #7a7a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pts-tw-client-logo-wrapper {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pts-tw-client-logo {
  max-width: 60px;
  max-height: 28px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.pts-tw-client-logo:hover {
  opacity: 1;
}

/* Shuffle Button styling */
.pts-tw-shuffle-wrapper {
  display: flex;
}

.pts-tw-shuffle-wrapper.align-left {
  justify-content: flex-start;
}

.pts-tw-shuffle-wrapper.align-center {
  justify-content: center;
}

.pts-tw-shuffle-wrapper.align-right {
  justify-content: flex-end;
}

.pts-tw-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pts-tw-accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(65, 165, 191, 0.2);
  transition: all 0.2s ease;
}

.pts-tw-shuffle-btn:hover {
  background: #348499;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(65, 165, 191, 0.3);
}

.pts-tw-shuffle-icon {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.pts-tw-shuffle-btn:hover .pts-tw-shuffle-icon {
  transform: rotate(180deg);
}

/* Grids / Lists inside regular section */
.pts-tw-regular-grid {
  display: grid;
  grid-template-columns: repeat(var(--pts-tw-columns, 3), minmax(0, 1fr));
  gap: 24px;
}

/* 1. Featured Hero + Card Grid */
.pts-tw-hero-style-clean .pts-tw-card-featured {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.pts-tw-hero-style-clean .pts-tw-card-featured .pts-tw-copy {
  font-size: 22px;
  line-height: 1.5;
  color: #1a1a2e;
}

.pts-tw-hero-style-clean .pts-tw-card-featured .pts-tw-client-identity {
  border-top: none;
}

/* 2. Top Carousel Spotlight */
.pts-tw-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pts-tw-carousel-track-container {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  margin: -12px 0;
}

.pts-tw-carousel-track {
  display: flex;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

.pts-tw-carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
}

.pts-tw-carousel-slide .pts-tw-card-v2 {
  width: 100%;
  flex-grow: 1;
}

.pts-tw-carousel-prev,
.pts-tw-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--pts-tw-border);
  box-shadow: 0 4px 12px rgba(25, 20, 60, 0.08);
  font-size: 20px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  color: var(--pts-tw-accent);
  transition: all 0.2s ease;
  user-select: none;
}

.pts-tw-carousel-prev:hover,
.pts-tw-carousel-next:hover {
  background: var(--pts-tw-accent);
  color: #fff;
  border-color: var(--pts-tw-accent);
}

.pts-tw-carousel-prev {
  left: -20px;
}

.pts-tw-carousel-next {
  right: -20px;
}

.pts-tw-carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.pts-tw-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pts-tw-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.pts-tw-carousel-dot.is-active {
  background: var(--pts-tw-accent);
  transform: scale(1.3);
}

/* 3. Split Highlight + Masonry */
.pts-tw-split-layout {
  display: flex;
  background: var(--pts-tw-card);
  border: 1px solid var(--pts-tw-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(25, 20, 60, 0.05);
  margin-bottom: 30px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pts-tw-split-layout:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(25, 20, 60, 0.08);
  border-color: rgba(65, 165, 191, 0.2);
  z-index: 3;
}

.pts-tw-split-content .pts-tw-card-v2:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.pts-tw-split-content {
  flex: 1 1 50%;
  box-sizing: border-box;
}

.pts-tw-split-content .pts-tw-card-featured {
  border: none;
  box-shadow: none;
  height: 100%;
  padding: 40px;
  background: transparent;
}

.pts-tw-split-media {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

/* Split Ratio Variations */
.pts-tw-split-ratio-40-60 .pts-tw-split-content {
  flex-basis: 40%;
}

.pts-tw-split-ratio-40-60 .pts-tw-split-media {
  flex-basis: 60%;
}

.pts-tw-split-ratio-60-40 .pts-tw-split-content {
  flex-basis: 60%;
}

.pts-tw-split-ratio-60-40 .pts-tw-split-media {
  flex-basis: 40%;
}

.pts-tw-split-ratio-30-70 .pts-tw-split-content {
  flex-basis: 30%;
}

.pts-tw-split-ratio-30-70 .pts-tw-split-media {
  flex-basis: 70%;
}

.pts-tw-split-ratio-70-30 .pts-tw-split-content {
  flex-basis: 70%;
}

.pts-tw-split-ratio-70-30 .pts-tw-split-media {
  flex-basis: 30%;
}

.pts-tw-regular-masonry {
  columns: var(--pts-tw-columns, 3);
  column-gap: 24px;
  display: block;
  width: 100%;
}

.pts-tw-regular-masonry .pts-tw-card-v2 {
  break-inside: avoid;
  margin-bottom: 24px;
  display: inline-flex;
  width: 100%;
}

/* 4. Large Quote Banner + Compact Cards */
.pts-tw-quote-banner {
  position: relative;
  background: var(--pts-tw-accent);
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(65, 165, 191, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pts-tw-quote-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(65, 165, 191, 0.25);
  z-index: 3;
}

.pts-tw-banner-quote-icon {
  font-family: serif;
  font-size: 80px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  position: absolute;
  top: 24px;
  left: 24px;
}

.pts-tw-banner-stars {
  margin-bottom: 16px;
}

.pts-tw-banner-stars .pts-tw-star.is-filled {
  color: #ffb400;
}

.pts-tw-banner-stars .pts-tw-star.is-empty {
  color: rgba(255, 255, 255, 0.3);
}

.pts-tw-quote-banner .pts-tw-copy {
  font-size: 20px;
  line-height: 1.55;
  color: #fff;
  margin-bottom: 24px;
}

.pts-tw-quote-banner .pts-tw-read-more {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}

.pts-tw-quote-banner .pts-tw-client-name {
  color: #fff;
}

.pts-tw-quote-banner .pts-tw-client-role {
  color: rgba(255, 255, 255, 0.7);
}

.pts-tw-quote-banner .pts-tw-client-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Compact card styles inside quote compact */
.pts-testimonials--quote-banner-compact .pts-tw-card-v2 {
  padding: 16px 20px;
}

.pts-testimonials--quote-banner-compact .pts-tw-card-v2 .pts-tw-copy {
  font-size: 13.5px;
  margin-bottom: 12px;
}

.pts-testimonials--quote-banner-compact .pts-tw-client-identity {
  padding-top: 12px;
}

/* 5. Dual Featured Cards + Shuffle Rail */
.pts-tw-dual-featured-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pts-tw-regular-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding-top: 12px;
  margin-top: -12px;
  padding-bottom: 16px;
}

.pts-tw-regular-rail::-webkit-scrollbar {
  height: 6px;
}

.pts-tw-regular-rail::-webkit-scrollbar-track {
  background: rgba(25, 20, 60, 0.03);
  border-radius: 99px;
}

.pts-tw-regular-rail::-webkit-scrollbar-thumb {
  background: var(--pts-tw-border);
  border-radius: 99px;
}

.pts-tw-regular-rail .pts-tw-card-v2 {
  flex: 0 0 calc(100% / var(--pts-tw-columns, 3) - (24px * (var(--pts-tw-columns, 3) - 1) / var(--pts-tw-columns, 3)));
  scroll-snap-align: start;
}

/* 6. Tabbed Featured Strip + Grid */
.pts-tw-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pts-tw-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pts-tw-tab-btn {
  background: #f3f2f7;
  color: #4a4a68;
  border: 1px solid var(--pts-tw-border);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pts-tw-tab-btn:hover {
  background: #eae9f2;
}

.pts-tw-tab-btn.is-active {
  background: var(--pts-tw-accent);
  color: #fff;
  border-color: var(--pts-tw-accent);
}

.pts-tw-tab-card-wrapper {
  animation: pts-fade-in 0.3s ease;
}

@keyframes pts-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7. Center Spotlight + Horizontal Scroll */
.pts-tw-center-spotlight {
  text-align: center;
}

.pts-tw-center-spotlight .pts-tw-card-v2 {
  margin: 0 auto;
}

.pts-tw-regular-horizontal {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding-top: 12px;
  margin-top: -12px;
  padding-bottom: 16px;
}

.pts-tw-regular-horizontal::-webkit-scrollbar {
  height: 6px;
}

.pts-tw-regular-horizontal::-webkit-scrollbar-thumb {
  background: var(--pts-tw-border);
  border-radius: 99px;
}

.pts-tw-regular-horizontal .pts-tw-card-v2 {
  flex: 0 0 calc(100% / var(--pts-tw-columns, 3) - (24px * (var(--pts-tw-columns, 3) - 1) / var(--pts-tw-columns, 3)));
  scroll-snap-align: start;
}

/* 8. Editorial Stack + Shuffle Deck */
.pts-tw-editorial-deck-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto 50px auto;
  height: 380px;
}

.pts-tw-deck-counter {
  position: absolute;
  top: -24px;
  right: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pts-tw-muted);
}

.pts-tw-editorial-deck {
  position: relative;
  width: 100%;
  height: 100%;
}

.pts-tw-deck-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.45s ease, z-index 0.45s;
}

.pts-tw-deck-slide .pts-tw-card-v2 {
  height: 100%;
}

/* Micro-animations / transitions for shuffling */
.pts-tw-shuffling {
  animation: pts-shuffle-out 0.25s ease forwards;
}

@keyframes pts-shuffle-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  100% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

.pts-tw-shuffled {
  animation: pts-shuffle-in 0.25s ease forwards;
}

@keyframes pts-shuffle-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile Logo stacking behaviors */
.pts-tw-client-identity.mobile-behavior-stacked {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Two-layer spotlight card back layer positioning and transition */
.pts-tw-layered-card-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  --pts-tw-back-x: 10px;
  --pts-tw-back-y: 10px;
}

.pts-tw-card-back-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transform: translate(var(--pts-tw-back-x), var(--pts-tw-back-y));
  background: rgba(65, 165, 191, 0.1);
  border: 1px solid rgba(65, 165, 191, 0.2);
  border-radius: 16px;
  opacity: 0.5;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  box-sizing: border-box;
}

.pts-tw-layered-card-wrapper .pts-tw-card-featured,
.pts-tw-layered-card-wrapper .pts-tw-card-v2 {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Client Identity Logo Layout Alignments */
.pts-tw-client-identity.logo-align-left .pts-tw-client-logo-wrapper {
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

.pts-tw-client-identity.logo-align-center .pts-tw-client-logo-wrapper {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.pts-tw-client-identity.logo-align-right .pts-tw-client-logo-wrapper {
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

/* Responsiveness overrides */
@media (max-width: 1024px) {
  .pts-tw-regular-grid {
    grid-template-columns: repeat(var(--pts-tw-columns, 2), minmax(0, 1fr));
  }

  .pts-tw-regular-rail .pts-tw-card-v2,
  .pts-tw-regular-horizontal .pts-tw-card-v2 {
    flex: 0 0 calc(100% / var(--pts-tw-columns, 2) - (24px * (var(--pts-tw-columns, 2) - 1) / var(--pts-tw-columns, 2)));
  }

  .pts-tw-carousel-prev {
    left: -10px;
  }

  .pts-tw-carousel-next {
    right: -10px;
  }
}

@media (max-width: 767px) {
  .pts-tw-regular-grid {
    grid-template-columns: repeat(var(--pts-tw-columns, 1), minmax(0, 1fr));
  }

  .pts-tw-regular-rail .pts-tw-card-v2,
  .pts-tw-regular-horizontal .pts-tw-card-v2 {
    flex: 0 0 calc(100% / var(--pts-tw-columns, 1) - (24px * (var(--pts-tw-columns, 1) - 1) / var(--pts-tw-columns, 1)));
  }

  .pts-tw-split-layout {
    flex-direction: column !important;
  }

  .pts-tw-split-media {
    min-height: 200px;
    flex-basis: auto;
  }

  .pts-tw-split-content {
    flex-basis: auto;
  }

  .pts-tw-split-content .pts-tw-card-featured {
    padding: 24px;
  }

  .pts-tw-dual-featured-wrapper {
    grid-template-columns: 1fr;
  }

  .pts-tw-editorial-deck-container {
    height: auto;
    max-height: none;
  }

  .pts-tw-editorial-deck {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
  }

  .pts-tw-deck-slide {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    z-index: auto !important;
  }

  .pts-tw-deck-counter {
    display: none !important;
  }

  .pts-tw-quote-banner {
    padding: 24px;
  }

  .pts-tw-client-identity.mobile-behavior-stacked {
    flex-direction: column;
    align-items: flex-start;
  }

  .pts-tw-client-identity.mobile-behavior-stacked .pts-tw-client-logo-wrapper {
    margin-left: 0;
    margin-top: 10px;
    order: -1;
  }

  .pts-tw-client-identity.mobile-behavior-inline {
    flex-direction: row;
    align-items: center;
  }

  .pts-tw-carousel-prev,
  .pts-tw-carousel-next {
    display: none !important;
  }
}

/* Cards with logo popping out background styles */
.pts-tw-card.pts-tw-has-logo,
.pts-tw-card-v2.pts-tw-has-logo {
  background: #f7f6fd;
  background: color-mix(in srgb, var(--pts-tw-accent) 3%, var(--pts-tw-card));
  border-color: color-mix(in srgb, var(--pts-tw-accent) 15%, var(--pts-tw-border));
}

.pts-tw-quote-banner.pts-tw-has-logo {
  background: linear-gradient(135deg, var(--pts-tw-accent) 0%, color-mix(in srgb, #000 15%, var(--pts-tw-accent)) 100%);
}

/* ==========================================================================
   3D CUBE ROTATION SHUFFLE ANIMATION
   ========================================================================== */

.pts-tw-cube-scene {
  perspective: 1200px;
  position: relative;
  overflow: visible !important;
  box-sizing: border-box;
  z-index: 1;
  transition: height var(--cube-duration, 600ms) var(--cube-easing, ease-in-out);
  transition-delay: var(--cube-delay, 0ms);
}

.pts-tw-cube-scene.pts-tw-cube-animating {
  z-index: 10;
}


.pts-tw-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--cube-duration, 600ms) var(--cube-easing, ease-in-out);
  transition-delay: var(--cube-delay, 0ms);
}

.pts-tw-cube-face {
  position: absolute !important;
  width: 100%;
  height: 100%;
  backface-visibility: hidden !important;
  margin: 0 !important;
  top: 0 !important;
  left: 0 !important;
  box-sizing: border-box;
  z-index: 2;
  transition: none !important;
}

/* Individual face orientations */
.pts-tw-cube-face-front {
  transform: rotateY(0deg) translateZ(var(--cube-translate-z-front, 0px)) !important;
}

.pts-tw-cube-face-back {
  transform: rotateY(180deg) translateZ(var(--cube-translate-z-target, 0px)) !important;
}

.pts-tw-cube-face-top {
  transform: rotateX(90deg) translateZ(var(--cube-translate-z-target, 0px)) !important;
}

.pts-tw-cube-face-bottom {
  transform: rotateX(-90deg) translateZ(var(--cube-translate-z-target, 0px)) !important;
}

.pts-tw-cube-face-left {
  transform: rotateY(-90deg) translateZ(var(--cube-translate-z-target, 0px)) !important;
}

.pts-tw-cube-face-right {
  transform: rotateY(90deg) translateZ(var(--cube-translate-z-target, 0px)) !important;
}

/* Helper to completely disable transitions during DOM swaps */
.pts-tw-no-transition,
.pts-tw-no-transition * {
  transition: none !important;
}

/* ==========================================================================
   HIGHLIGHTED TESTIMONIALS STYLING
   ========================================================================== */

/* Base container modifications for highlighted cards */
.pts-tw-highlighted {
  position: relative;
}

/* Highlight Icon styling */
.pts-tw-highlight-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #ffb400;
  /* Star gold default */
  fill: #ffb400;
}

.pts-tw-highlight-icon-wrapper i {
  font-size: 24px;
}

.pts-tw-highlight-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

/* Highlighted Badge styling */
.pts-tw-highlighted-badge {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 10;
  color: #fff;
  background-color: #ff4a5a;
  /* Default highlight red badge */
}

/* Position mapping matching the premium badge */
.pts-tw-highlighted-badge.badge-pos-top_left {
  top: 16px;
  left: 16px;
}

.pts-tw-highlighted-badge.badge-pos-top_right {
  top: 16px;
  right: 16px;
}

.pts-tw-highlighted-badge.badge-pos-bottom_left {
  bottom: 16px;
  left: 16px;
}

.pts-tw-highlighted-badge.badge-pos-bottom_right {
  bottom: 16px;
  right: 16px;
}

/* Default visual standouts for Highlighted Regular Testimonials */
.pts-tw-card.pts-tw-highlighted-regular,
.pts-tw-card-v2.pts-tw-highlighted-regular,
.pts-tw-screenshot-card.pts-tw-highlighted-regular {
  border-color: rgba(255, 180, 0, 0.4);
  box-shadow: 0 16px 36px rgba(255, 180, 0, 0.1);
}

/* Default visual standouts for Highlighted Featured Testimonials */
.pts-tw-card.pts-tw-highlighted-featured,
.pts-tw-card-v2.pts-tw-highlighted-featured,
.pts-tw-screenshot-card.pts-tw-highlighted-featured {
  border-color: rgba(255, 74, 90, 0.4);
  box-shadow: 0 16px 36px rgba(255, 74, 90, 0.1);
}

/* ==========================================================================
   9. SPLIT FEATURED/REGULAR CAROUSEL GRID LAYOUT
   ========================================================================== */
.pts-testimonials--split_carousel_grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.pts-tw-featured-title,
.pts-tw-regular-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--pts-tw-title, #2c3e50);
}

/* Screenshot card premium layout */
.pts-tw-screenshot-card {
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f2f6;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.pts-tw-screenshot-card.pts-tw-hover-lift:hover {
  transform: translateY(-5px);
}

.pts-tw-screenshot-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.pts-tw-screenshot-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  flex-shrink: 0;
}

.pts-tw-screenshot-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e1e4e8;
  margin-right: 16px;
  flex-shrink: 0;
}

.pts-tw-screenshot-header-meta {
  display: flex;
  flex-direction: column;
}

.pts-tw-screenshot-header-meta .pts-tw-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pts-tw-screenshot-header-meta .pts-tw-role {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.pts-tw-screenshot-rating-stars {
  margin-bottom: 15px;
}

.pts-tw-screenshot-rating-stars .pts-tw-stars {
  display: flex;
  gap: 4px;
}

.pts-tw-screenshot-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pts-tw-screenshot-body .pts-tw-copy {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 12px;
}

.pts-tw-screenshot-body .pts-tw-read-more {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pts-tw-accent, #41A5BF);
  cursor: pointer;
  text-align: left;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.pts-tw-screenshot-body .pts-tw-read-more:hover {
  opacity: 0.8;
}

/* Carousel layouts & responsiveness */
.pts-tw-screenshot-carousel {
  position: relative;
  overflow: visible;
  padding: 0 40px;
  /* Padding for arrows */
}

.pts-tw-screenshot-carousel .pts-tw-carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: 0 -12px;
  /* Negative margin for card gutter */
}

/* Featured carousel slides */
.pts-tw-featured-carousel .pts-tw-carousel-slide {
  flex: 0 0 calc(100% / var(--feat-carousel-columns, 1));
  min-width: calc(100% / var(--feat-carousel-columns, 1));
  max-width: calc(100% / var(--feat-carousel-columns, 1));
  padding: 0 12px;
  /* Padding for gutter */
  box-sizing: border-box;
}

/* Regular carousel columns & stacks */
.pts-tw-regular-carousel .pts-tw-carousel-col {
  flex: 0 0 calc(100% / var(--reg-carousel-columns, 3));
  min-width: calc(100% / var(--reg-carousel-columns, 3));
  max-width: calc(100% / var(--reg-carousel-columns, 3));
  padding: 0 12px;
  /* Padding for gutter */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Space between vertical rows */
}

/* Arrows position */
.pts-tw-screenshot-carousel .pts-tw-carousel-prev,
.pts-tw-screenshot-carousel .pts-tw-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #f1f2f6;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  color: #2c3e50;
  padding: 0;
  line-height: 1;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-prev {
  left: 0;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-next {
  right: 0;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-prev:hover,
.pts-tw-screenshot-carousel .pts-tw-carousel-next:hover {
  background: var(--pts-tw-accent, #41A5BF);
  color: #ffffff;
  border-color: var(--pts-tw-accent, #41A5BF);
}

/* Dots position */
.pts-tw-screenshot-carousel .pts-tw-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d8e0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-dot.is-active {
  background: var(--pts-tw-accent, #41A5BF);
  transform: scale(1.2);
}

/* Responsiveness overrides for the split carousel grid */
@media (max-width: 767px) {
  .pts-tw-screenshot-carousel {
    padding: 0 16px;
  }

  .pts-tw-screenshot-carousel .pts-tw-carousel-prev,
  .pts-tw-screenshot-carousel .pts-tw-carousel-next {
    display: none !important;
  }
}

/* ==========================================================================
   10. PAGINATION STYLING (DOTS & NUMBERS)
   ========================================================================== */
.pts-tw-regular-pagination-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Dots pagination style */
.pts-tw-pagination-style-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.pts-tw-pagination-style-dots .pts-tw-pagination-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d8e0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.pts-tw-pagination-style-dots .pts-tw-pagination-item.is-active {
  background-color: var(--pts-tw-accent, #41A5BF);
  transform: scale(1.2);
}

.pts-tw-pagination-style-dots .pts-tw-pagination-item:hover:not(.is-active) {
  background-color: #a5b1c2;
}

/* Page number pagination style */
.pts-tw-pagination-style-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pts-tw-pagination-style-numbers .pts-tw-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  background-color: #ffffff;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.pts-tw-pagination-style-numbers .pts-tw-pagination-item.is-active {
  background-color: var(--pts-tw-accent, #41A5BF);
  color: #ffffff;
  border-color: var(--pts-tw-accent, #41A5BF);
}

.pts-tw-pagination-style-numbers .pts-tw-pagination-item:hover:not(.is-active) {
  background-color: #f1f2f6;
  border-color: #d1d8e0;
  color: var(--pts-tw-accent, #41A5BF);
}

/* Specific overrides for carousel dots displaying as page numbers */
.pts-tw-screenshot-carousel .pts-tw-carousel-dots.pts-tw-pagination-style-numbers .pts-tw-carousel-dot {
  width: auto;
  height: 38px;
  min-width: 38px;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  background-color: #ffffff;
  color: #2c3e50;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pts-tw-screenshot-carousel .pts-tw-carousel-dots.pts-tw-pagination-style-numbers .pts-tw-carousel-dot.is-active {
  background-color: var(--pts-tw-accent, #41A5BF);
  color: #ffffff;
  border-color: var(--pts-tw-accent, #41A5BF);
}

.pts-tw-screenshot-carousel .pts-tw-carousel-dots.pts-tw-pagination-style-numbers .pts-tw-carousel-dot:hover:not(.is-active) {
  background-color: #f1f2f6;
  border-color: #d1d8e0;
  color: var(--pts-tw-accent, #41A5BF);
}


/* Production readiness: mobile overflow and sizing fixes */
.pts-tw,
.pts-tw *,
.pts-tw *::before,
.pts-tw *::after {
  box-sizing: border-box;
}

.pts-tw {
  max-width: 100%;
  overflow: hidden;
}