/* ==========================================================================
   Custom Reviews Carousel - WPBakery Element Styles
   ========================================================================== */

.vs-reviews-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 20px 0;
  box-sizing: border-box;
}

.vs-reviews-carousel-wrapper * {
  box-sizing: border-box;
}

.vs-reviews-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 4px 45px 4px; /* extra bottom padding for pagination dots */
}

/* Ensure equal height for all slide cards */
.vs-reviews-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.vs-reviews-carousel .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Review Card Design */
.vs-review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: var(--card-bg, #f4f5f7);
  border-radius: var(--card-radius, 22px);
  padding: 30px 26px;
  color: var(--text-color, #2d3139);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.vs-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Text Alignment Modes */
.vs-review-card.align-left {
  text-align: left;
}

.vs-review-card.align-center {
  text-align: center;
}

.vs-review-card.align-left .vs-review-stars {
  justify-content: flex-start;
}

.vs-review-card.align-center .vs-review-stars {
  justify-content: center;
}

/* Review Author / Name */
.vs-review-author {
  margin-bottom: 12px;
}

.vs-review-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--name-color, #111827);
  margin: 0;
  letter-spacing: -0.01em;
}

.vs-review-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
  font-weight: 500;
}

/* Review Stars */
.vs-review-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.vs-review-star {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.vs-review-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vs-review-star.filled {
  color: var(--star-color, #f5a623);
}

.vs-review-star.empty {
  color: #e5e7eb;
}

/* Review Content / Text */
.vs-review-content {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-color, #2d3139);
  flex-grow: 1;
}

.vs-review-content p {
  margin: 0 0 12px 0;
}

.vs-review-content p:last-child {
  margin-bottom: 0;
}

/* Carousel Navigation Arrows */
.vs-reviews-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #1f2937;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vs-reviews-nav-btn:hover {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.vs-reviews-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.vs-reviews-nav-prev {
  left: -20px;
}

.vs-reviews-nav-next {
  right: -20px;
}

.vs-reviews-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive adjustment for nav buttons */
@media (max-width: 767px) {
  .vs-reviews-nav-prev {
    left: 4px;
  }
  .vs-reviews-nav-next {
    right: 4px;
  }
  .vs-reviews-nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* Pagination Dots */
.vs-reviews-carousel .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.vs-reviews-carousel .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 4px;
  background: #cbd5e1;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.vs-reviews-carousel .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--name-color, #111827);
  opacity: 1;
  border-radius: 999px;
}
