/* =========================================================
   History / Timeline Section — /aus page
   ========================================================= */

/* ─── Section wrapper ───────────────────────────────────── */
.timeline {
    position: relative;
}

/* ─── Progression bar (injected by JS as first child) ────── */
.history-progress-bar {
    display: block;
    width: 100%;
    padding: 0 24px;
    position: relative;
    /* stays in normal flow */
    z-index: 10;
    height: 40px;
    box-sizing: border-box;
    margin-top: 90px;
    /* 60px gap between bar and timeline cards */
}

/* Full-width grey track */
.history-progress-bar::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
}

/* Orange filled track — width set via JS */
.history-progress-fill {
    position: absolute;
    top: 12px;
    left: 24px;
    height: 2px;
    width: 0;
    background: #f5a623;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: 2px;
}

/* Dot group — sits on top of the track */
.history-dot-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
    top: 6px;
}

/* Individual dot */
.history-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.25s ease;
    user-select: none;
}

.history-dot:hover {
    transform: scale(1.1);
}

/* Dot circle */
.history-dot-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    flex-shrink: 0;
}

/* Year label */
.history-dot-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ─── Active dot ─────────────────────────────────────────── */
.history-dot.is-active .history-dot-circle {
    background: #f5a623;
    border-color: #f5a623;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.3),
        0 0 12px rgba(245, 166, 35, 0.5);
    transform: scale(1.5);
}

.history-dot.is-active .history-dot-label {
    color: #ffffff;
}

/* ─── Timeline containers ────────────────────────────────── */
.history .timeline-18,
.history .timeline-22,
.history .timeline-24,
.history .timeline-26 {
    opacity: 0.5;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Active card */
.history .timeline-18.is-active,
.history .timeline-22.is-active,
.history .timeline-24.is-active,
.history .timeline-26.is-active {
    opacity: 1 !important;
}

/* Hover */
.history .timeline-18:hover,
.history .timeline-22:hover,
.history .timeline-24:hover,
.history .timeline-26:hover {
    opacity: 1;
}

/* Default: timeline-18 full opacity before JS kicks in */
.history .timeline-18 {
    opacity: 1;
}

@media screen and (max-width:1024px) {
    .history-dot-group {
        display: none;
    }

}