/* Wrapper */
.ace_slider_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background: #f4f4f4;
  padding: 40px;
  color: #333;
  box-sizing: border-box;
}

/* Reset */
.aceslider-wrapper *,
.aceslider-wrapper *::before,
.aceslider-wrapper *::after {
  box-sizing: inherit;
}

/* Viewport */
.aceslider-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Track */
.aceslider-track {
  display: flex;
}

/* Slide */
.aceslider-slide {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin: 0 10px;
  padding: 23px;
  flex-shrink: 0;
  gap: 20px;
  align-items: flex-start;
}

/* Testimonial Content */
.testimonialcontent {
     display: flex;
     flex-direction: column;
    background: #fff;
    padding: 20px 0;
    gap: 20px;
    align-items: center;
    width: 100%;
    word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
.aceslider-content.rating-below-name {
    text-align: center;
}
.aceslider-author-rating {
    text-align: center;
    padding-bottom: 10px;
  }
.testimonialcontent-outer {
  width: 96%;
}

.aceslider-testimonial-text {
  /* margin: 0 auto; */
  width: 95%;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Author Image */
.aceslider-author-img {
  border: 2px solid #ddd;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

/* Image Sizes */
.img-size-small { width: 50px  !important; height: 50px !important; }
.img-size-medium { width: 80px !important; height: 80px !important; }
.img-size-large { width: 120px !important; height: 120px !important; }
.img-size-custom {
  width: var(--custom-img-size, 100px);
  height: var(--custom-img-size, 100px);
}

/* Image Shape */
.img-circle { border-radius: 50%; }
.img-square { border-radius: 0 !important;  }




.aceslider-author-rating {
  color: #f5a623;
 
  margin-top: 15px;
  font-size: 1.1rem;
}

/* Rating Position */
.rating-below-name .aceslider-author-rating { order: 1; }
.rating-below-description .aceslider-author-rating { order: 3; }

/* Read More */
.description-read-more-btn {
  color: #0073e6;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

/* Arrows */
.aceslider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  /* color: white; */
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  user-select: none;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.aceslider-arrow:hover { opacity: 1; }
.aceslider-arrow-left { left: 0; }
.aceslider-arrow-right { right: 0; }

/* Dots */
.aceslider-dots {
  text-align: center;
  padding-bottom: 18px;
}

.aceslider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.aceslider-dot.active {
  background: #0073e6;
}

/* Adaptive Height */
#slider-viewport.adaptive-height {
  transition: height 0.4s ease;
  overflow: hidden;
}
.aceslider-dots.mobile-testimonial-dotes {
    display: none;
}
  .ace_slider_wrapper .slick-initialized .slick-slide {
    margin: 10px 20px !important;
    padding: 15px;
}
.aceslider-content.rating-below-name .aceslider-author-rating {
    margin: 0;
   padding-bottom: 10px;
}
.ace_slider_wrapper .slick-list.draggable {
    margin: 0 auto;
    width: 100%;
    padding-top: 10px;
}
/* Responsive */
@media (max-width: 767px) {
  .ace_slider_wrapper .slick-list.draggable {
    margin: 0 auto;
    width: 90%;
}
.aceslider-testimonial-text{
         margin: 0 auto;
        padding: 13px;
}

.testimonial-text {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    
}
  .aceslider-dots.mobile-testimonial-dotes {
    display: block;
    margin-top: 15px;
}
.aceslider-dots.desktop-testimonial-dotes {
    display: none;
}
  .slick-list{
    height: 1000% !important;
  }
.ace_slider_wrapper{
      margin: 10px auto;
      padding: 40px 0;
}

  .ace_slider_wrapper .aceslider-author-rating{
    margin-top:5px;
  }
  .ace_slider_wrapper .slick-slide img {
    display: block;
    display: flex !important;
    justify-content: center !important;
    margin: 7px auto;
  }
  .aceslider-track.slick-initialized.slick-slider{
      margin-top: 0;
      margin-bottom: 0;
  }
  .testimonialcontent-outer {
      width: 100%;
  }

  .aceslider-slide.slick-slide{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .testimonialcontent{
    display: block;
  }
  .aceslider-slide {
    flex-direction: column;
    align-items: center;
    padding: 0 9px;
  }

  .aceslider-author-img {
    margin-bottom: 15px;
  }

  .aceslider-content {
    text-align: center;
  }
}
#slider-viewport.adaptive-height {
  height: auto !important;
}
.aceslider-slide.slick-slide{
  min-height: auto !important;
  margin: 15px;
  margin-top: 30px;
  margin-bottom:30px;
}
.aceslider-dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  display: inline-block;
}

.aceslider-dot.active {
  background-color: #007bff; /* Change this to your desired color */
}
button:focus,
a:focus, .aceslider-slide.slick-slide.slick-active:focus {
  outline: none;
}
button#prev-arrow,button#next-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* testimonial layouts */

/* Main container */
.aceslider_layouts_innerouter {
    width: 90%;
    max-width: 1400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

/* Layouts grid */
.aceslider-layout4 {
    display: flex;
    gap: 35px;
    width: 100%;
    flex-direction: column;
}


.aceslider-layout-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Title */
.layout-preview h3 {
    font-size: 1.4rem;
    color: #222;
    margin: 0 0 20px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 50px;
}

/* Container for the 3 preview testimonials */
.wrap-testimonial-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
/* Layouts grid */
.aceslider-layouts {
    padding: 0px;
    margin: 0px;
}



/* ============================================= */
/*             Default       */
/* ============================================= */

.wrap-taxonomy-default .author-img{
  margin: 0px auto;
}
.wrap-taxonomy-default .testimonial-text
{
  flex-grow: 1;
  position: relative;
  margin-block: 10px;
  
}

.wrap-taxonomy-default .aceslider-author-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  margin-block: 10px;
  
} 
.wrap-taxonomy-default .aceslider-author-date{
  font-size: 18px;
}

.aceslider-layouts {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}


.wrap-taxonomy-default {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  min-height: 300px;
  text-align: center;
}




/* ============================================= */
/*              LAYOUT 1 – Classic & Clean       */
/* ============================================= */
.wrap-taxonomy-layout1 .testimonial-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding:28px 24px;
    position: relative;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    overflow: hidden;
    text-align: center;
    min-height: 300px;
}
.wrap-taxonomy-layout1 .testimonial-box::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: #3498db;
    line-height: 1;
    opacity: 0.15;
    font-family: Georgia, serif;
}

.wrap-taxonomy-layout1 .author-img {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    margin: 0px auto;
}

.wrap-taxonomy-layout1 .author-name {
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    padding-block: 10px;
}

.wrap-taxonomy-layout1 .author-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* ============================================= */
/*           LAYOUT 2 – Speech Bubble            */
/* ============================================= */
.wrap-taxonomy-layout2 .testimonial-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    min-height: 270px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.wrap-taxonomy-layout2 .author-img {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -35px;
    left: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wrap-taxonomy-layout2 .testimonial-box .author-name,
.wrap-taxonomy-layout2 .testimonial-box .author-date,
.wrap-taxonomy-layout2 .testimonial-box .author-rating,
.wrap-taxonomy-layout2 .testimonial-box .rating-below-name{
    margin-left: 65px;
}

.wrap-taxonomy-layout2 .aceslider-testimonial-text{
max-width: 300px !important;
margin-left: 70px;
width: 60%;
}
.wrap-taxonomy-layout2 .author-name {
   color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-top: 20px;
}

/* ============================================= */
/*         LAYOUT 3 – Side-by-Side Modern        */
/* ============================================= */
.wrap-taxonomy-layout3 .testimonial-box {
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.07);
    gap: 22px;
    text-align: left;
    width: 100%;
    max-width: 440px;
    min-height: 200px;
   
}
.wrap-taxonomy-layout3 .author-img {
    width: 90px;
    height: 90px;
    margin-left: -50px;
    border-radius: 12px;
}
.wrap-taxonomy-layout3 .testimonial-content {
    flex: 1;
}

.wrap-taxonomy-layout3 .author-name {
    font-size: 18px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: capitalize;
    margin-top: -60px;
     margin-left: 50px;
   
}
 .wrap-taxonomy-layout3 .testimonial-box .default-content .aceslider-testimonial-text {
  margin-left: 50px;
  width: 350px;
 }
  .wrap-taxonomy-layout3 .testimonial-box .aceslider-author-rating {
   text-align: left;
   margin-left: 50px;
  }

.wrap-taxonomy-layout3 .author-text {
    margin: 0 0 12px;
    font-size: 0.95rem;
    
}

.wrap-taxonomy-layout3 .author-date {
    margin-left: 50px
}


/* ============================================= */
/*      LAYOUT 4 – Top Accent + Large Avatar     */
/* ============================================= */
.wrap-taxonomy-layout4 .testimonial-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: white;
    border-radius: 10px 10px 12px 12px;
    padding: 35px 25px 25px;
    text-align: center;
    position: relative;
    width: 100%;
    margin-top: 50px;
} 

.wrap-taxonomy-layout4 .author-img {
    width: 110px;
    height: 110px;
    margin: -120px auto 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.wrap-taxonomy-layout4 .author-name {
    font-size: 1.25rem;
     color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Common styles you already had – kept & slightly improved */
.testimonial-box img.author-img {
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-box .author-text {
    /* font-style: italic; */
    line-height: 1.55;
    font-size: 14px;
}

.testimonial-box .author-date {
    font-size: 0.82rem;
    color: #94a3b8;
}

.testimonial-box .author-rating {
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-top: 8px;
}

/* Button */
.select-layout-btn {
    position: absolute;
    top: 5%;
    left: 90%;
    transform: translateX(-50%);
    padding: 10px 28px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.select-layout-btn:hover {
    background: #2980b9;
}


.aceslider-author-rating .fa-star {
  color: #ccc; /* default gray */
}

.aceslider-author-rating .fa-star.active-star {
  color: gold; /* active yellow */
}

/* ============================================= */
/*         LAYOUT 5 – Side-by-Side Modern        */
/* ============================================= */
.wrap-taxonomy-layout5 .testimonial-box {
    display: flex ;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.07);
    gap: 22px;
    text-align: left;
    width: 100%;
    max-width: 440px;
    min-height: 200px;
    padding-block: 35px;
   
}
.wrap-taxonomy-layout5 .author-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
}
.wrap-taxonomy-layout5 .author-name {
    font-size: 18px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: capitalize;
}
 .wrap-taxonomy-layout5 .testimonial-box .default-content .aceslider-testimonial-text{
  width: 350px;
 }

.wrap-taxonomy-layout5 .author-text {
    margin: 0 0 12px;
    font-size: 0.95rem;
    
}
.wrap-taxonomy-layout5 .aceslider-testimonial-text{
    max-width: 254px;
    text-align: justify;
}

.wrap-taxonomy-layout5 .aceslider-author-rating{
  text-align: left;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wrap-testimonial-box {
        flex-direction: column;
        align-items: center;
    }
    .select-layout-btn {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}
