/* ==========================================================================
   Featured Categories / Highlights Section (3 Column Grid)
   ========================================================================== */

.featured-categories-section {
  width: 100%;
  padding: 40px 24px 60px;
  background-color: #ffffff;
}

.categories-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0px;
  aspect-ratio: 1 / 1.1;
  background-color: #f1f1f1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.category-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover .category-img {
  transform: scale(1.06);
}

/* Dark Bottom Gradient Overlay (Matches Reference Image) */
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 20px;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.45) 65%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* Category Title */
.category-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-align: center;
  margin: 0;
  transform: translateY(0);
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.category-card:hover .category-title {
  transform: translateY(-3px);
  letter-spacing: 1.2px;
}

/* Responsive Adjustments (Desktop Untouched, Mobile Optimized) */
@media (max-width: 960px) {
  .featured-categories-section {
    padding: 24px 16px 36px;
  }
  .categories-container {
    gap: 12px;
  }
  .category-title {
    font-size: 16px;
  }
  .category-overlay {
    padding: 16px 10px;
  }
}

@media (max-width: 768px) {
  .featured-categories-section {
    padding: 16px 12px 24px;
  }
  .categories-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .category-card {
    aspect-ratio: 1 / 1.2;
    border-radius: 4px;
  }
  .category-overlay {
    padding: 10px 4px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.4) 65%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }
  .category-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .featured-categories-section {
    padding: 12px 8px 20px;
  }
  .categories-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .category-card {
    aspect-ratio: 1 / 1.25;
    border-radius: 3px;
  }
  .category-overlay {
    padding: 8px 2px;
  }
  .category-title {
    font-size: 11px;
    letter-spacing: 0px;
  }
}
