.section-title {
  font-size: 4.375rem;
  font-weight: 500;
  color: #243508;
  max-width: 1110px;
  margin: 0 auto 5rem auto;
}
@media (min-width: 1300px) {
  .section-title {
    max-width: 1190px;
  }
}
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 8rem;
  }
}

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

.cards-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Snap scroll */
  scroll-snap-type: x mandatory;
}
.cards-wrapper .card-content .location {
  font-family: "roobert_regular";
  font-size: 1.8rem;
  color: #243508;
  margin-bottom: 2rem;
  font-weight: 500;
}
.cards-wrapper .card-content .client-name {
  font-family: "roobert_regular";
  font-size: 3.375rem;
  font-weight: 500;
  color: #243508;
  margin-bottom: 2rem;
}
.cards-wrapper .card-content .section-heading {
  font-family: "roobert_regular";
  font-size: 2.625rem;
  font-weight: 500;
  color: #243508;
  margin-bottom: 2rem;
}
.cards-wrapper .card-content .challenge-text,
.cards-wrapper .card-content .challenge-text p {
  font-family: "roobert_regular";
  color: #243508;
  font-size: 2.625rem;
  line-height: 1.6;
  flex-grow: 1;
  padding-bottom: 8rem;
}

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

.our-rep-card {
  flex: 0 0 80%; /* mobile default */
  background: #bff355;
  padding: 3.75rem;
  transition: flex-basis 0.6s ease, flex 0.6s ease;
  position: relative;
  cursor: pointer;
  scroll-snap-align: center;
  min-height: 750px;
  border-radius: 0;
  border: none;
  border-right: 1px solid #fff;
}
@media screen and (max-width: 768px) {
  .our-rep-card {
    min-height: 925px;
  }
}
.our-rep-card:hover, .our-rep-card:focus {
  background: linear-gradient(270deg, #bdb2ff 0.01%, #66ffbf 0.01%, #c0f355 50.01%);
  transition: background 0.6s ease;
}
.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: 768px) {
  .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;
  }
}
@media screen and (min-width: 1023px) {
  .our-rep-card.expanded .card-content {
    flex: 0.5;
  }
}
.our-rep-card.expanded .card-content-hidden {
  display: block;
}
.our-rep-card.faded {
  opacity: 0.4;
}
.our-rep-card.hidden {
  display: none;
}

.card-content-wrapper {
  display: flex;
}
@media screen and (max-width: 768px) {
  .card-content-wrapper {
    display: block;
  }
}
.card-content-wrapper .card-content {
  flex: 1;
  padding-right: 30px;
}
.card-content-wrapper .detail-title {
  font-size: 3rem;
  font-weight: 500;
  color: #243508;
  margin-bottom: 2rem;
}
.card-content-wrapper .detail-text {
  color: #243508;
  font-size: 2.625rem;
  line-height: 1.6;
}
.card-content-wrapper .detail-text p {
  color: #243508;
  margin-bottom: 1rem;
  font-size: 2.625rem;
  line-height: 1.6;
}
.card-content-wrapper .detail-text p:last-child {
  margin-bottom: 0;
}

.card-content-hidden {
  flex: 1;
  display: none;
}
@media screen and (min-width: 1024px) {
  .card-content-hidden {
    padding: 0 30px;
  }
}

.solution-btn {
  position: absolute;
  bottom: 10px;
  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-top: 20px;
  margin-bottom: 10px;
  border: 1px solid #243508;
  background: transparent;
  z-index: 4;
  overflow: hidden;
  transition: transform 0.3s ease;
}
@media screen and (max-width: 768px) {
  .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: 12px;
  left: 12px;
  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;
}
.back-btn:hover, .back-btn:focus {
  border: none;
  background: #bff355; /* Background color on hover */
}
.back-btn:hover span, .back-btn:focus span {
  transform: rotate(180deg);
}

/* Desktop widths */
@media (min-width: 769px) {
  .our-rep-card {
    flex: 0 0 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;
}

.our-rep-card:hover .cta-fill-arrow.solution-btn a::after {
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}