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

#top-section h3.text-center {
  font-size: 24.5px;
  font-weight: bold;
}

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

/* 오버레이 위 텍스트 컨테이너 */
#what-RPA .content-wrapper {
  position: relative;
  z-index: 2;
}

#what-RPA .subpage-title,
#why-RPA .subpage-title,
#RPA-Benefits .subpage-title,
#RPA-MaturityLevel .subpage-title,
#RPA-Process .subpage-title,
#RPA-Advancement .subpage-title{
  text-align: center;
  margin-bottom: 56px;
  font-size: 34px;
  font-weight: bold;
}

#what-RPA .subpage-content,
#why-RPA .subpage-content,
#RPA-Benefits .subpage-content,
#RPA-MaturityLevel .subpage-content,
#RPA-Process .subpage-content,
#RPA-Advancement .subpage-content{
  text-align: center;
}

#what-RPA .font18 {
  font-size: 18px;
}

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

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

  /* 1번 항목: 좌우 패딩 42px */
  .pcView > .col-lg-3: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-3:nth-child(n+2) {
    padding-left: 42px !important;
    padding-right: 42px !important;
    padding-top: 42px !important;
    padding-bottom: 0 !important;
    border: none !important;
  }

  #what-RPA {
      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) {
  #RPA-Benefits {
    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;
  }
}

