.testimonial-block {
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow-x: hidden; /* prevent horizontal overflow */
  box-sizing: border-box;
  max-width: 100%;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 120px 1fr 300px; /* Name | Body | Video */
  gap: 2rem;
  align-items: start;
  box-sizing: border-box;
  max-width: 100%;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background-color: #eee;
  margin-bottom: 0.5rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.testimonial-body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  word-wrap: break-word;     /* Allows wrapping on long words */
  overflow-wrap: anywhere;   /* Wrap even on long URLs or no-spaces */
  white-space: normal;       /* Don't preserve line breaks or prevent wrapping */
  max-width: 100%;
 }


.testimonial-video iframe {
  /* width: 100%; */
  /* height: 180px; */
  border: none;
  background-color: #000;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-author {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

}

.initials-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    background-color: #777;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #ffffff;
}

.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    display: block;
}

@media (max-width: 600px) {
  .testimonial-block {
    padding: 1rem;
  }

  .testimonial-video-wrapper {
    width: 100%;
    overflow: hidden;
  }
  
  .responsive-video {
    padding-bottom: 56.25%; /* 16:9 ratio */
    width: 100%;
  }
}