/* Timeline Pro Advanced CSS */
.ma-timeline-pro {
    position: relative;
    padding: 40px 0;
}

.ma-timeline-pro .timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ma-timeline-pro .timeline-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.ma-timeline-pro .step-image {
    flex: 0 0 45%;
    position: relative;
}

.ma-timeline-pro .step-image-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.ma-timeline-pro .step-image-inner:hover {
    transform: translateY(-5px);
}

.ma-timeline-pro .step-image-inner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.ma-timeline-pro .step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #FFD700;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.ma-timeline-pro .step-content {
    flex: 0 0 45%;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid #FFD700;
    margin-left: 40px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ma-timeline-pro .step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
    border-color: #FFA500;
}

.ma-timeline-pro .step-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 12px 12px 0;
    border-color: transparent #FFD700 transparent transparent;
}

.ma-timeline-pro .step-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.ma-timeline-pro .step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    transition: color 0.3s ease;
}

.ma-timeline-pro .step-content:hover .step-title {
    color: #FF6B47;
}

.ma-timeline-pro .step-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.ma-timeline-pro .step-content:hover .step-title::after {
    width: 80px;
}

.ma-timeline-pro .step-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.ma-timeline-pro .step-content:hover .step-description {
    color: #555;
}

.ma-timeline-pro .step-link {
    display: inline-block;
    background: #FF6B47;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 71, 0.3);
}

.ma-timeline-pro .step-link:hover {
    background: #e55a42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 71, 0.4);
    color: white;
    text-decoration: none;
}

/* Reverse Layout */
.ma-timeline-pro .timeline-step.reverse {
    flex-direction: row-reverse;
}

.ma-timeline-pro .timeline-step.reverse .step-content {
    margin-left: 0;
    margin-right: 40px;
}

.ma-timeline-pro .timeline-step.reverse .step-content::before {
    left: auto;
    right: -12px;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent #FFD700;
}

.ma-timeline-pro .timeline-step.reverse .step-content::after {
    left: auto;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

/* Date Badge */
.ma-timeline-pro .step-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ma-timeline-pro .timeline-step,
    .ma-timeline-pro .timeline-step.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .ma-timeline-pro .step-image,
    .ma-timeline-pro .step-content {
        flex: 1;
        width: 100%;
    }
    
    .ma-timeline-pro .step-content,
    .ma-timeline-pro .timeline-step.reverse .step-content {
        margin: 20px 0 0 0;
    }
    
    .ma-timeline-pro .step-content::before,
    .ma-timeline-pro .step-content::after,
    .ma-timeline-pro .timeline-step.reverse .step-content::before,
    .ma-timeline-pro .timeline-step.reverse .step-content::after {
        display: none;
    }
}

/* Animation Classes */
.ma-timeline-pro.fadeInUp .timeline-step {
    transform: translateY(50px);
}

.ma-timeline-pro.fadeInLeft .timeline-step {
    transform: translateX(-50px);
}

.ma-timeline-pro.fadeInRight .timeline-step {
    transform: translateX(50px);
}

.ma-timeline-pro.zoomIn .timeline-step {
    transform: scale(0.8);
}

/* GPU Acceleration */
.gpu-accelerated * {
    will-change: transform;
    transform: translateZ(0);
}