.watlum-school-history {
    padding: 20px;
    position: relative;
}

.watlum-school-history .timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    min-height: 100px;
}

.watlum-school-history .timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #f77b0e;
    top: 0;
    height: 100%;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.watlum-school-history .timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin: 40px 0;
    min-height: 150px;
}

.watlum-school-history .timeline-item:first-child {
    margin-top: 0;
}

.watlum-school-history .timeline-item:last-child {
    margin-bottom: 0;
}

.watlum-school-history .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.watlum-school-history .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.watlum-school-history .timeline-content {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.watlum-school-history .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.watlum-school-history .timeline-year {
    font-size: 28px;
    font-weight: 700;
    color: #f77b0e;
    margin-bottom: 15px;
    line-height: 1.2;
}

.watlum-school-history .timeline-title {
    font-size: 22px;
    margin: 15px 0;
    color: #f77b0e;
    font-weight: 600;
    line-height: 1.4;
}

.watlum-school-history .timeline-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.watlum-school-history .timeline-image {
    margin: 20px -30px;
    position: relative;
    overflow: hidden;
}

.watlum-school-history .timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.watlum-school-history .timeline-image:hover img {
    transform: scale(1.05);
}

/* Timeline dots */
.watlum-school-history .timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #f77b0e;
    border-radius: 50%;
    top: 25px;
    z-index: 1;
    transition: all 0.3s ease;
}

.watlum-school-history .timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.watlum-school-history .timeline-item:nth-child(odd)::after {
    right: -10px;
}

.watlum-school-history .timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Highlight items */
.watlum-school-history .timeline-highlight .timeline-content {
    background-color: #f8f9fa;
    border: 2px solid #f77b0e;
}

.watlum-school-history .timeline-highlight .timeline-year {
    color: #f77b0e;
    font-size: 32px;
}

.watlum-school-history .timeline-highlight::after {
    background-color: #f77b0e;
    border-width: 6px;
}

/* Animation */
.watlum-school-history.timeline-animate .timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.watlum-school-history.timeline-animate .timeline-item:nth-child(odd) {
    transform: translate(-50px, 50px);
}

.watlum-school-history.timeline-animate .timeline-item:nth-child(even) {
    transform: translate(50px, 50px);
}

.watlum-school-history.timeline-animate .timeline-item.elementor-animated {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: var(--animation-delay, 0s);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .watlum-school-history .timeline-container {
        padding: 30px 0;
    }

    .watlum-school-history .timeline-container::after {
        left: 31px;
    }
    
    .watlum-school-history .timeline-item {
        width: 100%;
        padding-left: 70px !important;
        padding-right: 25px !important;
        margin: 30px 0;
        min-height: 100px;
    }
    
    .watlum-school-history .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .watlum-school-history .timeline-item::after {
        left: 21px !important;
    }

    .watlum-school-history .timeline-year {
        font-size: 24px;
    }

    .watlum-school-history .timeline-title {
        font-size: 20px;
    }

    .watlum-school-history .timeline-description {
        font-size: 15px;
    }

    .watlum-school-history .timeline-highlight .timeline-year {
        font-size: 28px;
    }

    .watlum-school-history.timeline-animate .timeline-item:nth-child(odd),
    .watlum-school-history.timeline-animate .timeline-item:nth-child(even) {
        transform: translateY(50px);
    }
}
