/* [admax_merfoldkovek] — mérföldkő timeline (desktopon pin, mobilon folyó vonal). */
/* — Motor: kezdőállapotok (html.am-anim = fut a JS; nélküle végállapot látszik) — */

html.am-anim .am-tl-wrap [data-am-reveal] {
    opacity: 0;
}

html.am-anim .am-tl-wrap [data-am-reveal].am-in {
    opacity: 1;
}

html.am-anim .am-tl-item {
    opacity: 0;
}

html.am-anim .am-tl-dot {
    background: #2c4a45;
    box-shadow: none;
}

html.am-anim .am-tl-line {
    width: 0;
}

.am-tl-wrap {
    position: relative;
    height: 3240px;
}

.am-tl-sticky {
    position: sticky;
    top: 0;
    height: 900px;
    overflow: hidden;
    background: linear-gradient(160deg, #1E3A38 0%, #0f2622 100%);
    color: #F1F7F4;
    display: flex;
    align-items: center;
}

.am-tl-blob {
    position: absolute;
    bottom: -12%;
    left: -4%;
    width: 411px;
    height: 411px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 189, 168, .28) 0%, rgba(95, 189, 168, 0) 68%);
}

/* .am-container alapszabály: lásd css/admax-global.css (mindig betöltve). */

.am-tl-head {
    max-width: 680px;
    margin-bottom: 62px;
}

.am-kicker-dark {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #5FBDA8;
    margin-bottom: 14px;
}

.am-tl-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -1.6px;
    margin: 0;
    text-transform: uppercase;
}

.am-tl-track {
    position: relative;
}

.am-tl-line-bg {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2c4a45;
}

.am-tl-line {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #A7EBDD;
    box-shadow: 0 0 12px #A7EBDD;
    transition: width .15s linear;
}

.am-tl-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 21px;
}

.am-tl-item {
    position: relative;
    padding-top: 30px;
}

.am-tl-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #A7EBDD;
    box-shadow: 0 0 14px #A7EBDD;
    transition: background .3s, box-shadow .3s;
}

.am-tl-year {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: #A7EBDD;
    line-height: 1;
    margin-bottom: 12px;
}

.am-tl-item h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 17px;
    margin: 0 0 9px;
    color: #F1F7F4;
}

.am-tl-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #9fb6ae;
    margin: 0;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    html.am-anim .am-tl-wrap [data-am-reveal],
    html.am-anim .am-tl-item {
        opacity: 1;
    }

    html.am-anim .am-tl-line {
        width: 100%;
    }

    html.am-anim .am-tl-dot {
        background: #A7EBDD;
        box-shadow: 0 0 14px #A7EBDD;
    }
}

/* — Mobil: folyó timeline (nincs pin, a vonal függőlegesen balra) — */
@media (max-width: 767px) {
    .am-tl-wrap {
        height: auto;
    }

    .am-tl-sticky {
        position: static;
        height: auto;
        display: block;
        padding: 56px 0 60px;
    }

    .am-tl-title {
        font-size: 30px;
        letter-spacing: -.9px;
    }

    .am-tl-head {
        margin-bottom: 40px;
    }

    .am-tl-line-bg {
        left: 5px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .am-tl-line {
        left: 5px;
        top: 0;
        width: 2px;
        height: 100%;
        transition: height .4s ease;
    }

    html.am-anim .am-tl-line {
        width: 2px;
        height: 0;
    }

    .am-tl-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .am-tl-item {
        padding: 0 0 0 28px;
        transition: opacity .55s ease, transform .55s cubic-bezier(.16, .84, .3, 1);
    }

    html.am-anim .am-tl-item {
        transform: translateY(26px);
    }

    html.am-anim .am-tl-item.am-in {
        opacity: 1;
        transform: none;
    }

    html.am-anim .am-tl-item.am-in .am-tl-dot {
        background: #A7EBDD;
        box-shadow: 0 0 14px #A7EBDD;
    }

    .am-tl-dot {
        left: 0;
        top: 2px;
    }

    .am-tl-year {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .am-tl-item h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .am-tl-item p {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
    html.am-anim .am-tl-item {
        transform: none;
    }

    html.am-anim .am-tl-line {
        height: 100%;
    }
}
