/* Mobile Stacked Card Frame - Swipeable */
#mobile-review-section {
  display: none; /* Hidden by default on desktop */
  padding: 20px 15px;
  text-align: center;
}

/* Mobile Header Styles */
.mobile-review-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin-bottom: 10px;
}

.mobile-review-header .reviews-count {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.mobile-review-header .reviews-rating {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.mobile-review-header .reviews-avatars {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.mobile-review-header .reviews-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  margin-right: -10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  position: relative;
}

/* The wrapper that allows swiping */
.mobile-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 10px;
  scrollbar-width: none; 
  -ms-overflow-style: none;
}
.mobile-scroll-container::-webkit-scrollbar {
  display: none;
}

.stack {
  flex: 0 0 85%;
  max-width: 400px;
  margin: 0 auto;
  scroll-snap-align: center;
  transition: 0.25s ease;
}

.card {
  aspect-ratio: 3 / 2;
  border: 4px solid #111;
  background-color: #fff;
  position: relative;
  transition: 0.15s ease;
  cursor: pointer;
  padding: 5% 5% 15% 5%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card:before,
.card:after {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  border: 4px solid #111;
  background-color: #fff;
  transform-origin: center center;
  z-index: -1;
  transition: 0.15s ease;
  top: 0;
  left: 0;
}

.card:before {
  transform: translatey(-2%) rotate(-6deg);
}

.card:after {
  transform: translatey(2%) rotate(6deg);
}

.stack:hover .card:before {
  transform: translatey(-2%) rotate(-4deg);
}
.stack:hover .card:after {
  transform: translatey(2%) rotate(4deg);
}

.card .image {
  width: 100%;
  border: 4px solid #111;
  background-color: #fff;
  aspect-ratio: 1 / 1;
  position: relative;
  margin-bottom: 10px;
  overflow: hidden; 
}

.card .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 0;
  margin: 0;
}

.card .content {
  text-align: left;
  margin-top: 10px;
}

.card .content h4 {
  font-size: 16px;
  margin: 0;
}

.card .content p {
  font-size: 14px;
  margin: 2px 0 5px 0;
  color: #555;
}

.card .content .review-text {
  font-size: 15px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 5px;
}

.card .content .stars {
  color: #fdc936;
  font-size: 18px;
}

/* Hide normal desktop carousel on mobile */
@media (max-width: 600px) {
  #desktop-reviews {
    display: none !important;
  }
  #mobile-review-section {
    display: block;
  }
}