.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.category-heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.category-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.category-card {
  height: 500px;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.category-card__content {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  color: white;
  z-index: 2;
  transition: all 0.3s ease;
}

.category-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-card__description {
  opacity: 0.9;
  margin: 0;
  font-size: 0.875rem;
}

.category-card__button {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #4360ed 0%, #6B80F3 100%);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transform: translateY(100%);
  transition: all 0.3s ease;
  z-index: 3;
  font-size: 0.875rem;
  display: block; 
  text-decoration: none; 
}

.category-card:hover .category-card__button {
  transform: translateY(0);
}

.category-card:hover .category-card__content {
  bottom: 80px;
}

@media (max-width: 768px) {
  .category-card {
      height: 600px;
  }
  
  .category-card__button {
      transform: translateY(0);
      opacity: 1;
  }
  
  .category-card__content {
      bottom: 60px !important;
      padding: 1rem;
  }
  
  .category-heading {
      font-size: 1.75rem;
  }
  
  .category-card__title {
      font-size: 1.1rem;
  }
}