/* FACCTing in Action 타임라인 스타일 - 사진과 정확히 일치 */

/* 타임라인 섹션 기본 스타일 */
.timeline-section {
    background: white;
    padding: 80px 0;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

/* 타임라인 컨테이너 */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 타임라인 중앙선 */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 150px;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
    z-index: 1;
}

/* 타임라인 아이템 */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

/* 왼쪽 아이템 */
.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    padding-right: 60px;
}

/* 오른쪽 아이템 */
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px;
}

/* 타임라인 마커 */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker {
    background-color: #28a745;
    transform: translateX(-50%) scale(1.1);
    z-index: 20;
}

/* 타임라인 콘텐츠 */
.timeline-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    max-width: 400px;
    width: 100%;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 타임라인 날짜 */
.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 타임라인 제목 텍스트 */
.timeline-event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.timeline-event-title:hover {
    color: #007bff;
    transform: scale(1.02);
}

/* 타임라인 세부사항 */
.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 15px;
    padding-top: 0;
    border-top: 1px solid #e9ecef;
}

.timeline-details.show {
    max-height: 800px;
    padding: 20px 0;
}

.timeline-details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

/* 타임라인 이미지 컨테이너 */
.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 타임라인 설명 */
.timeline-description {
    color: #5d6d7e;
    line-height: 1.6;
    margin-top: 15px;
    clear: both;
}

.timeline-description p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.timeline-description ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.timeline-description li {
    margin-bottom: 8px;
    color: #5d6d7e;
}

/* To be continued 스타일 */
.timeline-continue {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 100px;
    position: relative;
}

.timeline-continue .timeline-content {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    cursor: default;
    max-width: 300px;
    position: relative;
    z-index: 10;
    margin-top: 20px;
}

.timeline-continue .timeline-content:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.timeline-marker-continue {
    display: none;
}

.timeline-continue-text {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #6c757d;
    position: relative;
    z-index: 10;
}

/* 점들 애니메이션 */
.timeline-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #f1c40f;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse-dot {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* Timeline Section 모바일 최적화 */
    .timeline-section {
        padding: 3rem 0; /* 40px에서 증가 */
    }
    
    .timeline-title {
        font-size: 2rem; /* 2.2rem에서 약간 축소 */
        margin-bottom: 1rem;
    }
    
    .timeline-subtitle {
        font-size: 0.85rem; /* 약간 축소 */
        margin-bottom: 2rem;
    }
    
    .timeline-container {
        padding: 0 1rem; /* 15px에서 증가 */
    }
    
    /* 모바일에서 중앙선 제거하고 단순한 레이아웃 */
    .timeline-container::before {
        display: none; /* 중앙선 숨김 */
    }
    
    .timeline-item {
        margin-bottom: 2.5rem; /* 40px에서 증가 */
        justify-content: flex-start !important;
        padding: 0 !important; /* 모든 패딩 제거 */
        display: block; /* 블록 레이아웃으로 변경 */
    }
    
    .timeline-marker {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 1rem;
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        max-width: none;
        margin: 0;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 12px;
        background: white;
    }
    
    .timeline-date {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem;
    }
    
    .timeline-event-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem;
        cursor: pointer;
    }
    
    .timeline-details {
        margin-top: 1rem;
    }
    
    .timeline-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .timeline-description ul {
        margin-top: 1rem;
        padding-left: 1.2rem;
    }
    
    .timeline-description li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* 초소형 모바일 최적화 */
    .timeline-section {
        padding: 2rem 0;
    }
    
    .timeline-title {
        font-size: 1.6rem; /* 더 축소 */
        margin-bottom: 0.5rem;
    }
    
    .timeline-subtitle {
        font-size: 0.8rem; /* 더 축소 */
        margin-bottom: 1.5rem;
    }
    
    .timeline-container {
        padding: 0 0.5rem; /* 더 컴팩트 */
    }
    
    .timeline-content {
        margin: 0;
        padding: 1rem; /* 15px에서 증가 */
        border-radius: 8px;
    }
    
    .timeline-event-title {
        font-size: 1.1rem !important;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .timeline-description li {
        font-size: 0.85rem;
    }
}
