/**
 * APG — Testimonials shortcode [apg_testimonials]
 */

.apg-testimonials {
  width: 100%;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: #f4f4f4;
}

.apg-testimonials__swiper {
  overflow: hidden;
}

.apg-testimonials__slide {
  height: auto;
}

.apg-testimonials__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(920px, 100%);
  margin-inline: auto;
  text-align: center;
}

.apg-testimonials__quote {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  font: inherit;
  color: inherit;
}

.apg-testimonials__quote-inner {
  font-family: var(--font-sans);
  font-size: calc(1rem + 1px);
  font-weight: 400;
  line-height: 1.65;
  color: #1c1c1c;
}

.apg-testimonials__quote-inner p:first-child::before {
  content: '\201C';
}

.apg-testimonials__quote-inner p:last-child::after {
  content: '\201D';
}

.apg-testimonials__quote-inner p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.apg-testimonials__footer {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.apg-testimonials__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #1c1c1c;
}

.apg-testimonials__position {
  margin: 0.35rem 0 0;
  font-size: var(--font-size-body, 17px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate-600, #6b7280);
}

.apg-testimonials__pagination {
  position: static;
  margin-top: clamp(2rem, 5vw, 2.75rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.apg-testimonials__pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.25);
  opacity: 1;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.apg-testimonials__pagination .swiper-pagination-bullet-active {
  background: #1c1c1c;
  transform: scale(1.15);
}

/* Grid layout */
.apg-testimonials--grid .apg-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(var(--apg-testimonials-columns, 3), minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.apg-testimonials--grid .apg-testimonials__card {
  align-items: flex-start;
  max-width: none;
  margin-inline: 0;
  text-align: left;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid rgba(28, 28, 28, 0.08);
}

@media (max-width: 1024px) {
  .apg-testimonials--grid .apg-testimonials__grid {
    grid-template-columns: repeat(min(var(--apg-testimonials-columns, 3), 2), minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apg-testimonials--grid .apg-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .apg-testimonials--grid .apg-testimonials__card {
    text-align: center;
    align-items: center;
  }
}
