main {
  padding-top: 120px;
}

.page-title-section {
  text-align: center;
  margin-bottom: 60px;
}
.page-title-section h1 {
  font-size: 50px;
  font-weight: bold;
}
.page-title-section p {
  font-size: 18px;
  color: #666;
}

/* [수정됨] 카테고리 제목과 카드들을 모두 중앙 정렬 */
.category-section {
  margin-bottom: 60px;
  text-align: center; /* 제목 중앙 정렬 */
}

.category-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  display: inline-block; /* text-align:center 적용을 위해 */
}

/* [수정됨] 카드들을 담는 컨테이너 - 직접 만든 Flexbox 그리드 */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 핵심: 카드들을 항상 중앙 정렬 */
  gap: 24px; /* 카드 사이의 간격 */
}

/* [수정됨] 각 카드의 링크(크기 지정) */
.ai-card-link {
  width: 280px; /* 모든 카드의 너비를 고정 */
}

/* AI 카드 스타일 */
.ai-card {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.ai-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 15px;
}

.ai-card .card-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.ai-card .card-title {
  font-size: 20px;
  font-weight: 600;
}
