.history_content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page_title {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--basecolor);
}

.page_title h2 {
    color: var(--basecolor);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page_title p {
    color: #666;
    font-size: 18px;
    margin: 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--basecolor), var(--lightcolor));
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
    padding-right: 0;
}

.timeline-marker {
    position: absolute;
    top: 10px;
    width: 24px;
    height: 24px;
    background-color: var(--basecolor);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--basecolor);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -12px;
}

.timeline-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    border-right: 4px solid var(--basecolor);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 4px solid var(--basecolor);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #fff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--basecolor), var(--lightcolor));
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(29, 136, 72, 0.3);
}

.timeline-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--deepcolor);
    margin-bottom: 12px;
    line-height: 1.4;
}

.timeline-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    background-color: var(--lightcolor);
    box-shadow: 0 0 0 8px rgba(11, 160, 71, 0.2);
}

.timeline-item:nth-child(odd):hover .timeline-content {
    transform: translateX(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-right-color: var(--lightcolor);
}

.timeline-item:nth-child(even):hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--lightcolor);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 80px;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .timeline-marker {
        left: 18px !important;
        right: auto !important;
        width: 20px;
        height: 20px;
    }
    
    .timeline-content {
        padding: 20px;
        border-left: 4px solid var(--basecolor) !important;
        border-right: none !important;
    }
    
    .timeline-content::before {
        left: -12px !important;
        right: auto !important;
        border-right: 8px solid #fff !important;
        border-left: none !important;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
    
    .timeline-title {
        font-size: 18px;
    }
    
    .timeline-description {
        font-size: 14px;
        text-align: left;
    }
    
    .page_title h2 {
        font-size: 28px;
    }
    
    .page_title p {
        font-size: 16px;
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateX(10px) !important;
    }
}

@media (max-width: 576px) {
    .history_content {
        padding: 20px;
    }
    
    .page_title {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .timeline-year {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .timeline-title {
        font-size: 16px;
    }
    
    .timeline-description {
        font-size: 14px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 30px;
    }
    
    .timeline-marker {
        left: 8px !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }