.jb-testimonials-carousel { background: #fffadd; border-radius: 1.5rem; box-shadow: 0 4px 24px 0 rgba(153,113,85,0.08); padding: 2.5rem 0; max-width: 1200px; margin: 0 auto; position: relative; }
@media (min-width: 600px) and (max-width: 1199px) {
  .jb-testimonials-carousel { padding-left: 2.5rem; padding-right: 2.5rem; }
  .jb-testimonial-slide { min-width: 340px; max-width: 90vw; flex: 0 0 100%; }
}
@media (min-width: 1200px) {
  .jb-testimonials-carousel { padding-left: 0; padding-right: 0; }
  .jb-testimonial-slide { min-width: 420px; max-width: 520px; flex: 0 0 48%; }
}
.jb-testimonials-track { display: flex; transition: transform 0.6s cubic-bezier(.4,1.6,.6,1); will-change: transform; }
.jb-testimonial-slide { background: #FFFBEA; border: 1.5px solid #e8dcc0; border-radius: 1.5rem; box-shadow: 0 6px 32px 0 rgba(153,113,85,0.10); padding: 2.2rem 2rem; margin: 0 1.2rem; min-width: 320px; max-width: 420px; flex: 0 0 90%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; font-family: 'Merriweather', serif; color: #3d2c18; }
@media (max-width: 599px) {
  .jb-testimonials-carousel {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    box-sizing: border-box;
    width: 100vw;
    margin: 0 auto;
  }
  .jb-testimonials-track {
    width: 100%;
    margin: 0;
  }
  .jb-testimonial-slide {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
}
.jb-testimonial-quote { font-size: 1.13rem; font-weight: 500; line-height: 1.7; margin-bottom: 1.5rem; letter-spacing: 0.01em; }
.jb-testimonial-author { color: #997155; font-size: 1.13rem; font-weight: 700; margin-top: 2rem; letter-spacing: 0.04em; }
.jb-testimonial-stars { color: #dcb115; font-size: 1.7rem; margin-bottom: 1.1rem; letter-spacing: 0.14em; }
.jb-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: #997155; color: #fffadd; border: none; border-radius: 50%; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; cursor: pointer; box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08); transition: background 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; }
.jb-carousel-nav:focus, .jb-carousel-nav:hover { background: #b08a65; color: #fffadd; outline: 2px solid #b08a65; }
.jb-carousel-nav.jb-prev { left: 1.2rem; }
.jb-carousel-nav.jb-next { right: 1.2rem; }
.jb-carousel-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
.jb-carousel-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #e8dcc0; border: none; cursor: pointer; transition: background 0.2s; }
.jb-carousel-dot.active { background: #997155; }

/* Mobile Responsiveness Fixes - Target screens under 768px */
@media (max-width: 767px) {
  .jb-testimonials-carousel {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 1rem;
  }
  
  .jb-testimonials-track {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .jb-testimonial-slide {
    padding: 1.5rem 1.25rem;
    margin: 0 0.5rem;
    scroll-snap-align: center;
    min-width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    flex: 0 0 calc(100vw - 3rem);
  }
  
  .jb-testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    letter-spacing: 0.005em;
  }
  
  .jb-testimonial-author {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
  }
  
  .jb-testimonial-stars {
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    letter-spacing: 0.1em;
  }
  
  .jb-carousel-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
  
  .jb-carousel-nav.jb-prev {
    left: 0.5rem;
  }
  
  .jb-carousel-nav.jb-next {
    right: 0.5rem;
  }
  
  .jb-carousel-dots {
    gap: 0.4rem;
    margin-top: 1.5rem;
  }
  
  .jb-carousel-dot {
    width: 0.7rem;
    height: 0.7rem;
  }
  
  /* Ensure text doesn't overflow */
  .jb-testimonial-slide {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Improve touch scrolling */
  .jb-testimonials-track {
    -webkit-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
  }
}

@media (max-width: 700px) {
  .jb-testimonial-slide {
    max-width: 92vw;
    min-width: 0;
    margin: 0 auto 1.2rem auto;
    padding: 1.1rem 1.2rem 1.3rem 1.2rem;
    border-radius: 1rem;
    font-size: 0.97rem;
    box-sizing: border-box;
    transition: max-height 0.3s, padding 0.3s;
    position: relative;
  }
  .jb-testimonial-quote {
    max-height: 7.2em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .jb-testimonial-slide.expanded .jb-testimonial-quote {
    max-height: 100em;
    -webkit-line-clamp: unset;
  }
  .jb-testimonial-readmore {
    display: inline-block;
    margin: 0.5rem auto 0 auto;
    font-size: 0.97rem;
    color: #997155;
    background: none;
    border: none;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    outline: none;
    transition: color 0.2s;
    /* Prevent touch events from interfering with button clicks */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure button is clickable on mobile */
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Ensure button is above other elements */
    position: relative;
    z-index: 10;
  }
  .jb-testimonial-readmore:focus,
  .jb-testimonial-readmore:hover {
    color: #b08a65;
  }
  
  /* Additional mobile-specific button improvements */
  @media (max-width: 767px) {
    .jb-testimonial-readmore {
      /* Larger touch target for mobile */
      min-height: 48px;
      min-width: 48px;
      padding: 8px 12px;
      /* Ensure proper touch handling */
      touch-action: manipulation;
      /* Prevent text selection on tap */
      -webkit-tap-highlight-color: transparent;
      /* Better visual feedback */
      border-radius: 4px;
      transition: all 0.2s ease;
    }
    
    .jb-testimonial-readmore:active {
      background-color: rgba(153, 113, 85, 0.1);
      transform: scale(0.98);
    }
  }
} 