/* Quote Component Styles */

.quote-component {
  padding: 2rem 0;
  /* Take up full horizontal width like text-wrapper */
  width: 100%;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.quote-component .row {
  margin: 0 auto;
  /* Ensure row stays horizontal - no wrapping */
  flex-wrap: nowrap;
  /* Center the content with max-width constraints like text-wrapper */
  max-width: 1140px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Responsive max-widths matching text-wrapper */
@media (min-width: 576px) {
  .quote-component .row {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .quote-component .row {
    max-width: 720px;
  }
}

@media (min-width: 1010px) {
  .quote-component .row {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .quote-component .row {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .quote-component .row {
    max-width: 1320px;
  }
}

/* In two-column layouts, allow full width */
.two-columns .quote-component .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

/* Ensure quote marks stay on sides, not stacked */
.quote-component .col-auto {
  flex-shrink: 0;
}

/* Ensure quote component shows full width in editing mode */
.block-wrapper .quote-component {
  width: 100% !important;
  max-width: 100% !important;
}

/* Make the row inside full-width in editing mode */
.block-wrapper .quote-component .row {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure quote text column doesn't expand - only as wide as content */
.quote-component .quote-text-column {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100%;
}

.quote-component .quote-mark.text-dark {
    color: #000 !important;
}
/* Large quotation marks */
.quote-component .mse-new-display-1 {
  font-size: 6rem;
  line-height: 1;
  font-weight: 300;
  opacity: 0.5;
}

/* Quote text */
.quote-component .mse-new-display-4 {
  font-weight: 400;
  line-height: 1.3;
  /* Ensure quote text can wrap naturally - no max-height restrictions */
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  word-wrap: break-word;
}

/* Author text */
.quote-component .mse-new-heading-5 {
  font-weight: 300;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .quote-component .mse-new-display-4 {
    font-size: 1.5rem;
  }
  
  .quote-component .mse-new-heading-5 {
    font-size: 1rem;
  }
}

/* Animation classes */
.quote-component .fadeInUp {
  animation-name: fadeInUp;
}

.quote-component .fadeInDown {
  animation-name: fadeInDown;
}

.quote-component .fadeIn {
  animation-name: fadeIn;
}

.quote-component .animated {
  animation-fill-mode: both;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

