/* 🔹 전체 페이지 설정 (필요 시 유지, 아니면 삭제 가능) */
body {
  background-color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
}

/* 🔹 section-title 내부 maincon 전용 스타일 */
.container.section-title .maincon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: -10px 0;
  margin-bottom: -40px;
}

/* 🔹 카드 공통 스타일 */
.container.section-title .maincon .card {
  flex: 1;
  max-width: 350px;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  background-color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  font-weight: 800;
  font-size: 26px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 🔹 이미지 */
.container.section-title .maincon .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
}

/* 🔹 오버레이 */
.container.section-title .maincon .card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 🔹 텍스트 */
.container.section-title .maincon .card span {
  position: relative;
  z-index: 1;
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* 🔹 마우스 오버 효과 */
.container.section-title .maincon .card:hover .overlay {
  opacity: 0.6;
}

.container.section-title .maincon .card:hover span {
  opacity: 1;
}
