/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
.testimonials {
  position: relative;
  padding-bottom: 10rem;
  padding-top: 1.25rem;
}

@media (max-width: 767px) {
  .testimonials {
    padding-bottom: 6.25rem;
  }
}
.testimonials__background {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  z-index: 0;
  overflow: hidden;
}

.testimonials__background-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.testimonials .content-container .testimonial__header {
  margin-bottom: 5.125rem;
  color: var(--color__blue);
}

@media (max-width: 767px) {
  .testimonials .content-container .testimonial__header {
    margin-bottom: 3.75rem;
  }
}
.testimonials__container {
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials__wrapper {
  position: relative;
  width: 100%;
  max-width: 1020px;
  background-color: var(--color__white);
  border: 1px solid var(--color__white-box-border);
  min-height: 440px;
  height: auto;
  border-bottom-right-radius: 1.875rem;
  border-top-left-radius: 1.875rem;
  padding: 0 0 2.5rem;
}

@media (max-width: 767px) {
  .testimonials__wrapper {
    min-height: auto;
    border-bottom-right-radius: 1.25rem;
    border-top-left-radius: 1.25rem;
    padding: 1.25rem 0 5rem;
  }
}
.testimonials__wrapper .icon-quote {
  position: absolute;
  right: -16px;
  top: -32px;
  background: var(--color__medium-grey);
  width: 60px;
  height: 60px;
  z-index: 9;
}

@media (max-width: 767px) {
  .testimonials__wrapper .icon-quote {
    right: -10px;
    top: -24px;
    width: 48px;
    height: 48px;
  }
}
.testimonials__swiper {
  overflow: hidden;
}

.testimonials__swiper .swiper-wrapper {
  display: flex;
}

.testimonials__swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
}

.testimonials__navigation {
  display: flex;
  gap: 1rem;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  justify-content: flex-end;
}

.testimonials__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .testimonials__button {
    width: 40px;
    height: 40px;
  }
}
.testimonials__button .testimonial-arrow-left {
  transform: rotate(90deg);
}

.testimonials__button .testimonial-arrow-right {
  transform: rotate(-90deg);
}

.testimonials__button--prev {
  background-color: #e5e7eb;
  color: #6b7280;
}

.testimonials__button--prev:hover {
  background-color: #d1d5db;
  color: #374151;
}

.testimonials__button--next {
  background-color: #2563eb;
  color: #ffffff;
}

.testimonials__button--next:hover {
  background-color: #1d4ed8;
}

.testimonials__button.swiper-button-disabled {
  opacity: 0.5;
  cursor: auto;
}

.testimonial-card {
  background-color: var(--color__white);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.1875rem;
  height: 100%;
  padding: 3.75rem 1.25rem;
  margin: 0 2.5rem;
}

@media (max-width: 767px) {
  .testimonial-card {
    flex-direction: column;
    padding: 1.25rem;
    margin: 0 1rem;
  }
}
.testimonial-card__author-image {
  aspect-ratio: 1/1.25;
  border-radius: 1.875rem;
  height: 100%;
  flex: 1;
  max-width: 34%;
  max-height: 360px;
}

@media (max-width: 767px) {
  .testimonial-card__author-image {
    max-width: none;
    width: 100%;
  }
}
.testimonial-card__author-image img {
  height: 100%;
  width: 100%;
  border-radius: 2rem;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (max-width: 767px) {
  .testimonial-card__author-image img {
    border-radius: 1.25rem;
  }
}
.testimonial-card__content {
  font-weight: 400;
  color: var(--color__dark-grey);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  text-align: left;
}

.testimonial-card__content p {
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color__blue);
  justify-content: flex-start;
  /* 	@media (max-width: 767px) {
  	justify-content: center;
  } */
}

.testimonial-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  /* 	@media (max-width: 767px) {
  	gap: rem-calc(6);
  } */
}

.testimonial-card__author-name {
  color: var(--color__blue);
}

.testimonial-card__author-occupation {
  font-size: 0.875rem;
  color: var(--color__grey);
}
