/**
 * CLENA — About Journey Timeline — Snake Road (horizontal scroll layout)
 * File: assets/css/about/about-timeline.css
 *
 * Both pages combined side-by-side into a single wide canvas (2260 × 1580)
 * allowing continuous horizontal scrolling.
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=PT+Serif:ital@0;1&family=Montserrat:wght@900&display=swap');

/* ==========================================================================
   CUSTOM PROPERTIES — sampled from the reference artwork
   ========================================================================== */

:root {
    --jt-road:        #233e8e;   /* navy road */
    --jt-road-width:  34px;      /* road stroke width (SVG uses 34 units) */
    --jt-dot:         #ec3e4c;   /* red milestone dots */
    --jt-badge:       #e5252c;   /* "OUR JOURNEY" badge red */
    --jt-navy-text:   #1b2554;   /* headings / years dark navy */
    --jt-desc-text:   #3d3d3d;   /* serif description text */
    --jt-bg:          #ffffff;   /* off-white page background */
    --jt-font-head:   'Oswald', 'Arial Narrow', sans-serif;
    --jt-font-desc:   'PT Serif', Georgia, serif;
}

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */

.journey-timeline-section {
    background: var(--jt-bg);
    padding: 20px 0 24px;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   "OUR JOURNEY" RED BADGE — top-right, matching reference exactly
   ========================================================================== */

.jt-badge-row {
    max-width: 1130px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 20px 24px 30px 20px;
    box-sizing: border-box;
}

.jt-badge {
    display: inline-block;
}

.jt-badge span {
    display: block;
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 46px;
    line-height: 1;
    color: var(--primary, #233e8e);
    letter-spacing: 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   HORIZONTAL SCROLL CONTAINER
   ========================================================================== */

.jt-horiz-outer {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide native scrollbar entirely for a cleaner look */
.jt-horiz-outer {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.jt-horiz-outer::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
    height: 0;
}

/* The track holds the canvas wrapper and centers it if the content fits the screen width */
.jt-track {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    min-width: max-content;
}

.jt-canvas-wrap {
    position: relative;
    overflow: hidden;
    width: 3500px;
    height: 1800px;
    margin: 0 auto;
}

.jt-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 3500px;
    height: 1800px;
    transform-origin: top left;
}

/* ==========================================================================
   NAVIGATION ARROWS (Floating overlay for smooth panning)
   ========================================================================== */

.jt-nav-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(35, 62, 142, 0.85);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: background 0.25s, transform 0.25s, opacity 0.3s;
    opacity: 0.85;
}

.jt-nav-arrow:hover {
    background: rgba(35, 62, 142, 1);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.jt-nav-arrow svg {
    width: 32px !important;
    height: 32px !important;
    stroke-width: 4px !important;
}

.jt-nav-arrow--left {
    left: 20px;
}

.jt-nav-arrow--right {
    right: 20px;
}

/* ── SVG road + dots ── */

.jt-road-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 3500px;
    height: 1800px;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}

.jt-road {
    fill: none;
    stroke: var(--jt-road);
    stroke-width: 34;
    stroke-linecap: butt;
    stroke-linejoin: round;
}

.jt-dot {
    fill: var(--jt-dot);
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jt-dot.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   TEXT BLOCKS — absolutely positioned on the canvas
   ========================================================================== */

.jt-block {
    position: absolute;
    z-index: 3;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.jt-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.jt-align-left   { text-align: left; }
.jt-align-right  { text-align: right; }
.jt-align-center { text-align: center; }

/* Year label — bold condensed navy, e.g. "1998" / "2017 FEB." */
.jt-year {
    font-family: var(--jt-font-head);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    color: var(--jt-navy-text);
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

/* The faded "2002" treatment from the reference */
.jt-year--muted {
    color: #d8d8d8;
}

/* Title — bold condensed uppercase navy */
.jt-title {
    font-family: var(--jt-font-head);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.22;
    color: var(--jt-navy-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 4px;
}

/* Description — small serif, exactly like the artwork body copy */
.jt-desc {
    font-family: var(--jt-font-desc);
    font-size: 15px;
    line-height: 1.35;
    color: var(--jt-desc-text);
    margin: 0;
}

/* ==========================================================================
   ILLUSTRATIONS — absolutely positioned on the canvas
   ========================================================================== */

.jt-img {
    position: absolute;
    z-index: 2;
    line-height: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.jt-img.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.jt-img svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Soft shadow only on badge/photo style pieces (as in reference) */
.jt-img--factory svg,
.jt-img--trophy svg,
.jt-img--slab svg,
.jt-img--vichithra svg {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   MOBILE LINEAR FALLBACK  (canvas hidden < 640px)
   ========================================================================== */

.jt-mobile {
    display: none;
}

@media (max-width: 639px) {

    .journey-timeline-section {
        padding: 24px 0 60px;
    }

    .jt-horiz-outer {
        display: none;
    }

    .jt-badge-row {
        justify-content: center;
        padding: 10px 16px 34px;
    }

    .jt-badge {
        padding: 13px 30px 15px;
        border-radius: 12px;
    }

    .jt-badge span {
        font-size: 24px;
        letter-spacing: 5px;
    }

    .jt-mobile {
        display: block;
        max-width: 480px;
        margin: 0 auto;
        padding: 0 20px 0 34px;
        position: relative;
    }

    /* continuous vertical road */
    .jt-mobile::before {
        content: '';
        position: absolute;
        left: 40px;
        top: 0;
        bottom: 0;
        width: 14px;
        background: var(--jt-road);
        border-radius: 7px;
    }

    .jt-m-item {
        position: relative;
        padding: 14px 0 14px 40px;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .jt-m-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .jt-m-dot {
        position: absolute;
        left: 3px;
        top: 22px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--jt-dot);
    }

    .jt-m-item .jt-year  { font-size: 21px; }
    .jt-m-item .jt-title { font-size: 15px; }
    .jt-m-item .jt-desc  { font-size: 12.5px; }

    .jt-m-img {
        margin-top: 10px;
        max-width: 130px;
        line-height: 0;
    }

    .jt-m-img svg {
        width: 100%;
        height: auto;
    }

    .jt-m-item.jt-m-item--hidden {
        display: none !important;
    }

    .jt-mobile-more-btn-wrap {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        padding-left: 20px;
        position: relative;
        z-index: 15;
    }

    .jt-mobile-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: var(--primary, #233e8e);
        color: #ffffff;
        border: none;
        padding: 12px 24px;
        font-family: var(--jt-font-head);
        font-weight: 600;
        font-size: 16px;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-radius: 30px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(35, 62, 142, 0.25);
        transition: all 0.3s ease;
    }

    .jt-mobile-more-btn:hover,
    .jt-mobile-more-btn:focus {
        background-color: var(--jt-dot, #ec3e4c);
        box-shadow: 0 6px 20px rgba(236, 62, 76, 0.35);
        transform: translateY(-2px);
        outline: none;
    }

    .jt-nav-arrow {
        display: none !important;
    }
}
/* ── SPECIAL POSTER BLOCK (BEYOND 2025) ── */
.jt-poster-block {
    background: linear-gradient(135deg, #1d3570 0%, #0f1c3d 100%);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.1);
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
    position: absolute;
    z-index: 10;
}

/* Hover effects for the poster */
.jt-poster-block:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(29, 53, 112, 0.4);
    border-color: rgba(255,255,255,0.4);
}

.jt-poster-block .jt-title {
    color: #fff !important;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.jt-poster-block .jt-desc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 16px;
    line-height: 1.6;
}

.jt-poster-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.jt-poster-block:hover::before {
    opacity: 1;
}

/* Mobile specific overrides */
.jt-mobile .jt-m-item.jt-poster-block {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 40px 0;
}

.jt-poster-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.jt-poster-block:hover::before {
    opacity: 1;
}

/* Mobile specific overrides */
.jt-mobile .jt-m-item.jt-poster-block {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 40px 0;
}
