.testimonials-section {
  padding: 8rem 0;
  background-color: var(--color-light, #f9f9f9); /* Light mode */
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 5rem;
}

.testimonials-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
  display: block;
}

.testimonials-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-dark, #111);
  margin: 0;
}

/* Staggered Grid for Speech Bubbles */
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Speech Bubble Base Style */
.speech-bubble {
  position: relative;
  background: #fff;
  border: 5px solid var(--color-light);
  color: var(--color-dark);
  padding: 2.5rem 3rem;
  border-radius: 40px;
  max-width: 800px;
  box-shadow: 10px 10px 0px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.speech-bubble:hover {
  transform: scale(1.02) translateY(-5px);
  z-index: 10;
}

/* Typography inside bubble */
.speech-bubble p {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

/* The Speech Bubble Tail (Triangle) */
.speech-bubble::before,
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -40px;
  border-style: solid;
}

.speech-bubble::before {
  border-width: 40px 40px 0 0;
  border-color: var(--color-light) transparent transparent transparent;
}

.speech-bubble::after {
  border-width: 32px 32px 0 0;
  bottom: -27px; /* Align slightly above the outline */
}

/* Zigzag Layout & Individual Colors */

/* Item 1: Left */
.speech-bubble:nth-child(1) {
  align-self: flex-start;
  background-color: var(--color-mango);
  border-radius: 50px 50px 50px 10px;
}
.speech-bubble:nth-child(1)::before {
  left: 40px;
  border-width: 40px 40px 0 0;
  border-color: var(--color-light) transparent transparent transparent;
}
.speech-bubble:nth-child(1)::after {
  left: 45px;
  border-width: 30px 30px 0 0;
  border-color: var(--color-mango) transparent transparent transparent;
}

/* Item 2: Right */
.speech-bubble:nth-child(2) {
  align-self: flex-end;
  background-color: #A7E6FF; /* Cyan */
  border-radius: 50px 50px 10px 50px;
}
.speech-bubble:nth-child(2)::before {
  right: 40px;
  border-width: 40px 0 0 40px;
  border-color: var(--color-light) transparent transparent transparent;
}
.speech-bubble:nth-child(2)::after {
  right: 45px;
  border-width: 30px 0 0 30px;
  border-color: #A7E6FF transparent transparent transparent;
}

/* Item 3: Center-Left */
.speech-bubble:nth-child(3) {
  align-self: flex-start;
  margin-left: 10%;
  background-color: #FFB6C1; /* Pink */
  border-radius: 50px 50px 50px 10px;
}
.speech-bubble:nth-child(3)::before {
  left: 40px;
  border-width: 40px 40px 0 0;
  border-color: var(--color-light) transparent transparent transparent;
}
.speech-bubble:nth-child(3)::after {
  left: 45px;
  border-width: 30px 30px 0 0;
  border-color: #FFB6C1 transparent transparent transparent;
}

/* Item 4: Center-Right */
.speech-bubble:nth-child(4) {
  align-self: flex-end;
  margin-right: 10%;
  background-color: #98FB98; /* Green */
  border-radius: 50px 50px 10px 50px;
}
.speech-bubble:nth-child(4)::before {
  right: 40px;
  border-width: 40px 0 0 40px;
  border-color: var(--color-light) transparent transparent transparent;
}
.speech-bubble:nth-child(4)::after {
  right: 45px;
  border-width: 30px 0 0 30px;
  border-color: #98FB98 transparent transparent transparent;
}

/* Add random fun decorative doodles to the background */
.testimonials-section::before,
.testimonials-section::after {
  content: '';
  position: absolute;
  font-size: 4rem;
  color: var(--color-orange);
  opacity: 0.5;
  z-index: 1;
}

.testimonials-section::before {
  content: '★';
  top: 15%;
  left: 5%;
  transform: rotate(-15deg);
}

.testimonials-section::after {
  content: '✧';
  bottom: 20%;
  right: 8%;
  transform: rotate(20deg);
}

/* Responsive */
@media (max-width: 768px) {
  .speech-bubble {
    padding: 1.5rem 2rem;
  }
  .speech-bubble p {
    font-size: 1.25rem;
  }
  .speech-bubble:nth-child(odd),
  .speech-bubble:nth-child(even) {
    align-self: stretch;
    margin: 0;
  }
  .testimonials-section::before,
  .testimonials-section::after {
    display: none;
  }
}
