/* ===========================================
   암텍 회사연혁 페이지 전용 스타일
   전역/폰트/네비게이션/푸터 스타일은 common.css에서 관리
   =========================================== */

/* ===========================================
   1. 메인 컨텐츠 영역
   =========================================== */
.main-content {
    margin-top: 75px;
    min-height: calc(100vh - 75px - 200px); /* 네비게이션 높이와 푸터 높이를 제외한 최소 높이 */
}

/* 히어로 섹션 */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-container {
    position: relative;
    width: 1700px;
    max-width: 100%;
}

.hero-image {
    width: 100%;
    aspect-ratio: 7200 / 2800;
    object-fit: cover;
    filter: saturate(0.5);
}

.hero-caption {
    position: absolute;
    bottom: 12%;
    left: 8%;
    text-align: left;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.hero-caption h3 {
    font-size: 2.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 3.5rem;
    font-family: 'GmarketSansMedium', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .hero-caption h3 {
        font-size: 1.8rem;
        line-height: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-image {
        height: 250px;
        object-fit: cover;
    }

    .hero-caption h3 {
        font-size: 1.1rem;
        line-height: 1.8rem;
    }
}

/* ===========================================
   섹션 타이틀
   =========================================== */
.section-title {
    max-width: 1200px;
    margin: 60px auto 20px;
    padding: 0 20px;
    text-align: left;
    position: relative;
}

@media (min-width: 1200px) {
    .section-title {
        margin-top: 100px;
        margin-bottom: 60px;
    }
}

.section-title h2 {
    font-size: 2.0rem;
    font-weight: 800;
    color: #333;
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
}

.section-title h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background-color: #333;
    border-radius: 2px;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
    .section-title {
        margin: 40px auto 15px;
        padding: 0 20px;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .section-title h2::before {
        width: 3px;
        height: 1.1em;
    }
}

/* ===========================================
    연혁 타임라인 스타일
    =========================================== */
.timeline-container {
    max-width: 1200px;
    margin: 45px auto 100px;
    padding: 0 20px;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #0066ff;
    transform: translateX(-50%);
}

.timeline-decade-header {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #e2e8f0;
    margin: 70px 0 40px;
    position: relative;
    z-index: 1;
    font-family: 'GmarketSansMedium', sans-serif;
    user-select: none;
    pointer-events: none;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    z-index: 2;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0066ff;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.25);
    transform: translate(-50%, 0);
    z-index: 10;
}

.timeline-content {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 88%;
    margin-right: 35px;
    border: none;
    text-align: right;
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 35px;
    text-align: left;
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    width: 100%;
    font-family: 'GmarketSansMedium', sans-serif;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
}

.timeline-details li:last-child {
    margin-bottom: 0;
}

/* 반응형 타임라인 */
@media (max-width: 991.98px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        padding-right: 0;
        padding-left: 60px;
        justify-content: flex-start;
        margin-bottom: 35px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }
    
    .timeline-badge {
        left: 30px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        text-align: left;
    }
    
    .timeline-decade-header {
        font-size: 1.8rem;
        margin: 50px 0 25px;
        text-align: left;
        padding-left: 60px;
    }
}
