/* About History Section */
.about-history {
    padding: 60px 0;
    background: #f9f9f9;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #28a745;
    margin: 10px auto 0;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline Styles */
.history-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #28a745;
    transform: translateX(-50%);
}

.timeline-wrapper {
    position: relative;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #28a745;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left::before {
    right: -12px;
}

.timeline-item.right::before {
    left: -12px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 34px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item.left::after {
    right: -20px;
    border-left-color: #fff;
}

.timeline-item.right::after {
    left: -20px;
    border-right-color: #fff;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.timeline-item.left .timeline-content {
    margin-right: 40px;
}

.timeline-item.right .timeline-content {
    margin-left: 40px;
}

.timeline-icon {
    position: absolute;
    top: 20px;
    font-size: 1.5rem;
    color: #28a745;
}

.timeline-item.left .timeline-icon {
    right: 10px;
}

.timeline-item.right .timeline-icon {
    left: 10px;
}

.timeline-date {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-media {
    margin-bottom: 15px;
}

.timeline-image img,
.timeline-video iframe,
.timeline-gallery img {
    max-width: 100%;
    border-radius: 5px;
}

.timeline-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.timeline-excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: #28a745;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #218838;
}

/* Highlighted Milestones */
.timeline-item.highlight .timeline-content {
    border-left: 4px solid #28a745;
}

/* Animations */
.animate-on-scroll .timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left.visible {
    transform: translateX(-20px);
}

.timeline-item.right.visible {
    transform: translateX(20px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 8px;
        right: auto;
    }

    .timeline-item::after {
        left: 20px;
        right: auto;
        border-right-color: #fff;
        border-left-color: transparent;
    }

    .timeline-item .timeline-content {
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-item .timeline-icon {
        left: 10px;
        right: auto;
    }
}