/* ===================================================
   Journey Page
   =================================================== */

/* ---- Timeline section ---- */
.journey-section {
    background: #fff;
    padding: 30px 0 80px;
    max-width: 1920px;
    margin: 0 auto;
}

.journey-section__inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* First Step badge */
.journey-badge-top {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-bottom: -8px;
}

.journey-badge-top img {
    width: auto;
    height: 166px;
    display: block;
}

/* And Counting badge */
.journey-badge-bottom {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-top: 95px;
}

.journey-badge-bottom img {
    width: auto;
    height: 166px;
    display: block;
}

/* Central track (absolutely positioned behind entries) */
.journey-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 83px;
    transform: translateX(-50%);
    width: 70px;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-track__line {
    flex: 1;
    width: 100%;
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    position: relative;
}

.journey-track__milestone {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: auto;
    height: 100px;
    transition: top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
}

/* Timeline entries list */
.journey-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Single entry: 3-col grid — text | track-gap | media */
.journey-entry {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0 70px;
    align-items: center;
    padding: 48px 0;
}

/* Column assignments — normal: text left, media right */
.journey-entry .journey-entry__text {
    grid-column: 1;
    grid-row: 1;
}

.journey-entry .journey-entry__track-gap {
    grid-column: 2;
    grid-row: 1;
}

.journey-entry .journey-entry__media {
    grid-column: 3;
    grid-row: 1;
}

/* Flipped: image left, text right */
.journey-entry--flip .journey-entry__text {
    grid-column: 3;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
}

.journey-entry--flip .journey-entry__track-gap {
    grid-column: 2;
    grid-row: 1;
}

.journey-entry--flip .journey-entry__media {
    grid-column: 1;
    grid-row: 1;
}

/* Text side: text alignment faces the track */
.journey-entry__text {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* right-align toward track */
    text-align: right;
}

/* Year badge */
.journey-entry__year-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.journey-entry__year-bg {
    height: 60px;
    width: auto;
    display: block;
}

/* Left-side (normal) entries: flip badge mouth to face right */
.journey-entry .journey-entry__year-bg {
    transform: scaleX(-1);
}

/* Right-side (flipped) entries: explicit no-flip */
.journey-entry--flip .journey-entry__year-bg {
    transform: scaleX(1);
}

.journey-entry__year-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #BA0013;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.journey-entry__title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0B1C30;
    margin: 0 0 24px;
    line-height: 1.3;
}

.journey-entry__desc {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #5D3F3C;
    line-height: 1.65;
    margin: 0;
}

/* Media side — card container */
.journey-entry__media {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.journey-entry__img {
    width: 100%;
    border-radius: 14px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ===================================================
   Responsive
   =================================================== */

/* Tablet & mobile: single-column layout from 1152px */
@media (max-width: 1152px) {
    .journey-badge-top{
        justify-content: flex-start;
        margin-left: -28px;
        margin-top: -30px;
        margin-bottom: 45px;
    }
    .journey-section {
        padding: 0 0 60px;
    }

    .journey-section__inner {
        padding: 25px 20px 0 60px;
    }

    /* Track moves to left side */
    .journey-track {
        left: 32px;
        transform: none;
        width: 32px;
    }

    .journey-track__milestone {
        height: 60px;
        left: 50%;
    }

    /* Entries: flex column — text always first, image always second */
    .journey-entry,
    .journey-entry--flip {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px 28px 55px;
    }

    .journey-entry .journey-entry__track-gap,
    .journey-entry--flip .journey-entry__track-gap {
        display: none;
    }

    .journey-entry .journey-entry__text,
    .journey-entry--flip .journey-entry__text {
        order: 1;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 16px;
        padding: 24px 16px;
        background: #fff;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        border-radius: 12px;
    }

    .journey-entry .journey-entry__media,
    .journey-entry--flip .journey-entry__media {
        order: 2;
    }

    /* All badges: mouth toward left on tablet/mobile */
    .journey-entry .journey-entry__year-bg {
        transform: none;
    }

    .journey-entry__year-bg {
        height: 45px;
    }

    .journey-entry__year-text {
        font-size: 24px;
    }

    .journey-entry__title {
        font-size: 18px;
    }

    .journey-entry__desc {
        font-size: 14px;
    }

    .journey-badge-top img {
        height: 90px;
    }

    .journey-badge-bottom {
        margin-top: 60px;
        justify-content: flex-start;
        margin-left: -28px;
    }
    .journey-badge-bottom img{
        height: 90px;
    }
}

@media (max-width: 768px) {
    .journey-entry, .journey-entry--flip{
        padding: 28px 0 28px 32px;
    }
}


