/* Testimonials Section Styles */
.testimonials-section {
  background: #FFFFFF;
  padding: 80px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px; /* Figma: 80px, reduced slightly as header has its own gap */
  width: 100%;
}

.testimonials-container {
  width: 100%;
  max-width: 1240px; /* Based on card wrapper width from Figma */
  padding: 0; /* Horizontal padding now handled by section */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden; /* To hide cards outside the viewport for carousel */
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.testimonials-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: #252525;
  margin: 0;
}

.testimonials-subtitle {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: #797979;
  margin: 0;
}

.testimonial-cards-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center cards if fewer than fit */
  gap: 20px;
  width: 100%;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.testimonial-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes author info to bottom */
  width: 400px; /* Figma specified */
  min-height: 392px; /* Figma specified height, use as min-height */
  border: 2px solid #C0D4FA; /* Colours/BF Primary Blue/blue-100 */
  border-radius: 12px;
  background-color: #FFFFFF; /* Ensure it's white if section bg changes */
  position: relative; /* For quote icon positioning */
  padding: 32px; /* Overall padding for card content */
  box-sizing: border-box; /* Ensure padding is included in width */
}

.testimonial-card-content {
  padding: 0 0 20px 0; /* Top and horizontal padding handled by parent/icon positioning */
  display: flex;
  flex-direction: column;
  gap: 24px; /* Gap between stars and text */
  flex-grow: 1;
  position: relative; /* For quote icon positioning */
}

.testimonial-quote-icon {
  position: absolute;
  top: -55px; /* Adjusted to sit slightly more above border */
  left: 32px; /* Align with card's 32px padding */
  width: 48px; /* Figma: 56px, adjusted */
  height: 48px;
  background-color: #1181D0; /* Figma: blue */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 20px;
  z-index: 1;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-top: 10px; /* Adjusted for spacing below absolute icon */
  font-size: 18px; /* Size of stars */
  color: #FE8B75; /* Default orange for stars */
}

.testimonial-stars .grey {
  color: #CBCBCB; /* Grey for unfilled/lower rated stars */
}

.testimonial-text {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 18px; /* Figma: 20px, adjusted for balance */
  line-height: 1.6;
  color: #3E3E3E;
  margin: 0;
}

.testimonial-text .testimonial-read-more {
  color: #3069D9;
  text-decoration: none;
  font-weight: 500;
}

.testimonial-text .testimonial-read-more:hover {
  text-decoration: underline;
}

.testimonial-author-info {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 24px; /* Adjusted padding */
  gap: 12px;
  border-top: 1px solid #C0D4FA;
  width: 100%;
}

.testimonial-author-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

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

.testimonial-author-name {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 18px; /* Figma: 20px */
  line-height: 1.2;
  color: #453232;
  margin: 0;
}

.testimonial-author-title {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #797979;
  margin: 0;
}

.testimonial-carousel-controls {
  display: flex;
  justify-content: flex-end; /* Align to the right as per image */
  align-items: center;
  gap: 10px;
  width: 100%;
}

.testimonial-nav-button {
  width: 36px;
  height: 36px;
  border: 1px solid #B2B2B2; /* Default/disabled border */
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #8E8E8E; /* Default/disabled icon color */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}


.testimonial-nav-button.next {
  border-color: #4F4F4F; /* Active/default next button border */
  color: #4F4F4F; /* Active/default next button icon color */
}

.testimonial-nav-button:hover:not(:disabled) {
  border-color: #3573EE;
  color: #3573EE;
}

.testimonial-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .testimonial-cards-wrapper {
    justify-content: center;
  }
  .testimonial-card {
    width: calc(50% - 10px); /* Two cards per row */
    max-width: 400px;
  }
}

@media (max-width: 860px) {
  .testimonial-card {
    width: calc(100% - 10px); /* One card per row */
    max-width: 450px; /* Max width for single card */
  }
  .testimonials-title {
    font-size: 36px;
  }
  .testimonials-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .testimonials-title {
    font-size: 32px;
  }
  .testimonials-subtitle {
    font-size: 16px;
  }
  .testimonial-card-content {
    padding: 30px 16px 16px 16px;
  }
  .testimonial-quote-icon {
    left: 16px;
  }
  .testimonial-author-info {
    padding: 12px 16px;
  }
}
