
.testimonials-section {
  font-family: "Poppins", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial;
  max-width: 1100px;
  margin: 0px auto 40px;
  margin-top:-20px;/* bottom space so it's not stuck to footer */
  padding: 0 16px;
  color: #0f172a;
}

/* Title */
.testimonials-section .title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.testimonials-section .subtitle {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
}

/* Grid for desktop/tablet */
.testimonials-section .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Card base */
.testimonials-section .testimonial-card {
  position: relative;
  border: 1px solid rgba(15,23,42,0.05);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  transition: transform .28s ease, box-shadow .28s ease;
  overflow: hidden;
  min-height: 150px;
}

/* Avatar + name row */
.testimonials-section .tc_top {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.testimonials-section .avatar {
  width:56px; height:56px; border-radius:50%;
  background-size:cover; background-position:center;
  flex-shrink:0;
  position:relative;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  border:6px solid rgba(255,255,255,0.7);
}


.testimonials-section .name { font-weight:700; font-size:15px; color:#0f172a; margin:0; }
.testimonials-section .role { display:block; font-size:13px; color:#64748b; margin-top:2px; }

/* Quote & rating */
.testimonials-section .quote {
  color:#334155;
  font-size:14px;
  line-height:1.6;
  margin:10px 0 12px;
  position:relative;
}
.testimonials-section .quote:before{
  content: "“";
  position:absolute;
  left:-6px;
  top:-10px;
  font-size:44px;
  color:rgba(59,130,246,0.09);
  font-weight:700;
}


/* Hover lift on pointer devices */
@media (hover: hover) and (pointer: fine) {
  .testimonials-section .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(2,6,23,0.12);
  }
}

/* Mobile: switch to horizontal scroll & snap for swipe */
@media (max-width:599px){
  .testimonials-section .testimonials-grid {
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding:14px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 20px;
  }
  .testimonials-section .testimonial-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
    min-width: 260px;
  }
  .testimonials-section .quote:before { left:6px; top:-8px; }
}

/* small accessibility tweaks */
.testimonials-section .testimonial-card:focus-within,
.testimonials-section .testimonial-card:focus {
  outline: 3px solid rgba(99,102,241,0.12);
  transform: translateY(-6px);
}