.testimonials {
  background: #ffffff;
  padding-top: 60px;
  color: #333;
  padding-left: 20px;
  padding-right: 20px;
}
.testimonials_container {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials_header {
  text-align: left;
  margin-bottom: 50px;
}

.testimonials_badge {
  display: inline-block;
  background: #000;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonials_title {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  line-height: 1.2;
}

.testimonials_subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.testimonials_carousel_wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.testimonials_carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 24px;
  background-color: white;
}

.testimonials_card {
  flex: 0 0 calc(25% - 18px);
  background: #f3f3f3;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

/* Enhanced card for second position */
.testimonials_card.second_position {
  flex: 0 0 calc(35% - 18px);
  min-height: 350px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  border: none;
  box-shadow: 0 12px 40px rgba(45, 55, 72, 0.3);
  transform: scale(1.02);
  z-index: 2;
}

.testimonials_card.second_position .testimonials_time {
  color: rgba(255, 255, 255, 0.8);
}

.testimonials_card.second_position .testimonials_text {
  color: white;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.testimonials_card.second_position .testimonials_newest_badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.testimonials_card.second_position .testimonials_author_info h4 {
  color: white;
}

.testimonials_card.second_position .testimonials_author_info p {
  color: rgba(255, 255, 255, 0.8);
}

.testimonials_newest_badge {
  display: inline-block;
  background: #e8f5e8;
  color: #2d7d2d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.testimonials_time {
  color: #999;
  font-size: 12px;
  margin-bottom: 16px;
}

.testimonials_text {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonials_stars {
  color: #ffd700;
  font-size: 16px;
  margin-bottom: 20px;
}

.testimonials_author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials_avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.testimonials_card.second_position .testimonials_avatar {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonials_author_info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 2px;
}

.testimonials_author_info p {
  font-size: 12px;
  color: #666;
}

.testimonials_controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.testimonials_pagination {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials_page_info {
  font-size: 14px;
  color: #4a5568;
  font-weight: 600;
}

.testimonials_nav_button {
  width: 44px;
  height: 44px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #4a5568;
  font-size: 18px;
  font-weight: 600;
}

.testimonials_nav_button:hover {
  border-color: #2d3748;
  color: #2d3748;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.15);
}

.testimonials_nav_button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #e2e8f0;
  color: #a0aec0;
}

.testimonials_nav_button:disabled:hover {
  border-color: #e2e8f0;
  color: #a0aec0;
  transform: none;
  box-shadow: none;
}

.testimonials_progress_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.testimonials_progress_bar {
  width: 240px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #f1f5f9;
}

.testimonials_progress_fill {
  height: 100%;
  background: linear-gradient(90deg, #1a202c 0%, #2d3748 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.testimonials_progress_fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 4px 4px 0;
}

.testimonials_progress_dots {
  display: flex;
  gap: 6px;
}

.testimonials_progress_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonials_progress_dot:hover {
  background: #a0aec0;
  transform: scale(1.1);
}

.testimonials_progress_dot.active {
  background: #2d3748;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(45, 55, 72, 0.3);
}

.users_text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-block: 40px;
}
.users_text h1 {
  color: #222; 
  font-size: 90px;
  font-weight: 500;
  margin-block: 40px;
}

.users_text span {
  color: #5c7cfa; 
  font-weight: 700;
  font-size: 90px;
}

.users_text img {
  max-width: 100%;
  height: auto;
}

/* Tablet styles */
@media (max-width: 1024px) {
  .testimonials {
    padding-top: 40px;
  }

  .testimonials_title {
    font-size: 36px;
  }

  .testimonials_subtitle {
    font-size: 14px;
  }

  .testimonials_card {
    flex: 0 0 calc(50% - 12px);
  }

  .testimonials_card.second_position {
    flex: 0 0 calc(50% - 12px);
    transform: scale(1);
  }

  .testimonials_progress_bar {
    width: 180px;
  }

  .users_text h1 {
    font-size: 60px;
  }

  .users_text span {
    font-size: 60px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .testimonials {
    padding-top: 30px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .testimonials_header {
    margin-bottom: 30px;
  }

  .testimonials_title {
    font-size: 28px;
  }

  .testimonials_subtitle {
    font-size: 14px;
  }

  .testimonials_carousel {
    gap: 16px;
  }

  .testimonials_card {
    flex: 0 0 calc(100% - 0px);
    padding: 24px 20px;
    min-height: 240px;
  }

  .testimonials_card.second_position {
    flex: 0 0 calc(100% - 0px);
    transform: none;
    min-height: 280px;
  }

  .testimonials_controls {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
  }

  .testimonials_progress_bar {
    width: 200px;
  }

  .testimonials_nav_button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .users_text {
    margin-block: 30px;
  }

  .users_text h1 {
    font-size: 40px;
    margin-block: 20px;
  }

  .users_text span {
    font-size: 40px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .testimonials {
    padding-left: 12px;
    padding-right: 12px;
  }

  .testimonials_title {
    font-size: 24px;
  }

  .testimonials_subtitle {
    font-size: 13px;
  }

  .testimonials_badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .testimonials_card {
    padding: 20px 16px;
  }

  .testimonials_progress_bar {
    width: 160px;
  }

  .users_text h1 {
    font-size: 32px;
  }

  .users_text span {
    font-size: 32px;
  }
}