/* 슬라이드 */
#main-section1 .carousel {
    margin-bottom: 4rem;
}

/* 메인 페이지 슬라이드 화면 내 text 위치 조정 */
/* 공통 스타일: 텍스트를 수직-수평 모두 중앙에 위치시킴 */
#main-section1 .carousel-caption {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: auto !important;
  z-index: 10;
  text-align: center;
  max-width: 80%;
  width: 100%;
  pointer-events: none; /* 버튼 간섭 방지 핵심! */
}

#main-section1 .carousel-caption h1 {
  font-size: 50px;
  font-weight: bold;
  color: #DAA520;
}

#main-section1 .carousel-caption p {
  font-weight: normal;
  font-size: 24px;
}

#main-section1 .carousel-item {
    height: 1000px;
}

/* 슬라이드 내 이미지 반응형에 이미지 사이즈 맞추기 */
#main-section1 .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 잘리더라도 영역을 꽉 채움 */
}

/* 데스크톱: 텍스트 크기 유지 */
@media (max-width: 39.99em) {
  #main-section1 .carousel-item {
    height: 760px;
  }

  #main-section1 .carousel-caption {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto !important;
    z-index: 10;
    padding: 0 1rem;

    max-width: 80%; /* 기존 90% → 줄여서 버튼과 간섭 방지 */
    pointer-events: none; /* 텍스트가 버튼 클릭 막지 않게 */
    text-align: center;
    word-break: keep-all;
  }

  #main-section1 .carousel-caption h1 {
    font-size: 30px;
    font-weight: bold;
    color: #DAA520;
  }

  #main-section1 .carousel-caption p {
    font-size: 20px;
  }
}

/* 메인 페이지 최상단 글머리 */
#main-section2 {
  position: relative;
  height: auto;
  padding: 77px 30px;
}

#main-section2 h3.text-center {
  font-size: 22px;
  font-weight: bold;
}

@media (max-width: 767px) {
  #main-section2{
    height: auto !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* 오버레이 위 텍스트 컨테이너 */
#main-section3 .content-wrapper,
#main-section5 .content-wrapper{
  max-width: 1800px !important;
  position: relative;
  z-index: 2;
}

#main-section3 .subpage-title,
#main-section5 .subpage-title,
#main-section6 .subpage-title,
#main-section7 .subpage-title,
#service1-section2 .subpage-title,
#main-section4 .subpage-title{
  text-align: center;
  margin-bottom: 56px;
  font-size: 34px;
  font-weight: bold;
}

#main-section3 .subpage-content,
#main-section5 .subpage-content,
#main-section6 .subpage-content,
#main-section7 .subpage-content,
#service1-section2 .subpage-content,
#main-section4 .subpage-content{
  text-align: center;
}

#main-section3 .font18 {
  font-size: 18px;
}

.border-left-right {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

/* whatRPA 서브 타이틀 */
.responsive-centered-row {
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .pcView {
    margin-bottom: 0;
  }

  /* 1번 항목: 좌우 패딩 42px */
  .pcView > .col-lg-4:first-child {
    padding-left: 42px !important;
    padding-right: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
  }

  /* 2, 3번 항목: 위, 좌우 42px 패딩 */
  .pcView > .col-lg-4:nth-child(n+2) {
    padding-left: 42px !important;
    padding-right: 42px !important;
    padding-top: 42px !important;
    padding-bottom: 0 !important;
    border: none !important;
  }

  #main-section3 {
      height: auto !important;
  }
}

/* RPA 프로세스 */
.process-steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 가운데 정렬 */
  align-items: center;
  max-width: 1800px;
  margin: auto;
  gap: 0; /* gap 제거하고 화살표 margin만 사용 */
}

/* 박스+화살표 세트 */
.process-step-set {
  display: flex;
  align-items: center;
  margin-bottom: 16px; /* 세로 여백 추가 */
}

/* 마지막 줄 제외한 세트에만 여백 */
.process-step-set:not(:last-child) {
  margin-bottom: 16px;
}

/* 실제 박스 */
.process-step-box {
  width: 300px;
  min-height: 200px;
  background-color: rgba(0, 51, 102, 0.1);
  box-shadow: 0 0 20px rgba(173, 216, 230, 0.9);
  border-radius: 16px;
  color: #f0f4ff;
  padding: 15px 10px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.box-main-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #DAA520;
}

.box-description {
  font-size: 18px;
  color: white;
}

/* 기본 화살표: 오른쪽 방향 */
.step-arrow {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid #DAA520;
  margin: 0 15px;
}

/* 마지막 박스에는 화살표 없음 */
.process-step-set.no-arrow .step-arrow {
  display: none;
}

/* 모바일: 세로 정렬 + 아래 화살표 */
@media (max-width: 575.98px) {
  #main-section6 {
    height: auto !important;
  }
  .process-steps-container {
    flex-direction: column;
    align-items: center;
  }

  .process-step-set {
    flex-direction: column;
    margin-bottom: 0px !important;
  }

  .step-arrow {
    border: none;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #B8860B;
    margin: 15px 0;
  }
}

