.Category_Subcategory_Card {
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.Category_Subcategory_Card:focus,
.Category_Subcategory_Card:focus-visible,
.Category_Subcategory_Card:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.Category_Subcategory_Card .category-modern-card {
  width: 100%;

  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  transition: all 0.3s ease;
}
.Category_Subcategory_Card .category-modern-card:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.Category_Subcategory_Card .category-modern-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/0.9;
  overflow: hidden;
  background: #f5f5f5;
}

.Category_Subcategory_Card .category-modern-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/0.9;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.Category_Subcategory_Card .category-modern-text {
  width: 100%;
  padding: 14px 12px;
  text-align: center;
  background: #fff;
}

.Category_Subcategory_Card .category-modern-text p {
  margin: 0;
  color: #171717;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.Category_Subcategory_Card .category-modern-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 991.98px) {
  .Category_Subcategory_Card .category-modern-text {
    padding: 12px 10px;
  }

  .Category_Subcategory_Card .category-modern-text p {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .Category_Subcategory_Card .category-modern-card {
    border-radius: 11px;
  }

  .Category_Subcategory_Card .category-modern-text {
    padding: 10px 8px;
  }

  .Category_Subcategory_Card .category-modern-text p {
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .Category_Subcategory_Card .category-modern-text {
    padding: 9px 6px;
  }

  .Category_Subcategory_Card .category-modern-text p {
    font-size: 12px;
  }
}
