/* ============================================================================
 * File    : about.css
 * Desc    : About Us (깔끔한 프로필 & 세로줄 타임라인 이력서 스타일)
 * ============================================================================ */

/* --- 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. 프로필 카드 레이아웃 (깔끔한 분할) --- */
.profile-row {
    display: flex;
    align-items: flex-start; /* 📍 위쪽 정렬 고정 (글과 높이 맞춤 핵심) */
    gap: 50px; /* 📍 간격을 약간 좁혀 조화롭게 */
    margin-bottom: 80px;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px; /* 더 부드럽게 */
    padding: 50px;
}

.profile-row.reverse { 
    flex-direction: row-reverse; 
}

/* --- 4. 프로필 사진 (부담스럽지 않은 적당한 크기) --- */
.profile-img {
    flex-shrink: 0; /* 크기 고정 */
    /* 아까보다 크기를 대폭 줄여 부담을 없앱니다 (명함형 포트레이트 비율) */
    width: 290px; 
    height: 360px;
    
    border-radius: 20px; /* 사진 모서리를 더 둥글게 */
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.08); /* 테두리를 정의해서 깔끔하게 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* 자연스러운 입체감 */

    /* 📍 글씨 상단(C E O/Medical Artist)과 높이를 맞추기 위한 미세 조정 */
    margin-top: 5px; 

    background-clip: padding-box; /* 이미지가 테두리 밑으로 파고들지 못하게 차단! */
    transform: translateZ(0); /* 브라우저 하드웨어 가속을 켜서 테두리 픽셀을 강제로 깔끔하게 렌더링! */

}

/* --- 5. 프로필 텍스트 영역 --- */
.profile-content { 
    flex: 1; 
}

.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;
}

/* --- 6. 📍 세로줄 이력 (Timeline) 디자인 --- */
.timeline {
    margin-top: 40px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 194, 203, 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, 194, 203, 0.5);
}

/* 연도/기간 텍스트 */
.timeline-item b {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* 이력 내용 텍스트 */
.timeline-item span {
    display: block;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- 7. 모바일 반응형 --- */
@media (max-width: 768px) {
    .profile-row, .profile-row.reverse { 
        flex-direction: column; 
        padding: 30px;
        gap: 30px;
    }
    
    .profile-img { 
        width: 100%; 
        height: 300px; /* 모바일에서는 가로로 꽉 차게 */
    }

    .timeline {
        padding-left: 15px;
    }
    
    .timeline-item::before {
        left: -22px;
    }
}

/* =========================================
   Our Story 매거진 스타일 레이아웃
========================================= */

.story-wrapper {
    max-width: 800px;
    margin: 0 auto 150px;
    position: relative;
}


/* 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, 194, 203, 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, 194, 203, 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;
    font-family: 'Courier New', Courier, monospace; /* 살짝 타이프라이터 감성 */
}

.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, 194, 203, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(0, 194, 203, 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, 194, 203, 0.3);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .story-wrapper::before { left: 10px; }
    .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; }
}