.tm-sc-testimonials .star-rating {
  float: right;
  overflow: hidden;
  position: relative;
  height: 1.1em;
  line-height: 1.2;
  font-size: 0.9em;
  width: 5.6em;
}
.tm-sc-testimonials .star-rating::before {
  content: "\f005\f005\f005\f005\f005";
  color: #d3ced2;
  font-family: "Font Awesome 5 Free";
  font-weight: 500;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}
.tm-sc-testimonials .star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}
.tm-sc-testimonials .star-rating span::before {
  content: "\f005\f005\f005\f005\f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 500;
  color: #f1c40f;
  top: 0;
  position: absolute;
  left: 0;
}
.tm-sc-testimonials .star-rating {
  float: none;
  margin-top: 5px;
  margin-bottom: 20px;
  overflow: visible;
}
.tm-sc-testimonials .star-rating span:before {
  color: var(--theme-color2);
}
.tm-sc-testimonials .author-text,
.tm-sc-testimonials .name,
.tm-sc-testimonials .job-position {
  transition: all 0.3s ease-in-out;
}
.tm-sc-testimonials .star-rating span:before {
  transition: all 0.3s ease-in-out;
}

.testimonial-block-style2 .inner-block {
  background-color: #ffffff;
  padding: 50px 60px 60px 60px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
@media (max-width: 1199.98px) {
  .testimonial-block-style2 .inner-block {
    padding: 40px;
  }
}
@media (max-width: 991.98px) {
  .testimonial-block-style2 .inner-block {
    padding: 30px 20px 30px;
  }
}
.testimonial-block-style2 .inner-block:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--theme-color3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms ease, transform-origin 0s 400ms;
  z-index: -1;
  pointer-events: none;
}
.testimonial-block-style2 .inner-block:hover:before {
  transform: scaleX(1);
  transform-origin: right center;
}
.testimonial-block-style2 .inner-block:hover .quote-icon {
  color: #fff;
}
.testimonial-block-style2 .inner-block:hover .quote-icon i,
.testimonial-block-style2 .inner-block:hover .quote-icon svg {
  color: inherit;
  fill: currentColor;
}
.testimonial-block-style2 .inner-block:hover .quote-icon i path,
.testimonial-block-style2 .inner-block:hover .quote-icon svg path {
  fill: currentColor;
  stroke: currentColor;
}
.testimonial-block-style2 .inner-block:hover .quote-icon img {
  filter: brightness(0) invert(1);
}
.testimonial-block-style2 .inner-block:hover .testimonial-title,
.testimonial-block-style2 .inner-block:hover .testimonial-title a,
.testimonial-block-style2 .inner-block:hover .author-text,
.testimonial-block-style2 .inner-block:hover .testimonial-name,
.testimonial-block-style2 .inner-block:hover .testimonial-name a,
.testimonial-block-style2 .inner-block:hover .testimonial-position,
.testimonial-block-style2 .inner-block:hover .testimonial-position a {
  color: #fff;
}
.testimonial-block-style2 .inner-block > * {
  position: relative;
  z-index: 1;
}
.testimonial-block-style2 .quote-icon {
  margin-bottom: 34px;
  transition: color 300ms ease;
}
.testimonial-block-style2 .quote-icon i,
.testimonial-block-style2 .quote-icon svg {
  transition: all 300ms ease;
}
.testimonial-block-style2 .testimonial-title {
  margin-top: 0;
  transition: color 300ms ease;
}
.testimonial-block-style2 .testimonial-title a {
  transition: color 300ms ease;
}
.testimonial-block-style2 .author-text {
  color: #111111;
  font-size: 20px;
  transition: color 300ms ease;
}
.testimonial-block-style2 .author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
}
@media (max-width: 575.98px) {
  .testimonial-block-style2 .author-info {
    flex-direction: column-reverse;
    align-items: normal;
    gap: 20px;
  }
}
.testimonial-block-style2 .author-info .info-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-block-style2 .author-info .info-box .image {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}
.testimonial-block-style2 .author-info .info-box .image img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.testimonial-block-style2 .author-info .info-box .info .testimonial-name {
  margin-bottom: 7px;
  line-height: 1.2;
  margin-top: 0;
  transition: color 300ms ease;
}
.testimonial-block-style2 .author-info .info-box .info .testimonial-name a {
  transition: color 300ms ease;
}
.testimonial-block-style2 .author-info .info-box .info .testimonial-position {
  margin-bottom: 0;
  line-height: 1;
  transition: color 300ms ease;
}
.testimonial-block-style2 .author-info .info-box .info .testimonial-position a {
  transition: color 300ms ease;
}
.testimonial-block-style2 .rating {
  align-items: center;
  display: flex;
  gap: 3px;
  font-size: 18px;
  line-height: 1;
}
.testimonial-block-style2 .rating .star-rating {
  color: var(--theme-color1);
  margin: 0;
  font-size: 18px;
  width: calc(5.6em + 14px);
}
.testimonial-block-style2 .rating .star-rating::before {
  color: rgba(var(--theme-color1-rgb), 0.5);
  font-weight: 400;
  letter-spacing: 3px;
}
.testimonial-block-style2 .rating .star-rating span::before {
  color: var(--theme-color1);
  font-weight: 600;
  letter-spacing: 3px;
}