/* ==========================================
   [기본 설정]
   ========================================== */
body { 
    font-family: 'Pretendard', sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    padding: 0; 
    color: #333; 
    background: #f4f7f9; 
}
header { 
    background: #ffffff; 
    color: #333333; 
    padding: 0.8rem 5%; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* 로고 섹션 */
.logo-container { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}
.logo-img { 
    height: 45px; 
    width: auto; 
    margin-right: 12px; 
}
.logo-text { 
    font-size: 1.4rem; 
    font-weight: bold; 
    color: #2e7d32; 
}

/* 메뉴 섹션 */
nav ul { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
}
nav ul li { 
    margin-left: 25px; 
}
nav ul li a { 
    color: #333333; 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 500; 
    transition: 0.3s; 
}
nav ul li a:hover { 
    color: #2e7d32; 
}

/* ==========================================
   [기본 레이아웃 및 컴포넌트]
   ========================================== */
.container { 
    width: 85%; 
    max-width: 1100px; 
    margin: 40px auto; 
    background: white; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    min-height: 550px; 
}
h1 { 
    color: #1a2a3a; 
    border-left: 5px solid #4db8ff; 
    padding-left: 15px; 
    margin-bottom: 30px; 
}
h2 { 
    color: #2c3e50; 
    margin-top: 40px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
}

/* 이미지 박스 */
.img-box {
    background: #eee;
    width: 100%;
    height: 250px;       
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;     
    border: 1px solid #ddd;
}
.img-box img {
    max-width: 100%;     
    max-height: 100%;    
    width: auto;
    height: auto;
    object-fit: contain;  
}

/* 제품 카드 레이아웃 */
.card { 
    border: 1px solid #eee; 
    padding: 25px; 
    border-radius: 10px; 
    margin-bottom: 30px; 
    background: #fff; 
}
.product-flex { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}
.product-img-side { 
    flex: 1; 
    min-width: 250px; 
    max-width: 300px; 
}
.product-info-side { 
    flex: 2; 
}

/* 버튼 */
.btn-group { 
    margin-top: 15px; 
    display: flex; 
    gap: 10px; 
}
.btn { 
    padding: 10px 18px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    cursor: pointer; 
    display: inline-block; 
    border: none; 
}
.btn-blue { background: #007bff; color: white; }
.btn-gray { background: #6c757d; color: white; }

footer { 
    text-align: center; 
    padding: 30px; 
    color: #888; 
    font-size: 0.85rem; 
    background: #fff; 
    border-top: 1px solid #eee; 
}

/* ==========================================
   [회사연혁 페이지 전용 스타일 - 1열 와이드 최적화]
   ========================================== */
.history-page-container { 
    width: 90%; 
    max-width: 950px; /* 1열 배치 시 가장 안정적이고 고급스러운 너비 제한 */
    margin: 80px auto 100px; 
}

/* 창립년도 인포 */
.origin-center-box { 
    margin-bottom: 60px;
    text-align: center;
}
.origin-center-box .found-year { 
    font-size: 4rem; 
    font-weight: 900; 
    color: #2e7d32; 
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
}
.origin-center-box .found-text { 
    font-size: 1.2rem; 
    color: #334155; 
    font-weight: 700; 
    margin-top: 12px;
    letter-spacing: -0.5px;
}

/* 와이드형 대형 카드 박스 */
.history-grid { 
    display: block; 
}
.col { 
    width: 100%;      
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    padding: 50px 55px; /* 내부 여백을 넓혀 우측 쏠림 현상 방지 */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

/* 사업부 타이틀 헤더 */
.biz-name { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-bottom: 45px; 
    color: #0f172a;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 2px solid #0f172a; 
    margin-top: 0;
}

/* 타임라인 구조 최적화 */
.timeline-wrapper {
    position: relative;
    padding-left: 35px; /* 왼쪽 여백을 넓혀 콘텐츠 영역 확보 */
}
/* 세로 축선 */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px; /* 선을 조금 더 선명하게 변경 */
    background: #cbd5e1;
}
.timeline-item { 
    position: relative;
    margin-bottom: 60px; 
}
.timeline-item:last-child { 
    margin-bottom: 0; 
}

/* 타임라인 원형 노드(Dot) */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px; /* 늘어난 패딩에 맞춰 위치 조정 */
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e7d32;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #2e7d32;
    z-index: 2;
}

/* 연도 뱃지 */
.t-year { 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #ffffff; 
    background: #2e7d32; /* 가독성을 위해 반투명이 아닌 솔리드 그린으로 변경 */
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block; 
    margin-bottom: 14px; 
    letter-spacing: 0.5px;
}
.t-title { 
    font-size: 1.35rem; /* 제목 크기를 키워 시각적 균형 확보 */
    font-weight: 800; 
    color: #0f172a; 
    display: block; 
    margin-bottom: 20px; 
    letter-spacing: -0.5px; 
}

/* 연혁 상세 리스트 - 우측 공간을 고르게 채우도록 재설계 */
.t-desc { 
    font-size: 0.98rem; 
    color: #475569; 
    line-height: 1.8; 
    display: block; 
}
.history-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* 리스트 간 수직 여백 넓힘 */
}
.history-list li {
    position: relative;
    padding-left: 20px;
    word-break: keep-all; /* 한글이 단어 단위로 깔끔하게 떨어지도록 설정 */
}
.history-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #2e7d32; /* 불릿 기호 색상을 정통 사업부 테마에 맞춤 */
    font-weight: bold;
}

/* 금액 우측 배치 및 우측 여백 해소 핵심 팁 */
.price-tag {
    font-weight: 700;
    color: #1e293b;
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-left: 8px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

/* 주요 성과 하이라이트 아이템 */
.history-list li.highlight-item {
    color: #1e293b; 
    font-weight: 600;
    background: #f8fafc; /* 하이라이트 문항 전체에 은은한 박스 배경을 주어 와이드 공간 활용 */
    padding: 12px 18px 12px 30px;
    border-radius: 10px;
    border-left: 4px solid #2e7d32;
    margin-top: 8px;
}
.history-list li.highlight-item::before { 
    left: 14px;
    color: #2e7d32; 
}

@media (max-width: 768px) {
    .col { padding: 30px 25px; }
    .timeline-wrapper { padding-left: 25px; }
    .timeline-item::before { left: -30px; }
    .history-list li.highlight-item { padding: 10px 12px 10px 20px; }
    .history-list li.highlight-item::before { left: 8px; }
}

/* ==========================================
   [메인 히어로 및 기타 컴포넌트 고정]
   ========================================== */
.hero-dark {
    height: 600px;
    background-color: #222;
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)), url('images/main_hero.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}
.sub-hero { 
    height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images/bg_products.jpg');
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}