.category-list {
  margin: 3rem auto;
}

.category-cards {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 1.5rem;
}

.category-card {
  flex: 1 1 calc(33.333% - 8px);
  max-width: calc(33.333% - 8px);
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-card img {
  margin-bottom: 1.0rem;
}

.category-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.category-card-content > p {
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #ccc calc(100% - 1px), #ccc 100%, transparent 100%);
  padding-bottom: 1px;
  display: inline;
}

@media (max-width: 768px) {
  .category-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .category-card {
    flex: 1 1 auto;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
  }
  
  .category-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
  
  .category-card-content {
    flex: 1;
  }
  
  .category-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .category-card p {
    margin: 0;
  }
}
