:root {
  --li-rec-bg-color: #f3f6f9;
  --li-rec-card-bg: #ffffff;
  --li-rec-text-main: #1d1d1d;
  --li-rec-text-muted: #666666;
  --li-rec-link-blue: #0a66c2;
  --li-rec-border-radius: 24px;
}

.li-rec-header {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.li-rec-header h2 {
  font-size: 26px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.li-rec-profile-btn {
  background-color: #eef3f8;
  color: #0a66c2;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  border: 1px solid transparent;
}

.li-rec-profile-btn:hover,
.li-rec-profile-btn:focus {
  background-color: #dce6f1;
  text-decoration: none;
}

.li-rec-divider {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: var(--li-rec-link-blue);
  width: 50%;
  margin: 15px auto;
}

.li-rec-slider-outer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  font-family: "Playfair Display", serif;
  padding: 0 45px; /* Space for the absolute arrows */
}

.li-rec-slider-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* MUST be auto/scroll for JS scrollLeft to work (autoplay, swipe, arrows) */
  overflow-y: hidden;
  scroll-snap-type: none !important;
  padding: 20px 0;
  font-size: 16px;
  align-items: flex-start;
  width: 100%;
  scrollbar-width: none; /* Firefox: hide scrollbar */
  -ms-overflow-style: none; /* IE/Edge: hide scrollbar */
}

.li-rec-slider-container::-webkit-scrollbar {
  display: none;
}

.li-rec-no-animate {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.li-rec-card {
  background: var(--li-rec-card-bg);
  border-radius: var(--li-rec-border-radius);
  width: 100%;
  padding: 25px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  min-height: auto;
  align-self: stretch;
  height: auto;
  overflow: visible !important;
  scroll-snap-align: none !important;
}

.li-rec-card:focus {
  outline: none;
}

.li-rec-tag {
  background: #eef3f8;
  color: var(--li-rec-link-blue);
  font-size: 16px;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: inline-block;
}

.li-rec-stars {
  color: #ffb400;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.li-rec-quote {
  color: var(--li-rec-text-main);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  margin-bottom: 15px;
  width: 100%;
  overflow: visible;
  min-height: 179.2px; /* at least 7 lines, will expand if needed on mobile */
}

.li-rec-profile-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.li-rec-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.li-rec-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.li-rec-identity {
  display: flex;
  flex-direction: column;
}

.li-rec-name {
  font-weight: 700;
  margin: 0;
  font-size: 16px;
}

.li-rec-name a {
  color: inherit;
  text-decoration: none;
}

.li-rec-name a:hover,
.li-rec-name a:focus {
  text-decoration: underline;
  outline: none;
}

.li-rec-meta {
  color: var(--li-rec-text-muted);
  font-size: 16px;
  margin: 5px 0 0 0;
  line-height: 1.4;
}

.li-rec-slider-outer .li-rec-nav-btn {
  background: #888888 !important;
  background-color: #888888 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
  line-height: normal !important;
}

.li-rec-slider-outer .li-rec-nav-btn:hover,
.li-rec-slider-outer .li-rec-nav-btn:focus {
  background: #555555 !important;
  background-color: #555555 !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
  outline: none !important;
  color: #ffffff !important;
}

.li-rec-nav-btn.prev {
  left: 0;
}

.li-rec-nav-btn.next {
  right: 0;
}

.li-rec-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.li-rec-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s;
}

.li-rec-dot.active {
  background-color: var(--li-rec-link-blue);
}

.li-rec-dot:focus {
  outline: 2px solid var(--li-rec-link-blue);
  outline-offset: 2px;
}

/* Elementor Editor specific fix */
.elementor-editor-active .li-rec-slider-container {
  scroll-behavior: auto;
}

@media (max-width: 767px) {
  .li-rec-slider-outer {
    padding: 0 0 60px 0 !important; /* Space for the absolute arrows at the bottom */
  }
  .li-rec-slider-outer .li-rec-nav-btn {
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  .li-rec-nav-btn.prev {
    left: calc(50% - 50px) !important;
  }
  .li-rec-nav-btn.next {
    right: calc(50% - 50px) !important;
    left: auto !important;
  }
  .li-rec-slider-container {
    padding-bottom: 10px;
  }
}
