@charset "UTF-8";

.story-image{
    position: relative;
    height: 100%;
}

.story-info {
    padding-left: 55px;
}

.counter-item-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--bic-primary-color);
}

.counter-item-description {
    font-size: 20px;
    text-transform: uppercase;
}

.history-timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ddd;
}

.history-timeline-odd {
    margin-top: 160px;
}

.history-timeline-list.row {
    --bic-grid-gap: 70px;
}

.timeline-item {
    position: relative;
}

.timeline-item:not(:last-child) {
    margin-bottom: 100px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: -80px;
    transform: scale(0) translateY(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}


.history-timeline-even .timeline-item::before {
    left: unset;
    right: -80px;
}

.timeline-item.active .timeline-item-inner {
    border-color: var(--bic-primary-color);
}

.timeline-item.active::before {
    background: var(--bic-primary-color);
    transform: scale(1) translateY(-50%);
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--bic-primary-color);
    z-index: 1;
    transition: width 0.5s ease-in-out;
    top: 50%;
    transform: translateY(-50%);
    left: -60px;
}

.timeline-item.active::after {
    width: 60px;
}

.history-timeline-even .timeline-item::after {
    left: unset;
    right: -60px;
}

.timeline-item-inner {
    position: relative;
    border: 1px solid var(--bic-border-color);
}

.culture-item-image {
    position: relative;
    height: 100%;
}

.timeline-item-info {
    position: relative;
    padding: 20px;
}

.timeline-item-year .title {
    font-size: 32px;
    font-weight: 600;
    color: var(--bic-primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.culture-item:nth-child(2n) .row {
    flex-direction: row-reverse;
}

.culture-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f2f2f2;
    height: 100%;
    padding-top: var(--bic-gap);
    padding-bottom: var(--bic-gap);
    padding-right: calc((100vw - 8px - var(--bic-container-width)) / 2 + var(--bic-grid-gap));
    padding-left: var(--bic-gap);
}

.culture-item:nth-child(2n) .culture-item-info {
    padding-right: var(--bic-gap);
    padding-left: calc((100vw - 8px - var(--bic-container-width)) / 2 + var(--bic-grid-gap));
}

.culture-item-title .title {
    font-size: 32px;
    text-transform: uppercase;
    color: var(--bic-primary-color);
}

@media only screen and (min-width: 1200px) and (max-width: 1440px) {
    .story-info{
        padding-left: 15px;
    }
    .counter-item-title{
        font-size: 42px;
    }
    .history-timeline-list.row {
        --bic-grid-gap: 40px;
    }
    .timeline-item::before{
        width: 16px;
        height: 16px;
        left: -48px;
    }
    .history-timeline-even .timeline-item::before{
        right: -48px;
    }
    .timeline-item.active::after {
        width: 48px;
    }
    .timeline-item::after{
        left: -48px;
    }
    .history-timeline-even .timeline-item::after{
        right: -48px;
    }
    .timeline-item-year .title{
        font-size: 24px;
    }
    .culture-item-title .title{
        font-size: 24px;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1280px) {
    .story .row{
        align-items: unset !important;
    }
    .story-info{
        padding-left: 0;
    }
    .counter-item-title{
        font-size: 42px;
    }
    .history-timeline-list.row {
        --bic-grid-gap: 40px;
    }
    .timeline-item::before{
        width: 16px;
        height: 16px;
        left: -48px;
    }
    .history-timeline-even .timeline-item::before{
        right: -48px;
    }
    .timeline-item.active::after {
        width: 48px;
    }
    .timeline-item::after{
        left: -48px;
    }
    .history-timeline-even .timeline-item::after{
        right: -48px;
    }
    .timeline-item-year .title{
        font-size: 24px;
    }
    .culture-item-title .title{
        font-size: 24px;
    }
}

@media only screen and (max-width: 767px) {
    .story-info{
        padding-top: var(--bic-gap);
        padding-left: 0;
    }
    .counter-item-title{
        font-size: 36px;
    }
    .story-counter .row{
        row-gap: 20px;
    }
    .history-timeline-line{
        left: 8px;
        transform: none;
    }
    .timeline-item{
        padding-left: 30px;
    }
    .timeline-item.active::after{
        width: 30px;
        left: 0 !important;
        right: unset !important;
    }
    .timeline-item::before{
        left: 0 !important;
        right: unset !important;
        width: 16px;
        height: 16px;
    }
    .timeline-item:not(:last-child){
        margin-bottom: 40px;
    }
    .history-timeline-odd{
        margin-top: 40px;
    }
    .timeline-item-year .title{
        font-size: 20px;
    }
    .timeline-item-info{
        padding: 10px 15px;
    }
    .culture-item-info{
        padding-left: var(--bic-grid-gap) !important;
        padding-right: var(--bic-grid-gap) !important;
    }
    .culture-item-title .title{
        font-size: 24px;
    }
}

@media only screen and (max-width: 480px) {
    .timeline-item:not(:last-child){
        margin-bottom: 30px;
    }
    .counter-item-description{
        font-size: 18px;
    }
    .timeline-item-year .title{
        font-size: 18px;
    }
}