/* ---------------- 공통 섹션 스타일 ---------------- */

.c8 {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background-color: #ffffff;
  word-break: keep-all;
}

.c8-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 100px;
  text-align: center;
}

.c8-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #111111;
}

.c8-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 60px;
  color: #222222;
}

/* ---------------- 이미지 레이아웃 ---------------- */

.c8-images {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
}

/* 이미지 공통 박스 스타일 + 애니메이션 초기 상태 */
.c8-image-wrap {
  margin: 0;
  padding: 0;
  max-width: 460px;
  flex: 0 1 45%;
  border: 1px solid #c7c7c7;
  box-sizing: border-box;

  /* 스크롤 등장 연출용 초기값 */
  opacity: 0;                       /* 처음에는 안 보이게 */
  transform: translateX(0);         /* 개별 방향은 아래 클래스에서 지정 */
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;        /* 부드럽게 슬라이드 + 페이드 인 */
}

/* 왼쪽 이미지: 화면 밖 왼쪽에서 대기 */
.c8-image-left {
  transform: translateX(-60px);
}

/* 오른쪽 이미지: 화면 밖 오른쪽에서 대기 */
.c8-image-right {
  transform: translateX(60px);
}

/* 실제로 화면에 보이기 시작했을 때(IntersectionObserver에서 붙이는 클래스) */
.c8-image-wrap.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 이미지 태그 기본 */
.c8-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- 반응형 ---------------- */

@media (max-width: 1024px) {
  .c8-inner {
    padding: 60px 20px 80px;
  }

  .c8-title {
    font-size: 28px;
  }

  .c8-desc {
    font-size: 16px;
    margin-bottom: 48px;
  }

  .c8-image-wrap {
    max-width: 420px;
  }
}
@media (max-width:900px){
  .c8-inner {
    max-width: 100%;}
}
@media (max-width: 768px) {
  .c8-inner {
    padding: 50px 16px 70px;
  }

  .c8-title {
    font-size: 24px;
  }

  .c8-desc {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .c8-images {
    gap: 24px;
  }

  .c8-image-wrap {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* 모바일에서 이동 거리를 살짝 줄여도 자연스러움 */
  .c8-image-left {
    transform: translateX(-40px);
  }

  .c8-image-right {
    transform: translateX(40px);
  }
}



@media (max-width: 420px) {
  .c8-title {
      font-size: 30px;
  }
}