﻿* {
    box-sizing: border-box
}

.story-timeline {
    padding: 60px 96px 0;
}

@media(max-width:991px) {
    .story-timeline {
        padding: 60px 16px 0 !important;
    }
}

.timeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .timeline-container .arrow {
        border: none;
        width: 40px;
        height: 40px;
        font-size: 20px;
        cursor: pointer;
        margin: 0 5px;
        flex-shrink: 0;
        background-color: white;
        padding-top: 210px;
    }

        .timeline-container .arrow.left-arrow {
            margin-left: 5px;
            margin-right: 24px
        }

        .timeline-container .arrow.right-arrow {
            margin-left: 24px;
            margin-right: 5px
        }

    .timeline-container .timeline {
        display: flex;
        align-items: center;
        overflow-x: hidden;
        scroll-behavior: smooth;
        padding-top: 270px;
        flex-grow: 1;
        scrollbar-width: none;
        overflow-y: hidden;
        width: 100%;
        gap: 24px;
    }

@media(max-width: 768px) {
    .timeline-container .timeline {
        overflow-x: scroll;
    }
}

.timeline-container .timeline::-webkit-scrollbar {
    display: none;
}

.timeline-container .timeline-item {
    position: relative;
    flex-shrink: 0;
    text-align: center;
    flex: 0 0 calc(25% - 24px);
}

    .timeline-container .timeline-item .date {
        color: var(--Text-Dark-Text---Header, #0848AA);
        font-family: Ubuntu;
        font-size: 28px;
        font-style: normal;
        font-weight: 700;
        line-height: 36px;
        padding-top: 12px;
        height: 116px;
        display: flex;
        flex-direction: column;
    }

@media(max-width:991px) {
    .timeline-container .timeline-item {
        flex: 0 0 calc(33.3% - 20px);
    }
}

@media(max-width:768px) {
    .timeline-container .date,
    .timeline-container .dot,
    .timeline-container .title,
    .timeline-container .arrow {
        display: none !important;
    }

    .story-timeline {
        padding: 16px 16px 0px !important;
    }

    .timeline-container .timeline-item {
        flex: 0 0 calc(50% - 20px);
    }

    .timeline-container .title {
        font-size: 12px;
    }

    .timeline-container .date {
        font-size: 14px;
    }

    .timeline-container .arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .story-slider {
        margin-bottom: 0px !important;
        margin-top: -24px;
        background: white !important;
        border: none !important;
    }
}

.story-slider {
    background: #F3F7FB;
    border-radius: 8px;
    border: 2px #D9E0EC solid;
}

.timeline-container .timeline-item .date img {
    display: none;
    height: 52px;
    margin-top: 16px;
}

.timeline-container .timeline-item.active .date img {
    display: block;
}

@media(max-width:500px) {
    .timeline-container .timeline-item {
        width: calc(100vw - 100px);
    }
}

.timeline-container .timeline-item .title {
    color: #ADB6C5;
    text-align: center;
    font-family: Ubuntu;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 32px;
    height: 65px;
    padding: 0 10px;
}

.timeline-container .timeline-item.active .title {
    color: var(--Text-Dark-Text---Header, #0848AA);
    text-align: center;
    font-weight: 700;
    padding: 0px 10px 0px 36px;
}

.timeline-container .dot-image {
    position: absolute;
    top: -256px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    overflow: hidden;
    z-index: 3;
    /*padding: 0 12px;*/
    transition: height ease 0.3s;
}

    .timeline-container .dot-image img {
        width: 100%;
        height: 200px;
        /*object-fit: cover;*/
        border-radius: 8px;
        border: 2px solid var(--Background-Border, #D9E0EC);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
        transition: height ease 0.3s;
    }

    .timeline-container .dot-image:hover {
        height: 208px;
    }

        .timeline-container .dot-image:hover img {
            height: 208px;
        }

.timeline-container .timeline-item.active .dot-image img {
    box-shadow: 0 0 10px rgba(255,255,255,0.6),0 0 20px rgba(0,123,255,0.3);
    z-index: 3;
}

.timeline-container .dot-image img:hover {
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.6),0 0 20px rgba(0,123,255,0.3);
}

.timeline-container .timeline-item.active .dot-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,rgba(255,255,255,0.5) 0%,rgba(255,255,255,0.1) 60%, transparent 70%);
    z-index: 4;
    pointer-events: none;
}

.timeline-container .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    cursor: pointer;
    background-image: url('../../icon/dot-passive.svg');
}

    .timeline-container .dot::before {
        content: "";
        position: absolute;
        top: 50%;
        right: calc(50% - 10px);
        height: 3px;
        background-color: var(--before-color,D9E0EC);
        transform: translate(0,-50%);
        width: var(--before-width,0);
        z-index: 1;
        pointer-events: none;
    }

    .timeline-container .dot::after {
        content: "";
        position: absolute;
        top: 50%;
        left: calc(50% + 10px);
        height: 3px;
        background-color: var(--after-color,#D9E0EC);
        transform: translate(0,-50%);
        width: var(--after-width,0);
        z-index: 1;
        pointer-events: none;
    }

.timeline-container .timeline-item:first-child .dot::before {
    display: block;
}

.timeline-container .dot.active {
    width: 22px;
    height: 22px;
    background-image: url('../../icon/dot-active.svg');
}


.timeline-container .dot.before-active {
    background-image: url('../../icon/before-active.svg');
}

.story-slider {
    margin-bottom: 60px;
}

    .story-slider .desc {
        color: var(--Text-Light-Secondary, #616161);
        /* Subtitle/Regular/S3 */
        font-family: Ubuntu;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px; /* 137.5% */
        margin-top: 16px;
    }
