/* Speech Bubbles */
.speech-bubbles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.speech-bubble {
  position: absolute;
  background: white;
  border-radius: 15px;
  padding: 15px 20px;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: none;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: white transparent;
  margin-left: -10px;
}

.speech-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

/* Position bubbles over specific people */
.speech-bubble.person-1 {
  top: 25%;
  left: 18%;
}

.speech-bubble.person-2 {
  top: 35%;
  left: 38%;
}

.speech-bubble.person-3 {
  top: 40%;
  right: 38%;
}

.speech-bubble.person-4 {
  top: 30%;
  right: 18%;
}

.bubble-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

/* Loading state for discuss button */
.discuss-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .speech-bubble {
    max-width: 180px;
    font-size: 12px;
    padding: 12px 16px;
  }
}

@media screen and (max-width: 767px) {
  .speech-bubbles-container {
    display: none; /* Hide on mobile */
  }
}

/* Add fade out animation */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.speech-bubble.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

/* Update the side image styles */
.left-side-person-only,
.right-side-person-only {
  transform: translateY(200px); /* Use transform instead of margin */
}

/* Keep existing styles intact */
.right-side-person-only {
  z-index: -1;
  aspect-ratio: 1.97;
  width: 100%;
  position: absolute;
  inset: auto 0% 0%;
}

/* Add specific transform for left side if needed */
.left-side-person-only {
  z-index: -1;
  position: absolute;
  inset: auto 0% 0%;
}
