/* Testimonials Section Styling */

.testimonials-section {
  width: 100%;
  background-color: #f9f9f7;
  padding-top: 0;
  padding-bottom: 48px;
  overflow: hidden;
  border-bottom-left-radius: 60px;
}

@media (min-width: 1024px) {
  .testimonials-section {
    padding-top: 0;
    padding-bottom: 80px;
    border-bottom-left-radius: 0;
  }
}

.testimonials-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .testimonials-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.testimonials-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .testimonials-header {
    margin-bottom: 48px;
  }
}

@media (min-width: 1024px) {
  .testimonials-header {
    margin-bottom: 40px;
  }
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
}

.stars-row {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .stars-row {
    gap: 4px;
  }
}

.rating-text {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  margin-left: 4px;
}

@media (min-width: 640px) {
  .rating-text {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .rating-text {
    font-size: 16px;
  }
}

.brand-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.brand-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #516cb0;
}

.testimonials-title {
  font-family: 'Urbane', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin: 0 auto;
}

.highlight-blue {
  color: #2E8DD6;
  font-style: italic;
  display: block;
}

@media (min-width: 1024px) {
  .testimonials-title {
    font-size: 42px;
  }
}

.testimonials-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 300px;
  margin: 0 auto;
  color: #475569;
}

@media (min-width: 1024px) {
  .testimonials-subtitle {
    font-size: 18px;
    max-width: 448px;
  }
}

/* Carousel Styles */
.testimonials-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .testimonials-track {
    margin-left: -12px;
  }
}
.testimonials-track {
  display: flex;
  transition: transform 500ms ease-in-out;
  margin-left: -8px;
}

.testimonial-card-wrapper {
  min-width: 0;
  flex-shrink: 0;
  flex-grow: 0;
  padding-left: 8px;
  width: 100%;
}

@media (min-width: 768px) {
  .testimonial-card-wrapper {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card-wrapper {
    width: 33.333333%;
    padding-left: 12px;
  }
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  height: 100%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 300ms;
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-bottom: 20px;
}

@media (min-width: 640px) {
  .testimonial-card {
    border-radius: 2rem;
    padding: 24px;
  }
}

.testimonial-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.testimonial-image-box {
  width: 100%;
  height: 176px;
  background-color: #dbeafe;
  border-radius: 1rem;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .testimonial-image-box {
    height: 208px;
    margin-bottom: 24px;
  }
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  margin-top: 4px;
}

.testimonial-name {
  font-family: 'Urbane', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.testimonial-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.testimonial-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-stars {
  display: flex;
  gap: 2px;
}

.verified-badge {
  font-size: 10px;
  font-weight: 900;
  background-color: #d1fae5;
  color: #047857;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.testimonial-card-title {
  font-family: 'Urbane', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .testimonial-card-title {
    font-size: 17px;
  }
}

.testimonial-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .testimonial-description {
    font-size: 15px;
  }
}

/* Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .carousel-controls {
    margin-top: 48px;
  }
}

.control-btn {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1.5px solid #1e3a8a;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
  cursor: pointer;
  transition: all 200ms;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
  background-color: #f8fafc;
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}
