/* ==========================================================================
   CLIENT TESTIMONIALS & REVIEWS SECTION (COMPACT LUXURY DESIGN)
   Mohd Irshad Web Developer Portfolio
   2-Letter Monogram Avatars, 10+ Review Slider, View All & Feedback Buttons
   ========================================================================== */

.testimonials-area {
  margin-bottom: 4rem;
  position: relative;
}

/* Custom Top Header */
.testimonials-custom-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.testimonials-header-left {
  display: flex;
  flex-direction: column;
}

.testimonials-header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

/* Dual Stat Pill (4.9/5 & 50+ Happy Clients) */
.testimonials-stats-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.7rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}
.testimonials-stats-pill:hover {
  border-color: #c4b5fd;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.tstat-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tstat-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.tstat-group:hover .tstat-icon-circle {
  transform: scale(1.1);
}

.tstat-icon-circle.yellow { background: #fef3c7; color: #d97706; }
.tstat-icon-circle.purple { background: #ede9fe; color: #7c3aed; }

.tstat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tstat-val {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 900;
  color: #0f172a;
}
.tstat-slash {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}
.tstat-val.purple-text {
  color: #7c3aed;
}

.tstat-lbl {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tstat-divider {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

/* Slider Arrow Navigation Buttons */
.testimonials-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-t-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.btn-t-arrow.prev:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  transform: translateX(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
}

.btn-t-arrow.next {
  background: linear-gradient(135deg, #7c3aed 0%, #ea580c 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.btn-t-arrow.next:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

/* --------------------------------------------------------------------------
   COMPACT TESTIMONIAL CARDS CAROUSEL
   -------------------------------------------------------------------------- */
.testimonials-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  padding: 0.4rem 0.2rem;
}

.testimonials-track {
  display: flex;
  gap: 1.4rem;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-compact-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-width: calc(33.333% - 0.95rem);
  max-width: calc(33.333% - 0.95rem);
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-compact-card:hover {
  transform: translateY(-5px);
  border-color: #c4b5fd;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.08);
}

/* Top Row: Stars + Quote Icon */
.t-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.t-rating-stars-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.t-gold-stars {
  color: #f59e0b;
  font-size: 0.82rem;
  display: flex;
  gap: 0.15rem;
}

.t-score-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #ede9fe;
  color: #7c3aed;
}

.t-quote-mark {
  font-size: 1.4rem;
  line-height: 1;
  color: #cbd5e1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.testimonial-compact-card:hover .t-quote-mark {
  color: #a855f7;
  transform: scale(1.15) rotate(6deg);
}

/* Quote Body (Compact) */
.t-quote-body {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-quote-body strong {
  color: #7c3aed;
  font-weight: 800;
}

.t-card-divider {
  border-top: 1px solid #f1f5f9;
  margin-bottom: 0.9rem;
  width: 100%;
}

/* Client Row with 2-Letter Monogram Avatar */
.t-client-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* 2-Letter Monogram Avatar Circle */
.t-avatar-monogram {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid #ffffff;
  transition: transform 0.25s ease;
}

.testimonial-compact-card:hover .t-avatar-monogram {
  transform: scale(1.08);
}

.t-avatar-monogram.purple { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.t-avatar-monogram.blue   { background: linear-gradient(135deg, #0284c7, #2563eb); }
.t-avatar-monogram.orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.t-avatar-monogram.green  { background: linear-gradient(135deg, #16a34a, #10b981); }
.t-avatar-monogram.pink   { background: linear-gradient(135deg, #db2777, #ec4899); }
.t-avatar-monogram.teal   { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.t-avatar-monogram.yellow { background: linear-gradient(135deg, #d97706, #f59e0b); }

.t-client-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.t-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.t-client-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-verified-badge {
  font-size: 0.8rem;
  color: #7c3aed;
}

.t-client-role {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.t-client-loc {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.t-client-loc i {
  color: #ea580c;
  font-size: 0.65rem;
}

/* --------------------------------------------------------------------------
   BOTTOM ACTION BAR: "GIVE FEEDBACK" + "VIEW ALL REVIEWS"
   -------------------------------------------------------------------------- */
.testimonials-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed #e2e8f0;
  flex-wrap: wrap;
  gap: 1rem;
}

.t-slider-dots-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.t-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}
.t-slider-dot.active {
  width: 24px;
  background: linear-gradient(90deg, #7c3aed, #ea580c);
}

.t-bottom-btns-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-t-give-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-t-give-feedback:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}

.btn-t-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #7c3aed 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  transition: all 0.25s ease;
}
.btn-t-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .testimonial-compact-card {
    min-width: calc(50% - 0.7rem);
    max-width: calc(50% - 0.7rem);
  }
}

@media (max-width: 640px) {
  .testimonial-compact-card {
    min-width: 100%;
    max-width: 100%;
  }
  .testimonials-custom-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .testimonials-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .t-bottom-btns-group {
    flex-direction: column;
  }
}
