.testi-txt img {
  margin-top: -50px;
  width: 25% !important;
  margin-bottom: 10px;
}
.testi-card {
  margin-top: 40px;
}
.testi-card .row {
  padding: 50px;
}
.quote-img {
  margin-top: -50px;
  width: 90px;
  margin-bottom: 15px;
  position: absolute;
  right: 30px;
}
.swiper-slide {
  height: initial;
}
@media (max-width: 767px) {
  .testi-card .row {
    padding: 30px;
  }
}
@media (max-width: 576px) {
  .testi-card .row {
    padding: 20px;
  }
  .quote-img {
    margin-top: -26px;
    width: 50px;
    right: 14px;
  }
  .testi-card {
    margin-top: 30px;
  }
  .testi-title {
    font-size: 16px;
  }
}
/* commitment Section */
.commitment-wrapper {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.commitment-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  max-width: 140px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.commitment-card.active {
  width: 50%;
  max-width: inherit;
  cursor: auto;
}

/* Image Cards */
.image-card {
  flex: 1;
  max-width: 240px;
  position: relative;
}
.image-card:after {
  content: "";
  width: 50%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: linear-gradient(-90deg, transparent, #333333);
  pointer-events: none;
}

.commitment-card.active .image-card {
  min-width: 240px;
  transition: all 0.4s ease;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Vertical Text */
.vertical-text {
  position: absolute;
  bottom: 10px;
  left: 5px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  max-height: 70%;
  z-index: 1;
}

/* Content Card */
.content-card {
  flex: 2;
  background: #f5f6fa;
  padding: 30px;  
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  display: none;
  border-radius: 10px;
  transition: all 0.5s ease;
  min-height: 320px;
}

.commitment-card.active .content-card {
  display: flex;
}

.content-card h3 {
  color: #2b2b8f;
  font-size: 1.125rem;
  margin-bottom: 15px;
}

.content-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

@media (max-width: 1199px) {
  .commitment-card {
    max-width: 107px;
  }
  .commitment-card.active .image-card {
    min-width: 200px;
  }
  .content-card {
    padding: 15px;
    min-height: 280px;
  }
}

@media (max-width: 991px) {
  .commitment-card {
    max-width: 80px;
  }
  .commitment-card.active .image-card {
    min-width: 160px;
  }
  .content-card {
    padding: 15px;
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .commitment-wrapper {
    flex-direction: column;
  }
  .commitment-card {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
  }
  .commitment-card.active {
    width: 100%;
  }
  .image-card {
    width: 100%;
    max-width: 100%;
  }
  .image-card:after {
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, #333333);
    border-radius: 0 0 10px 10px;
  }
  .image-card img {
    height: 140px;
  }
  .commitment-card.active .image-card img {
    height: 300px;
  }

  .vertical-text {
    writing-mode: inherit;
    transform: none;
    left: 15px;
    bottom: 15px;
    font-size: 15px;
  }
  .content-card {
    margin-left: 0;
    margin-top: 10px;
    min-height: 0;
  }
}

@media (max-width: 576px) {
  .commitment-card.active .image-card img {
    height: auto;
  }
}
