@import url('https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css');

.block_testimonials.testimonial-slider-section {
  position: relative;
}
.block_testimonials .testimonials_bg {
  position: absolute;
  opacity: 0.2;
  width: 100%;
  top: 0;
  left: 0;
}
.block_testimonials .testi-hero {
  padding: 40px 40px 0 40px;
}
.block_testimonials .testi-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 16px 0;
}
.block_testimonials .testi-hero .highlight {
  color: var(--primary);
}
.block_testimonials .testi-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 32px;
}
.block_testimonials .more-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 200;
  transition: color 0.2s;
}
.block_testimonials .more-link:hover {
  color: var(--primary);
}
.block_testimonials #testimonial-slider {
  margin: 0 auto;
  max-width: 900px;
  position: relative;
}
.block_testimonials .testimonial-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 390px;
  position: relative;
}

.block_testimonials .testimonial-img-bubble {
  position: relative;
  max-width: 500px;
  width: 100%;
  height: 390px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}
.block_testimonials .testimonial-photo {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  z-index: 1;
}
.block_testimonials .testimonial-slider-btn {
  background-color: transparent;
  padding: 10px;
  border-radius: 50rem;
  border: 0;
}
.block_testimonials .testimonial-slider-btn img {
  filter: grayscale(1);
  transition: filter 0.2s ease;
}
.block_testimonials .testimonial-logos .testimonial-slider-btn.active img,
.block_testimonials .testimonial-slider-btn:hover img {
  filter: grayscale(0);
  transition: filter 0.2s ease;
}
.block_testimonials .testimonial-logo {
  position: absolute;
  left: -38px;
  top: 160px;
  background: #fff;
  border-radius: 50rem;
  padding: 10px 24px;
  box-shadow: var(--shadow);
  z-index: 3;
}
.block_testimonials .testimonial-logo img {
  height: 60px;
  width: auto;
}
.block_testimonials .testimonial-bubble {
  position: absolute;
  right: -200px;
  top: 55px;
  background: var(--white);
  border-radius: 50rem;
  padding: 18px 28px;
  box-shadow: var(--shadow);
  font-size: 1.13rem;
  color: var(--text-main);
  max-width: 330px;
  font-weight: 400;
  text-align: center;
  z-index: 3;
}
.block_testimonials .testimonial-bubble p {
  margin: 0;
}
.block_testimonials .testimonial-user {
  position: absolute;
  right: -50px;
  bottom: 50px;
  display: flex;
  align-items: center;
  background: var(--white);
  gap: 20px;
  border-radius: 50rem;
  box-shadow: var(--shadow);
  padding: 12px;
  max-width: 310px;
  z-index: 3;
}
.block_testimonials .testimonial-avatar {
  width: 54px;
  min-width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.block_testimonials .testimonial-user .badge {
  display: block;
  width: fit-content;
  background: #e8f0fe;
  font-weight: 600;
  font-size: smaller;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 2px;
  margin-right: 6px;
}

.block_testimonials .testimonial-user strong {
  font-weight: 700;
  color: var(--text-main);
}

.block_testimonials .testimonial-role {
  font-size: 1em;
  color: #a0a9b8;
}

.block_testimonials .testimonial-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 70px auto 70px auto;
  max-width: 980px;
  opacity: 0.85;
}
.block_testimonials .testimonial-logos img {
  height: 58px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.8);
}

.block_testimonials .ethias-footer-logo {
  text-align: center;
  margin: 38px 0 0 0;
}
.block_testimonials .ethias-footer-logo img {
  height: 52px;
  filter: none;
}
/* Custom Splide pagination styles */
.block_testimonials .splide__pagination__page {
  transform: scale(1)!important;
}
.block_testimonials .custom-pagination {
  display: flex;
  gap: 5px;
  padding: 0;
}
.block_testimonials .splide__pagination {
  position: relative;
  bottom: initial;
}
.block_testimonials .custom-page {
  background: var(--light-blue);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  border: none;
  margin: 0 2px;
  transition: all 0.2s ease;
}
.block_testimonials .custom-page.is-active {
  background: var(--primary);
  width: 30px;
  transition: all 0.2s ease;
  border-radius: 50rem;
}

@media (max-width: 756px) {
  .block_testimonials .splide__list {
    gap: 50px;
  }
  .block_testimonials .testimonial-img-bubble {
    width: 98vw;
    height: 340px;
  }
  .block_testimonials .testi-controls {
    flex-direction: column;
    align-items: self-start;
    gap: 1rem;
    margin-top: 20px;
  }
  .block_testimonials .testimonial-photo {
    width: 185px;
    height: 220px;
  }
  .block_testimonials .testimonial-bubble {
    max-width: 220px;
    font-size: 0.98rem;
    top: 20px;
    right: 0;
    padding: 10px 16px;
  }
  .block_testimonials .testimonial-user {
    left: 6px;
    bottom: -50px;
    min-width: 210px;
    font-size: 0.87em;
    padding: 8px 10px 8px 9px;
  }
  .block_testimonials .testimonial-avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  .block_testimonials .testimonial-logos {
    overflow-x: scroll;
    justify-content: flex-start;
  }
  .block_testimonials .testimonial-logos img {
    height: 36px;
    max-width: 70px;
  }
  .block_testimonials .testi-hero {
    padding: 24px 12px 0 12px;
  }
  .block_testimonials .testi-hero h1 {
    font-size: 1.4rem;
  }
}