         /* ======================================== */
         /* ======== 공통 레이아웃 시작 부분==========  */
         /* ======================================== */


/* 1. 여기에 추가: 스크롤바가 생겨도 화면이 밀리지 않게 공간 확보 */
html { 
    scrollbar-gutter: stable; 
}

/* 2. 기본 배경은 흰색으로 설정 (세로 스크롤 허용) */
body { 
    margin: 0; 
    padding: 0;
    min-height: 100vh; 
    background: #fff; 

    /* 우측에 브라우저 기본 스크롤바가 생기도록 설정 */
    overflow-y: auto !important; 
    overflow-x: hidden;
    
    /* 요소들을 위에서 아래로 수직 배치 */
    display: flex;
    flex-direction: column;
}

/* 3. 헤더 프레임: 메뉴 드롭다운과 모바일 사이드바를 위해 높이 확보 */
 .header-frame { 
         width: 100%; 
         height: 100px; /* 기본 높이 */
         border: none; 
         position: fixed; 
         top: 0; 
         left: 0; 
         width: calc(100% - 17px);  /* 스크롤바가 들어갈 자리를 확실히 비워줍니다 */
         z-index: 1000; 
         transition: height 0.3s ease; /* 부드러운 높이 변화 */
         pointer-events: auto; /* 마우스 이벤트 허용 */
         }

/* 4. 마우스를 올리면 드롭다운 메뉴가 보일만큼 높이를 늘림 */
.header-frame:hover { height: 400vh; }

/* 5. 푸터 프레임: 하단 흰 줄 제거 및 밀착 */
.footer-frame { 
    flex-shrink: 0;   /* 푸터가 본문에 밀려 찌그러지지 않게 방지 */
    margin-top: auto; /* 본문이 짧아도 강제로 최하단에 위치시킴 */
    width: 100%; 
    height: 80px; 
    border: none; 
    display: block; 
    vertical-align: top; 
    background: #1a1a1a; }


         /* ======================================== */
         /* ======== 상단 탭 수정부분 작성 위치 시작 부분==========  */
         /* ======================================== */


/* 프로젝트 상단 내비게이션 스타일 */
.about_via-nav {
  display: flex;
  flex-direction: column; /* 세로(위-아래) 방향으로 배치 */
  align-items: center;    /* 전체 요소를 가로 중앙 정렬 */
  justify-content: center;
  padding: 0px 0;
  margin-top: 105px; 
  margin-bottom: 20px;
}

.nav-title {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0a4a44;
  margin-bottom: 20px;   /* 제목과 아래 탭 사이의 간격 */
  text-align: center;    /* 텍스트 중앙 정렬 */
}

.nav-tabs {
  display: flex;
  gap: 10px; /* 항목 사이 공간을 띄움 (원하는 만큼 조절 가능) */
  flex: 1;
  justify-content: center; /* 중앙 배치 */
}

.tab-item {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  
  /* 박스 크기를 동일하게 설정 */
  width: 176px;        /* 버튼의 동일한 가로 너비 */
  height: 40px;        /* 버튼의 동일한 세로 높이 */
  display: flex;       /* 중앙 정렬을 위해 flex 사용 */
  align-items: center;
  justify-content: center;
  
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  background-color: #fff;
  letter-spacing: 0.5px;
}

/* ALL 및 활성화된 탭 스타일 */
.tab-item.active {
  background-color: #0a4a44 !important; /* 비아건축 로고 색상 */
  color: #fff !important;
  border-color: #0a4a44 !important;
}

.tab-item:hover:not(.active) {
  border-color: #0a4a44; /* 호버 시 테두리만 로고 색상으로 */
  color: #0a4a44;
}


         /* ======================================== */
         /* ======== 본문 수정부분 작성 위치 시작 부분==========  */
         /* ======================================== */


/* 1. 상단 타이틀 스타일 (CONTACT 페이지 스타일링) */
.history-header {
    text-align: center;
    padding: 0px 0px 20px;
    border-bottom: none; /* 상단 구분선 제거 */
}

.history-header .main-title {
    font-size: 20px; 
    font-weight: 500;    /* [수정] 800(매우 진함) -> 700(적당함)으로 변경 */
    color: #666;         /* [수정] #222(진한 검정) -> #444(부드러운 회색빛 검정)로 변경 */
    margin-top: 0px;
    margin-bottom: 8px;  /* 문구와의 간격 유지 */
}

.history-header .sub-title {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 15px; /* [수정] 50px -> 30px로 줄여서 표와의 간격 축소 */
    font-size: 15px; 
    color: #666;
    margin-bottom: 0;    /* 추가적인 여백 제거 */
}


/* 본문 전체 영역 */
.history-main {
    flex: 1 0 auto; /* ★핵심: 남는 모든 공간을 이 영역이 차지하여 푸터를 바닥으로 밀어냄 */
    width: 100%;  /* 위쪽 여백은 네비게이션 높이에 맞춰 조절하세요 */
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px;
}

.timeline-container {
    width: 100%;
}

.timeline-item {
    display: flex;
    align-items: stretch; /* 선이 아래 칸까지 이어지도록 설정 */
    position: relative;
    min-height: 70px;

}

/* 1. 좌측 년도 (120px) */
.year-side {
    flex: 0 0 120px;
    text-align: right;
    padding-top: 10px; /* 점 위치와 맞춤 */
}

.year {
    font-size: 28px;
    font-weight: 800;
    color: #0a4a44;
    margin: 0;
}

/* 2. 중앙 선과 점 (60px) */
.line-side {
    flex: 0 0 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

/* 수직선: 모든 아이템에 그려줌 */
.line-side::before {
    content: '';
    position: absolute;
    width: 1px;
    background: #0a4a44;
    opacity: 0.3;
    top: 0;
    bottom: 0;
}

/* 첫 번째 아이템(2026)의 위쪽 선 제거 */
.timeline-item:first-child .line-side::before {
    top: 25px;
}

/* 마지막 아이템(2020)의 아래쪽 선 제거 */
.timeline-item:last-child .line-side::before {
    height: 25px; /* 점까지만 선이 내려오도록 설정 */
    bottom: auto;
}

/* 점(Point) */
.year-point {
    position: absolute;
    top: 22px; /* 년도 텍스트 높이 중앙 */
    width: 9px;
    height: 9px;
    background: #0a4a44;
    border-radius: 50%;
    z-index: 2;
}

/* 3. 우측 내용 */
.content-side {
    padding-left: 20px;
    padding-top: 12px;
    padding-bottom: 40px; /* 항목 간 간격 */
}

.list { list-style: none; padding: 0; margin: 0; }
.list li { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 8px; }
.list .m { font-weight: 700; color: #888; margin-right: 8px; }



/* [모바일 대응] 화면이 작아지면 세로로 배치 */
@media (max-width: 1024px) {
    /* 1. 타이틀 섹션 중앙 정렬 및 한 줄 처리 */
    .history-header {
        padding: 0px 10px 0px; /* 상하 여백 축소 */
        text-align: center;
    }
    
    .history-header .main-title { 
        font-size: 20px; /* 크기 조정하여 한 줄 유지 */
        white-space: nowrap; /* 줄바꿈 방지 */
        margin-top: -10px !important; /* [추가] 제목 자체의 상단 마진 제거 */

    }
    
    .history-header .sub-title { 
        font-size: 11px; 
        line-height: 1.4;
        padding-bottom: 10px; /* 항목 간 간격 */
        word-break: keep-all; /* 단어 단위 줄바꿈으로 깔끔하게 */
    }

    /* 2. 연혁 레이아웃 간격 최적화 (좌측 쏠림 방지) */
    .history-main {
        flex: 1; /* 남은 공간을 채워 푸터를 바닥으로 밀어냄 */
        padding: 0 5px; /* 양옆 여백 */
        margin-top: 0px; /* [추가] 본문 위쪽 공간 제거 */
    }

    .timeline-container {
        max-width: 90%;
    }

    .timeline-item {
        display: flex;
        align-items: stretch;
        position: relative;
        min-height: auto !important; /* 고정 높이 해제하여 간격 통일 */
        margin-bottom: 0 !important; /* 하단 마진 제거 */
    }

    /* 각 칸의 너비를 줄여 중앙으로 모음 */
    .year-side { 
        flex: 0 0 60px; /* 년도 폭 축소 */
        padding-top: 5px;
    }
    
    .year { 
        font-size: 16px; 
    }

    .line-side { 
        flex: 0 0 30px; /* 선 영역 폭 축소 */
    }

    .year-point {
        top: 15px;
        width: 7px;
        height: 7px;
    }

    /* 3. 연혁 내용 간격 대폭 축소 */
    .content-side { 
        padding-left: 0px;
        padding-top: 8px;
        padding-bottom: 10px; /* 수직 간격 2/3 수준으로 축소 */
    }

    .list li {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 5px; /* 리스트 사이 간격 축소 */
    }

    .list .m {
        margin-right: 5px;
    }

    /* 프로젝트 상단 내비게이션 스타일 */ 
    .about_via-nav {
        flex-direction: column;
        gap: 5px;
        margin-top: 70px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .nav-title {
        font-size: 25px;
        margin-top: 5px;
        margin-bottom: 5px;
   }
    .nav-tabs {
        width: 100%;
        display: flex;         /* flexbox 활성화 확인 */
        flex-wrap: nowrap;     /* 한 줄로 가득 채우려면 nowrap, 줄바꿈 허용시 wrap */
        gap: 3px;
        padding: 0;            /* 불필요한 패딩 제거 */
    }

    .tab-item {
        flex: 1;               /* 핵심: 자식 요소가 너비를 균등하게 나눠 가짐 */
        min-width: 0;          /* 텍스트가 길어질 경우 대비 */
        text-align: center;    /* 텍스트 중앙 정렬 */
        font-size: 12px;
        height: 30px;        
    }

}

@media (max-width: 640px) {
    .history-main {
        padding-left: 10px;
        padding-right: 10px;
    }

}

