/* =========================================================
   Benefits Timeline Widget – Styles
   ========================================================= */

/* ── Timeline Container ──────────────────────────────────── */
.btw-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 0;
}

/* Continuous vertical line running the full height of the timeline */
.btw-timeline::before {
    content: '';
    position: absolute;
    top: 8px;        /* align with first dot center */
    bottom: 8px;     /* stop at last dot center */
    left: 4px;       /* center of the dot (dot is 8px, so center = 4px) */
    width: 1px;
    background-color: #8B7355;
    transform: translateX(-50%);
}

/* ── Individual Item ─────────────────────────────────────── */
.btw-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    padding-bottom: 45px;

    /* Initial hidden state – scroll JS will toggle .btw-visible */
    opacity: 0;
    transform: translateY(var(--btw-translate-distance, 40px));
    will-change: opacity, transform;
}

.btw-item:last-child {
    padding-bottom: 0;
}

/* Revealed state – transition applied via JS class for proper control */
.btw-item.btw-animate-in {
    transition:
        opacity var(--btw-animation-duration, 700ms) cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform var(--btw-animation-duration, 700ms) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btw-item.btw-animate-out {
    transition:
        opacity 500ms cubic-bezier(0.45, 0.05, 0.55, 0.95),
        transform 500ms cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.btw-item.btw-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Timeline Dot ────────────────────────────────────────── */
.btw-dot {
    position: relative;
    z-index: 2;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background-color: #8B7355;
    flex-shrink: 0;
    margin-top: 8px;
    margin-right: 0;
}

/* ── Content Area ────────────────────────────────────────── */
.btw-item-content {
    flex: 1;
    padding-left: 28px;
}

.btw-item-title {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-size: 21px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    color: #3D3D1E;
    margin: 0 0 12px 0;
    padding: 0;
}

.btw-item-description {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    padding: 0;
    max-width: 340px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .btw-item-title {
        font-size: 18px;
    }

    .btw-item-description {
        font-size: 13px;
        max-width: 100%;
    }

    .btw-item-content {
        padding-left: 20px;
    }

    .btw-timeline::before {
        left: 4px;
    }
}
