.lbj-testimonials,
.lbj-testimonials * {
  box-sizing: border-box;
}

.lbj-testimonials {
  clear: both;
  margin: 0 auto;
  width: 100%;
}

.lbj-testimonials > div {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
}

.lbj-testimonials--preview {
  background: #497e95;
  overflow: hidden;
  padding: 64px 20px;
}

.lbj-testimonials--preview h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  margin: 0 auto 32px;
  max-width: 900px;
  text-align: center;
}

[data-lbj-testimonials] {
  align-items: center;
  display: flex;
  gap: 20px;
}

[data-lbj-cards] {
  display: grid;
  flex: 1;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.lbj-testimonial-card {
  background: #fff;
  border: 2px solid rgba(73, 126, 149, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  color: #2e2e2e;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.lbj-testimonial-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.lbj-testimonial-card > div:first-child,
[data-lbj-modal-stars] {
  color: #f6b900;
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.lbj-testimonial-card p {
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.lbj-testimonial-card p:last-child {
  margin-bottom: 0;
}

.lbj-testimonial-card a,
[data-lbj-modal-link] {
  color: #497e95;
  font-weight: 700;
  text-decoration: underline;
}

[data-lbj-prev],
[data-lbj-next] {
  align-items: center;
  background: transparent;
  border: 2px solid transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 10px;
  transition: background 180ms ease, border-color 180ms ease;
}

[data-lbj-prev]:hover,
[data-lbj-next]:hover,
[data-lbj-prev]:focus-visible,
[data-lbj-next]:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

[data-lbj-dots] {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

[data-lbj-dots] button {
  background: transparent;
  border: 2px solid #fff;
  cursor: pointer;
  height: 10px;
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
  width: 10px;
}

[data-lbj-dots] button.bg-white {
  background: #fff;
  width: 32px;
}

.lbj-testimonials--preview [data-lbj-dots] + div {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
  max-width: 700px;
}

.lbj-testimonials--preview [data-lbj-dots] + div a {
  background: #fff;
  border: 2px solid #fff;
  color: #497e95;
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  padding: 15px 24px;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
  width: 100%;
}

.lbj-testimonials--preview [data-lbj-dots] + div a:hover,
.lbj-testimonials--preview [data-lbj-dots] + div a:focus-visible {
  background: #83a2bb;
  color: #fff;
}

.lbj-testimonials--full {
  padding: 50px 20px;
}

.lbj-testimonials--full > div > div {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lbj-testimonials--full .lbj-testimonial-card {
  border: 3px solid #497e95;
}

[data-lbj-modal] {
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100000;
}

[data-lbj-modal].hidden {
  display: none;
}

[data-lbj-modal].flex {
  display: flex;
}

[data-lbj-modal-body] {
  background: #fff;
  border: 4px solid #497e95;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #2e2e2e;
  max-height: calc(100vh - 48px);
  max-width: 760px;
  overflow: auto;
  padding: 32px;
  position: relative;
  width: 100%;
}

[data-lbj-modal-body] p {
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
}

[data-lbj-close] {
  align-items: center;
  background: #fff;
  border: 3px solid #497e95;
  color: #497e95;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 8px;
  position: absolute;
  right: -14px;
  top: -14px;
  width: 44px;
  z-index: 1;
}

[data-lbj-close]:hover,
[data-lbj-close]:focus-visible {
  background: #497e95;
  color: #fff;
}

@media (max-width: 900px) {
  .lbj-testimonials--full > div > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lbj-testimonials--preview {
    padding: 44px 12px;
  }

  [data-lbj-testimonials] {
    gap: 6px;
  }

  [data-lbj-cards] {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-lbj-cards] .lbj-testimonial-card:nth-child(2) {
    display: none;
  }

  .lbj-testimonial-card {
    padding: 20px;
  }

  [data-lbj-prev],
  [data-lbj-next] {
    padding: 5px;
  }

  .lbj-testimonials--full > div > div {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-lbj-modal] {
    padding: 16px;
  }

  [data-lbj-modal-body] {
    padding: 24px 20px;
  }
}
