
  .reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .reviews-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color:rgb(0, 0, 0);
   
  }

  .reviews-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    margin: 0 auto 4rem;
    max-width: 100%;
    width: 100%;
  }

  .reviews-track {
    display: flex;
    animation: scroll 60s linear infinite;
    width: max-content;
    padding: 0 1rem;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-300px * 10)); /* Adjust based on card width and number */
    }
  }

  .reviews-track:hover {
    animation-play-state: paused;
  }

  .review-card {
    flex: 0 0 calc(100% - 2rem);
    max-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 300px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .review-card:hover {
    transform: translateY(-5px);
  }

  .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #ffc42e;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
  }

  .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .user-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .user-name {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
  }

  .user-date {
    font-size: 0.9rem;
    color: #666;
  }

  .review-source {
    margin-left: auto;
  }

  .source-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .review-content {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .review-text {
    flex: 1;
    line-height: 1.6;
    color: #4a5568;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
  }

  .read-more-btn {
    align-self: flex-start;
    background-color: #ffc42e;
    color: #1a202c;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: auto;
    transition: all 0.2s ease;
  }

  .read-more-btn:hover {
    background-color: #e6b028;
    transform: translateY(-2px);
  }

  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
  }

  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .close-btn:hover {
    color: #333;
  }

  .modal-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #ffc42e;
  }

  .modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-user-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .modal-user-name {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.3rem;
  }

  .modal-user-date {
    font-size: 1rem;
    color: #666;
  }

  .modal-review-source {
    margin-left: auto;
  }

  .modal-review-text {
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.1rem;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .reviews-title {
      font-size: 2rem;
    }
    
    .review-card {
      flex: 0 0 260px;
      height: auto;
      min-height: 220px;
      padding: 1rem;
      margin: 1rem 0.5rem; /* Added spacing */
    }
    
    .modal-content {
      width: 90%;
      margin: 15% auto;
      padding: 1.5rem;
    }
  }
  @media (max-width: 768px) {
    .reviews-carousel-container {
      padding: 0 1rem;
      margin: 0 auto 2rem;
    }
    .review-card {
      flex: 0 0 calc(100% - 2rem);
      max-width: 280px;
    }
    .review-card {
      width: 100%;
      margin: 1rem 0.5rem; /* Added spacing */
    }
    .user-name {
      font-size: 1rem;
    }
    .user-date {
      font-size: 0.8rem;
    }
    .review-text {
      font-size: 0.9rem;
      line-height: 1.4;
    }
    .review-source img {
      width: 20px;
      height: 20px;
    }
    .user-avatar img {
      width: 40px;
      height: 40px;
    }
    .read-more-btn {
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
    }
  }
  @media (max-width: 768px) {
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-260px * 10)); /* Ajusté pour la largeur des cartes mobiles */
    }
  }
  
  .review-card {
    flex: 0 0 260px;
    height: auto;
    min-height: 220px;
    padding: 1rem;
    margin: 1rem 0.5rem; /* Added spacing */
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 2px solid #ffc42e;
  }
  
  .review-text {
    -webkit-line-clamp: 4;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .review-card {
    flex: 0 0 calc(100vw - 4rem);
    margin: 1rem 0.5rem; /* Added spacing */
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100vw * 10 + 40rem)); /* Ajusté pour la largeur plein écran */
    }
  }
  
  .reviews-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}