/* =========================================================
   VV Journey Timeline  v1.0.2
   Key fix: dots sit exactly on the horizontal centre line.
   Layout: each column is a flex column.
     TOP  col = [card-area] [stem] [dot-row] [spacer]
     BOT  col = [spacer]   [dot-row] [stem] [card-area]
   The horizontal line is absolutely positioned at exactly
   the centre of .vv-tl-dot-row so dots always overlap it.
   ========================================================= */

/* ── Outer section ───────────────────────────────────────── */
.vv-tl-wrap {
    background-color: #0d1b3e;
    padding: 10px 0px 90px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Heading ─────────────────────────────────────────────── */
.vv-tl-heading {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
	font-family: "Outfit", Sans-serif;
}

.vv-tl-underline {
    width: 46px;
    height: 3px;
    background: #00bcd4;
    border-radius: 2px;
    margin: 0 auto 60px;
	display: none !important;
}

/* ── Stage: the whole timeline row ──────────────────────── */
.vv-tl-stage {
    position: relative;
    display: flex;
    align-items: stretch;       /* all cols same height */
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
	height: 480px;
    /* Height: card ~140px + stem 28px + dot 14px + spacer = ~240px each side, total ~480px */
}

.vv-tl-col.vv-pos-bottom {bottom: -13px;}
.vv-tl-col.vv-pos-top {top: -15px;}

/* ── Horizontal line ─────────────────────────────────────── */
/*
   We want the line to pass through the centre of every dot.
   Each col has:
     top    col: [card-area flex:1] [stem 28px] [dot-row 14px] [spacer flex:1]
     bottom col: [spacer flex:1] [dot-row 14px] [stem 28px] [card-area flex:1]
   The dot-row is centred exactly at 50% of the stage height
   because spacer on each side takes up equal space.
   So the line is at top: 50%.
*/
.vv-tl-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #00bcd4;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

/* ── Column ──────────────────────────────────────────────── */
.vv-tl-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    z-index: 1;
}

/* ── Card area (flex:1 so it fills remaining space) ──────── */
.vv-tl-card-area {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;   /* card sits at bottom of top-area */
    justify-content: center;
    padding: 0 6px 0;
    width: 100%;
    box-sizing: border-box;
}

/* For bottom cols the card sits at the top of card-area */
.vv-pos-bottom .vv-tl-card-area {
    align-items: flex-start;
    padding-top: 0;
}

/* ── Spacer (mirrors card-area on the opposite side) ─────── */
.vv-tl-spacer {
    flex: 1 1 0;
}

/* ── Stem (vertical connector between dot and card) ─────── */
.vv-tl-stem {
    width: 2px;
    height: 28px;
    background: #00bcd4;
    opacity: 0.55;
    flex-shrink: 0;
}

/* ── Dot row (fixed height = dot diameter) ───────────────── */
.vv-tl-dot-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;      /* exact height so line aligns to centre */
    flex-shrink: 0;
    z-index: 2;
}

/* ── Dot ─────────────────────────────────────────────────── */
.vv-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00bcd4;
    border: 2px solid #00bcd4;
    box-shadow:
        0 0 0 4px rgba(0, 188, 212, 0.20),
        0 0 8px  rgba(0, 188, 212, 0.35);
    box-sizing: border-box;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vv-tl-col:hover .vv-tl-dot {
    box-shadow:
        0 0 0 7px rgba(0, 188, 212, 0.25),
        0 0 16px rgba(0, 188, 212, 0.50);
    transform: scale(1.15);
}

/* ── Card ────────────────────────────────────────────────── */
.vv-tl-card {
    background: #0f2158;
    border: 1px solid #1a3470;
    border-radius: 12px;
    padding: 16px 14px;
    width: 100%;
    max-width: 158px;
    text-align: center;
    cursor: default;
    box-sizing: border-box;
    transition:
        transform   0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow  0.32s ease,
        border-color 0.32s ease;
    will-change: transform;
	min-height: 170px;
}

/* TOP card hover → moves UP */
.vv-pos-top:hover .vv-tl-card {
    transform: translateY(-10px);
    box-shadow:
        0 12px 28px rgba(0, 188, 212, 0.20),
        0  0  1px  rgba(0, 188, 212, 0.40);
    border-color: rgba(0, 188, 212, 0.50);
}

/* BOTTOM card hover → moves DOWN */
.vv-pos-bottom:hover .vv-tl-card {
    transform: translateY(10px);
    box-shadow:
        0 12px 28px rgba(0, 188, 212, 0.20),
        0  0  1px  rgba(0, 188, 212, 0.40);
    border-color: rgba(0, 188, 212, 0.50);
}

/* Clickable card */
.vv-tl-card[role="button"] { cursor: pointer; }
.vv-tl-card[role="button"]:focus-visible {
    outline: 2px solid #00bcd4;
    outline-offset: 3px;
}

/* ── Card year ───────────────────────────────────────────── */
.vv-card-year {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #00bcd4;
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

/* ── Card description ────────────────────────────────────── */
.vv-card-desc {
    font-size: 15px;
    color: #c8d8f0;
    line-height: 1.3;
    margin: 0 !important;
}

/* ── Popup hint ──────────────────────────────────────────── */
.vv-card-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.68rem;
    color: #00bcd4;
    opacity: 0.75;
}

/* =========================================================
   RESPONSIVE  –  vertical on mobile
   ========================================================= */
@media (max-width: 860px) {
    .vv-tl-stage {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 44px;
    }

    /* Vertical line on left */
    .vv-tl-line {
        top: 0;
        bottom: 0;
        left: 7px;
        right: auto;
        width: 2px;
        height: 100%;
        transform: none;
    }

    .vv-tl-col {
        flex-direction: row;
        width: 100%;
        margin: 10px 0;
        min-height: auto;
    }

    .vv-tl-dot-row { height: auto; width: 16px; }
    .vv-tl-stem    { width: 20px; height: 2px; }
    .vv-tl-spacer  { display: none; }

    .vv-tl-card-area,
    .vv-pos-bottom .vv-tl-card-area {
        align-items: center;
        flex: 1;
        padding: 0;
    }

    .vv-tl-card {
        max-width: 100%;
        text-align: left;
    }

    /* On mobile both hover states slide right */
    .vv-pos-top:hover .vv-tl-card,
    .vv-pos-bottom:hover .vv-tl-card {
        transform: translateX(6px);
    }
}
