.premium-timeline-wrapper-ff9766cc {
    position: relative;
    padding: 40px 0;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.timeline-line-ff9766cc {
    position: absolute;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-left: -2px; /* Center relative to left property */
    z-index: 1;
}

.timeline-progress-ff9766cc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #3b82f6;
    height: 0%;
    transition: height 0.2s ease-out;
    border-radius: 2px;
}

.timeline-items-ff9766cc {
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item-ff9766cc {
    position: relative;
    width: 100%;
    display: flex;
    margin-bottom: 50px;
}

.timeline-item-ff9766cc:last-child {
    margin-bottom: 0;
}

/* Animations */
.premium-timeline-wrapper-ff9766cc.animations-enabled .timeline-item-ff9766cc {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-timeline-wrapper-ff9766cc.animations-enabled .timeline-item-ff9766cc.pos-left {
    transform: translateX(-30px);
}

.premium-timeline-wrapper-ff9766cc.animations-enabled .timeline-item-ff9766cc.pos-right {
    transform: translateX(30px);
}

.premium-timeline-wrapper-ff9766cc.animations-enabled .timeline-item-ff9766cc.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Node/Icon */
.timeline-node-ff9766cc {
    position: absolute;
    top: 0;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.timeline-icon-ff9766cc {
    width: 100%;
    height: 100%;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-item-ff9766cc:hover .timeline-icon-ff9766cc {
    transform: scale(1.1);
}

.timeline-icon-ff9766cc svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.timeline-icon-ff9766cc i {
    font-size: 20px;
}

/* Content */
.timeline-content-wrapper-ff9766cc {
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-item-ff9766cc.pos-left {
    justify-content: flex-start;
}
.timeline-item-ff9766cc.pos-right {
    justify-content: flex-end;
}

.timeline-content-ff9766cc {
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-date-ff9766cc {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content-ff9766cc h3 {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    line-height: 1.3;
    color: #1f2937;
}

.timeline-content-ff9766cc p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* ------------------ Layouts (Desktop) ------------------ */

/* Alternate (Line in middle) */
.layout-alternate .timeline-line-ff9766cc { left: 50%; }
.layout-alternate .timeline-node-ff9766cc { left: 50%; }

/* Center Align (Line in middle, text centered inside cards) */
.layout-center .timeline-line-ff9766cc { left: 50%; }
.layout-center .timeline-node-ff9766cc { left: 50%; }
.layout-center .timeline-content-wrapper-ff9766cc { width: 50%; text-align: center; margin: 0 auto; }
.layout-center .timeline-item-ff9766cc { justify-content: center; }
.layout-center .timeline-item-ff9766cc.pos-right .timeline-content-wrapper-ff9766cc,
.layout-center .timeline-item-ff9766cc.pos-left .timeline-content-wrapper-ff9766cc { padding-top: 60px; width: 100%; max-width: 600px;} /* Push below icon for center layout */
.layout-center .timeline-node-ff9766cc { top: 0; }

/* Left Layout (Line on left, items on right) */
.layout-left .timeline-line-ff9766cc { left: 24px; }
.layout-left .timeline-node-ff9766cc { left: 24px; }
.layout-left .timeline-item-ff9766cc { justify-content: flex-end; }
.layout-left .timeline-content-wrapper-ff9766cc { width: calc(100% - 48px); padding-left: 40px; padding-right: 0; }

/* Right Layout (Line on right, items on left) */
.layout-right .timeline-line-ff9766cc { left: calc(100% - 24px); }
.layout-right .timeline-node-ff9766cc { left: calc(100% - 24px); }
.layout-right .timeline-item-ff9766cc { justify-content: flex-start; }
.layout-right .timeline-content-wrapper-ff9766cc { width: calc(100% - 48px); padding-right: 40px; padding-left: 0; text-align: right; }


/* ------------------ Styles ------------------ */

/* Style 1: Modern Clean */
.style-1 .timeline-content-ff9766cc {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}
.style-1 .timeline-content-ff9766cc:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Style 2: Glassmorphism */
.style-2 .timeline-content-ff9766cc {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}
.style-2 .timeline-content-ff9766cc:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Style 3: Neumorphism */
.style-3 .timeline-content-ff9766cc {
    background: #e0e5ec;
    box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
    border: none;
}
.style-3 .timeline-icon-ff9766cc {
    background: #e0e5ec;
    color: #3b82f6;
    box-shadow: 5px 5px 10px rgb(163,177,198,0.6), -5px -5px 10px rgba(255,255,255, 0.5);
}
.style-3 .timeline-line-ff9766cc {
    background: #d1d9e6;
    box-shadow: inset 2px 2px 5px #b8c6db, inset -3px -3px 7px #fff;
}


/* ------------------ Mobile Responsive ------------------ */
@media (max-width: 767px) {
    .premium-timeline-wrapper-ff9766cc {
        padding: 20px 0;
    }
    
    /* Force Left Layout on Mobile for readability */
    .timeline-line-ff9766cc { left: 24px !important; margin-left: -2px; }
    .timeline-node-ff9766cc { left: 24px !important; margin-left: -20px; width: 40px; height: 40px; }
    
    .timeline-item-ff9766cc {
        flex-direction: column;
        justify-content: flex-start !important;
        margin-bottom: 30px;
    }
    
    .timeline-content-wrapper-ff9766cc {
        width: 100% !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        text-align: left !important;
    }

    .timeline-content-ff9766cc {
        padding: 20px;
    }

    .timeline-icon-ff9766cc svg, .timeline-icon-ff9766cc i {
        width: 16px; height: 16px; font-size: 16px;
    }
    
    .timeline-item-ff9766cc.pos-left, 
    .timeline-item-ff9766cc.pos-right {
        transform: translateY(20px) !important; /* Simplified mobile animation */
    }
    .timeline-item-ff9766cc.is-visible {
        transform: translateY(0) !important;
    }
}
