.home-features {
  direction: rtl;
  font-family: "Vazirmatn", "Plus Jakarta Sans", sans-serif;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-tile {
  position: relative;
  min-height: 419px;
  overflow: hidden;
  color: #fff;
  opacity: 0;
  transform: translateY(28px);
}

.home-features.is-visible .feature-tile {
  animation: featureRise 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

.feature-bg {
  position: absolute;
  inset: 0;
  background: #1a1a1a center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 69, 59, 0.42);
  transition: background 0.4s ease;
}

.feature-tile:hover .feature-bg {
  transform: scale(1.1);
}

.feature-tile:hover::after {
  background: rgba(26, 69, 59, 0.58);
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 419px;
  padding: 50px 37px;
}

.feature-title {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-title,
.feature-text,
.feature-more {
  color: #fff;
}

.feature-text {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.5;
}

.feature-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
}

.feature-more span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.35s ease;
}

.feature-tile:hover .feature-more span {
  max-width: 120px;
  opacity: 1;
}

.feature-more svg {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.feature-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

@keyframes featureRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile,
  .feature-copy {
    min-height: 340px;
  }
}
