/* ==============================================
   CLIENT SUCCESS STORIES — scrolling cards
   ============================================== */

.tcs-section {
  background: #f5f5f7;
  padding: 96px 0 88px;
  overflow: hidden;
}

/* Header */
.tcs-header {
  text-align: center;
  margin-bottom: 60px;
}

.tcs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e55400;
  margin-bottom: 16px;
}

.tcs-eyebrow::before,
.tcs-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: #e55400;
  opacity: 0.5;
}

.tcs-title {
  font-size: 40px;
  font-weight: 700;
  color: #0f0f0f;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.tcs-sub {
  font-size: 16px;
  color: #888;
  margin: 0;
}

/* Viewport */
.tcs-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #f5f5f7 7%, #f5f5f7 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #f5f5f7 7%, #f5f5f7 93%, transparent 100%);
}

/* Belt */
.tcs-belt {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  padding: 16px 0 24px;
  will-change: transform;
}

/* ---- Card base ---- */
.tcs-card {
  width: 420px !important;
  min-height: 380px !important;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 22px;
  padding: 44px 38px 36px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line */
.tcs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e55400, #ff8c42);
  opacity: 0;
  transition: opacity 0.28s ease;
  border-radius: 22px 22px 0 0;
}

.tcs-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.tcs-card:hover::before {
  opacity: 1;
}

/* Accent card */
.tcs-card--accent {
  background: linear-gradient(145deg, #e55400 0%, #ff7120 100%);
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(229, 84, 0, 0.22);
}

.tcs-card--accent::before { display: none; }

.tcs-card--accent:hover {
  box-shadow: 0 12px 40px rgba(229, 84, 0, 0.35);
}

/* Stars */
.tcs-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.tcs-stars i {
  font-size: 13px;
  color: #f5a623;
}

.tcs-card--accent .tcs-stars i {
  color: #ffd166;
}

/* Quote text */
.tcs-quote {
  font-size: 16px;
  line-height: 1.8;
  color: #3a3a3a;
  margin: 0 0 28px;
  flex: 1;
  padding-bottom: 8px;
}

.tcs-quote strong {
  color: #0f0f0f;
  font-weight: 700;
}

.tcs-card--accent .tcs-quote,
.tcs-card--accent .tcs-quote strong {
  color: rgba(255,255,255,0.95);
}

/* Author row */
.tcs-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.tcs-card--accent .tcs-author {
  border-top-color: rgba(255,255,255,0.22);
}

.tcs-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tcs-card--accent .tcs-author img {
  border-color: rgba(255,255,255,0.35);
}

.tcs-author div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tcs-author strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #111;
  line-height: 1;
}

.tcs-author span {
  font-size: 12.5px;
  color: #aaa;
  line-height: 1;
}

.tcs-card--accent .tcs-author strong {
  color: #fff;
}

.tcs-card--accent .tcs-author span {
  color: rgba(255,255,255,0.75);
}

/* Responsive */
@media (max-width: 991px) and (min-width: 769px) {
  .tcs-title { font-size: 34px; }
  .tcs-card  { width: 360px !important; min-height: 340px !important; padding: 36px 30px 30px !important; }
  .tcs-section { padding: 72px 0 64px; }
}

@media (max-width: 768px) {
  .tcs-title { font-size: 30px; }
  .tcs-card  { width: 320px !important; min-height: 300px !important; padding: 32px 26px 26px !important; }
}

/* ===== Performance: GPU-accelerated scrolling animation ===== */
.tcs-track,
.tcs-track-reverse {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tcs-section {
    contain: layout style;
}
