.w3s-blocks {
  display: grid;
  gap: var(--w3s-space-24);
}

.w3s-blocks__row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .w3s-blocks__row {
    flex-direction: row;
  }
}

.w3s-blocks__card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  transition:
    400ms transform,
    400ms box-shadow,
    400ms background-color,
    400ms color;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 601px) {
  .w3s-blocks__card {
    height: 100px;
    min-width: 220px;
  }
}

.w3s-blocks__card--red {
  background-color: #f43f5e;
}

.w3s-blocks__card--blue {
  background-color: #3b82f6;
}

.w3s-blocks__card--green {
  background-color: #22c55e;
}

.w3s-blocks__tip {
  font-size: 1em;
  font-weight: 700;
}

.w3s-blocks__text {
  font-size: 0.8em;
}

/* Blur only when a card is hovered (not when cursor is between cards) */
.w3s-blocks__row:has(.w3s-blocks__card:hover) > .w3s-blocks__card:not(:hover) {
  filter: blur(10px);
  transform: scale(0.9);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.w3s-blocks__card:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  color: #333;
}

@media (max-width: 430px) {
  .w3s-blocks__row--three {
    display: block;
    width: 100%;
  }

  .w3s-blocks__row--three .w3s-blocks__card-unit {
    width: 100%;
    margin-bottom: 40px;
  }

  .w3s-blocks__row--three .w3s-blocks__card-unit:last-child {
    margin-bottom: 0;
  }
}


