/* Maintain clearfix for compatibility */
.wr:before,
.wr-grid:before,
.wr-carousel:before,
.wr:after,
.wr-grid:after,
.wr-carousel:after {
  content: " ";
  display: table;
}

.wr:after,
.wr-grid:after,
.wr-carousel:after {
  clear: both;
}

/* Prevent horizontal overflow on small screens */
.elementor-widget-plugin-reviews-widget,
.elementor-widget-plugin-reviews-widget .elementor-widget-container {
  min-width: 0;
  max-width: 100%;
}

.wr,
.wr-grid,
.wr-carousel {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.wr-single {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Responsive Grid Layout with Flexbox */
.wr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.wr-grid .wr-single {
  width: calc(33.333% - 14px);
}

/* The clearfix pseudo-elements would become flex items and shift cards */
.wr-grid:before,
.wr-grid:after {
  content: none;
  display: none;
}

/* Review card (matches site feature-card style) */
.wr-grid .wr-single, 
.wr-carousel .wr-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 3px solid transparent;
    border-radius: 0;
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    transition: border-color 0.3s ease;
}

.wr-grid .wr-single:hover,
.wr-carousel .wr-single:hover {
  border-color: #2c8cc8;
}

.wr-single:hover .wr-title {
  color: #2c8cc8;
}

.wr-title {
  transition: color 0.3s ease;
}

@media (max-width: 1024px) {
  .wr-grid .wr-single,
  .wr-carousel .wr-single {
    padding: 30px 15px;
  }
}

.slick-slide {
    outline: none !important;
}

/* Responsive Grid Columns */
@media (max-width: 991px) {
  .wr-grid .wr-single {
    width: calc(50% - 10px);
  }
}

@media (max-width: 767px) {
  .wr-grid .wr-single {
    width: 100%;
  }
}

/* Centered Avatar Section */
.wr-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;  
  border-radius: 50%;
  overflow: hidden;
  background: #fff url(data:image/gif;base64,R0lGODlhUABQALMMAOTk5...) no-repeat 50% 50%;
  background-size: contain;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.theratings{
    display: flex;
    justify-content: center;    
}

.wr-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;  
}

.wr-avatar:hover {
  opacity: 0.75;
}

/* Typography */
.wr,
.wr-grid,
.wr-carousel,
.wr-single {
  font-family: "Roboto", Arial, sans-serif;
  color: #222;
}

/* Centered Title */
.wr-title {
  font-family: "Nunito Sans", "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin: 15px 0px 10px;
  color: #000000;
  text-align: center; /* Center the title */
  width: 100%;
}

/* Review Header (Username + Date) */
.wr-review-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.wr-username,
.wr-date {
  text-align: center; /* Center username & date */
}

.wr-username {
  font-family: "Nunito Sans", "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000000;
}

.wr-date {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #222;
}

/* Rating Section */
.wr-sr {
  display: flex;
  gap: 3px;
  margin: 5px 0;
  justify-content: center; /* Center rating icons */
}

.theratings{
    display: flex;
    justify-content: center;  
}

.wr-sr i {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('star-icon.png') no-repeat center/cover;
}

/* Centered Content */
.wr-content {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #222;
  line-height: 1.6;
  max-width: 90%;
  text-align: center;
}

/* Restore the rating-to-content spacing normally provided by .wr-title
   when the title is hidden */
.wr-content-no-title {
  margin-top: 15px;
}

/* Carousel */
.wr-carousel {
  display: none;
}

.wr-carousel .slick-next:before,
.wr-carousel .slick-prev:before {
  color: #2c8cc8;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.wr-carousel .slick-next:hover:before,
.wr-carousel .slick-prev:hover:before,
.wr-carousel .slick-next:focus:before,
.wr-carousel .slick-prev:focus:before {
  opacity: 0.75;
}

.wr-carousel .slick-disabled:before {
  opacity: 0.3;
}

.wr-carousel .slick-dots {
  position: relative;
  bottom: 0;
  margin: 0px;
}

.wr-carousel .slick-dots li button:before {
  color: #2c8cc8;
  opacity: 0.3;
  font-size: 10px;
}

.wr-carousel .slick-dots li button:hover:before,
.wr-carousel .slick-dots li button:focus:before {
  opacity: 0.6;
}

.wr-carousel .slick-dots li.slick-active button:before {
  color: #2c8cc8;
  opacity: 1;
}

/* Keep arrows inside the carousel so they never overflow the viewport */
.wr-carousel.slick-slider {
  padding-left: 25px;
  padding-right: 25px;
}

.wr-carousel .slick-prev {
  left: 0;
}

.wr-carousel .slick-next {
  right: 0;
}

/* Each .wr-single is the slide itself: space cards with margin, and give
   the list room so card shadows aren't clipped */
.wr-carousel .slick-list {
  padding: 10px 0 30px;
}

/* Equal-height cards */
.wr-carousel .slick-track {
  display: flex;
}

.wr-carousel .slick-slide {
  box-sizing: border-box;
  float: none;
  height: auto;
  margin: 0 15px;
}

@media (max-width: 992px) {
  .wr-carousel .slick-prev:before,
  .wr-carousel .slick-next:before {
    font-size: 30px;
  }
    .wr-carousel .slick-prev,
  .wr-carousel .slick-next {
    display: none !important;
  }
  .wr-carousel .slick-list {
    padding: 10px 0 25px;
}
}

/* Hide arrows on mobile; dots remain for navigation */
@media (max-width: 767px) {
  .wr-carousel.slick-slider {
    padding-left: 0;
    padding-right: 0;
  }
  .wr-carousel .slick-slide {
    margin: 0 10px;
  }
}

/* Links Section */
.wr-reviews-link {
  text-align: center;
  margin-top: 15px;
}

.wr-reviews-link {
  font-family: "Roboto", Arial, sans-serif;
  color: #222;
}

.wr-reviews-link a,
.wr-truncated-show {
  font-family: "Roboto", Arial, sans-serif;
  color: #2c8cc8;
  text-decoration: none;
  font-weight: 500;
}

.wr-truncated-show:hover {
  text-decoration: underline;
}

.wr-reviews-link a:hover {
  text-decoration: underline;
}

/* Truncated Content */
.wr-truncated {
  display: none;
}

.wr-truncated-show {
  white-space: nowrap;
}

.wr-sr {
  font-size: 0;
  white-space: nowrap;
  display: inline-block;
  width: 100px;
  height: 20px;
  height: calc(20px);
  overflow: hidden;
  position: relative;
  background: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=);
  background-size: contain;
}
.wr-sr i {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  z-index: 1;
  background: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=);
  background-size: contain;
}
.wr-sr-1 i,
.wr-sr-2 i,
.wr-sr-3 i,
.wr-sr-4 i,
.wr-sr-5 i {
  opacity: 1;
}
.wr-sr-2 i ~ i {
  width: 40%;
}
.wr-sr-3 i ~ i ~ i {
  width: 60%;
}
.wr-sr-4 i ~ i ~ i ~ i {
  width: 80%;
}
.wr-sr-5 i ~ i ~ i ~ i ~ i {
  width: 100%;
}
