/* 내부 컨텐츠 wrapper */
#padding_w20250316d5aeed30be2e8 {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 0; /* 기존 padding 제거 */
  box-sizing: border-box;
  margin: 0 auto;
}

/* 전체 섹션: 화면 높이 꽉 채우고 중앙 정렬 */
#ai-section-div {
  background: radial-gradient(
    circle at top left,
    #251b4f 0%,
    #050816 55%,
    #02030a 100%
  );
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 수직 가운데 */
  align-items: center; /* 수평 가운데 */
  padding: 0 20px; /* 양쪽 여백만 유지 */
  color: #f9fafb;
}

/* 타이틀 */
.ai-section-title {
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 100px;
}

/* 설명 문단 */
.ai-section-description {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: #9ca3c7;
}

/* 카드 리스트: 3열 그리드 */
.ai-question-list {
  margin-top: 40px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* 반응형: 태블릿 2열, 모바일 1열 */
@media (max-width: 1024px) {
  .ai-question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ai-question-list {
    grid-template-columns: 1fr;
  }
}

/* 개별 카드 스타일 */
.ai-question-item {
  background: linear-gradient(
    145deg,
    rgba(36, 41, 72, 0.98),
    rgba(15, 17, 35, 0.98)
  );
  border-radius: 26px;
  padding: 40px 28px; /* 카드 높이 키움 */
  display: flex;
  align-items: center; /* 가운데 정렬 */
  text-align: center; /* 텍스트 정가운데 */
  gap: 20px;
  border: 1px solid rgba(148, 163, 233, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: all 0.25s ease-out;
  flex-direction: column; /* ← 아이콘을 위로 올리는 핵심 */
}

/* 호버 효과 */
.ai-question-item:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
  background: linear-gradient(
    145deg,
    rgba(56, 65, 120, 1),
    rgba(15, 23, 42, 1)
  );
}

/* 아이콘 */
.ai-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.7));
}

/* 텍스트 */
.ai-question-item span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7ff;
}

.item_gallary .text_wrap._text_wrap {
  background: #6666d8;
}

/* 타이틀 아래 반짝이는 세로 점 3개 */
.ai-section-title {
  position: relative;
}

/* 점 + 반짝이 */
.ai-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 20px); /* 제목 아래 간격 조금 넓힘 */
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff; /* 흰색 점 */

  /* ↑ 첫번째 점
     ↓ 두번째 점 (간격 크게: 24px)
     ↓ 세번째 점 (간격 더 크게: 48px)
  */
  box-shadow: 0 24px 0 #ffffff, 0 24px 10px rgba(255, 255, 255, 0.7),
    0 48px 0 #ffffff, 0 48px 12px rgba(255, 255, 255, 0.6);

  pointer-events: none;
  animation: aiDotsSparkle 2.4s ease-in-out infinite alternate;
}

@keyframes aiDotsSparkle {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    box-shadow: 0 24px 0 #ffffff, 0 24px 12px rgba(255, 255, 255, 0.9),
      0 48px 0 #ffffff, 0 48px 14px rgba(255, 255, 255, 0.85);
  }
  100% {
    opacity: 0.6;
  }
}

/* AI섹션 미디어 쿼리 */
@media (max-width: 767px) {
  .ai-section-title {
    font-size: 35px;
  }

  #ai-section-div {
    height: auto !important; /* 100vh 제거 */
    padding: 20px 0 !important; /* 모바일에서는 기본 패딩으로 */
    display: block; /* 필요 시 플렉스 해제 */
  }

  .ai-question-item {
    width: 90%;
    margin: 0 auto;
  }

  .ai-question-item span {
    font-size: 16px;
  }
}

/* Portfolio Section */

/* === Portfolio Grid 기본 === */
#container_w20250316a293bdde3c929 .owl-stage {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  transform: none !important; /* 캐러셀 transform 제거 */
  width: 100% !important;
  padding: 0 !important;
}

#container_w20250316a293bdde3c929 .owl-item {
  width: 400px !important; /* 카드 가로폭 */
  margin: 0 !important;
}

/* === 카드 박스 === */
#container_w20250316a293bdde3c929 ._item {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#container_w20250316a293bdde3c929 ._item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* === 대표 이미지 === */
#container_w20250316a293bdde3c929 .img_wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover !important;
  background-position: center !important;
}

/* === 텍스트 영역 === */
#container_w20250316a293bdde3c929 .text_wrap {
  padding: 18px;
  background: #000;
}

#container_w20250316a293bdde3c929 .text_wrap .title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#container_w20250316a293bdde3c929 .text_wrap .title .body {
  font-size: 14px;
  font-weight: 400;
  color: #bbb;
}

/* === 박스 오버레이 제거 (IMWEB 기본효과 제거) === */
#container_w20250316a293bdde3c929 .slide_overlay {
  display: none !important;
}

/* === 모바일 === */
@media (max-width: 767px) {
  #container_w20250316a293bdde3c929 .owl-stage {
    gap: 16px;
  }
  #container_w20250316a293bdde3c929 .owl-item {
    width: 100% !important;
  }
  #container_w20250316a293bdde3c929 .img_wrap {
    aspect-ratio: 4 / 3;
  }
}

/* === 가로 스크롤 슬라이더로 변환 === */
#container_w20250316a293bdde3c929 {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  display: block !important;
}

#container_w20250316a293bdde3c929::-webkit-scrollbar {
  display: none;
}

/* owl-stage를 가로 나열용 flex 컨테이너로 변환 */
#container_w20250316a293bdde3c929 .owl-stage {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  width: max-content !important;
  transform: none !important;
  padding: 4px 0 !important;
}

/* owl 아이템을 고정 폭 카드로 */
#container_w20250316a293bdde3c929 .owl-item {
  flex: 0 0 340px !important;
  margin: 0 !important;
}

/* 카드 스타일(기존 코드 유지) */
#container_w20250316a293bdde3c929 ._item {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#container_w20250316a293bdde3c929 ._item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* 이미지 4:3 비율 유지 */
#container_w20250316a293bdde3c929 .img_wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover !important;
  background-position: center !important;
}

/* 텍스트 영역 */
#container_w20250316a293bdde3c929 .text_wrap {
  padding: 18px;
  background: #000;
}

#container_w20250316a293bdde3c929 .title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#container_w20250316a293bdde3c929 .title .body {
  font-size: 14px;
  font-weight: 400;
  color: #bbb;
}

/* 오버레이 제거 */
#container_w20250316a293bdde3c929 .slide_overlay {
  display: none !important;
}

/* === 모바일 === */
@media (max-width: 767px) {
  #container_w20250316a293bdde3c929 .owl-item {
    flex: 0 0 80% !important; /* 모바일에서는 더 크게 */
  }
}
