/* ============================================
   Timeline Widget — Velour Pro Addons
   ============================================ */

/* Section wrapper */
.vnpa-timeline {
    padding: 64px 0;
    background: #ffffff;
}

@media (min-width: 1024px) {
    .vnpa-timeline {
        padding: 96px 0;
    }
}

/* Container */
.vnpa-timeline__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1024px) {
    .vnpa-timeline__container {
        padding: 0 32px;
    }
}

/* Header */
.vnpa-timeline__header {
    text-align: center;
    margin-bottom: 48px;
}

@media (min-width: 1024px) {
    .vnpa-timeline__header {
        margin-bottom: 64px;
    }
}

.vnpa-timeline__subtitle {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}

.vnpa-timeline__title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
}

@media (min-width: 1024px) {
    .vnpa-timeline__title {
        font-size: 48px;
    }
}

/* Timeline body */
.vnpa-timeline__body {
    max-width: 672px; /* max-w-2xl */
    margin: 0 auto;
}

/* Timeline track (vertical line + items) */
.vnpa-timeline__track {
    border-left: 2px solid #E5E7EB;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Single timeline item */
.vnpa-timeline__item {
    position: relative;
}

/* Dot (circle on the line) */
.vnpa-timeline__dot {
    position: relative;
}

.vnpa-timeline__dot::before {
    content: '';
    position: absolute;
    left: -41px; /* pull back to sit on the border-left: 32px padding + ~9px to center on 2px line */
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #0072FF;
    background: #ffffff;
    z-index: 1;
}

/* Connecting line after dot */
.vnpa-timeline__dot::after {
    content: '';
    position: absolute;
    left: -37px; /* align with center of dot */
    top: 18px;
    width: 2px;
    height: calc(100% + 16px);
    background: #E5E7EB;
}

/* Hide connector on last item */
.vnpa-timeline__item:last-child .vnpa-timeline__dot::after {
    display: none;
}

/* Year label */
.vnpa-timeline__year {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin: 0 0 4px;
}

/* Item title */
.vnpa-timeline__item-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 0;
}

/* Item description */
.vnpa-timeline__item-desc {
    font-size: 14px;
    line-height: 1.625;
    margin: 6px 0 0;
}

/* Scroll reveal animation */
.vnpa-timeline__item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.vnpa-timeline__item.vnpa-timeline__item--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.vnpa-timeline__item:nth-child(1) { transition-delay: 0s; }
.vnpa-timeline__item:nth-child(2) { transition-delay: 0.1s; }
.vnpa-timeline__item:nth-child(3) { transition-delay: 0.2s; }
.vnpa-timeline__item:nth-child(4) { transition-delay: 0.3s; }
.vnpa-timeline__item:nth-child(5) { transition-delay: 0.4s; }
.vnpa-timeline__item:nth-child(6) { transition-delay: 0.5s; }
.vnpa-timeline__item:nth-child(7) { transition-delay: 0.6s; }
.vnpa-timeline__item:nth-child(8) { transition-delay: 0.7s; }
.vnpa-timeline__item:nth-child(9) { transition-delay: 0.8s; }
.vnpa-timeline__item:nth-child(10) { transition-delay: 0.9s; }

/* Elementor editor — always show items */
.elementor-editor-active .vnpa-timeline__item {
    opacity: 1;
    transform: translateY(0);
}
