/* Shared pull-quote bubble card (light beige speech bubble, orange accent
   lines on the left, circular author photo below). */
.quote-bubble-card {
  --qb-bg: #f0e6e0;
  --qb-accent: #e06a42;
  --qb-navy: #0c1e33;
  --qb-text: #5b6572;
  max-width: 840px;
  margin: 0 auto;
}

.quote-bubble-card__box {
  position: relative;
  background: var(--qb-bg);
  border-radius: 64px 64px 64px 0;
  padding: 48px 48px 48px 84px;
}

/* Speech-bubble tail at the bottom-left */
.quote-bubble-card__box::after {
  content: "";
  position: absolute;
  left: 64px;
  bottom: -22px;
  width: 44px;
  height: 44px;
  background: var(--qb-bg);
  border-radius: 0 0 50% 50%;
  transform: rotate(45deg);
  transform-origin: top left;
}

/* Two vertical orange accent lines on the left */
.quote-bubble-card__accent {
  position: absolute;
  left: 36px;
  top: 48px;
  bottom: 48px;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.quote-bubble-card__accent span {
  display: block;
  border-radius: 4px;
  background: var(--qb-accent);
}

.quote-bubble-card__accent span:first-child {
  width: 6px;
}

.quote-bubble-card__accent span:last-child {
  width: 2px;
}

/* Heading above the quote */
.quote-bubble-card__heading {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(24px, calc(1.45vw + 16.6px), 32px) !important;
  line-height: 1.25;
  color: var(--qb-navy);
  margin: 0 0 18px;
}

/* Quote text */
.quote-bubble-card__quote {
  margin: 0;
  font-family: 'EB Garamond', serif !important;
  font-weight: 400 !important;
  font-size: clamp(18px, calc(0.6vw + 13.7px), 22px) !important;
  line-height: 1.6;
  font-style: italic !important;
  color: var(--qb-text);
}

/* Author block below the bubble */
.quote-bubble-card__author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  margin-left: 24px;
}

.quote-bubble-card__author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.quote-bubble-card__name {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  color: var(--qb-navy);
}

.quote-bubble-card__role {
  font-family: 'EB Garamond', serif !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  color: var(--qb-text);
  margin-top: 4px;
}

.quote-bubble-card__extra {
  margin-top: 6px;
}

/* Compact variant for testimonial grids */
.quote-bubble-card--compact .quote-bubble-card__box {
  border-radius: 40px 40px 40px 0;
  padding: 32px 28px 32px 64px;
}

.quote-bubble-card--compact .quote-bubble-card__box::after {
  left: 40px;
  bottom: -16px;
  width: 32px;
  height: 32px;
}

.quote-bubble-card--compact .quote-bubble-card__accent {
  left: 26px;
  top: 32px;
  bottom: 32px;
}

.quote-bubble-card--compact .quote-bubble-card__heading {
  font-size: clamp(18px, calc(1vw + 14px), 22px) !important;
  margin-bottom: 12px;
}

.quote-bubble-card--compact .quote-bubble-card__quote {
  font-size: clamp(15px, calc(0.4vw + 13.5px), 17px) !important;
  line-height: 1.55;
}

.quote-bubble-card--compact .quote-bubble-card__author {
  margin-top: 26px;
  margin-left: 16px;
}

.quote-bubble-card--compact .quote-bubble-card__author img {
  width: 56px;
  height: 56px;
}

.quote-bubble-card--compact .quote-bubble-card__name {
  font-size: 14px !important;
}

.quote-bubble-card--compact .quote-bubble-card__role {
  font-size: 13px !important;
}

@media (max-width: 767px) {
  .quote-bubble-card__box {
    border-radius: 40px 40px 40px 0;
    padding: 32px 24px 32px 56px;
  }

  .quote-bubble-card__box::after {
    left: 40px;
    bottom: -16px;
    width: 32px;
    height: 32px;
  }

  .quote-bubble-card__accent {
    left: 22px;
    top: 32px;
    bottom: 32px;
  }

  .quote-bubble-card__heading {
    font-size: 22px !important;
  }

  .quote-bubble-card__quote {
    font-size: 17px !important;
  }

  .quote-bubble-card__author {
    margin-left: 12px;
  }

  .quote-bubble-card__author img {
    width: 64px;
    height: 64px;
  }
}
