body:has(.case-studies-page) {
  background-color: unset;
}

.case-studies-page {
  padding-top: 64px;
  position: relative;
}

.case-studies-page:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  background: url("/wp-content/uploads/2024/08/Gradient-Background.png") no-repeat top center;
  background-size: cover;
  height: 100vh;
}

.case-studies-page .container {
  padding: 0 35px;
}

.case-studies-page .hero__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-studies-page .hero__button {
  margin-top: 32px;
}

.case-studies-page .first-section__label {
  padding-left: 16px;
  padding-right: 16px;
}

.case-studies-page .hero__text {
  max-width: 515px;
}

.case-studies-page .hero__title {
  color: #282828;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: normal;
  text-wrap: balance;
  margin: 0;
}

.case-studies-page .hero__title span {
  background: linear-gradient(90deg, #409A65 -2.05%, #87C6CE 24.81%, #F39325 56.56%, #FBCF54 90%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.case-studies-page .hero__desc {
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin-top: 25px;
}

.case-studies-page .hero__button {
  margin-top: 32px;
  margin-bottom: 0;
}

.case-studies-page .case-studies__card-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px 24px;
  margin-top: 80px;
}

.case-studies-page .case-studies__card {
  display: block;
  overflow: hidden;
  border-radius: 32px;
  max-width: calc(50% - 19px);
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.case-studies-page .card__image {
  font-size: 0;
  overflow: hidden;
  max-height: 308px;
}

.case-studies-page .card__image img {
  display: block;
  object-fit: cover;
  transition-property: transform;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .3s;
  width: 100%;
}

.case-studies-page .case-studies__card:hover .card__image img {
  --scale: 1.1;
  transform: translate(0, 0) rotate(0) skew(0) skewY(0) scaleX(var(--scale)) scaleY(var(--scale));
}

.case-studies-page .card__wrapper {
  padding: 32px;
  background-color: #ffffff;
}

.case-studies-page .card__logo {
  height: 32px;
}

.case-studies-page .card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32.4px;
  color: #282828;
  /*margin-top: 32px;*/
}

.case-studies-page .card__title:hover {
  text-decoration: underline;
}

.case-studies-page .card__success-metrics {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.case-studies-page .success-metrics__card {
  padding: 16px 13px;
  background-color: #F7F7FA;
  border-radius: 16px;
  outline: 1px solid #D5D9D9;
}

.case-studies-page .success-metrics__title {
  color: #409A65;
  font-size: 32px;
  font-weight: 700;
  line-height: 38.4px;
  letter-spacing: 0.01em;
  text-align: center;
}

.case-studies-page .success-metrics__description {
  color: #868686;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  text-align: center;
  margin-top: 16px;
  min-height: 51px;
  white-space: pre;
  text-wrap: auto;
}

.case-studies-page .success-metrics__description::first-letter {
  text-transform: uppercase;
}

.case-studies-page .card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.case-studies-page .tag {
  color: #828283;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px;
  border-radius: 16px;
  background: #F7F7FA;
}

.case-studies-page .page-link {
  display: flex;
  align-items: center;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 1.2;
}

.case-studies-page .page-link:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cg fill='%23666' clip-path='url(%23a)' opacity='.6'%3E%3Cpath d='M7.911 10.156a1.089 1.089 0 1 1 .24-2.164 1.089 1.089 0 0 1-.24 2.164Z'/%3E%3Cpath fill-rule='evenodd' d='m10.794 12.07-3.32-2.328 1.101-1.244 2.851 2.756a.516.516 0 0 1-.632.817Z' clip-rule='evenodd'/%3E%3Cpath fill-rule='evenodd' d='M6.06 1.01c0-.544.441-.984.985-.984h1.974c.544 0 .985.44.985.984v.07c0 .544-.441.984-.985.984h-.24v.803a6.542 6.542 0 1 1-1.494 0v-.803h-.24a.984.984 0 0 1-.985-.984v-.07Zm1.974 13.188a4.832 4.832 0 1 0 0-9.664 4.832 4.832 0 0 0 0 9.664Z' clip-rule='evenodd'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 .026h16v16H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}

.case-studies-page .page-link:after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%23666' fill-rule='evenodd' d='M12.644 4.301a1 1 0 0 1 1.413.035l6.667 7a1 1 0 0 1 0 1.38l-6.667 7a1 1 0 0 1-1.448-1.38l5.058-5.31H4a1 1 0 1 1 0-2h13.667l-5.058-5.31a1 1 0 0 1 .035-1.415Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.case-studies-page .case_study_load_more {
  text-align: center;
  margin-top: 68px;
}

.case-studies__testimonials {
  margin-top: 80px;
}

.case-studies__testimonials-title {
  margin: 0;
  margin-bottom: 48px;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
}

.case-studies__testimonials-items {
  display: flex;
  justify-content: space-between;
}

.case-studies__testimonials-item {
  width: 32%;
  background: linear-gradient(216.63deg, rgba(255, 255, 255, 0) -3.83%, #F7F7FA 78.68%);
  border: 1px solid #D5D9D9;
  padding: 24px;
  height: auto;
  border-radius: 16px;
  position: relative;
}

.case-studies__testimonials-item-logo {
  position: absolute;
  right: 24px;
  top: 24px;
}

.case-studies__testimonials-item-head {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.case-studies__testimonials-item-info {
  padding-right: 30px;
  flex: 1;
}

.case-studies__testimonials-item-name {
  font-family: Gilroy;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  margin-bottom: 8px;
}

.case-studies__testimonials-item-position {
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
}

.case-studies__testimonials-item-position p {
  margin: 0;
}

.case-studies__testimonials-item-position a {
  text-decoration: underline;
}

.case-studies__testimonials-item-content {
  margin-top: 32px;
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: #666666;
}

.case-studies-page .cta-section {
  border-image: none;
  background: linear-gradient(90deg, rgba(64, 154, 101, 0.3) -2.05%, rgba(135, 198, 206, 0.3) 24.81%, rgba(243, 147, 37, 0.3) 56.56%, rgba(251, 207, 84, 0.3) 90%);
  padding: 90px 0 110px;
  border-top: none;
  margin-top: 80px;
}

.cta-section .case-study--container {
  gap: 0;
}

.case-studies-page .cta-section__title,
.case-studies-page .cta-section__description {
  text-align: center;
  text-wrap: balance;
  max-width: 530px;
}

.case-studies-page .cta-section__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 53px;
}

.case-studies-page .cta-section__description {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: 0.01em;
  margin-top: 24px;
}

.case-studies-page .cta-section__buttons {
  margin-top: 32px;
}

.lazyload-loaded {
  animation: fadeIn .5s ease-in;
  -webkit-animation: fadeIn .5s ease-in;
}

@media (max-width: 1200px){
  .case-studies__testimonials-items {
    flex-direction: column;
    gap: 24px;
  }

  .case-studies__testimonials-item {
    width: 100%;
  }
}

@media (max-width: 597px) {
  .case-studies-page {
    padding-top: 48px;
  }

  .case-studies-page .container {
    padding: 0 16px;
  }

  .case-studies-page .hero__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 36.11px;
  }

  .case-studies-page .hero__desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    margin-top: 32px;
  }

  .case-studies-page .case-studies__card-list {
    margin-top: 48px;
  }

  .case-studies-page .case-studies__card {
    border-radius: 16px;
    max-width: 100%;
  }

  .case-studies-page .card__wrapper {
    padding: 20px 16px 32px;
  }

  .case-studies-page .card__title {
    font-size: 18px;
    line-height: 21.6px;
  }

  .case-studies-page .success-metrics__title {
    font-size: 24px;
    line-height: 32.4px;
  }

  .case-studies-page .card__success-metrics {
    gap: 8px;
  }

  .case-studies-page .success-metrics__description {
    font-size: 12px;
    line-height: 14.12px;
  }

  .case-studies-page .success-metrics__card {
    padding: 20px 8px;
  }

  .case-studies-page .card__footer {
    margin-top: 24px;
  }

  .case-studies-page .tag {
    padding: 10px 10px 8px;
  }

  .case-studies-page .page-link {
    padding-top: 2px;
  }

  .case-studies-page .page-link:before {
    margin-top: -4px;
  }

  .case-studies-page .page-link:after {
    margin-top: -2px;
  }

  .case_study_load_more .button {
    width: 100%;
  }

  .case-studies__testimonials-title {
    margin-bottom: 32px;
    font-size: 32px;
    line-height: 120%;
  }

  .case-studies-page .cta-section {
    padding: 40px 0;
    margin-top: 70px;
  }

  .case-studies-page .cta-section__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 31.92px;
  }

  .case-studies-page .cta-section__description {
    font-size: 16px;
    line-height: 24px;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0
  }

  to {
    opacity: 1
  }
}