.usage-usage {
  background-color: #F0F0F0;
  min-height: 50px;
  padding: 60px 60px;
}

.usage-heading {
  font-size: 30px;
  font-weight: 700;
  color: #14101e;
  margin-bottom: 32px;
  max-width: 900px;
}

.usage-highlight {
  color: #701AB5;
}

.usage-cardsGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.usage-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(20, 16, 30, 0.08);
  box-shadow: 0 8px 20px rgba(20, 16, 30, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 96%;
  height: 350px;
}

.usage-cardImageWrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.usage-cardImage {
  display: block;
}

.usage-cardBody {
  position: relative;
  padding: 14px 14px 38px;
  flex: 1;
}

.usage-cardTitle {
  font-size: 18px;
  font-weight: 700;
  color: #14101e;
  margin-bottom: 6px;
}

.usage-cardText {
  font-size: 14px;
  line-height: 1.5;
  color: #6b6478;
}

.usage-cardIconCircle {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 61, 255, 0.1);
  color: #8152AD;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .usage-cardsGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .usage-cardsGrid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px; /* room so the scrollbar doesn't sit flush against cards */
  }

  .usage-card {
    flex: 0 0 220px; /* fixed width, won't shrink or grow — this is what makes it scroll instead of wrap */
    width: 220px;
    scroll-snap-align: start;
  }

  .usage-heading {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .usage-usage {
    padding: 40px 0 40px 20px; /* removed right padding so the last card can scroll flush to the edge */
  }

  .usage-cardsGrid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-right: 20px; /* keeps spacing consistent on the right edge while scrolling */
  }

  .usage-card {
    flex: 0 0 200px;
    width: 200px;
    scroll-snap-align: start;
  }

  .usage-heading {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .usage-cardsGrid::-webkit-scrollbar {
    display: none;
  }

  .usage-cardsGrid {
    scrollbar-width: none; /* Firefox */
  }
}