/* 무료 폰트 적용 */
@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: 0;  /* 상단 패딩 유지 */
    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;            /* 줄간격 살짝 여유 있게 */
}

.bg-gray {
    background-color: rgba(0, 0, 0, .03);
}


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

/* ---------------- footer CSS ---------------- */
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; /* 회색 선 */
}



/* ---------------- about Page CSS ---------------- */
.hero-image img {
  width: 100%;
  height: 30vh; /* 또는 max-height */
  object-fit: cover;
  object-position: center;
}

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

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

/* 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;
  left: -30px; /* 왼쪽으로 10px 이동 (값은 원하는 만큼 조정) */
}

/* 내용 문단 앞 도트 */
.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 ---------------- */
/* 메인 페이지 콘텐츠 관련 */

.highlight-text {
  color: #003366;
  font-weight: bold;
  font-size: 20px;
}

/* slide 이미지 위에 검은톤 오버레이 */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 검은색 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;
}

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

/* 넘버링 스타일 */
.section-item .number {
  font-size: 28px;
  font-weight: 700;
  color: #DAA520;
  margin-bottom: 10px;
}

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

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

#main-section6 .section-desc {
  color: black !important;
}

/* 화면 작아졌을 때 박스가 가로로 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);
  }
}

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

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