/* ✅ 기본 설정 (section-title 내부에만 적용) */
.section-title * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.section-title body {
  font-family: 'Pretendard', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;   /* 가로 중앙 */
  align-items: center;       /* 세로 중앙 */
  background-color: #fff;
}

/* ✅ 메인 컨테이너 */
.section-title .main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;             /* 줄바꿈 허용 */
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* ✅ 카드 버튼 */
.section-title .category-card {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  flex: 1 1 30%;              /* 유연한 비율 + 기본 30% */
  min-width: 280px;
  max-width: 450px;

  background-color: #444;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;

  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  overflow: hidden;
  position: relative;
}

.section-title .category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  transition: background 0.3s ease;
}

.section-title .category-card span {
  position: relative;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
  z-index: 1;
  text-align: center;
}

.section-title .category-card:hover {
  transform: translateY(-8px);
  filter: brightness(1.1);
}

.section-title .category-card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

/* 📱 반응형 레이아웃 */
@media (max-width: 1024px) {
  .section-title .category-card {
    flex: 1 1 45%;   /* 두 개씩 나란히 */
  }
}

@media (max-width: 600px) {
  .section-title .category-card {
    flex: 1 1 100%;  /* 한 줄에 한 개 */
  }
}
