﻿.timeline {
    padding: 20px 40px;
    position: relative;
    background-color: var(--base-select-bg);
}
.timeline::before {
    content: "";
    background: var(--secondary-text-color);
    width: 2px;
    height: 95%;
    position: absolute;
    left: 50%;
    opacity: 0.6;
    transform: translateX(-50%);
    z-index: 0;
}
.timeline-item {
    width: 100%;
    margin-bottom: 70px;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    padding: 40px 30px 10px 30px;
}

    .timeline-item:nth-child(even) .timeline-content .date {
        right: auto;
        left: 0;
        border-radius: 0px 0px 6px 0px;
    }

.timeline-item:nth-child(even) .timeline-content::after {
    content: "";
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 30px;
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent #f5f5f5 transparent transparent;
}

.timeline-item::after {
    content: "";
    display: block;
    clear: both;
}

.timeline-content {
    position: relative;
    width: 45%;
    border-radius: 4px;
    background: #f5f5f5;
    box-shadow: 0 20px 25px -15px rgba(0, 0, 0, 0.3);
    padding: 30px 30px 10px 30px;
    font-size: 16px;
}
.timeline-content span {
    font-weight: 600;
}

.timeline-content::after {
    content: "";
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 30px;
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #f5f5f5;
}

.timeline-img {
    width: 40px;
    height: 40px;
    background: var(--base-theme-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    margin-top: 25px;
    margin-left: -23px;
    padding: 5px;
    text-align: center;
}

.timeline-img i {
    color: white;
    font-size: 22px;
    line-height: 30px;
}

.timeline .btn-container {
    margin-bottom: 20px;
    margin-top: 10px;
    display: inline-block;
    border-radius: 2px;
}
.timeline-card {
    padding: 0 !important;
}

.timeline-card p {
    padding: 0 20px;
}

.timeline-card a {
    margin-left: 20px;
}

.timeline-item .timeline-img-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("https://picsum.photos/1000/800/?random") center center no-repeat;
    background-size: cover;
}

.timeline-img-header {
    height: 200px;
    position: relative;
    margin-bottom: 20px;
}

.timeline-img-header h2 {
    color: #FFFFFF;
    position: absolute;
    bottom: 5px;
    left: 20px;
}

.timeline blockquote {
    margin-top: 30px;
    color: #757575;
    border-left-color: #3F51B5;
    padding: 0 20px;
}

.timeline .date {
    background: var(--base-foreground-color);
    display: inline-block;
    color: #FFFFFF;
    padding: 4px 8px;
    position: absolute;
    opacity: 0.7;
    top: 0;
    right: 0;
    font-size: 14px;
    border-radius: 0px 0px 0px 6px;
}
.timeline h2 {
    line-height: 22px;
    font-size: 18px;
    font-weight: 600;
}
/* Tooltip */
.dx-tooltip-wrapper .dx-overlay-content {
    background-color: var(--base-text-color);
    color: var(--base-bg);
    border-radius: 4px;
}
.dx-tooltip-wrapper .dx-overlay-content .dx-popup-content {
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    padding: 8px 12px;
}
.dx-tooltip-wrapper.dx-popover-wrapper .dx-popover-arrow::after {
    background: var(--base-text-color);
}
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    .timeline {
        padding: 20px 10px;
    }
    .timeline .timeline-img {
        left: 30px;
    }
    .timeline .timeline-content {
        max-width: 100%;
        width: auto;
        margin-left: 60px;
    }
    .timeline .timeline-item:nth-child(even) .timeline-content {
        float: none;
    }
    .timeline .timeline-item:nth-child(odd) .timeline-content::after {
        content: "";
        position: absolute;
        border-style: solid;
        width: 0;
        height: 0;
        top: 35px;
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent #f5f5f5 transparent transparent;
    }
}