:root {
  --fts-font-family: 'Poppins', sans-serif;
  --fts-primary: #5e72e4;
  --fts-primary-hover: #4a60d0;
  --fts-dark-ui: #1e1e2e;
  --fts-light-bg: #f3f5ff;
  --fts-text-title: #111111;
  --fts-text-body: #525f7f;
  --fts-white: #ffffff;
  --fts-radius: 20px;
}

.fts-wrapper {
  font-family: var(--fts-font-family);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.fts-tabs-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 60px;
  margin: 0 10px;
  justify-content: center;
}

.fts-tabs-scroll-area {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  width: 100%;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}

.fts-tabs-scroll-area::-webkit-scrollbar {
  display: none;
}

/* --- TAB BUTTON STYLES --- */
.fts-tab-btn {
  font-family: var(--fts-font-family);
  background: transparent;
  border: 1px solid var(--fts-dark-ui);
  margin: 3px;
  padding: 11.2px 20.8px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: block;

  /* DEFAULT: Truncate with (...) if longer than 180px */
  /* This applies when there are 6 or more items */
  max-width: 180px;
  width: auto;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* --- QUANTITY QUERY CONDITION (UPDATED to 5) --- */
/* If there are 5 or fewer items, allow full width (no dots) */
.fts-tab-btn:first-child:nth-last-child(-n + 5),
.fts-tab-btn:first-child:nth-last-child(-n + 5) ~ .fts-tab-btn {
  max-width: 100%;
}

.fts-tab-btn:hover {
  border-color: var(--fts-primary);
  color: var(--fts-primary);
}

.fts-tab-btn.active {
  background: var(--fts-dark-ui);
  color: var(--fts-white);
  border-color: var(--fts-dark-ui);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fts-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--fts-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  color: var(--fts-white);
  font-size: 25px;
  line-height: 25px;
  padding: 0;
  transition: all 0.2s ease;
}

.fts-nav-btn:hover {
  background: var(--fts-primary-hover);
  transform: translateY(-50%) scale(1.1);
}

.fts-prev {
  left: 0;
}

.fts-next {
  right: 0;
}

.fts-content-display {
  background: var(--fts-light-bg);
  border-radius: var(--fts-radius);
  overflow: hidden;
  position: relative;
  margin-top: 30px;
  transition: height 0.3s ease;
}

.fts-content-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  align-items: flex-start;
}

.fts-content-panel {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  padding: 40px 40px;
  box-sizing: border-box;
  align-items: center;
  gap: 30px;
}

.fts-image-col {
  max-height: fit-content;
  width: 45%;
  flex-shrink: 0;
}

.fts-image-col img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--fts-radius);
}

.fts-text-col {
  flex: 1;
}

.fts-desc p {
  text-align: left;
}

/* last mile business section border */
.setting-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  border-top: 1px dashed #000;
  width: 36%;
  z-index: 0;
}
.setting-icon:nth-child(2n)::after {
  left: 0;
}
.business-gains-content-odd::before {
  content: '';
  position: absolute;
  left: -1.5%;
  height: 1rem;
  width: 1rem;
  background: #000;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.business-gains-content-even::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 1rem;
  width: 1rem;
  background: #000;
  border-radius: 50%;
  left: 98.5%;
  transform: translateY(-50%);
  margin-right: -1.1rem;
}
.business-gains-section:first-child:before {
  top: 50%;
  height: 100%;
}

.business-gains-section {
  position: relative;
}
.business-gains-section::before {
  content: '';
  position: absolute;
  border-left: 1px dashed #000;
  margin-right: -0.5rem;
  top: 66px;
  left: 50%;
  height: 100%;
}
.business-gains-section:last-child::before {
  display: none;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 991px) {
  .fts-content-panel {
    padding: 20px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fts-image-col {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .fts-image-col img {
    width: 70%;
  }
}
@media (max-width: 767px) {
  .business-gains-content-odd::before {
    display: none;
  }
  .business-gains-content-even::before {
    display: none;
  }
  .business-gains-section::before {
    display: none;
  }
  .setting-icon::after {
    display: none;
    border: none;
  }
  .courier-benefits {
    border: none;
  }
  .fts-tabs-container {
    padding: 0;
    justify-content: flex-start;
  }

  .fts-nav-btn {
    display: none;
  }

  .fts-tabs-scroll-area {
    padding: 0;
  }

  .fts-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    /* On mobile, allow full width */
    max-width: 100%;
  }

  .fts-content-panel {
    flex-direction: column;
    background-color: transparent;
    padding: 0;
    gap: 20px;
  }

  .fts-image-col {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .fts-image-col img {
    width: 70%;
    border-radius: 20px;
  }

  .fts-text-col {
    width: 100%;
    text-align: left;
  }

  .fts-title {
    font-size: 22px;
  }

  .fts-desc {
    font-size: 14px;
  }
}
