.horizontal-scroll {
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, rgb(248, 250, 248) 0%, rgb(234, 239, 233) 100%);
    border-radius: 10px;
    padding: 2rem 0;
    width: 100%;
  }

  .scroll-content {
    display: flex;
    width: max-content;
    animation: scroll-horizontal 60s linear infinite;
    animation-play-state: running;
    cursor: grab;
    gap: 1.5rem;
  }
 
  /* Pause the animation when the user hovers over or drags the carousel */
  .horizontal-scroll:hover .scroll-content,
  .horizontal-scroll:active .scroll-content {
    animation-play-state: paused;
  }

  /* Card Styles (unchanged) */
  .key-point {
    min-width: 300px;
    max-width: 300px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-align: center;
    flex-shrink: 0;
  }
  .key-point::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 20%, rgba(74, 255, 64, 0.1) 50%, transparent 80%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
  }
  .key-point:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }
  .key-point:hover::before {
    opacity: 1;
    animation: shine 2.5s ease-out;
  }
  .key-point-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgb(215, 239, 207) 0%, rgb(56, 171, 39) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
  }
  .key-point:hover .key-point-icon {
    transform: rotate(15deg) scale(1.1);
  }
  .key-point h4 {
    background: linear-gradient(135deg, #2c3e50 0%, rgb(81, 244, 56) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.55rem;
  }
  .key-point p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1.15rem;
  }

  /* Animation: Moves the list by exactly one set’s width */
  @keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--scroll-distance))); }
  }

  @keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
  }

  /* Mobile adjustments */
  @media (max-width: 767px) {
    .key-point {
      min-width: 260px;
      padding: 1.5rem;
    }
    .scroll-content {
      animation-duration: 50s;
    }
  }