/* ============================================================================
 * File    : about.css
 * Desc    : About Us (깔끔한 프로필 & 세로줄 타임라인 이력서 스타일)
 * ============================================================================ */

/* --- 0. About 섹션 전체 좌우 패딩으로 가운데 고정 --- */
#about.section {
    padding: 60px max(40px, calc(50% - 700px));
    box-sizing: border-box;
}

/* --- 1. 헤더 영역 --- */
.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header span { 
    color: var(--primary); 
    font-size: 0.9rem; 
    letter-spacing: 2px; 
    font-weight: 600;
}

.about-header h2 { 
    font-size: 2.8rem; 
    margin: 10px 0; 
    font-weight: 800;
}

/* --- 2. 스토리 텍스트 --- */
.story-text { 
    max-width: 900px; 
    margin: 0 auto 80px; 
    text-align: center; 
    color: var(--text-dim); 
    font-size: 1.05rem;
    line-height: 1.8; 
    word-break: keep-all; /* 한글 단어 끊어짐 방지 */
}

/* --- 3. 프로필 카드 레이아웃 --- */
.profiles-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.profile-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    padding: 50px;
    margin-bottom: 80px;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    box-sizing: border-box;
}

/* --- 4. 프로필 사진 (왼쪽 고정 컬럼) --- */
.profile-img {
    display: block;
    width: 260px;
    height: 340px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* --- 5. 프로필 텍스트 영역 (오른쪽 컬럼) --- */
.profile-content {
    min-width: 0;
}

.profile-content h3 { 
    font-size: 0.9rem; 
    color: var(--primary); 
    letter-spacing: 2px; 
    margin-bottom: 10px; 
    font-weight: 600;
}

.profile-content h4 { 
    font-size: 2rem; 
    margin: 0 0 20px 0; 
    font-weight: 700;
    color: #fff;
}

.profile-content .bio {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 30px;
    word-break: keep-all;
    padding-left: 10px;
    border-left: 2px solid #333;
}

/* --- 6. 📍 세로줄 이력 (Timeline) 디자인 --- */
.timeline {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 183, 165, 0.3); /* 메인 세로줄 (연한 청록색) */
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px; /* 세로줄과 텍스트 사이 간격 */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 세로줄에 달린 동그라미 포인트 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px; /* 세로줄 위치에 정확히 맞춤 */
    top: 4px;
    width: 12px;
    height: 12px;
    background: #0b0b0b; /* 배경색으로 속을 파낸 느낌 */
    border: 2px solid var(--primary); /* 청록색 테두리 */
    border-radius: 50%;
    transition: 0.3s;
}

/* 마우스 올리면 동그라미가 채워지는 효과 */
.timeline-item:hover::before {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 183, 165, 0.5);
}

/* 연도/기간 텍스트 */
.timeline-item b {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* 현재 직위 / 수상 강조 */
.timeline-item b.accent,
.profile-content .bio b.accent {
    color: var(--primary);
    font-size: 1.05rem;
}

/* 이력 내용 텍스트 */
.timeline-item span {
    display: block;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- 7. 모바일 반응형 --- */
@media (max-width: 768px) {
    .profile-row {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 24px;
    }

    .profile-img {
        width: 160px;
        height: 210px;
    }

    .timeline {
        padding-left: 15px;
    }
    
    .timeline-item::before {
        left: -22px;
    }
}

/* =========================================
   Our Story 매거진 스타일 레이아웃
========================================= */

.story-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 150px;
    position: relative;
    box-sizing: border-box;
}


/* 1. 간격을 margin 대신 padding으로 변경 (화면이 줄어도 절대 안 깨지는 핵심!) */
.story-step {
    position: relative;
    padding-left: 60px;
    padding-bottom: 60px; /* 📍 margin을 padding으로 변경해서 상자 크기를 확보 */
    margin-bottom: 0;
    z-index: 1;
}

/* 3번(마지막) 스텝은 아래쪽 꼬리 여백을 제거 */
.story-step:last-of-type {
    padding-bottom: 0;
}

/* 2. 1번, 2번 스텝에만 꼬리표 선 달기 (상자 안에서만 그려짐) */
.story-step:not(:last-of-type)::after {
    content: '';
    position: absolute;
    top: 25px; /* 내 동그라미 아래서 출발 */
    bottom: 5px; /* 📍 다음 상자 닿기 직전에서 완벽하게 멈춤! */
    left: 22px; /* 동그라미 정중앙에 선 위치 맞춤 */
    width: 1px;
    background: rgba(0, 183, 165, 0.4);
    z-index: -1;
}

/* 3. 동그라미 위치 (중앙 정렬) */
.story-step::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 5px;
    width: 7px;
    height: 7px;
    background: #0b0b0b;
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 183, 165, 0.5);
}

/* 4. 모바일 반응형 (모바일에서도 완벽하게 멈춤) */
@media (max-width: 768px) {
    .story-step { 
        padding-left: 40px; 
        padding-bottom: 40px; /* 모바일용 간격 */
    }
    .story-step::before { left: 7px; }
    .story-step:not(:last-of-type)::after { left: 12px; } /* 모바일용 선 중앙 정렬 */
}


.step-num {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

.story-paragraph {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.8;
    word-break: keep-all; /* 한글 단어 끊어짐 방지 */
    margin: 0;
}

/* 스토리 내 핵심 문장 강조 */
.story-paragraph .highlight {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-top: 15px;
    font-size: 1.15rem;
}

/* 📍 마지막 하이라이트 문구 (클라이맥스) */
.story-climax {
    margin-top: 100px;
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 25, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(0, 183, 165, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(0, 183, 165, 0.05);
}

.story-climax h3 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 300; /* 얇고 세련되게 */
    line-height: 1.5;
    margin: 0;
    letter-spacing: -1px;
}

.story-climax h3 span {
    font-weight: 800; /* 행동하기로 마음먹었습니다 부분만 두껍게 빵! */
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 183, 165, 0.3);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .story-step::before { left: 7px; }
    .story-step { padding-left: 40px; margin-bottom: 40px; }
    .story-paragraph { font-size: 1rem; }
    .story-climax h3 { font-size: 1.6rem; }
}