﻿/*==================================================
                JOURNEY VARIABLES
==================================================*/

:root {
    --journey-red: #880000;
    --journey-red-light: #b22222;
    --journey-blue: #16243a;
    --journey-text: #555;
    --journey-bg: #faf9f6;
    --journey-card: #ffffff;
    --journey-line: #d9d9d9;
    --journey-radius: 22px;
}


/*==================================================
                SECTION
==================================================*/

.journey-section {
    position: relative;
    overflow: hidden;
    background: var(--journey-bg);
    padding: 30px 0;
}

    .journey-section > .container {
        position: relative;
        z-index: 5;
    }

    .journey-section::before,
    .journey-section::after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        filter: blur(120px);
        opacity: .08;
        animation: blobMove 18s ease-in-out infinite alternate;
    }

    .journey-section::before {
        background: #880000;
        top: -200px;
        left: -150px;
    }

    .journey-section::after {
        background: #002b5c;
        bottom: -220px;
        right: -180px;
    }

@keyframes blobMove {

    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(40px,-30px);
    }
}

/*==================================================
                HEADER
==================================================*/

.journey-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 20px;
}

.journey-tag {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 40px;
    background: rgba(136,0,0,.08);
    color: #880000;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.journey-title {
    font-size: clamp(2.6rem,3vw,4rem);
   /* background: rgba(136, 0, 0, .08);*/
    font-weight: 800;
    color: #16243a;
    margin-bottom: 15px;
}

.journey-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/*==================================================
                SIDEBAR
==================================================*/

.journey-sidebar {
    position: relative;
    padding-right: 35px;
    transition-delay: .4s;
}

.journey-sidebar-title {
    color: #880000;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 700;
}

.journey-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 15px 0;
    min-height: 350px;
}

.timeline-line {
    position: absolute;
    right: 13px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient( to bottom, #e6e6e6, #d5d5d5 );
    border-radius: 20px;
}

.timeline-progress {
    position: absolute;
    left: 14px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #ddd;
}

.timeline-progress-fill {
    position: absolute;
    right: 13px;
    bottom: 20px;
    width: 3px;
    height: 0;
    border-radius: 20px;
    background: linear-gradient( to top, #880000, #c71d1d );
    transition: height .65s cubic-bezier(.22,.61,.36,1);
}

.timeline-year {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dedede;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #d8d8d8;
    transition: .35s;
}

.timeline-text {
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: .2px;
    position: relative;
}

    .timeline-text::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -7px;
        width: 0;
        height: 2px;
        background: #880000;
        transition: .4s;
    }

.timeline-year.active .timeline-dot {
    background: #880000;
    border: 4px solid white;
    box-shadow: 0 0 0 8px rgba(136,0,0,.12), 0 8px 18px rgba(136,0,0,.18);
}

.timeline-year.active .timeline-text {
    font-size: 1.35rem;
    font-weight: 800;
}

    .timeline-year.active .timeline-text::after {
        width: 55px;
    }

.timeline-year:hover .timeline-dot {
    transform: scale(1.2);
}

.timeline-year:hover .timeline-text {
    color: #880000;
}
.timeline-line,
.timeline-progress-fill {
    right: 11px;
}


/*==================================================
                IMAGE CARD
==================================================*/

.journey-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: white;
    box-shadow: 0 30px 80px rgba(0,0,0,.12);
    transition-delay: .6s;
}

.journey-image-wrapper {
    overflow: hidden;
}

.journey-image {
    width: 100%;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity .45s ease, transform .6s ease;
}

.journey-card:hover .journey-image {
    transform: scale(1.03);
}

/*==================================================
                CONTROLS
==================================================*/

.journey-sidebar-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    margin-left: -80px;
}

.journey-bottom {
    padding: 28px;
}

.journey-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 18px;
}

.journey-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
}
    .journey-control-btn:hover {
        transform: translateY(-5px);
        background: #880000;
        color: white;
    }

.journey-progress {
    margin-top: 28px;
    height: 6px;
    border-radius: 50px;
    overflow: hidden;
    background: #ececec;
}

.journey-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg,#880000,#d12727);
}

/*==================================================
                CORNERS
==================================================*/

.section-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition-delay: .9s;
}

.corner-left {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 75px;
    height: 75px;
}

.corner-right {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 75px;
    height: 75px;
}

.corner {
    position: absolute;
    width: 70px;
    height: 70px;
}

.corner-left::before,
.corner-left::after,
.corner-right::before,
.corner-right::after {
    content: "";
    position: absolute;
    background: #880000;
    transition: width .55s ease, height .55s ease, opacity .35s ease;
}

.corner-left::before,
.corner-right::before {
    width: 0;
    height: 3px;
    transition: width .9s cubic-bezier(.22,.61,.36,1);
   
}

.corner-left::before {
    left: 0;
    top: 0;
    border-top-left-radius: 25px;
}

.corner-right::before {
    right: 0;
    top: 0;
    border-top-right-radius: 25px;
}

.corner-left::after,
.corner-right::after {
    width: 3px;
    height: 0;
    transition: height .9s cubic-bezier(.22,.61,.36,1) .45s;
}

.corner-left::after {
    left: 0;
    top: 0;
    border-top-left-radius: 25px;
}

.corner-right::after {
    right: 0;
    top: 0;
    border-top-right-radius: 25px;
}

/*==================================================
                SCROLL ANIMATION
==================================================*/

.animate-on-scroll.in-view .corner-left::before,
.animate-on-scroll.in-view .corner-right::before {
    width: 75px;
    opacity: 1;
}

.animate-on-scroll.in-view .corner-left::after,
.animate-on-scroll.in-view .corner-right::after {
    height: 75px;
}

.journey-story {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 25px;
    transition-delay: .2s;
}

/*    .journey-story::before {
        content: "";
        display: block;
        width: 55px;
        height: 4px;
        background: #880000;
        margin-bottom: 25px;
        border-radius: 20px;
    }*/


.story-line {
    width: 70px;
    height: 4px;
    display: block;
    margin-bottom: 25px;
    background: #880000;
    border-radius: 20px;
}

.journey-story h4 {
    color: #16243a;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.journey-story p {
    line-height: 2;
    color: #666;
    font-size: 1.6em;
}

.journey-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 25px;
    background: linear-gradient( transparent, rgba(0,0,0,.75) );
}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:991px) {

    .journey-sidebar {
        margin-bottom: 50px;
        padding-right: 0;
    }

    .journey-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 650px) {

    /*==================================================
      JOURNEY MOBILE LAYOUT
    ==================================================*/

    .journey-section {
        padding: 25px 0 30px;
    }


    /*----------------------------------------------
      Header
    ----------------------------------------------*/

    .journey-header {
        margin-bottom: 22px;
    }

    .journey-title {
        font-size: 2rem;
    }


    /*----------------------------------------------
      Make the Bootstrap row behave like a
      mobile journey sequence
    ----------------------------------------------*/

    #journeySection .row {
        display: flex;
        flex-direction: column;
    }


    /*----------------------------------------------
      STORY
      Comes FIRST
    ----------------------------------------------*/

    #journeySection .col-lg-2 {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .journey-story {
        height: auto;
        padding: 0 5px 18px;
        display: block;
    }

        .journey-story h4 {
            font-size: 1.7rem;
            margin-bottom: 8px;
        }

        .journey-story p {
            font-size: 1rem;
            line-height: 1.55;
            margin-bottom: 8px;
        }


    /*----------------------------------------------
      SIDEBAR
      We expose its children so that the timeline
      can be positioned independently.
    ----------------------------------------------*/

    #journeySection .col-lg-3 {
        display: contents;
    }


    /* Hide "56+ YEARS OF JOURNEY" on mobile */

    .journey-sidebar-title {
        display: none;
    }


    /*----------------------------------------------
      IMAGE
      Comes SECOND
    ----------------------------------------------*/

    #journeySection .col-lg-7 {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .journey-card {
        width: 100%;
        margin: 0;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
    }

    .journey-image-wrapper {
        width: 100%;
    }

    .journey-image {
        width: 100%;
        height: auto;
        display: block;
    }


    /*----------------------------------------------
      HORIZONTAL TIMELINE
      Comes THIRD
    ----------------------------------------------*/

    .journey-sidebar {
        display: contents;
    }

    .journey-timeline {
        order: 3;
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: row;
        gap: 0;
        padding: 28px 15px 5px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

        .journey-timeline::-webkit-scrollbar {
            display: none;
        }


    /* Horizontal line */

    .timeline-line {
        left: 25px;
        right: 25px;
        top: 38px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: #cfcfcf;
    }


    /* Progress line */

    .timeline-progress-fill {
        left: 25px;
        right: auto;
        top: 38px;
        bottom: auto;
        width: 0;
        height: 3px;
        background: #880000;
        transition: width .5s ease;
    }


    /* Timeline year */

    .timeline-year {
        flex: 0 0 105px;
        width: 105px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        position: relative;
        padding: 0;
        z-index: 2;
    }


    /* Dot comes ABOVE year */

    .timeline-dot {
        order: 1;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        background: #fff;
        border: 2px solid #aaa;
        box-shadow: 0 0 0 3px #fff;
    }


    /* Text comes BELOW dot */

    .timeline-text {
        order: 2;
        font-size: .82rem;
        font-weight: 600;
        white-space: nowrap;
        color: #444;
    }


    /* Active year */

    .timeline-year.active .timeline-dot {
        width: 19px;
        height: 19px;
        background: #880000;
        border: 4px solid #fff;
        box-shadow: 0 0 0 1px #880000, 0 0 0 6px rgba(136, 0, 0, .10);
    }

    .timeline-year.active .timeline-text {
        color: #880000;
        font-size: .88rem;
        font-weight: 800;
    }


    /*----------------------------------------------
      CONTROLS
      Come FOURTH
    ----------------------------------------------*/

    .journey-sidebar-footer {
        order: 4;
        width: 100%;
        margin: 15px 0 0;
        display: flex;
        justify-content: center;
    }

    .journey-controls {
        gap: 10px;
        margin-bottom: 0;
    }

    .journey-control-btn {
        width: 38px;
        height: 38px;
    }


    /*----------------------------------------------
      Decorative corners
    ----------------------------------------------*/

    .corner-left {
        top: 5px;
        left: 5px;
        width: 55px;
        height: 55px;
    }

    .corner-right {
        top: 5px;
        right: 5px;
        width: 55px;
        height: 55px;
    }
}