

.background-logo {
    position: fixed;
    top: 0;
    z-index: -1;
    width: 100%;
    pointer-events: none;
    left: 0;
    height: 100%;
    object-fit: cover;
}

.history-section {
    padding: 100px 20px;
    text-align: center;
}

.history-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #e87722;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #E87722;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 40px 0;
    position: relative;
    flex-wrap: wrap;
}

.timeline-item.left .content {
    width: 45%;
    text-align: right;
    padding-right: 30px;
}

.timeline-item.left .image-box {
    width: 45%;
    text-align: left;
}

.timeline-item.right .content {
    width: 45%;
    text-align: left;
    padding-left: 30px;
}

.timeline-item.right .image-box {
    width: 45%;
    text-align: right;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    object-fit: cover;
}

.content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	position:relative;
}


.timeline-item.left .content {
	border-left: 6px solid #E87722;
}
.timeline-item.right .content {
	border-right: 6px solid #E87722;

}

.timeline-item.left .content:after {
    content: " ";
    height: 1px;
    position: absolute;
    top: calc(50% - 2px);
    width: 0px;
    right: -50px;
    border-top: 4px solid #e87722;
    background: no-repeat;
	transition:  0.5s;
	transition-delay:  0.4s;
	
}

.timeline-item.right .content:after {
    content: " ";
    height: 1px;
    position: absolute;
    top: calc(50% - 2px);
    width: 0px;
    left: -50px;
    border-top: 4px solid #e87722;
    background: no-repeat;
	transition:  0.5s;
	transition-delay:  0.4s;
	
} 

.content h3 {
    color: #e87722;
    font-size: 20px;
    margin-bottom: 10px;
}

.content p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.timeline-item .content,
.timeline-item .image-box {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-item::after {
    content: " ";
    display: block;
    position: absolute;
    background: #ffffff;
    width: 20px;
    height: 20px;
    border: 4px solid #e87722;
    left: 49%;
    border-radius: 50%;
    box-sizing: border-box;
	scale:0;
	transition:  0.4s;
}


.timeline-item .content,
.timeline-item .image-box {
	opacity:0;
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
	transition-delay:  0.4s;
}

.timeline-item.left .content {
    transform: translateX(10px);
}

.timeline-item.right .content {
    transform: translateX(-10px);
}

.timeline-item.visible .image-box,
.timeline-item.visible .content{
	opacity:1;
    transform: translateX(0);
}

.timeline-item.visible .content:after {
	
	width: 50px;
}

.timeline-item.visible::after {
	background: #ffffff;
    
	scale:1;
    border: 4px solid #e87722;
}

@media (max-width: 900px) {
    .timeline {
        padding: 0;
    }



    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 40px 0;
    }

    .timeline-item .content {
        order: 1;
        /* 文字在上 */
        margin-bottom: 20px;
        border-left: none !important;
		border-right: none !important;
        border-top: 6px solid #E87722;
    }

    .timeline-item .image-box {
        order: 2;
        /* 圖片在下 */
    }


    .timeline-item.left .content,
    .timeline-item.right .content,
    .timeline-item.left .image-box,
    .timeline-item.right .image-box {
        width: 100%;
        padding: 0 20px;
        text-align: center;
		transform: translateX(0px);
		
    }
	
	.timeline-item::after ,
	.timeline-item.left .content:after,
	.timeline-item.right .content:after {
		display:none;
	}


    .image-box img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        margin-bottom: 20px;
    }
}

