.home-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: left;
  }

  .home-card {
    width: 172px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.2s ease;
    padding:10px;
  }

  .home-card:hover {
    transform: translateY(-4px);
  }

  .home-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
  }

  .home-card h3 {
    font-size: 16px;
    margin: 10px 0;
    font-weight:normal;
    padding-top:5px;
  }
  
  
 .brand-slider {
    display: flex;
    gap: 30px;
    align-items: center;
    animation: scroll-left 20s linear infinite;
    overflow: hidden;
    padding: 15px;
    width: max-content;
  }

  .brand-slider:hover {
    animation-play-state: paused !important;
  }

  .brand-item {
    flex: 0 0 auto;
  }

  .brand-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 10px;
  }

  .brand-item img:hover {
    transform: scale(1.05);
  }

  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }




  /* For screens up to 600px */
  @media (max-width: 600px) {
    .home-card {
      width: 100%;
      max-width: 120px;
    }
   .brand-slider .brand-item img {
      width: 80px;
      height: 80px;
    }
  }

  /* For very small screens (up to 420px) */
  @media (max-width: 420px) {
    .home-card {
      width: 100%;
      max-width: 124px;
    }

    .home-card h3 {
      font-size: 14px;
    }
  }