.section-title {
  font-size: 4.375rem;
  font-weight: 500;
  color: #243508;
  max-width: 1110px;
  margin: 0 auto 2.5rem auto;
}
@media (min-width: 1300px) {
  .section-title {
    max-width: 1190px;
  }
}
@media (max-width: 820px) {
  .section-title {
    margin-bottom: 4rem;
  }
}
.section-title + p {
  font-family: "roobert_medium";
  font-size: 2.625rem;
  color: #243508;
  line-height: 31px;
  font-weight: 400;
  max-width: 1110px;
  margin: 0 auto 5rem auto;
}
@media (min-width: 1300px) {
  .section-title + p {
    max-width: 1190px;
  }
}

.carousel-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: visible;
}

.our-representative-wrapper.container-overflow-right .carousel-container {
  overflow: visible;
}
.our-representative-wrapper.container-overflow-right .cards-wrapper {
  position: relative;
  width: 143%;
  max-width: none;
}

.our-representative-wrapper.container-overflow-left .carousel-container {
  overflow: visible;
}
.our-representative-wrapper.container-overflow-left .cards-wrapper {
  position: relative;
  width: 145%;
  max-width: none;
  margin-left: -30%;
}

.cards-wrapper {
  display: block;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Snap scroll */
  scroll-snap-type: x mandatory;
  white-space: nowrap;
  font-size: 0; /* Remove inline-block spacing */
}
.our-representative-wrapper:not(.container) .cards-wrapper {
  overflow-x: visible;
}
.container-overflow-right .cards-wrapper {
  overflow-x: visible;
}
.container-overflow-left .cards-wrapper {
  overflow-x: visible;
}
.cards-wrapper .card-content .location {
  font-family: "roobert_regular";
  font-size: 1.8rem;
  color: #243508;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 120%;
}
@media screen and (max-width: 820px) {
  .cards-wrapper .card-content .location {
    font-size: 1.75rem;
    line-height: 130%;
  }
}
.cards-wrapper .card-content .client-name {
  font-family: "roobert_regular";
  font-size: 3.375rem;
  font-weight: 500;
  color: #243508;
  margin-bottom: 2rem;
  line-height: 130%;
}
@media screen and (max-width: 820px) {
  .cards-wrapper .card-content .client-name {
    font-size: 2.625rem;
  }
}
.cards-wrapper .card-content .section-heading {
  font-family: "roobert_medium";
  font-size: 3rem;
  font-weight: 500;
  color: #243508;
  margin-bottom: 2rem;
  line-height: 130%;
}
@media screen and (max-width: 820px) {
  .cards-wrapper .card-content .section-heading {
    font-size: 2.625rem;
  }
}
.cards-wrapper .card-content .challenge-text,
.cards-wrapper .card-content .challenge-text p {
  font-family: "roobert_regular";
  color: #243508;
  font-size: 2rem;
  flex-grow: 1;
  font-weight: 300;
  padding-bottom: 8rem;
  line-height: 130%;
}
@media screen and (min-width: 1024px) {
  .cards-wrapper .card-content .challenge-text,
  .cards-wrapper .card-content .challenge-text p {
    max-width: 280px;
    min-width: 225px;
  }
}

.cards-wrapper::-webkit-scrollbar {
  display: none;
}

.our-rep-card {
  display: inline-block;
  width: 80%; /* mobile default */
  background: #bff355;
  padding: 3.75rem;
  position: relative;
  cursor: pointer;
  scroll-snap-align: center;
  border-radius: 0;
  border: none;
  border-right: 1px solid #fff;
  vertical-align: top;
  white-space: normal;
  font-size: 1rem; /* Reset font-size */
  box-sizing: border-box;
  min-height: 600px; /* Minimum height */
}
@media screen and (min-width: 1025px) {
  .our-rep-card:hover .cta-fill-arrow.solution-btn a::after {
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
  }
}
@media screen and (min-width: 1025px) {
  .our-rep-card:hover {
    background: linear-gradient(270deg, #bdb2ff 0.01%, #66ffbf 0.01%, #c0f355 50.01%);
    transition: background 0.6s ease;
  }
}
.our-rep-card.expanded .card-content-wrapper {
  justify-content: unset;
}
@media screen and (min-width: 1025px) {
  .our-rep-card.expanded {
    z-index: 5;
    background: linear-gradient(270deg, #bdb2ff 0.01%, #66ffbf 25.01%, #c0f355 50.01%);
  }
}
@media screen and (max-width: 1023px) {
  .our-rep-card.expanded {
    background: linear-gradient(270deg, #bdb2ff 0.01%, #66ffbf 0.01%, #c0f355 50.01%);
  }
}
@media screen and (max-width: 820px) {
  .our-rep-card.expanded .solution-btn,
  .our-rep-card.expanded .section-heading,
  .our-rep-card.expanded .challenge-text {
    display: none;
  }
  .our-rep-card.expanded .back-btn {
    display: flex;
  }
  .our-rep-card.expanded .card-content-hidden {
    display: block;
    opacity: 1;
  }
}
@media screen and (min-width: 1024px) {
  .our-rep-card.expanded .card-content {
    flex: 0.5;
  }
}
@media screen and (min-width: 820px) {
  .our-rep-card.expanded .card-content-hidden {
    flex: 1 1 auto;
    min-width: 385px;
    opacity: 1;
    overflow: visible;
    visibility: visible;
    padding: 0 30px;
  }
}
.our-rep-card.expanded .challenge-text,
.our-rep-card.expanded .challenge-text p {
  min-width: 202px;
}
.our-rep-card.faded {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.our-rep-card.hidden {
  display: none;
}

.card-content-wrapper {
  display: flex;
  justify-content: flex-end;
  height: 100%;
}
@media screen and (max-width: 820px) {
  .card-content-wrapper {
    display: block;
  }
}
.card-content-wrapper .card-content {
  flex: 1;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
}
.card-content-wrapper .detail-title {
  font-family: "roobert_medium";
  font-size: 3rem;
  font-weight: 500;
  color: #243508;
  margin-bottom: 2rem;
  line-height: 130%;
}
@media screen and (max-width: 820px) {
  .card-content-wrapper .detail-title {
    font-size: 2.625rem;
  }
}
.card-content-wrapper .detail-text {
  font-family: "roobert_regular";
  color: #243508;
  font-size: 2rem;
  line-height: 130%;
  font-weight: 300;
}
@media screen and (min-width: 1024px) {
  .card-content-wrapper .detail-text {
    min-width: 385px;
    max-width: 735px;
  }
}
.card-content-wrapper .detail-text p {
  color: #243508;
  font-family: "roobert_regular";
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 130%;
  font-weight: 300;
}
.card-content-wrapper .detail-text p:last-child {
  margin-bottom: 0;
}

.card-content-hidden {
  flex: 0 0 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: flex 0.7s ease-in-out, opacity 0.7s ease-in-out, padding 0.7s ease-in-out, min-width 0.7s ease-in-out;
  visibility: hidden;
}
@media screen and (min-width: 1024px) {
  .card-content-hidden {
    padding: 0;
  }
}
@media screen and (max-width: 820px) {
  .card-content-hidden {
    display: none;
    transition: none;
    visibility: visible;
  }
}

.solution-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 9;
}
.solution-btn.cta-fill-arrow a::before {
  background-color: transparent !important;
}
.solution-btn.cta-fill-arrow span:not([scfieldtype]) {
  background: transparent !important;
  border: none;
}
.solution-btn.cta-fill-arrow span:not([scfieldtype]) a:before {
  background-color: transparent !important;
}

.detail-close-btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: -30px;
  margin-top: 5px;
  margin-bottom: 20px;
  border: 1px solid #243508;
  background: transparent;
  z-index: 4;
  overflow: hidden;
  transition: transform 0.3s ease;
}
@media screen and (max-width: 820px) {
  .detail-close-btn {
    display: none !important;
  }
}
.detail-close-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #bff355;
  z-index: -1;
  transition: width 0.4s ease;
}
.detail-close-btn:focus {
  outline: none;
}
.detail-close-btn:hover {
  transform: scale(1.01);
  transition: width 1s ease;
}
.detail-close-btn:hover::before {
  width: 100%;
}

.back-btn {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border: 2px solid #243508; /* Border color */
  background: transparent;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0; /* Square look */
  z-index: 9999;
  display: none;
  color: #243508;
}
.back-btn span {
  color: #243508;
}
.back-btn:hover, .back-btn:focus {
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.1);
}
.back-btn:hover span, .back-btn:focus span {
  transform: rotate(180deg);
}

/* Desktop widths */
@media (min-width: 820px) {
  .our-rep-card {
    width: 32%; /* Default 32% to show partial cards on sides when more than 3 cards */
  }
  .cards-wrapper:has(.our-rep-card:nth-child(3):last-child) .our-rep-card {
    width: 33.33%;
  }
}
/* Custom scrollbar styling */
.custom-scrollbar {
  position: relative;
  height: 12px;
  background: #e8dcd5;
  border-radius: 6px;
  margin: 50px auto;
  overflow: hidden;
  cursor: pointer;
  max-width: 1220px;
}

.cs-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cs-thumb {
  position: absolute;
  top: 0;
  height: 100%;
  background: #517d0e;
  border-radius: 6px;
  cursor: pointer;
  width: 50px;
}