/* --- JOURNEY TIMELINE WIDGET --- */
.toonz-journey-wrapper {
    background-color: #FAF8F5;
    padding: 50px 0%;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* HEADER */
.tjt-header {
    text-align: center;
    margin-bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tjt-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #E87722;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.tjt-dash {
    width: 30px;
    height: 2px;
    background-color: #E87722;
    margin-bottom: 20px;
}

.tjt-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: #000000;
    margin: 0 0 15px 0;
}

.tjt-desc {
    font-size: 18px;
    color: #888888;
    margin: 0;
}

/* STACKING CONTAINER */
.tjt-stack-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    /* Allows half-width cards to sit side-by-side */
    margin-left: 50px;
    margin-right: 50px;
}

/* STICKY CARDS */
.tjt-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: #FAF8F5;
    /* Matches section BG to perfectly hide card underneath */
    padding: 20px 0;
    min-height: 250px;
    margin-bottom: 100px !important;
    display: flex;
    justify-content: center;
    /* Shadow cast DOWNWARDS to cover the item below */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Specific half-width layouts (e.g. 2017 and 2019) */
.tjt-layout-stacked_left,
.tjt-layout-stacked_right {
    width: 50%;
}

/* Fallback for mobile devices so side-by-side collapses gracefully */
@media (max-width: 768px) {

    .tjt-layout-stacked_left,
    .tjt-layout-stacked_right {
        width: 100%;
    }

    .tjt-card {
        margin-bottom: 50px !important;
    }
}

/* Base styles for the stacked versions */
.tjt-stacked-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
}

.tjt-image-stacked {
    height: 250px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5e5e5;
}

.tjt-image-stacked .tjt-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.tjt-text-stacked {
    padding: 0;
    text-align: left;
}

.tjt-card:first-child {
    box-shadow: none;
}

.tjt-card-inner {
    display: flex;
    width: 100%;
    gap: 50px;
    align-items: center;
}

/* IMAGE COL */
.tjt-image-col {
    flex: 1;
    height: 300px;
    background-color: #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
}

.tjt-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 5s ease;
}

/* Zoom effect on card hover */
.tjt-card:hover .tjt-img {
    transform: scale(1.1);
}

/* TEXT COL */
.tjt-text-col {
    flex: 1;
    padding: 20px;
}

.tjt-year {
    font-size: 20px;
    font-weight: 700;
    color: #E87722;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 15px 0;
}

.tjt-year-dash {
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #E87722;
}

.tjt-layout-image_right .tjt-year {
    flex-direction: row;
}

.tjt-layout-image_left .tjt-year {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.tjt-card-title {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.tjt-card-desc {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tjt-card-inner {
        flex-direction: column !important;
    }

    .tjt-card {
        min-height: auto;
    }

    .tjt-year {
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
}