/* Mnenja / testimonials — page_template_mnenja.php */

.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials > .background-img {
  z-index: 0;
}

.testimonials > .background-img .bg-cover {
  opacity: 0.28;
}

.testimonials > .container {
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.2rem;
  }
}

@media (min-width: 1200px) {
  .testimonials-grid {
    gap: 4rem;
  }
}

.testimonials-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 4rem 3.2rem 3.6rem;
  background: #fff;
  border-bottom: 0.3rem solid #ff1f26;
}

@media (min-width: 768px) {
  .testimonials-item {
    padding: 5rem 4.4rem 4.4rem;
  }

  .testimonials-item:nth-child(even) {
    margin-top: 4rem;
  }
}

@media (min-width: 1200px) {
  .testimonials-item {
    padding: 6rem 5.2rem 5.2rem;
  }
}

.testimonials-item-quote-mark {
  display: block;
  margin-bottom: 2rem;
  font-family: Roboto, sans-serif;
  font-size: 8rem;
  font-weight: 300;
  line-height: 0.7;
  color: #ff1f26;
  user-select: none;
}

.testimonials-item-text {
  flex: 1 1 auto;
  margin: 0 0 3.2rem;
  padding: 0;
  border: 0;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
}

@media (min-width: 992px) {
  .testimonials-item-text {
    font-size: 2rem;
    line-height: 1.65;
  }
}

/* Name + company left, logo right (inline with name) */
.testimonials-item-author {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: auto;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonials-item-author-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.testimonials-item-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
}

.testimonials-item-company {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.45);
}

.testimonials-item-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 14rem;
  max-height: 5.6rem;
}

.testimonials-item-logo.is-horizontal {
  max-width: 16rem;
  max-height: 4.8rem;
}

.testimonials-item-logo.is-vertical {
  max-width: 7.2rem;
  max-height: 7.2rem;
}

/* Override theme-wide img { width: 100% } */
.testimonials-item-logo img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 5.6rem !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: right top;
}

.testimonials-item-logo.is-horizontal img {
  max-height: 4.8rem !important;
}

.testimonials-item-logo.is-vertical img {
  max-width: 7.2rem !important;
  max-height: 7.2rem !important;
}

@media (max-width: 575.98px) {
  .testimonials-item {
    padding: 3.2rem 2.4rem 2.8rem;
  }

  .testimonials-item-quote-mark {
    font-size: 6.4rem;
    margin-bottom: 1.6rem;
  }

  .testimonials-item-text {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
  }

  .testimonials-item-logo {
    max-width: 11rem;
    max-height: 4.4rem;
  }

  .testimonials-item-logo.is-vertical {
    max-width: 5.6rem;
    max-height: 5.6rem;
  }

  .testimonials-item-logo img {
    max-height: 4.4rem !important;
  }

  .testimonials-item-logo.is-vertical img {
    max-width: 5.6rem !important;
    max-height: 5.6rem !important;
  }
}
