/* Testimonial Block Base Styles */
.testimonial-block {
  width: 100%;
  margin: 0 auto;
}

/* Layout 1: Quote with Image */
.testimonial-block--image .testimonial-block__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
}

.testimonial-block--image .testimonial-block__text-wrapper {
  position: relative;
  padding: 2rem 0;
}

.testimonial-block--image .testimonial-block__quote-icon {
  width: 5.75rem;
  height: 4.75rem;
  margin-bottom: 2rem;
  color: var(--wp--preset--color--primary, #6366f1);
}

.testimonial-block--image .testimonial-block__quote-icon--bottom {
  margin-top: 2rem;
  margin-bottom: 0;
  margin-left: auto;
  display: block;
}

.testimonial-block--image .testimonial-block__quote {
  font-size: 2rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  margin: 2rem 0;
  color: #333;
}

.testimonial-block--image .testimonial-block__author {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2rem 0 0 0;
  color: #333;
}

.testimonial-block--image .testimonial-block__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.testimonial-block--image .testimonial-block__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Layout 2: Primary Color Background */
.testimonial-block--primary .testimonial-block__primary-content {
  padding: 6rem 4rem;
  text-align: center;
}

.testimonial-block--primary .testimonial-block__centered-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-block--primary .testimonial-block__lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.testimonial-block--primary .testimonial-block__line {
  flex: 1;
  height: 2px;
  background-color: white;
  max-width: 450px;
}

.testimonial-block--primary .testimonial-block__quote-icon-centered {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  color: white;
}

.testimonial-block--primary .testimonial-block__quote--centered {
  font-size: 2.5rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 300;
  margin: 0;
  color: white;
}

/* Layout 3: Secondary/Light Background */
.testimonial-block--secondary .testimonial-block__secondary-content {
  padding: 6rem 4rem;
  text-align: center;
  background-color: #f8f9fa;
}

.testimonial-block--secondary .testimonial-block__centered-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-block--secondary .testimonial-block__lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.testimonial-block--secondary .testimonial-block__line--dark {
  flex: 1;
  height: 2px;
  background-color: var(--wp--preset--color--primary, #6366f1);
  max-width: 450px;
}

.testimonial-block--secondary .testimonial-block__quote-icon-centered {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  color: var(--wp--preset--color--primary, #6366f1);
}

.testimonial-block--secondary .testimonial-block__quote--dark {
  font-size: 2.5rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
  margin: 0;
  color: #333;
}

/* Editor-specific styles */
.editor-styles-wrapper .testimonial-block--editor {
  margin: 2rem 0;
}

.editor-styles-wrapper .testimonial-block--image .testimonial-block__image-button {
  margin-top: 1rem;
}

.editor-styles-wrapper .testimonial-block--image .testimonial-block__remove-image {
  margin-top: 0.5rem;
  display: block;
}

.editor-styles-wrapper .testimonial-block--image .testimonial-block__image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  min-height: 400px;
}

.editor-styles-wrapper .testimonial-block--image .testimonial-block__image-wrapper img {
  border: none;
  background: none;
}

.editor-styles-wrapper .testimonial-block__quote {
  outline: none;
}

.editor-styles-wrapper .testimonial-block__quote:empty:before {
  content: attr(placeholder);
  color: #999;
  font-style: italic;
}

.editor-styles-wrapper .testimonial-block__author {
  outline: none;
}

.editor-styles-wrapper .testimonial-block__author:empty:before {
  content: attr(placeholder);
  color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonial-block--image .testimonial-block__content {
    gap: 3rem;
  }

  .testimonial-block--image .testimonial-block__quote {
    font-size: 1.75rem;
  }

  .testimonial-block--primary .testimonial-block__quote--centered,
  .testimonial-block--secondary .testimonial-block__quote--dark {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .testimonial-block--image .testimonial-block__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .testimonial-block--image .testimonial-block__quote {
    font-size: 1.5rem;
  }

  .testimonial-block--image .testimonial-block__author {
    font-size: 1.25rem;
  }

  .testimonial-block--image .testimonial-block__quote-icon {
    width: 4rem;
    height: 3.5rem;
  }

  .testimonial-block--primary .testimonial-block__primary-content,
  .testimonial-block--secondary .testimonial-block__secondary-content {
    padding: 4rem 2rem;
  }

  .testimonial-block--primary .testimonial-block__lines,
  .testimonial-block--secondary .testimonial-block__lines {
    gap: 1.5rem;
  }

  .testimonial-block--primary .testimonial-block__line,
  .testimonial-block--secondary .testimonial-block__line--dark {
    max-width: 100px;
  }

  .testimonial-block--primary .testimonial-block__quote-icon-centered,
  .testimonial-block--secondary .testimonial-block__quote-icon-centered {
    width: 3rem;
    height: 3rem;
  }

  .testimonial-block--primary .testimonial-block__quote--centered,
  .testimonial-block--secondary .testimonial-block__quote--dark {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .testimonial-block--image .testimonial-block__content {
    padding: 2rem 1rem;
  }

  .testimonial-block--image .testimonial-block__quote {
    font-size: 1.25rem;
  }

  .testimonial-block--image .testimonial-block__author {
    font-size: 1.125rem;
  }

  .testimonial-block--image .testimonial-block__image-wrapper {
    min-height: 300px;
  }

  .testimonial-block--primary .testimonial-block__primary-content,
  .testimonial-block--secondary .testimonial-block__secondary-content {
    padding: 3rem 1.5rem;
  }

  .testimonial-block--primary .testimonial-block__quote--centered,
  .testimonial-block--secondary .testimonial-block__quote--dark {
    font-size: 1.25rem;
  }
}
