/* 무료 폰트 적용 */
@font-face {
  font-family: 'SpoqaHanSansRegular';
  src: url('/fonts/SpoqaHanSansRegular.ttf') format('truetype');
}

/* ---------------- 메인페이지 내 컨텐츠 및 footer 간격 관련 CSS ---------------- */
html, body {
    height: 100%; /* 높이를 100%로 설정 */
    margin: 0;    /* 기본 여백 제거 */
    padding: 0;   /* 기본 패딩 제거 */
}

body {
    display: flex;
    flex-direction: column; /* 세로로 배치 */
    padding-top: 3rem;  /* 상단 패딩 유지 */
    padding-bottom: 0;  /* 하단 패딩 제거 */
    color: rgb(var(--bs-tertiary-color-rgb)); /* 텍스트 색상 설정 */
    flex: 1;  /* 남은 공간을 메인 콘텐츠가 차지하도록 설정 */
    font-family: 'SpoqaHanSansRegular', sans-serif;
}

body, p, h1, h2, h3, h4, h5, h6, div {
  word-wrap: break-word;       /* 긴 단어도 줄바꿈 */
  overflow-wrap: break-word;   /* 단어 단위로 줄바꿈 */
  word-break: keep-all;        /* 단어 중간 자르지 않음 (한글에 특히 유리) */
  line-height: 1.5;            /* 줄간격 살짝 여유 있게 */
}

/* ---------------- 페이지 내용 section 별 배경 색 설정 ---------------- */
.bg-gray {
    background-color: rgba(0, 0, 0, .03);
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 100px; /* 네비바 높이에 맞게 조정 */
}

.lead {
  word-wrap: break-all; /* 단어가 너무 길어도 줄 바꿈 */
  white-space: normal; /* 기본 줄바꿈 허용 */
  font-size: 18px;
}

/* ---------------- footer CSS ---------------- */
footer {
    margin-top: 3rem; /* 푸터 위쪽에 여백 추가 */
}

footer .nav-item {
    font-weight: bold; /* 글씨를 굵게 */
}

footer .footer-info {
    text-align: left; /* 텍스트 왼쪽 정렬 */
    margin-top: 20px;
    margin-bottom: 60px;
}

footer .footer-info h2 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #aaa; /* 헤더 텍스트 색 */
}

footer .footer-info p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #aaa;
}

footer .footer-info span {
    display: inline-block;
    margin-right: 8px;
}

footer .footer-info span::after {
    content: "|";
    margin-left: 12px;
    color: #aaa;
}

footer .footer-info span:last-child::after {
    content: "";
    margin: 0;
}

footer .footer-border {
    border-bottom: 1px solid #777777; /* 회색 선 */
}

/* ---------------- navBar CSS ---------------- */
.navbar {
    position: fixed; /* 네비바 상단 고정 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* 다른 요소보다 위로 오게 */
}

/* 메뉴 글씨 굵게 */
.navbar-nav .nav-link {
    font-weight: bold; /* 글씨를 굵게 */
    white-space: nowrap; /* 페이지 크기가 줄어들 때 줄바꿈 방지*/
    font-size: 20px
}

/* 메뉴 간 간격 넓히기 */
.navbar-nav .nav-item {
    margin-right: 50px; /* 메뉴 간 간격 추가 */
}

/* 마지막 메뉴 항목 오른쪽 여백 제거 */
.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* 메뉴 오버 or 활성화 시 색 할당 */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #005F99;
}

/* disable-hover 클래스가 붙으면 hover 효과 무시 */
.dropdown-parent.disable-hover:hover > .dropdown-menu {
  display: none !important;
}

/* 네비바 서비스 메뉴 서브 네비바 관련 */
.dropdown-parent { /* 서브 메뉴의 기준 위치를 잡음*/
  position: relative;
}

/* 서브 메뉴바 박스 스타일*/
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff; /* 흰색 배경 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0;
  margin: 0;
  min-width: 160px;
  z-index: 1000;
}

/* 서브 메뉴 항목의 불릿(*이나 항목을 나타내는 점)을 제거 */
.dropdown-menu li {
  list-style: none;
}

/* 서브 메뉴바 박스 내 텍스트  스타일*/
.dropdown-menu .dropdown-item-navbar {
  color: black;
  padding: 12px 18px;
  font-size: 16px;
  text-decoration: none;
  display: block;
}

/* 서브 메뉴바 박스 내 텍스트 마우스 오버 시 */
.dropdown-menu .dropdown-item-navbar:hover {
  font-weight: bold;
  color: white;
  background-color: #003366;
}

/* 마우스 오버 시 드롭다운 표시 */
.dropdown-parent:hover .dropdown-menu {
  display: block;
}

/* 드롭다운 버튼 스타일 */
#languageDropdown { /* # : 하나의 요소에만 적용 / 강력한 우선순위 */
    font-size: 14px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 4px;
    width: 80px;
}

/* 드롭다운 메뉴 항목 스타일 */
.dropdown-item {
    font-size: 14px;
    padding: 8px 10px;
}

/* 마우스 오버시 메뉴 항목 색상 변경 및 글씨 굵게 */
.dropdown-item:hover {
    font-weight: bold;
    background-color: #f1f1f1;
}

/* ---------------- about Page CSS ---------------- */
.hero-image img {
  width: 100%;
  height: 320px; /* 또는 max-height */
  object-fit: cover;
  object-position: center;
  /* opacity: 0.8; 사진 투명도*/
}

.text-table {
    line-height: 1;
    text-align: center;
    font-size: 18px;
    padding-left: 40px;
    padding-right: 40px;
}

/* 회사 연혁 */
.timeline {
  max-width: 900px;
  margin: 0 auto;  /* 전체 박스 가로 중앙 */
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 3등분 그리드 — 연도, 기준선, 내용 모두 동일 너비(33.3%) */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center; /* 수직 가운데 정렬 */
  width: 100%;
  text-align: center; /* 일단 가운데 정렬 기본 */
}

/* 연도 오른쪽 정렬 */
.timeline-year {
  color: #003366;
  font-weight: bold;
  font-size: 1.25rem;
  text-align: right;
  white-space: nowrap;
}

/* 기준선 가운데 정렬 */
.timeline-line {
  width: 3px;
  height: 60px; /* 적당한 높이 */
  background-color: #003366;
  margin: 0 auto;
}

/* 내용은 왼쪽 정렬, 대신 셀 가운데 정렬 유지 */
.timeline-content {
  text-align: left;
  position: relative;
  padding-left: 20px;
}

/* 내용 문단 앞 도트 */
.timeline-content > p {
  position: relative;
  margin-bottom: 5px;
  padding-left: 14px;
}

.timeline-content > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #003366;
  border-radius: 50%;
}

/* ---------------- mainPage CSS ---------------- */
.bd-placeholder-img {
    font-size: 1.125rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

#myCarousel .carousel {
    margin-bottom: 4rem;
}

/* 메인 페이지 슬라이드 화면 내 text 위치 조정 */
/* 공통 스타일: 텍스트를 수직-수평 모두 중앙에 위치시킴 */
#myCarousel .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; /* 버튼 간섭 방지 핵심! */
}
#myCarousel .carousel-caption h1 {
  font-size: 50px;
  font-weight: bold;
  color: #ADD8E6;
}

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

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

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

/* 메인 페이지 콘텐츠 관련 */
.featurette-divider {
    margin: 5rem 0; /* 메인 페이지 콘텐츠 간 간격 설정 */
}

.featurette-heading {
    letter-spacing: -.05rem;
}

.featurette-heading {
    font-size: 33.6px;
    font-weight: 500;
}

.tetra-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 75px;
}
@media (max-width: 767px) {
  .tetra-title {
   font-size: 36px;
  }
}

.tetra-subtitle {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* 메인 페이지 RPA 과정 css 스타일 */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.process-step-box {
  width: 100%;
  max-width: 600px; /* 최대 크기는 600px로 제한 */
  height: 60px;
  background-color: #003366;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 20px;
  color: #f0f4ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0 16px;
}

.step-description {
  margin-top: 10px;
  font-size: 16px;
  color: black;
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

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

/* 1) 부모 요소: 텍스트 길이만큼 폭을 갖게 */
.title-wrapper {
  display: inline-block; /* 콘텐츠(텍스트, bar)의 너비에 딱 맞춰집니다. */
}

/* 2) .bar는 부모 너비의 100% */
.bar {
  display: block;       /* 혹은 inline-block 상관없음 */
  width: 100%;          /* 부모(.title-wrapper)의 폭을 100% 가집니다. */
  height: 2px;
  background-color: #003366;
  margin-top: 4px;
  margin-bottom: 9px;
}

/* slide 첫번 째 이미지 */
.custom-slide-img {
  object-fit: cover;
  object-position: 50% 150%; /* X축 50% (가운데), Y축 80% (아래쪽 강조) */
  height: 100vh;
}

/* slide 이미지 위에 검은톤 오버레이 */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* 검은색 30% 투명 */
  z-index: 1;
}

/* fade 효과 관련 */
.fade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* 채용 page 내 주의사항 dot 크기 */
.small-dot-list li::marker {
    font-size: 10px; /* 기본보다 작게 */
}

/* 채용과정 css */
.hiring-process {
  font-size: 20px;
  font-weight: bold; /* 글씨를 굵게 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-direction: row;
}

.step-box {
  background: rgb(40, 42, 49);
  color: white;
  width: 155px;
  height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  text-align: center;
  padding: 16px;
  transition: width 0.3s ease;
}

.arrow {
  font-size: 2rem;
  color: black;
  transition: transform 0.3s ease;
}

/* 서비스 메뉴 공통 스타일 */
.section-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-right: 1px solid #ddd; /* 각 섹션 사이 구분선 */
}

/* 마지막 섹션은 오른쪽 실선 제거 */
.section-item.no-border {
  border-right: none;
}

/* 넘버링 스타일 */
.section-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: #005F99;
  /* color: #B8860B; */
  margin-bottom: 10px;
}

/* 타이틀 스타일 */
.section-title {
  margin-top: 10px;
  font-weight: 600;
}

/* 설명 텍스트 */
.section-desc {
  font-size: 18px;
}

/* 화면 작아졌을 때 박스가 가로로 100% 차지하게 */
@media (max-width: 600px) {
  .hiring-process {
    flex-direction: column;
    gap: 4px;
  }

  .step-box {
      height: auto;
      width: 100%;
      max-width: 90%;
      padding: 16px; /* 여백 줄이기 */
    }

  .arrow {
    transform: rotate(90deg);
  }
}

.conversion-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.flow-img {
  width: 500px;
  height: auto;
  max-width: 80vw;
}

.arrow-icon {
  width: 80px;
  height: 80px;
  color: #fff;
  transition: transform 0.3s ease;
}

.greeting-highlight {
  color: #003366;
  font-weight: bold;
  font-size: 30px;
}

.greeting-margin {
 margin-bottom: 48px;
}

/* 반응형: 576px 이하에서는 세로 정렬 + 화살표 회전 */
@media (max-width: 576px) {
  .conversion-flow {
    flex-direction: column;
  }

  .arrow-icon {
    transform: rotate(90deg);
    width: 50px;
    height: 50px;
  }
}

/* ---------------- Responsive Styles ---------------- */

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

  #myCarousel .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;
  }

  #myCarousel .carousel-caption h1 {
    font-size: 30px;
    font-weight: bold;
    color: #ADD8E6;
  }

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

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

@media (max-width: 767px) {
  .hide-when-small-pc {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    margin-right: 0 !important;   /* 오른쪽 간격 제거 */
    padding-right: 0 !important;
  }

  .navbar-toggler {
    margin-right: 0 !important;   /* 토글 버튼 오른쪽 간격 제거 */
    padding-right: 0 !important;
    /* 토글 버튼 테두리 박스 제거 */
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

/* 작은 화면에서 텍스트 양 옆 여백 추가 */
@media screen and (max-width: 576px) {
    .text-table {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 데스크탑(hover)에서는 hover로 열림 */
@media (min-width: 768px) {
  .dropdown-menu {
    display: none;
  }
  .dropdown-parent:hover > .dropdown-menu {
    display: block;
  }
}

/* 모바일에서는 hover 대신 open 클래스에 따라 메뉴 열림 */
@media (max-width: 576px) {
  .dropdown-menu {
    display: none;
  }
  .dropdown-parent.open > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .section-item {
    border-right: none;
  }