/* Lifedge Testimonials — testimonials.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.tw-section {
  font-family: "Montserrat", sans-serif;
  padding: 72px 0 80px;
  background: transparent;
  width: 100%;
}

.tw-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px 0;
  list-style: none;
}

.tw-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1;
  padding: 9px 18px;
  border: 1px solid #d4d6d8;
  color: #d4d6d8;
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
  -webkit-appearance: none;
  margin: 0;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.tw-chip:hover {
  background: #ca956a;
  border-color: #ca956a;
  color: #27333e;
}
.tw-chip.tw-active {
  background: #ca956a;
  border-color: #ca956a;
  color: #27333e;
}

.tw-stage {
  position: relative;
  width: 100%;
  padding: 40px 0 20px;
  overflow: hidden;
}

.tw-track {
  display: flex;
  align-items: flex-end;
  will-change: transform;
}

.tw-card {
  flex: 0 0 50%;
  margin: 0 0.25%;
  background: #e8e2d9;
  border-radius: 20px;
  padding: 28px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border: none;
  opacity: 0.38;
  transform: scale(0.82) translateY(0px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}
.tw-card.tw-active {
  opacity: 1;
  transform: scale(1) translateY(-28px);
  pointer-events: auto;
  z-index: 2;
}

/* Badge — mono, uppercase, clean */
.tw-card-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ca956a;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: block;
  white-space: nowrap;
}

/* Quote text */
.tw-card-quote {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  letter-spacing: -0.1px;
  color: #27333e;
  margin: 0 0 24px 0;
  padding: 0;
}

/* Inline curly quote marks */
.tw-card-quote::before {
  content: "\201C";
  color: rgba(39, 51, 62, 0.8);
}
.tw-card-quote::after {
  content: "\201D";
  color: rgba(39, 51, 62, 0.8);
}

.tw-card-name {
  font-family: "Montserrat", sans-serif;
  padding-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #27333e;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 4px 0;
}
.tw-card-company {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #5a6a78;
  letter-spacing: -0.1px;
  line-height: 1.4;
  margin: 0;
}

/* Nav arrows */
.tw-arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(134, 185, 176, 0.5);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.tw-arrow-prev {
  left: 24px;
}
.tw-arrow-next {
  right: 24px;
}
.tw-arrow:focus,
.tw-arrow:focus-visible,
.tw-arrow:focus-within {
  outline: none !important;
  box-shadow: none !important;
}
.tw-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #86b9b0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.2s;
}
.tw-arrow:hover {
  background-color: rgba(134, 185, 176, 0.18);
  border-color: #86b9b0;
}
.tw-arrow:hover svg {
  stroke: #b0d4cf;
}
.tw-arrow:active {
  outline: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) scale(0.93);
}
.tw-arrow:disabled {
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dots */
.tw-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 0 0;
  padding: 0;
  list-style: none;
}
.tw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ba8b5;
  opacity: 0.35;
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  transition:
    width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.35s,
    opacity 0.35s;
}
.tw-dot.tw-dot-active {
  background: #ca956a;
  opacity: 1;
  width: 20px;
  border-radius: 3px;
}

/* Swipe hint (mobile only) */
.tw-swipe-hint {
  display: none !important;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9ba8b5;
  margin: 10px 0 0 0;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Professional Responsive Design - Fixed JS Margin Math */
@media (max-width: 900px) {
  .tw-card {
    flex: 0 0 65%;
    margin: 0 0.25%; /* JS Math match korar jonno 0.25% */
  }
}
@media (max-width: 640px) {
  .tw-section {
    padding: 48px 0 56px;
  }
  .tw-card {
    flex: 0 0 78%;
    margin: 0 0.25%; /* JS Math match korar jonno 0.25% */
    padding: 30px 24px;
  }
  .tw-arrow-prev {
    left: 8px;
  }
  .tw-arrow-next {
    right: 8px;
  }
  .tw-filters {
    margin-bottom: 20px;
  }
}
@media (max-width: 460px) {
  .tw-arrow {
    display: none;
  }

  .tw-swipe-hint {
    display: block;
    margin-top: 15px;
  }

  .tw-track {
    align-items: stretch;
  }

  .tw-card {
    flex: 0 0 82%;
    margin: 0 0.25%;
    border-radius: 16px;
    padding: 26px 22px;
    min-height: 340px;

    display: flex;
    flex-direction: column;
    justify-content: center; /* all content center */
    align-items: center;
    text-align: center;
    gap: 8px;

    transform: scale(0.88);
  }

  .tw-card.tw-active {
    transform: scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .tw-card-badge {
    font-size: 11px;
    margin: 0 0 8px 0;
  }

  .tw-card-quote {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
  }

  .tw-card-name {
    font-size: 17px;
    padding-top: 8px;
    margin: 0;
  }

  .tw-card-company {
    font-size: 14px;
    margin: 0;
  }

  .tw-filters {
    margin-bottom: 20px;
  }
}
