/* ── Snake Timeline Widget ──────────────────────────────────────────────────── */

.snake-wrap {
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
}

.snake-container {
    position: relative;
    width: 100%;
}

.snake-svg {
    display: block;
    width: 100%;
    overflow: visible;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.tl-card {
    position: absolute;
    background: #ffffff;
    border: 1.5px solid #4441cc;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(68, 65, 204, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Below-bar cards hover (translateX -50% keeps them centred on their anchor) */
.tl-card:hover {
    box-shadow: 0 8px 24px rgba(68, 65, 204, 0.18);
    transform: translateY(-2px) translateX(-50%);
}

/* Above-bar cards: bottom edge is the anchor, so translate -100% + nudge */
.tl-card--above:hover {
    box-shadow: 0 8px 24px rgba(68, 65, 204, 0.18);
    transform: translateX(-50%) translateY(calc(-100% - 2px));
}

/* Mobile: cards are positioned absolutely with no translateX(-50%) */
@media (max-width: 600px) {
    .tl-card:hover,
    .tl-card--above:hover {
        transform: translateY(-2px);
    }
}

/* ── Node Icons ──────────────────────────────────────────────────────────────── */
.tl-node-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 50%;
    overflow: hidden;
    color: #ffffff;
}

.tl-node-icon svg {
    display: block;
    width: 60%;
    height: 60%;
    fill: currentColor;
}

.tl-node-icon i {
    font-size: 0.9em;
    line-height: 1;
}

.tl-node-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* ── Card typography ─────────────────────────────────────────────────────────── */
.tl-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tl-card .num {
    /* gradient is set via inline style from PHP; these properties clip it to text */
    background: linear-gradient(135deg, #4441cc, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 15px;
    font-weight: 800;
}

.tl-card p {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
