.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {
    top: 40px;
    bottom: 140px;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: var(--heptacom-primary);
    left: 50%;
    margin-left: -1.5px;
}

.timeline > li {
    margin-bottom: 20px;
    position: relative;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-panel {
    width: 100%;
    float: right;
    border-radius: 2px;
    padding: 0.75rem 0;
    margin: 100px 0;
    background: #fff;
}

.timeline > li:last-child > .timeline-panel:after {
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 7px;
    margin-left: -1.5px;
    display: inline-block;
    background-color: transparent;
    content: " ";
    width: 3px;
}

.timeline > li > .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 0;
    margin-left: -25px;
    background-color: #999999;
    z-index: 100;
    border-radius: 50%;
}

.timeline-title {
    margin-top: 0;
    color: inherit;
}

.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}

.timeline-body > p + p {
    margin-top: 5px;
}

.heptagon-wrapper {
    background-color: #fff;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -20px;
    z-index: 100;
    padding: 10px 0;
    margin-top: -10px;
}

.heptagon {
    -webkit-clip-path: polygon(50% 100%, 90% 80%, 100% 40%, 75% 0%, 25% 0%, 0% 40%, 10% 80%);
    clip-path: polygon(50% 100%, 90% 80%, 100% 40%, 75% 0%, 25% 0%, 0% 40%, 10% 80%);
    background-color: var(--heptacom-primary);
    height: 40px;
    width: 40px;
    line-height: 50px;
    font-size: 1.4em;
}

@media (min-width: 768px) {
    .timeline:before {
        bottom: 40px;
        left: 7px;
    }

    .timeline > li > .timeline-panel {
        margin: 0;
        background: none;
        width: 95%;
    }

    .timeline > li:last-child > .timeline-panel:after {
        background-color: #fff;
    }

    .heptagon-wrapper {
        left: 7px;
    }
}
