.case-studies-section {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: var(--color-navy-500);
  padding: 90px 0 0 0;
}

.case-studies-section__intro {
  margin-left: 82px;
}

.case-studies-section h2 {
  width: 806px;
  color: var(--color-cyan-500);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.case-studies-section__intro p {
  width: 685px;
  height: 68px;
  margin: 12px 0 0 31px;
  color: var(--color-navy-50);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.case-studies-section__scroller {
  width: 100vw;
  height: 291px;
  margin-top: 44px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  clip-path: inset(0 0 0 0);
  contain: paint;
}

.case-studies-section__scroller::-webkit-scrollbar {
  display: none;
}

.case-studies-section__cards {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 32px;
  will-change: transform;
}

.testimonial-card {
  position: relative;
  width: 475px;
  height: 271px;
  flex-shrink: 0;
  border-radius: 32px;
  border: 1px solid var(--color-black);
  background: var(--color-navy-300);
  padding: 13px 13px 0 14px;
}

.testimonial-card__inner {
  display: flex;
  width: 448px;
  height: 206px;
  padding: 20px 19px 0 19px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 13px;
  border-radius: 24px;
  background: var(--color-navy-500);
  overflow: hidden;
}

.testimonial-card h3 {
  color: var(--color-cyan-500);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.testimonial-card p {
  width: 410px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.rating-stars {
  position: absolute;
  left: 33px;
  top: 230px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-cyan-500);
  font-size: 17.5px;
  line-height: 16.625px;
}

.case-studies-section__cta {
  position: absolute;
  left: 592px;
  top: 677px;
  transform: none;
  width: 259px;
  height: 38px;
  padding: 7px 53px 7px 54px;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
}

@media (max-width: 767px) {
  .case-studies-section {
    height: 456px;
    padding: 40px 0 0 24px;
  }

  .case-studies-section__intro {
    margin-left: 0;
  }

  .case-studies-section h2 {
    width: 320px;
    height: 80px;
    text-align: left;
    font-size: 48px;
  }

  .case-studies-section__intro p {
    width: 336px;
    height: 64px;
    margin: 18px 0 0;
    color: var(--color-navy-200);
    font-family: var(--font-body);
    font-size: 12px;
    overflow: hidden;
  }

  .case-studies-section__scroller {
    width: calc(100vw - 43px);
    height: 128px;
    margin-top: 24px;
    padding-bottom: 0;
    overflow-x: auto;
  }

  .case-studies-section__cards {
    gap: 7px;
  }

  .testimonial-card {
    width: 170px;
    height: 128px;
    border-radius: 8px;
    padding: 5px 5px 0;
    background: var(--color-navy-300);
  }

  .testimonial-card__inner {
    width: 160px;
    height: 108px;
    padding: 8px 11px;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
  }

  .testimonial-card h3 {
    width: 67px;
    height: 10px;
    font-size: 10px;
  }

  .testimonial-card p {
    width: 138px;
    height: 78px;
    font-size: 8px;
    overflow: hidden;
    text-transform: none;
  }

  .rating-stars {
    left: 13px;
    top: 117px;
    gap: 4px;
    font-size: 6px;
    line-height: 6px;
  }

  .case-studies-section__cta {
    top: 378px;
    left: 113px;
    transform: none;
    width: 203px;
    padding: 7px 40px 7px 41px;
  }
}
