/* ==========================================================================
   PropNetwork - Testimonials Section CSS (1:1 Reference Match)
   Author: PropNetwork Product Design Team
   Description: Faithful recreation of reference screenshot.
                Features tilt/rotation on cards, top-left stacked number + quotation icon,
                hand-drawn green dashed arrow doodles between cards, circular top-right nav,
                teal initials badges, and 5-star ratings aligned at bottom right.
   ========================================================================== */

.testimonials-section {
  position: relative;
  padding: 5.5rem 0 6.5rem 0;
  background-color: #FAFAFA;
  overflow: hidden;
  color: #0F172A;
  z-index: 2;
}


/* Top Section Header Container & Controls (1:1 Layout Match) */
.testimonials-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 1.5rem;
  z-index: 2;
}

.header-left-content {
  position: relative;
  max-width: 780px;
}

.testimonials-header-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5rem;
  width: 3px;
  background: linear-gradient(180deg, #14B8A6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: 3px;
}

.testimonials-category-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #14B8A6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.testimonials-header-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.testimonials-text-gradient {
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 35%, #6366F1 75%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.testimonials-header-desc {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 500;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Top-Right Circular Navigation Arrow Buttons (Matching Reference) */
.testimonials-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.testimonials-nav-controls .nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials-nav-controls .nav-btn:hover {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
  transform: translateY(-2px);
}

.testimonials-nav-controls .nav-btn:active {
  transform: scale(0.95);
}

/* Carousel Track & Viewport (Full Bleed Right Viewport Extension) */
.testimonials-carousel-wrapper {
  position: relative;
  width: auto;
  margin-right: calc(-1 * (100vw - 100%) / 2);
  overflow: hidden;
  padding: 1rem 0 2.5rem 0;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2.2rem calc((100vw - 1320px) / 2 + 5rem) 2.5rem 0.5rem;
  cursor: grab;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonials-track:active {
  cursor: grabbing;
}

/* ==========================================================================
   Individual Testimonial Card (Exact 1:1 Layout & Tilt Matching Reference)
   ========================================================================== */
.testimonial-card {
  flex: 0 0 380px;
  width: 380px;
  min-width: 380px;
  min-height: 410px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  padding: 2.25rem 2rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(0, 0, 0, 0.01);
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 2;
}

/* Alternating Card Rotation / Tilt Effect (Matching Screenshot 1:1) */
.testimonial-card:nth-child(3n+1) {
  transform: rotate(0deg);
}

.testimonial-card:nth-child(3n+2) {
  transform: rotate(-2.4deg) translateY(-6px);
}

.testimonial-card:nth-child(3n+3) {
  transform: rotate(0.8deg);
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 22px 44px -12px rgba(15, 118, 110, 0.14);
  z-index: 5;
}

/* Card Top Stacked Group: Number (01, 02...) & Quote Icon (Matching Screenshot 1:1) */
.card-top-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.card-number {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F766E;
  letter-spacing: -0.01em;
}

.quote-mark-icon {
  color: #0F766E;
  display: flex;
  align-items: center;
}

.quote-mark-icon svg {
  width: 34px;
  height: 34px;
}

/* Quote Text Body */
.testimonial-quote {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.62;
  color: #1E293B;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Thin Divider Line above Profile */
.card-divider {
  width: 100%;
  height: 1px;
  background-color: #E2E8F0;
  margin-bottom: 1.25rem;
}

/* Author Profile & Star Rating Bottom Row (Matching Screenshot 1:1) */
.card-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.author-info-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Circle Initials Avatar (Teal Background) */
.author-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F766E;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.94rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.author-role {
  font-size: 0.76rem;
  font-weight: 400;
  color: #64748B;
  line-height: 1.25;
}

.author-company {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F766E;
  line-height: 1.25;
}

/* Star Rating Icons (Aligned Bottom Right) */
.author-rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #0F766E;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Hand-Drawn Dashed Green Curved Arrow Doodles (Matching Reference Screenshot 1:1)
   ========================================================================== */
.testimonial-card-wrapper {
  position: relative;
  display: flex;
}

.hand-drawn-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

/* Top Curved Arrow (From Card 1 to Card 2) */
.arrow-top-left {
  top: -24px;
  right: -32px;
  width: 75px;
  height: 40px;
}

/* Bottom Curved Arrow (From Card 2 to Card 3) */
.arrow-bottom-right {
  bottom: -22px;
  right: -32px;
  width: 75px;
  height: 40px;
}

/* Responsive Adaptations for Mobile Devices */
@media (max-width: 991.98px) {
  .testimonials-section {
    padding: 2.5rem 0 3.25rem 0 !important;
  }

  .testimonials-section-header {
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    padding-left: 0.85rem !important;
  }

  .header-left-content {
    max-width: 100% !important;
  }

  .testimonials-header-line {
    left: -0.85rem !important;
  }

  .testimonials-category-label {
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.35rem !important;
  }

  .testimonials-header-title {
    font-size: clamp(1.75rem, 6.5vw, 2.15rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 0.6rem !important;
  }

  .testimonials-header-desc {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .testimonials-nav-controls {
    align-self: flex-end !important;
    gap: 0.5rem !important;
  }

  .testimonials-nav-controls .nav-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .testimonials-nav-controls .nav-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  .hand-drawn-arrow {
    display: none !important;
  }

  .testimonials-carousel-wrapper {
    margin-right: -1rem !important;
    padding: 0.25rem 0 1rem 0 !important;
  }

  .testimonials-track {
    padding: 0.75rem 3.5rem 0.75rem 0.25rem !important;
    gap: 1rem !important;
  }

  /* Compact Mobile Testimonial Cards */
  .testimonial-card,
  .testimonial-card:nth-child(3n+1),
  .testimonial-card:nth-child(3n+2),
  .testimonial-card:nth-child(3n+3) {
    flex: 0 0 310px !important;
    width: 310px !important;
    min-width: 310px !important;
    max-width: 85vw !important;
    min-height: auto !important;
    height: auto !important;
    padding: 1.25rem 1.15rem !important;
    border-radius: 16px !important;
    transform: none !important;
  }

  .testimonial-card:hover {
    transform: translateY(-3px) !important;
  }

  .card-top-group {
    margin-bottom: 0.85rem !important;
    gap: 0.35rem !important;
  }

  .card-number {
    font-size: 1rem !important;
  }

  .quote-mark-icon svg {
    width: 26px !important;
    height: 26px !important;
  }

  .testimonial-quote {
    font-size: 0.88rem !important;
    line-height: 1.52 !important;
    margin-bottom: 1.15rem !important;
  }

  .card-divider {
    margin-bottom: 0.85rem !important;
  }

  .card-author-row {
    gap: 0.5rem !important;
  }

  .author-info-group {
    gap: 0.65rem !important;
  }

  .author-avatar-badge {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.82rem !important;
  }

  .author-name {
    font-size: 0.88rem !important;
    margin-bottom: 0.05rem !important;
  }

  .author-role,
  .author-company {
    font-size: 0.72rem !important;
  }

  .author-rating-stars {
    font-size: 0.76rem !important;
    gap: 2px !important;
  }
}

@media (max-width: 575.98px) {
  .testimonials-section {
    padding: 2.25rem 0 2.75rem 0 !important;
  }

  .testimonials-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .testimonials-nav-controls {
    align-self: flex-end !important;
  }

  .testimonial-card,
  .testimonial-card:nth-child(3n+1),
  .testimonial-card:nth-child(3n+2),
  .testimonial-card:nth-child(3n+3) {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    padding: 1.15rem 1rem !important;
  }

  .testimonial-quote {
    font-size: 0.85rem !important;
  }
}