/*
 * MediRoyal About Us — Journey Timeline Section
 * Source: about_us_2.html — .tl-wrap
 * Depends on: design-tokens.css (plum-*, sage-*, r-*, ease)
 */

/* ── Journey Timeline (dark bg) ── */
.log-co-tl-wrap {
    max-width: 880px;
    margin: 60px auto 0;
    position: relative;
}

.log-co-tl-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .1);
    transform: translateX(-50%);
}

.log-co-tl-spine-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--sage-400), var(--sage-600));
    transform: translateX(-50%);
    transition: height .4s var(--ease);
    box-shadow: 0 0 8px rgba(29, 219, 149, .5);
}

.log-co-tl-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: start;
    margin-bottom: 44px;
}

.log-co-tl-row:last-child {
    margin-bottom: 0;
}

.log-co-tl-center {
    grid-column: 2;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.log-co-tl-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 2px solid rgba(255, 255, 255, .22);
    position: relative;
    z-index: 2;
    transition: all .4s var(--ease);
}

.log-co-tl-row.in .log-co-tl-dot {
    background: var(--sage-500);
    border-color: var(--sage-400);
    box-shadow: 0 0 0 8px rgba(29, 219, 149, .14);
}

.log-co-tl-card {
    grid-column: 1;
    text-align: right;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.log-co-tl-row.log-co-tl-r .log-co-tl-card {
    grid-column: 3;
    text-align: left;
    transform: translateX(20px);
}

.log-co-tl-row.in .log-co-tl-card {
    opacity: 1;
    transform: translateX(0);
}

/* Card inner — 3D lift + shimmer + glow border */
.log-co-tl-card-inner {
    display: inline-block;
    text-align: left;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-md);
    padding: 22px 24px;
    max-width: 330px;
    position: relative;
    overflow: hidden;
    transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
    transform-style: preserve-3d;
}

.log-co-tl-row.in .log-co-tl-card-inner {
    background: rgba(255, 255, 255, .07);
}

/* Shimmer sweep */
.log-co-tl-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .10) 50%, transparent 70%);
    transition: left .55s var(--ease);
    pointer-events: none;
}

/* Glowing border inset */
.log-co-tl-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    box-shadow: inset 0 0 0 1.5px rgba(94, 238, 192, 0);
    transition: box-shadow .35s var(--ease);
    pointer-events: none;
}

.log-co-tl-card-inner:hover {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(94, 238, 192, .35);
    transform: perspective(600px) translateY(-5px) translateZ(10px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 30px rgba(29, 219, 149, .12);
}

.log-co-tl-card-inner:hover::before {
    left: 110%;
}

.log-co-tl-card-inner:hover::after {
    box-shadow: inset 0 0 0 1.5px rgba(94, 238, 192, .45);
}

.log-co-tl-year {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage-400);
    margin-bottom: 7px;
    display: block;
}

.log-co-tl-title {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #fff;
}

.log-co-tl-body {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6);
}

.log-co-tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #f0e3e9;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    transition: background .25s var(--ease), border-color .25s var(--ease);
}

.log-co-tl-card-inner:hover .log-co-tl-badge {
    background: rgba(29, 219, 149, .12);
    border-color: rgba(29, 219, 149, .3);
}

/* ── Responsive ── */
@media (max-width: 760px) {
    .log-co-tl-spine,
    .log-co-tl-spine-fill {
        left: 18px;
    }

    .log-co-tl-row {
        grid-template-columns: 36px 1fr;
        margin-bottom: 28px;
    }

    .log-co-tl-center {
        grid-column: 1;
    }

    .log-co-tl-card,
    .log-co-tl-row.log-co-tl-r .log-co-tl-card {
        grid-column: 2;
        text-align: left;
        transform: translateY(14px);
    }

    .log-co-tl-row.in .log-co-tl-card {
        transform: translateY(0);
    }

    .log-co-tl-card-inner {
        max-width: 100%;
    }
}
