/* ========================================================================== 
   Cerevia Testimonial Widget
   ========================================================================== */

.cerevia-testimonial-section .cerevia-testimonial-box {
  background: var(--e-global-color-white);
  width: 100%;
  padding: 40px 43px 40px 35px;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}

.cerevia-testimonial-section .cerevia-testimonial-box .user-content {
  padding-left: 20px;
}

.cerevia-testimonial-section .cerevia-testimonial-box .user-name {
  font-size: 18px;
  line-height: 18px;
  font-weight: 600;
  font-family: var(--e-global-heading-font);
  color: var(--e-global-color-primary);
  margin-bottom: 6px;
}

.cerevia-testimonial-section .cerevia-testimonial-box .designation {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--e-global-color-text);
  font-family: var(--e-global-body-font);
  display: block;
}

.cerevia-testimonial-section .cerevia-testimonial-box .content {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-body-font);
  margin-bottom: 22px;
}

/* Rating stars */
.cerevia-testimonial-section .cerevia-testimonial-box ul {
  line-height: 0;
}

.cerevia-testimonial-section .cerevia-testimonial-box ul li {
  display: inline-block;
  margin-right: -2px;
}

.cerevia-testimonial-section .cerevia-testimonial-box ul li i {
  color: var(--e-global-color-yellow);
  font-size: 16px;
  line-height: 12px;
}

/* Carousel navigation */
.cerevia-testimonial-section .owl-carousel .owl-nav {
  position: absolute;
  top: 95px;
  left: 0;
  right: 0;
  width: 100%;
}

.cerevia-testimonial-section .owl-carousel .owl-nav button {
  outline: none;
}

.cerevia-testimonial-section .owl-carousel .owl-nav .owl-prev {
  left: -25px;
  position: absolute;
}

.cerevia-testimonial-section .owl-carousel .owl-nav .owl-next {
  right: -25px;
  position: absolute;
}

.cerevia-testimonial-section .owl-carousel .owl-nav .owl-prev span,
.cerevia-testimonial-section .owl-carousel .owl-nav .owl-next span {
  font-size: 50px;
}

/* Carousel dots */
.cerevia-testimonial-section .owl-carousel .owl-dots {
  display: block !important;
  margin-top: 40px;
  line-height: 0;
  text-align: center;
}

.cerevia-testimonial-section .owl-carousel .owl-dots button:hover {
  background-color: transparent !important;
}

.cerevia-testimonial-section .owl-carousel .owl-dots .owl-dot span {
  background: #d6d6d6;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  transition: all 0.3s ease-in-out;
  display: block;
  border-radius: 100px;
}

.cerevia-testimonial-section .owl-carousel .owl-dots .owl-dot:hover span,
.cerevia-testimonial-section .owl-carousel .owl-dots .owl-dot.active span {
  background: var(--e-global-color-yellow);
}

.cerevia-testimonial-section .owl-carousel .owl-dots .owl-dot.active span {
  position: relative;
  display: block;
  border-radius: 100px;
}

.cerevia-testimonial-section .owl-carousel .owl-dots .owl-dot:focus,
.cerevia-testimonial-section .owl-carousel .owl-dots button:focus {
  outline: none;
  background-color: transparent;
}

/* Style 3 author layout */
.cerevia-testimonial-style3 .testimonial-auther-section {
  display: flex;
  align-items: center;
}

.cerevia-testimonial-style3 .quote-icon-2 {
  position: absolute;
  right: 30px;
  bottom: 30px;
}

/* ========================================================================== 
   Advanced Carousel: Edge Peek + Smooth Mask Fade

   Used when the widget has:
   - .cerevia-testimonial-edge-peek
   - .cerevia-testimonial-edge-fade

   The fade is handled with CSS mask on .owl-stage-outer.
   This avoids extra overlay blocks and keeps the fade matched to any background.
   ========================================================================== */

.cerevia-testimonial-section.cerevia-testimonial-edge-peek {
  position: relative;
  overflow: hidden;
}

.cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Mask fade is applied only to the slide area, not to the dots or full section. */
.cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-stage-outer {
  overflow: hidden !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 9%,
    #000 91%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 9%,
    #000 91%,
    transparent 100%
  );
}

/* Keep all Owl items visible; the mask handles the edge fade. */
.cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-item,
.cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-item.active {
  opacity: 1 !important;
  display: flex;
  transition: none;
}

/* Equal-height cards inside the carousel. */
.cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-stage {
  display: flex;
  align-items: stretch;
}

.cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-item .item {
  width: 100%;
  display: flex;
}

.cerevia-testimonial-section.cerevia-testimonial-edge-peek
  .cerevia-testimonial-box {
  width: 100%;
  height: 100%;
}

/* Style 3 card height for the testimonial carousel layout. */
.cerevia-testimonial-style3.cerevia-testimonial-edge-peek
  .cerevia-testimonial-box {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Disable previous pseudo-element fade methods if old CSS remains cached. */
.cerevia-testimonial-section.cerevia-testimonial-edge-fade::before,
.cerevia-testimonial-section.cerevia-testimonial-edge-fade::after,
.cerevia-testimonial-section.cerevia-testimonial-edge-fade
  .owl-carousel::before,
.cerevia-testimonial-section.cerevia-testimonial-edge-fade .owl-carousel::after,
.cerevia-testimonial-section.cerevia-testimonial-edge-fade
  .owl-stage-outer::before,
.cerevia-testimonial-section.cerevia-testimonial-edge-fade
  .owl-stage-outer::after,
.elementor-widget-cerevia-testimonial::before,
.elementor-widget-cerevia-testimonial::after {
  content: none !important;
}

/* Load More Button */

.cerevia-load-more-wrapper {
  display: inline-flex;
      width: 100%;
}
.cerevia-load-more-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.cerevia-load-more-btn-text {
  display: inline-block;
}
.cerevia-load-more-icon {
  align-items: center;
  display: flex;
}
.cerevia-load-more-icon svg {
  width: 1em;
  height: auto;
}

.cerevia-load-more-btn-full-width-yes .cerevia-load-more-wrapper {
  display: block;
}

.cerevia-load-more-btn-full-width-yes .cerevia-load-more-btn {
  width: 100%;
}

.cerevia-load-more-btn-full-width-yes .cerevia-load-more-text {
  display: inline-block;
  text-align: center;
  flex: 1;
}

/* ========================================================================== 
   Responsive
   ========================================================================== */

@media screen and (max-width: 1024px) {
  .cerevia-testimonial-style3.cerevia-testimonial-edge-peek
    .cerevia-testimonial-box {
    min-height: 240px;
  }
  .cerevia-testimonial-section.cerevia-testimonial-edge-peek .owl-stage-outer {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media screen and (max-width: 767px) {
  .cerevia-testimonial-section .owl-carousel .owl-dots {
    margin-top: 30px;
  }

  .cerevia-testimonial-style3.cerevia-testimonial-edge-peek
    .cerevia-testimonial-box {
    min-height: auto;
  }
}
