/* ==============================
   Testimonials Section
============================== */

.testimonial-section {
  /* padding: 80px 0; */
  background-color: var(--color-background-testimonials);
}

.divider-testimonials {
  margin: 3rem auto;
  margin-bottom: 2rem;
  max-width: 5rem;
  height: 0.3rem;
  background-color: var(--color-primary);
  border: none;

  display: flex;
  justify-content: center;
}

/* ==============================
   Section Header
============================== */

/* .testimonial-section .section-header {
  text-align: center;
  margin-bottom: 48px;
  font-weight: 100;
  font-family: var(--font-primary);

  padding: 0 24px; 
} */

.testimonial-section h2 {
  font-family: var(--font-footer-heading);
  font-size: 60px;
  font-weight: 100;
}

.testimonial-section p {
  font-family: var(--font-primary);
  max-width: 620px;
  margin: 8px auto 0;
  color: #666;
}

/* Small stats row under header (optional but matches your design) */
/* Updated Stats Container */
.testimonial-stats {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* Adjusted gap to account for the pseudo-element */
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #555;
}

/* Inject the separator after every stat item EXCEPT the last one */
.stat-item {
  display: flex;
  align-items: center;
}

.stat-item:not(:last-child)::after {
  content: "|";
  margin-left: 16px;
  opacity: 0.5;
  font-weight: 100; /* Keeping it thin to match your design */
}

/* ==============================
   Testimonials Grid
============================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 400px));
  justify-content: center;
  column-gap: 16px;
  row-gap: 32px;
  /* NEW: Local safe-zone padding */
  padding: 0 24px; 

  width: 100%;
}

/* ==============================
   Testimonial Card
============================== */

.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); /* softer resting shadow */
  height: auto;

  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease; /* smooth hover */

  border: solid 1.5px var(--color-testimonials-border);
}

.testimonial-card:hover {
  box-shadow:
    -6px 10px 20px rgba(212, 175, 109, 0.25),
    /* left golden */ 6px 10px 20px rgba(212, 175, 109, 0.25),
    /* right golden */ 0 16px 28px rgba(0, 0, 0, 0.12); /* grounding shadow */

  transform: translateY(-4px);
}

@media (hover: hover) {
  .testimonial-card:hover {
    box-shadow:
      -6px 10px 20px rgba(0, 0, 0, 0.12),
      6px 10px 20px rgba(0, 0, 0, 0.12),
      0 16px 28px rgba(0, 0, 0, 0.14);

    transform: translateY(-4px);
  }
}

/* Optional image at top */
.testimonial-image-carousel {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.testimonial-card .testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 12px 12px 0 0;
}

/* Carousel navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--color-primary);
}

.carousel-btn:hover {
  background-color: rgba(212, 175, 109, 0.9);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
  left: 10px;
}

.carousel-btn.next-btn {
  right: 10px;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* Image counter */
.image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  font-family: var(--font-primary);
}

.testimonial-quote-icon {
  /* margin-top: 32px; */
  max-width: 2.5rem;
  max-height: 2.5rem;
  color: var(--color-primary);
  margin-top: 1rem;
  opacity: 30%;
}

/* Quote text */

.testimonial-text {
  padding: 0rem 1.5rem 1.5rem;
}

.testimonial-card blockquote {
  margin: 0 0 16px 0;
  /* font-style: italic; */
  color: #444;
  line-height: 1.6;
  font-size: 14px;
  font-family: var(--font-primary);
}

/* Footer (name + details) */
.testimonial-card footer {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

/* Name */
.testimonial-card .client-name {
  font-weight: 350;
  font-size: 1rem;
  color: var(--color-primary);
}

/* Subtitle + meta */
.testimonial-card .client-meta {
  font-size: 0.8rem;
  color: #666;

  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.client-meta .meta-item::before {
  content: "•";
  color: var(--color-primary);

  font-size: 1.5rem;
  margin: 0 0.5rem;

  opacity: 0.8;

  line-height: 1; /* tighten box */
  position: relative; /* allow fine alignment */
  top: 0.16em; /* ← optical vertical centering */
}

/* ==============================
   Responsive
============================== */

@media (max-width: 768px) {
  .testimonial-section {
    padding: 0;
  }

  .testimonial-section h2 {
    font-size: 2.2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr; /* single column on mobile */
  }

  .testimonial-stats {
    flex-direction: column; /* Stacks the items vertically */
    gap: 8px; /* Tighter spacing for mobile lines */
  }

  .stat-item:not(:last-child)::after {
    display: none; /* Hides the pipe separators */
  }

  .testimonial-card .client-name {
    font-size: 0.95rem; 
  }

  .testimonial-card .client-meta {
    font-size: 0.85rem;
    
    /* 2. Force the vertical stack */
    flex-direction: column;
    align-items: flex-start; /* Aligns the stacked text to the left */
    gap: 4px; /* Adds a tiny bit of breathing room between the lines */
    margin-top: 4px; 
  }

  /* 3. Hide the bullet points */
  /* .client-meta .meta-item + .meta-item::before {
    display: none; 
  } */

}

.testimonial-share {
  margin: 3rem auto; 
  padding: 2.5rem;
  width: calc(100% - 48px);
  /* max-height: 700px; */
  background-color: var(--color-background-2);
  text-align: center;
  border-radius: 12px;
  border: solid 2.5px var(--color-testimonials-border);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-share h3 {
  margin: 0;

  font-family: var(--font-footer-heading);
  font-size: 1.7rem;
  font-weight: 250;
}

.testimonial-share p {
  margin: 0;

  font-size: 0.9rem;
}

.testimonial-share a {
  margin: 0;

  margin-top: 0.75rem;
  text-decoration: none;
  font-family: var(--font-primary);
  color: var(--color-primary);
}
