.tx-dx-timeline {
    --grey: rgb(191,191,191);
    --primary: rgb(227,6,19);
    --dark-text: #333333;
    --secondary: rgb(150,193,31);
    margin-bottom: 75px;
}
.tx-dx-timeline .flex-timeline {
    position: relative;
    width: calc(100% - 90px);
    margin: 0 auto;
    border: none;
    background-color: transparent;
}
.tx-dx-timeline .flex-direction-nav a {
    position: absolute;
    z-index: 1;
    opacity: 1;
}
.tx-dx-timeline .flex-direction-nav a::before {
    line-height: 100%;
}
.tx-dx-timeline .flex-direction-nav .flex-prev,
.tx-dx-timeline .flex-timeline:hover .flex-prev:hover {
    left: -35px !important;
}
.tx-dx-timeline .flex-direction-nav .flex-next,
.tx-dx-timeline .flex-timeline:hover .flex-next:hover {
    right: -35px !important;
}

.tx-dx-timeline .timeitem .timeitem-image {
    height: 220px;
    margin-bottom: 0.5rem;
}
@media screen and (min-width: 600px) {
    .tx-dx-timeline .timeitem .timeitem-image {
        height: 230px;
    }
}
@media screen and (min-width: 900px) {
    .tx-dx-timeline .timeitem .timeitem-image {
        height: 250px;
    }
}
@media screen and (min-width: 1280px) {
    .tx-dx-timeline .timeitem .timeitem-image {
        height: 290px;
    }
}
@media screen and (min-width: 1440px) {
    .tx-dx-timeline .timeitem .timeitem-image {
        height: 340px;
    }
}
@media screen and (min-width: 1600px) {
    .tx-dx-timeline .timeitem .timeitem-image {
        height: 380px;
    }
}
@media screen and (min-width: 1920px) {
    .tx-dx-timeline .timeitem .timeitem-image {
        height: 450px;
    }
}
.tx-dx-timeline .timeitem .timeitem-image img {
    display: block;
    width: 100%;
    height: auto;
}
.tx-dx-timeline .timeitem .timeitem-date {
    position: relative;
    height: 30px;
    width: calc(100% + 25px);
    margin-bottom: 4rem;
}
.tx-dx-timeline .timeitem .timeitem-date span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: var(--primary);
}
.tx-dx-timeline .timeitem .timeitem-date span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% - 12px);
    transform: translateX(-50%) translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--grey);
    background-color: white;
}
.tx-dx-timeline .timeitem .timeitem-date span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% - 12px);
    transform: translateX(-50%) translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}
.tx-dx-timeline .timeitem .timeitem-date p {
    position: absolute;
    left: calc(50% - 12px);
    top: 1em;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.4em 0.5em 0.25em;
    border-radius: 3px;
    background-color: var(--primary);
    color: white;
    font-size: 2rem;
    font-weight: bold;
}
.tx-dx-timeline .timeitem .timeitem-date p::before {
    content: ' ';
    position: absolute;
    height: 0;
    width: 0;
    left: 50%;
    top: -11px;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--primary);
}
.tx-dx-timeline .timeitem .timeitem-text {
    text-align: justify;
}
.tx-dx-timeline .timeitem .timeitem-text:first-child {
    margin-top: 0;
}

.tx-dx-timeline .flex-control-paging li a.flex-active {
    background-color: var(--primary);
}
.tx-dx-timeline .flex-control-paging li a:hover {
    background-color: var(--secondary);
}