.hero-section {
  align-items: center;
  display: flex;
  min-height: 90dvh;
  justify-content: center;
  padding: 48px 48px;
}

.card-grid-jodi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 48px;
  grid-row-gap: 48px;
  width: 100%;
}

@media (min-width: 540px) {
  .card-grid-jodi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid-jodi {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-jodi {
  list-style: none;
  position: relative;
  height: 70dvh; /* Set the card to take 70% of the viewport height */
}

.card-jodi:before {
  content: "";
  display: block;
  height: 100%; /* Ensures that the background takes full height of the card */
  width: 100%;
}

.card__background-jodi {
  background-size: cover;
  background-position: center;
  border-radius: var(--spacing-l);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  transform-origin: center;
  transform: scale(1) translateZ(0);
  transition: filter 200ms linear, transform 200ms linear;
}

.card-jodi:hover .card__background-jodi {
  transform: scale(1.05) translateZ(0);
}

.card-grid-jodi:hover > .card-jodi:not(:hover) .card__background-jodi {
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card__content-jodi {
  left: 0;
  padding: var(--spacing-l);
  position: absolute;
  top: 0;
}

.card__category-jodi {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-s);
  text-transform: uppercase;
}

.card__heading-jodi {
  color: var(--text-lighter);
  font-size: 1.9rem;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
  word-spacing: 100vw;
}
