.testimonial__slider-wrapper {
  position: relative;
}
.testimonial-section--one .testimonial-card {
  padding: 47px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 4px; /* Default fallback, can be overridden by inline style */
  border: 1px solid var(--border-color, rgba(28, 31, 37, 0.2));
  background: var(--secondary-background, #fff);
}

.testimonial-section--one .testimonial-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.testimonial-section--one .quote-content {
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-section--one .quote-text p {
  margin: 0 0 0 0;
}

.testimonial-section--one .quote-text p:not(:last-child) {
  margin-bottom: 8px;
}

.testimonial-section--one .attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-section--one .flag-container {
  flex-shrink: 0;
  margin: 0;
}

.testimonial-section--one .flag-container img {
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  width: 61px;
}

.testimonial-section--one .attribution-text {
  flex: 1;
}

.testimonial-section--one .testimonial-swiper .swiper-wrapper {
  padding-top: 3px;
}

.testimonial-section--one .testimonial-swiper .swiper-slide {
  flex-shrink: 0;
  padding: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.testimonial-section--one .testimonial__slider-wrapper .slider-swiper-prev,
.testimonial-section--one .testimonial__slider-wrapper .slider-swiper-next,
.testimonial-section--one .testimonial__slider-wrapper .slider-swiper-pagination {
  pointer-events: auto;
}

/* Continuous mode - from web component */
.testimonial-section--one .testimonial-swiper.slider-continuous .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Pagination and navigation - from slider-common/slider-pagination-nav-styles.ts */
.testimonial-section--one .slider-swiper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.testimonial-section--one .slider-swiper-prev,
.testimonial-section--one .slider-swiper-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 11;
  padding: 10px;
  color: inherit;
}

.testimonial-section--one .slider-swiper-prev svg,
.testimonial-section--one .slider-swiper-next svg {
  width: 20px;
  height: 20px;
  display: block;
}

.testimonial-section--one .slider-swiper-prev:hover,
.testimonial-section--one .slider-swiper-next:hover {
  background: #f5f5f5;
}

.testimonial-section--one .slider-swiper-prev img,
.testimonial-section--one .slider-swiper-next img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

.testimonial-section--one .slider-swiper-pagination {
  position: relative !important;
  margin-top: 20px;
}

.testimonial-section--one .slider-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.testimonial-section--one .slider-swiper-pagination .swiper-pagination-bullet-active {
  background: #000;
}

.testimonial-section--one .swiper-button-next:after,
.testimonial-section--one .swiper-button-prev:after {
  display: none;
}

@media (max-width: 480px) {

  .testimonial-section--one .testimonial-card {
    padding: 20px;
  }

  .testimonial-section--one .quote-text {
    font-size: 0.95rem;
  }

  .testimonial-section--one .attribution {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Hide navigation buttons on mobile */
@media (max-width: 480px) {
  .testimonial-section--one .swiper-button-next,
  .testimonial-section--one .swiper-button-prev {
    display: none;
  }
}
