/* EL Timeline Widget ─ widget.css */

.elt-widget {
    width: 100%;
}

/* ── Title ─────────────────────────────────────────────────── */
.elt-title {
    text-align: center;
    margin-bottom: 60px;
}

/* ── Snake container ───────────────────────────────────────── */
.elt-snake {
    position: relative;
}

/* ── SVG connector overlay ─────────────────────────────────── */
.elt-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

/* ── Row ───────────────────────────────────────────────────── */
.elt-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
}
.elt-row:last-child {
    margin-bottom: 0;
}

/* Horizontal dashed line, grows from the starting edge */
.elt-row::before {
    content: '';
    position: absolute;
    top: 8px;        /* vertically centers on the 16px dot */
    left: 0;
    width: 0;
    height: 0;
    border-top: 2px dashed var(--elt-line-color, #ccc);
    z-index: 0;
    transition: width 1s ease;
}
.elt-rtl::before {
    left: auto;
    right: 0;
}
.elt-row.elt-animate::before {
    width: 100%;
}

/* ── Item ──────────────────────────────────────────────────── */
.elt-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 2;
}
.elt-item.elt-show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Dot ───────────────────────────────────────────────────── */
.elt-dot {
    width: 16px;
    height: 16px;
    background: #e22222;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 10px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

/* ── Year label ────────────────────────────────────────────── */
.elt-year {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

/* ── Image ─────────────────────────────────────────────────── */
.elt-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    display: block;
}

/* ── Description ───────────────────────────────────────────── */
.elt-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    text-align: center;
    padding: 0 8px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .elt-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 0;
    }
    .elt-item {
        width: 45%;
        flex: none;
    }
    /* hide connectors on mobile — layout breaks the snake visual */
    .elt-row::before,
    .elt-svg {
        display: none;
    }
    /* show all items immediately on mobile (no staggered reveal) */
    .elt-item {
        opacity: 1;
        transform: none;
    }
}
