.timeline-container {
	width: 100%;
	max-width: 1124px;
	margin: 0 auto;
	padding: 20px;
}

@media (max-width: 768px) {.timeline-container {padding: 20px 10px 20px 20px;}}

.timeline {
	position: relative;
	padding: 100px 0 10px 0;
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0px;
	left: 50%;
	width: 2px;
	height: 100%;
	background: transparent;
	border-left: 3px dotted #878787;
}

@media (max-width: 768px) {.timeline:before {left:0}}

.timeline-dot {
    position: relative;
}
.timeline-dot:before {
    content: '';
    position: absolute;
    left: 50.2%;
    top: 50%;
    width: 10px;
    height: 10px;
    background-color: #5c8ac0;
    border-radius: 50%;
    border: 6px solid #ffffff;
    transform: translate(-50%, -50%);
    outline: 2px solid #5c8ac0;
    outline-offset: 0px;
    padding: 6px;
}
@media (max-width: 768px) {.timeline-dot:before {left:2px}}

.timeline-item {
position: relative;
width: 50%;
padding: 10px 30px;
margin-bottom: 50px;
box-sizing: border-box;
}

.timeline-item.timeline-item-right:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10%;
    width: 10px;
    height: 10px;
    background-color: #5c8ac0;
    border-radius: 50%;
    border: 6px solid #ffffff;
    transform: translate(-50%, -50%);
    outline: 2px solid #5c8ac0;
    outline-offset: 0px;
    padding: 6px;
}

@media (max-width:768px){
    .timeline-item.timeline-item-right:before, .timeline-item.timeline-item-left:before {
        left: 17px;
    }
}

.timeline-item.timeline-item-left:before {
    content: '';
    position: absolute;
    right: -40px;
    top: 10%;
    width: 10px;
    height: 10px;
    background-color: #5c8ac0;
    border-radius: 50%;
    border: 6px solid #ffffff;
    transform: translate(-50%, -50%);
    outline: 2px solid #5c8ac0;
    outline-offset: 0px;
    padding: 6px;
}

@media (max-width: 768px) {.timeline-item {
    width: 100%;
    padding: 10px;
}}

.timeline-item:nth-child(odd) {
left: -15px;
}

.timeline-item:nth-child(even) {
right: -51%;
}

@media (max-width: 768px){
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0px;
    right: auto;
    }
}

.timeline-icon {
width: 120px;
height: 120px;
margin: 0 auto;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 0 4px #5c8ac0; /* Zmiana koloru obramowania na niebieski */
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.timeline-icon img {
max-width: 100%;
border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-icon {
left: 88%;
bottom: 45px;
margin-bottom: -150px; 
}

.timeline-item:nth-child(even) .timeline-icon {
right: 88%;
bottom: 45px;
margin-bottom: -150px; 
}

@media (max-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-icon, .timeline-item:nth-child(even) .timeline-icon {
    left: 0;
    right: auto;
    bottom: 50px;
    margin-bottom: -30px;
}
}

.timeline-year {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #5c8ac0; /* Zmiana koloru obramowania na niebieski */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    
.timeline-item:nth-child(odd) .timeline-year {
    left: 88%;
    bottom: 45px;
    margin-bottom: -150px; 
}
    
.timeline-item:nth-child(even) .timeline-year {
    right: 88%;
    bottom: 45px;
    margin-bottom: -150px; 
}
    
    @media (max-width: 768px) {
        .timeline-item:nth-child(odd) .timeline-year, .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
        bottom: 50px;
        margin-bottom: -30px;
    }
    }

    .timeline-year-range {
        width: 120px;
        height: 120px;
        margin: 0 auto;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
        
    .timeline-item:nth-child(odd) .timeline-year-range {
        left: 88%;
        bottom: 45px;
        margin-bottom: -150px; 
    }
        
    .timeline-item:nth-child(even) .timeline-year-range {
        right: 88%;
        bottom: 45px;
        margin-bottom: -150px; 
    }
        
        @media (max-width: 768px) {
            .timeline-item:nth-child(odd) .timeline-year-range, .timeline-item:nth-child(even) .timeline-year-range {
            left: 0;
            right: auto;
            bottom: 50px;
            margin-bottom: -30px;
        }
        }

.timeline-content {
    padding: 15px 20px;;
    top: auto;
    display: block;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {

}
.timeline-item:nth-child(even) .timeline-content {

}

@media (max-width: 768px) {
    .timeline-content {padding: 15px 10px 15px 30px; margin-right: -20px;}
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    }
}

.timeline-content h3 {
color: #5c8ac0;
font-size: 22px;
font-family: "HelveticaNeueFonts", Sans-serif; 
}
@media (max-width: 768px) {.timeline-content h3 {font-size: 20px;}}

.timeline-content p {
font-size: 18px;
font-family: "HelveticaNeueFonts", Sans-serif; 
}
@media (max-width: 768px) {.timeline-content p {font-size: 16px;}}

.timeline-footer {
text-align: center;
margin-top: 0px;
}

.timeline-footer img {
max-width: 200px;
}

.timeline-content-line {
display: flex;
align-items: center;
width: 100px;
position: relative;
}

.timeline-item:nth-child(odd) .timeline-content-line {
position: absolute;
right: -64px;
top: -2px;
}

.timeline-item:nth-child(even) .timeline-content-line {
position: absolute;
left: -62px;
top: -2px;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content-line, .timeline-item:nth-child(even) .timeline-content-line {
        left: -52px;
        right: auto;
        top: -2px;
    }
}

.timeline-content-vertical-line {
width: 2px;
height: 50px;
background-color: #878787;
position: relative;
}

.timeline-item:nth-child(even) .timeline-content-vertical-line {
right: -100%;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(even) .timeline-content-vertical-line {
        left: -100%;
        right: auto;
    }
}

.timeline-item:nth-child(odd) .timeline-content-dot,
.timeline-item:nth-child(even) .timeline-content-dot {
width: 10px;
height: 10px;
background-color: #5c8ac0;
border-radius: 50%;
position: absolute;
top: 50%;
transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content-dot {
left: -4px;
}

.timeline-item:nth-child(even) .timeline-content-dot {
right: -4px;
}

@media (max-width: 768px) {.timeline-item:nth-child(even) .timeline-content-dot {
    left: -4px;
    right: auto;
}
}

.timeline-item:nth-child(odd) .timeline-content-horizontal-line,
.timeline-item:nth-child(even) .timeline-content-horizontal-line {
flex-grow: 1;
height: 2px;
background-color: #878787;
margin-left: 5px;
position: relative;
}

.timeline-item:nth-child(odd) .timeline-content-horizontal-line::before, .timeline-item:nth-child(even) .timeline-content-horizontal-line::before {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 10px;
height: 10px;
background-color: #5c8ac0;
border-radius: 50%;
border: 6px solid #ffffff;
transform: translate(-50%, -50%);
outline: 2px solid #5c8ac0;
outline-offset: 0px;
padding: 6px;
}


.timeline-item:nth-child(odd) .timeline-content-horizontal-line::after{
content: '';
position: absolute;
left: 100%;
top: 50%;
width: 6px;
height: 6px;
background-color: #5c8ac0;
border: 1px solid #ffffff;
border-radius: 50%;
transform: translateY(-50%);
outline: 2px solid #5c8ac0;
outline-offset: 0px;
padding: 4px;
}
.timeline-item:nth-child(even) .timeline-content-horizontal-line::after {
content: '';
position: absolute;
right: 100%;
top: 50%;
width: 6px;
height: 6px;
background-color: #5c8ac0;
border: 1px solid #ffffff;
border-radius: 50%;
transform: translateY(-50%);
outline: 2px solid #5c8ac0;
outline-offset: 0px;
padding: 4px;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(even) .timeline-content-horizontal-line::after {
        content: '';
        position: absolute;
        left: 100%;
        top: 50%;
        width: 6px;
        height: 6px;
        background-color: #5c8ac0;
        border: 1px solid #ffffff;
        border-radius: 50%;
        transform: translateY(-50%);
        outline: 2px solid #5c8ac0;
        outline-offset: 0px;
        padding: 4px;
    }
}

.timeline-item-left {left: -15px !important; right: auto !important;}
.timeline-item-left .timeline-icon {left: 88% !important; right: auto !important;}
.timeline-item-left .timeline-year {left: 88% !important; right: auto !important;}
.timeline-item-left .timeline-year-range {left: 88% !important; right: auto !important;}
.timeline-item-left .timeline-content-line {left: auto !important; right: -64px !important;}
.timeline-item-left .timeline-content-horizontal-line::after {right: auto !important; left: 100% !important;}
.timeline-item-left .timeline-content-vertical-line {left: auto !important; right: auto !important; }
.timeline-item-left .timeline-content-dot {left: -4px !important; right: auto !important;}


.timeline-item-right {left: auto !important; right: -51% !important;}
.timeline-item-right .timeline-icon {left: auto !important; right: 88% !important;}
.timeline-item-right .timeline-year {left: auto !important; right: 88% !important;}
.timeline-item-right .timeline-year-range {left: auto !important; right: 88% !important;}
.timeline-item-right .timeline-content-line {right: auto !important; left: -62px !important;}
.timeline-item-right .timeline-content-horizontal-line::after {left: 100% !important; left: auto !important;}
.timeline-item-right .timeline-content-vertical-line {left: auto !important; right: -100% !important;}
.timeline-item-right .timeline-content-dot {left: auto !important; right: -4px !important;}


@media (max-width: 768px){
    .timeline-item-left, .timeline-item-right {left: -15px !important; right: auto !important;}
    .timeline-item-left .timeline-icon, .timeline-item-right .timeline-icon {left: auto !important; right: auto !important;}
    .timeline-item-left .timeline-year, .timeline-item-right .timeline-year {left: auto !important; right: auto !important;}
    .timeline-item-left .timeline-year-range {right: 24% !important; left: auto !important; margin-bottom: 30px !important;}
    .timeline-item-right .timeline-year-range {left: 30% !important; right: auto !important; margin-bottom: 30px !important;}
    .timeline-item-left .timeline-content, .timeline-item-right .timeline-content {text-align: left !important;}
    .timeline-item-left .timeline-content-line, .timeline-item-right .timeline-content-line {left: -38px !important; right: auto !important;}
    .timeline-item-left .timeline-content-horizontal-line::after, .timeline-item-right .timeline-content-horizontal-line::after {right: auto !important; left: 100% !important;}
    .timeline-item-left .timeline-content-vertical-line, .timeline-item-right .timeline-content-vertical-line {left: auto !important; right: auto !important; }
    .timeline-item-left .timeline-content-dot, .timeline-item-right .timeline-content-dot {left: -4px !important; right: auto !important;}
}

.time-line-year {
    display: flex;
    position: absolute;
    top: 50%;
    width: 200px;
    height: 200px;
    font-size: 38px;
    font-weight: bold;
    font-family: "HelveticaNeueFonts", Sans-serif;
    color: #0080c0;
    background: url(/wp-content/themes/silverfox/img/point.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateY(-50%);
    transition: 0.8s;
    text-transform: capitalize;
    align-content: center;
    justify-content: center;
    align-items: center;
}

@media(max-width:768px){
    .time-line-year {
        width: 120px;
        height: 120px;
        font-size: 24px;
    }
}

.timeline-item-right .time-line-year.year-start {
    right: 232px;
    left: auto;
}

@media(max-width:768px){
    .timeline-item-right .time-line-year.year-start {
        right: 194px;
        left: auto;
    }
}

.timeline-item-right .time-line-hr {
    background-image: url(/wp-content/themes/silverfox/img/line-dot.png);
    background-repeat: no-repeat;
    content: '';
    height: 20px;
    width: 100%;
    display: block;
    right: 102%;
    position: absolute;
    z-index: 9;
}

@media (max-width:768px){
    .timeline-item-right .time-line-hr {
        right: 70%
    }
}

.timeline-item-left .time-line-year.year-end {
    right: auto;
    left: 232px;
}

@media(max-width:768px){
    .timeline-item-left .time-line-year.year-end{
        left: 194px;
    }
}

.timeline-item-left .time-line-hr {
    background-image: url(/wp-content/themes/silverfox/img/line-dot.png);
    background-repeat: no-repeat;
    content: '';
    height: 20px;
    width: 100%;
    display: block;
    left: 125%;
    position: absolute;
    z-index: 9;
}

@media (max-width: 768px){
.timeline-item-left .time-line-hr{
    left: 92%
}
}