/* ==========================================================================
   TrynixTech — "Client stories" Testimonials Section
   Minimalist Architectural Studio Design Following Reference Screenshot
   (Typography: Satoshi, Layout: Split Interactive Tabs + Large Headline Quote)
   ========================================================================== */

.trynix-testimonials-section {
  position: relative;
  background-color: #ededf0;
  padding: 100px 0 115px;
  overflow: hidden;
  scroll-margin-top: 100px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.testi-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------------
   1. Header: "Client stories" + Subtitle
   -------------------------------------------------------------------------- */
.stories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.stories-title {
  font-family: 'SatoshiBold', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #111827;
  margin: 0;
}

.stories-subtitle {
  font-family: 'SatoshiRegular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.48;
  color: #4b5563;
  margin: 0;
  max-width: 280px;
  text-align: left;
}

/* --------------------------------------------------------------------------
   2. Horizontal Divider with Centered Crosshair '+' Mark
   -------------------------------------------------------------------------- */
.stories-divider-wrap {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.stories-divider-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.stories-divider-crosshair {
  position: relative;
  z-index: 2;
  background-color: #ededf0;
  padding: 0 14px;
  font-family: monospace, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #6b7280;
  user-select: none;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   3. Main Stories Layout: Left Tabs & Right Active Story
   -------------------------------------------------------------------------- */
.stories-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: flex-start;
  min-height: 380px;
}

/* Left Column: Client / Company Tabs List */
.stories-tabs-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 340px;
}

.stories-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stories-tab-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: 'SatoshiMedium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.stories-tab-btn:hover {
  color: #374151;
}

.stories-tab-btn.active {
  color: #111827;
  font-weight: 700;
}

.stories-tab-arrow {
  display: none;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.stories-tab-btn.active .stories-tab-arrow {
  display: inline-block;
  transform: translateX(2px);
}

/* Bottom Left Navigation Buttons: [ < ] [ > ] */
.stories-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.stories-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.stories-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.stories-nav-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.stories-nav-btn:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   4. Right Column: The Active Client Story
   -------------------------------------------------------------------------- */
.stories-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

/* Big Display Quote */
.story-quote-wrap {
  margin-bottom: 44px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.story-quote-text {
  font-family: 'SatoshiMedium', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(23px, 2.65vw, 36px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: #111827;
  margin: 0;
}

/* Bottom Author Details Row */
.story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.story-author-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-author-name {
  font-family: 'SatoshiBold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.story-author-role {
  font-family: 'SatoshiRegular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.3;
}

/* Action CTA: Become a client */
.story-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'SatoshiMedium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-listen-btn:hover {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
  transform: translateY(0px);
}

.story-listen-icon {
  font-size: 13px;
  display: inline-block;
  line-height: 1;
  transition: transform 0.22s ease;
}

.story-listen-btn:hover .story-listen-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Smooth Transition Animation for Content Switch
   -------------------------------------------------------------------------- */
.story-fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.story-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .trynix-testimonials-section {
    padding: 80px 0 90px;
  }

  .stories-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
  }

  .stories-subtitle {
    max-width: 100%;
  }

  .stories-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stories-tabs-col {
    min-height: auto;
  }

  .stories-tabs-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .stories-nav-controls {
    display: none;
    /* In mobile, tabs are all visible as chips */
  }

  .story-quote-wrap {
    margin-bottom: 32px;
  }

  .story-quote-text {
    font-size: 24px;
    line-height: 1.32;
  }
}

@media (max-width: 640px) {
  .trynix-testimonials-section {
    padding: 65px 0 75px;
  }

  .testi-container {
    padding: 0 20px;
  }

  .stories-title {
    font-size: 38px;
  }

  .stories-divider-wrap {
    margin-bottom: 36px;
  }

  .story-quote-text {
    font-size: 20px;
  }

  .story-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .story-listen-btn {
    padding-left: 0;
  }
}