/* Splide Testimonials Slider */
.splide_testimonials {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.splide_testimonials .splide__track {
  overflow: hidden;
  width: 100%;
}

.splide_testimonials .splide__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.splide_testimonials .splide__slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 8px;
}

.testimonials-wrapper {
  position: relative;
  display: block;
  background-color: #fff;
  border: 8px solid #6a0f0e;
  border-radius: 6.5px;
  margin: 3rem 60px;
  padding: 2rem;
  width: calc(100% - 120px);
  box-sizing: border-box;
}

.testimonials-wrapper .testimonial-quotes {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
}

/* Testimonial Box Styling */
/*.testimonial-box {
    position: relative;
    background-color: #fff;
    border: 8px solid #6a0f0e;
    border-radius: 6.5px;
    padding: 2rem;
    margin: 1rem 0;
    min-height: 200px;
}
*/
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: #323333;
}

.testimonial-author-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-avatar.default-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author {
  font-family: inherit;
  font-weight: 500;
  color: #323333;
  font-size: 16px;
  margin: 0;
  line-height: 1.2;
}

.testimonial-title {
  font-family: inherit;
  font-weight: 400;
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.2;
}

.testimonial-stars {
  position: relative;
  color: #6a0f0e;
  font-size: 2rem;
}

.testimonial-quotes {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
}

.testimonial-quotes svg {
  width: 60px;
  height: auto;
  opacity: 0.6;
}

/* Splide Arrow Styling */
.splide_testimonials .splide__arrows {
  position: static;
  width: 100%;
  pointer-events: none;
}

.splide_testimonials .splide__arrow {
  position: absolute;
  font-size: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #6a0f0e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.splide_testimonials .splide__arrow:hover {
  background: #6a0f0e;
  transform: translateY(-50%) scale(1.1);
}

.splide_testimonials .splide__arrow:hover img {
  filter: brightness(0) invert(1);
}

.splide_testimonials .splide__arrow--prev {
  left: -60px;
}

.splide_testimonials .splide__arrow--next {
  right: -60px;
}

.splide_testimonials .splide__arrow--next img {
  transform: scaleX(-1);
}

.splide_testimonials .splide__arrow img {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}
.splide__pagination {
  bottom: -37%;
}
.splide__pagination__page.is-active {
  background: #6a0f0e;
  transform: scale(1.4);
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-wrapper {
    margin: 3rem 50px;
    width: calc(95% - 100px);
    padding: 1.5rem;
    border-width: 5px;
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .splide_testimonials .splide__arrow {
    width: 40px;
    height: 40px;
  }

  .splide_testimonials .splide__arrow--prev {
    left: -50px;
  }

  .splide_testimonials .splide__arrow--next {
    right: -50px;
  }

  .testimonial-quotes {
    bottom: 0.5rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .testimonials-wrapper {
    margin: 3rem 20px;
    width: calc(100% - 40px);
    padding: 1rem;
  }

  .splide_testimonials .splide__arrow {
    width: 35px;
    height: 35px;
  }

  .splide_testimonials .splide__arrow--prev {
    left: -25px;
  }

  .splide_testimonials .splide__arrow--next {
    right: -25px;
  }

  .testimonial-header {
    margin-bottom: 1rem;
  }

  .testimonial-author-section {
    gap: 10px;
  }

  .testimonial-avatar {
    width: 35px;
    height: 35px;
  }

  .testimonial-author {
    font-size: 14px;
  }

  .testimonial-title {
    font-size: 12px;
  }
}

/* Widget Testimonials Styling (keep existing) */
.widget_mm_testimonials {
  position: relative;
  display: block;
  background: white;
  box-shadow: 2px 2px 8px 2px rgba(19, 20, 24, 0.09);
}

.testimonial-wrap {
  position: relative;
  display: block;
  word-wrap: normal;
  border-bottom: 1px dotted #ffffff;
  overflow: visible;
  width: 100%;
}

.testimonial-text:before {
  position: absolute;
  content: "\201C";
  font-size: 5em;
  font-family: "proxima nova", sans-serif;
  color: #f8a302;
  top: -4rem;
  left: 0;
}

.testimonial-text:after {
  position: absolute;
  content: "\201D";
  font-size: 5em;
  font-family: "proxima nova", sans-serif;
  color: #f8a302;
  bottom: 30px;
  right: 0;
}

.testimonial-text {
  position: relative;
  font-family: "proxima nova", sans-serif;
  color: #ffffff;
  font-weight: 300;
  padding-top: 1rem;
}

.testimonial-company {
  color: #04aeff;
  font-weight: 700;
  text-align: right;
}

/* Sidebar Testimonial Widget */
#sidebar .testimonial-wrap {
  position: relative;
  display: block;
  color: #3e3e3e;
  background-color: #fff;
  padding: 1.25rem;
}

#sidebar .testimonial-text:before {
  position: absolute;
  top: -100px;
  left: -10px;
  content: "\201C";
  font-size: 5em;
  font-family: "proxima nova", sans-serif;
  color: #f8a302;
  transform: scaleX(-1) rotate(180deg);
}

#sidebar .testimonial-text:after {
  position: absolute;
  bottom: -70px;
  content: "\201C";
  font-size: 5em;
  font-family: "proxima nova", sans-serif;
  color: #f8a302;
  transform: scaleX(1) rotate(180deg);
}

#sidebar .testimonial-text {
  font-family: "Open Sans", sans-serif;
  display: block;
  position: relative;
  font-size: 0.89em;
  color: #3e3e3e;
  font-weight: 300;
  padding-top: 20px;
}

#sidebar .testimonial-author {
  font-size: 0.91em;
  color: #3e3e3e;
  font-weight: 700;
  font-style: normal;
  padding-top: 30px;
  text-align: right;
}

#sidebar .testimonial-company {
  color: #919191;
  font-weight: 700;
  text-align: right;
}

#sidebar .stars {
  display: block;
  position: relative;
  text-align: right;
}
