.block-container {
  padding: 20px;
  font-family: sans-serif;
  text-align: left;
}

.block-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
 padding-left: 2.625rem !important;
}

.block-scroll-wrapper {
  position: relative;
}

.block-cards-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.block-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.block-card:hover {
  transform: scale(1.02);
}

.block-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hide scrollbar across all browsers */
.block-cards-container::-webkit-scrollbar {
  display: none;
}
.block-cards-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.block-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.block-left {
  left: 5px;
}

.block-right {
  right: 5px;
}

/* Desktop: 4 cards per row, no scroll */
@media (min-width: 769px) {
  .block-cards-container {
    overflow-x: hidden;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .block-card {
    flex: 1 1 calc(25% - 12px);
    min-width: unset;
    max-width: calc(25% - 12px);
  }
}

/* Mobile: 2 cards visible, horizontal scroll enabled */
@media (max-width: 768px) {
  .block-cards-container {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
  }

  .block-card {
    flex: 0 0 48%;
    scroll-snap-align: start;
  }

  .block-arrow {
    display: block;
  }
}


</style>
