/* LEON Testimonial Card Widget */
.leon-testimonial-card {
  --leon-testimonial-gap: 26px;
  --leon-testimonial-quote-side-offset: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--leon-testimonial-gap);
  width: 100%;
  min-height: 320px;
  padding: 34px;
  border-radius: 28px;
  overflow: hidden;
  box-sizing: border-box;
  color: #3A2A1E;
  background: #FFFFFF;
}

.leon-testimonial-card__mark {
  position: absolute;
  top: 24px;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  line-height: 1;
  color: rgba(58, 42, 30, 0.16);
  pointer-events: none;
  user-select: none;
}

.leon-testimonial-card.quote-icon-left .leon-testimonial-card__mark {
  left: var(--leon-testimonial-quote-side-offset);
  right: auto;
}

.leon-testimonial-card.quote-icon-right .leon-testimonial-card__mark {
  right: var(--leon-testimonial-quote-side-offset);
  left: auto;
}

.leon-testimonial-card__mark i,
.leon-testimonial-card__mark svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.leon-testimonial-card__body,
.leon-testimonial-card__author {
  position: relative;
  z-index: 1;
}

.leon-testimonial-card__quote {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.leon-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.leon-testimonial-card.author-layout-photo-left .leon-testimonial-card__author {
  flex-direction: row;
  justify-content: flex-start;
}

.leon-testimonial-card.author-layout-photo-right .leon-testimonial-card__author {
  flex-direction: row;
  justify-content: space-between;
}

.leon-testimonial-card.author-layout-photo-right .leon-testimonial-card__photo,
.leon-testimonial-card.author-layout-photo-right .leon-testimonial-card__photo-placeholder {
  order: 2;
}

.leon-testimonial-card.author-layout-photo-right .leon-testimonial-card__person {
  order: 1;
}

.leon-testimonial-card.author-layout-photo-top .leon-testimonial-card__author {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.leon-testimonial-card.author-layout-photo-bottom .leon-testimonial-card__author {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.leon-testimonial-card.author-layout-photo-bottom .leon-testimonial-card__photo,
.leon-testimonial-card.author-layout-photo-bottom .leon-testimonial-card__photo-placeholder {
  order: 2;
}

.leon-testimonial-card.author-layout-photo-bottom .leon-testimonial-card__person {
  order: 1;
}

.leon-testimonial-card__photo,
.leon-testimonial-card__photo-placeholder {
  flex: 0 0 auto;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.leon-testimonial-card__photo {
  object-fit: cover;
  object-position: center center;
}

.leon-testimonial-card__photo-placeholder {
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.8) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 88%, rgba(255,255,255,.8) 0 31%, transparent 32%),
    linear-gradient(135deg, rgba(58,42,30,.18), rgba(255,255,255,.28));
}

.leon-testimonial-card__person {
  min-width: 0;
}

.leon-testimonial-card.author-layout-photo-right .leon-testimonial-card__person {
  flex: 1 1 auto;
}

.leon-testimonial-card__name {
  margin: 0;
  color: #2D1F16;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.leon-testimonial-card__role {
  margin-top: 4px;
  color: #8A6F5A;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 767px) {
  .leon-testimonial-card {
    min-height: 280px;
    padding: 28px;
  }

  .leon-testimonial-card__quote {
    font-size: 16px;
    line-height: 1.65;
  }
}
