/* ✦ NEW — Bento Categories (Dark) */

.dx-bento__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 16px;
}

/* The first card is the hero tile */
.dx-bento__card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Fill the last row so the grid never leaves holes */
.dx-bento__grid--2 .dx-bento__card:nth-child(2),
.dx-bento__grid--3 .dx-bento__card:nth-child(n + 2) {
  grid-column: span 2;
}

.dx-bento__grid--2 .dx-bento__card:nth-child(2) {
  grid-row: span 2;
}

.dx-bento__grid--4 .dx-bento__card:nth-child(4) {
  grid-column: span 2;
}

.dx-bento__grid--6 .dx-bento__card:nth-child(6) {
  grid-column: span 4;
}

.dx-bento__grid--1 .dx-bento__card {
  grid-column: span 4;
}

.dx .dx-bento__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--dx-radius);
  background: var(--dx-card);
  color: #fff;
  isolation: isolate;
}

.dx-bento__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--dx-ease);
}

.dx-bento__card:hover img {
  transform: scale(1.06);
}

.dx-bento__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, 0) 100%);
  transition: opacity .5s;
}

.dx-bento__body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px;
}

.dx-bento__label {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--dx-accent);
  color: #0b0b0b;
  font-size: 12px;
  font-weight: 700;
}

.dx-bento__name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.dx-bento__card:first-child .dx-bento__name {
  font-size: clamp(26px, 2.6vw, 38px);
}

.dx-bento__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dx-accent);
}

.dx-bento__cta i {
  font-size: 12px;
  transition: transform .4s var(--dx-ease);
}

.dx-bento__card:hover .dx-bento__cta i {
  transform: translateX(4px);
}

html[dir="rtl"] .dx-bento__cta i {
  transform: scaleX(-1);
}

html[dir="rtl"] .dx-bento__card:hover .dx-bento__cta i {
  transform: scaleX(-1) translateX(4px);
}

@media (max-width: 991.98px) {
  .dx-bento__grid {
    grid-auto-rows: 220px;
  }
}

@media (max-width: 767.98px) {
  .dx-bento__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 10px;
  }

  .dx-bento__card:first-child,
  .dx-bento__grid--2 .dx-bento__card:nth-child(2),
  .dx-bento__grid--3 .dx-bento__card:nth-child(n + 2),
  .dx-bento__grid--6 .dx-bento__card:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .dx-bento__card:first-child {
    grid-row: span 2;
  }

  .dx-bento__grid--3 .dx-bento__card:nth-child(n + 2) {
    grid-column: span 1;
  }

  .dx-bento__body {
    padding: 16px;
  }

  .dx-bento__name {
    font-size: 17px;
  }
}
