.timeline-event {
	background: #f9f9f9;
	padding: 15px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.timeline-event p {
	margin: 10px 0;
}
.timeline-event label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}
.date-inputs {
	margin: 10px 0;
}
/* Base styles for all screen sizes */
.custom-timeline {
    position: relative;
    max-width: 1300px;
    margin: 40px auto;
    padding: 20px;
}
.custom-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-right: 40px;
    width: 50%; /* Fixed width for mobile/tablet */
}
.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
}
.timeline-item:last-child{
	margin-bottom: 0 !important;
}
.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.timeline-dot {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #00bf6f;
    border-radius: 50%;
    transform: translateY(-50%);
}
.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -6px;
}
.timeline-item.past .timeline-content{
	background: #DBDBDB !important;
	box-shadow:none;
}
.timeline-item.past h3, .timeline-item.past .timeline-content p{
	color: #999 !important;
}
.timeline-item.past .timeline-dot {
    background: #999;
}
.timeline-item h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}
.timeline-item p {
    margin: 5px 0 0 0;
    font-size: 14px;
    line-height: 1.2;
}
.event-date {
    color: #000000;
}
		
/* Small screens - left-aligned timeline */
@media screen and (max-width: 575px) {
    .custom-timeline {
        padding-left: 40px;
    }
    .custom-timeline::before {
        left: 0;
        transform: none;
    }
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0px;
    }
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 0px;
    }
    .timeline-dot {
        left: -45px !important;
        right: auto;
    }
    .timeline-item:nth-child(even) .timeline-dot {
        left: -45px;
    }
}
		
@media screen and (min-width: 576px) and (max-width: 1023px) {
    .custom-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item {
        width: 50%;
    }
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
    }
}

/* Horizontal timeline for larger screens */
@media screen and (min-width: 1024px) {
    .custom-timeline {
        display: flex;
        justify-content: center;
        padding: 5px;
        position: relative;
        gap: 15px;
        max-width: 1300px !important;
        margin: 40px auto;
        width: 100%;
		flex-wrap:nowrap;
    }
    .custom-timeline::before {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        height: 2px;
        width: 100%;
        transform: none !important;
    }
    .timeline-item {
        margin: 0;
        padding: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        transition: width 0.3s ease;
        min-width: 15%;
        max-width: 25%;
        width: var(--timeline-item-width); /* Use CSS variable for width */
    }
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 0;
    }
    .timeline-content {
        position: relative;
        width: 100%;
        text-align: center;
        margin-top: 10px;
        box-sizing: border-box;
    }
    .timeline-dot {
        position: absolute;
        left: 50% !important;
        top: -4px;
        transform: translate(-50%, -50%) !important;
        margin: 0;
        right: auto !important;
    }
}