.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.timeline::before {
    display: none;
}
.timeline-item {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}
.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}
.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}
.timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}
.timeline-item:nth-child(odd) {
    padding-right: 0;
}
.timeline-item:nth-child(even) {
    padding-left: 0;
}
.timeline-content {
    position: relative;
    padding: 0;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 300px;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.15);
}
.timeline-content::after {
    display: none;
}
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 0;
    flex-direction: row;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    flex-direction: row-reverse;
}

.timeline-content::before {
    display: none;
}
.timeline-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 15px;
}
.timeline-image:hover {
    transform: scale(1.02);
}
.timeline-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}
.timeline-item:nth-child(even) .timeline-title {
    text-align: right;
    width: 100%;
}
.timeline-item:nth-child(even) .timeline-description {
    text-align: right;
    width: 100%;
}
.year {
    font-size: 8rem;
    font-weight: 900;
    font-family: poppins, sans-serif;
    opacity: 0.7;
    line-height: 1;
    position: relative;
    left: -100px;
    color: #fff0;
    -webkit-text-stroke: 2px #fcfcfc;
    inset: auto;
}
.timeline-item:nth-child(even) .year {
    color: #9dc33b;
    position: relative;
    right: -345px;
    left: auto;
    -webkit-text-stroke: 2px #262626;
}
.timeline-title {
    color: #9dc33b;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: "Poppins" !important;
}
.timeline-description {
    color: #ccc;
    line-height: 1.6;
    font-weight: 400;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (min-width: 1920px) {
    .timeline-image {
        height: 700px;
    }
    .timeline-text {
        justify-content: center;
    }
    .timeline-item:nth-child(even) .year {
        left: 80%;
    }
}
@media (max-width: 1920px) {
    .timeline-item:nth-child(even) .year {
        right: -500px;
    }
    .timeline-image {
        height: 530px;
    }
    .timeline-text {
        justify-content: center;
    }
}
@media (max-width: 1370px) {
    .timeline-item:nth-child(even) .year {
        right: -300px;
    }
    .timeline-image {
        height: 400px;
    }
}
@media (max-width: 1024px) {
    .timeline-item:nth-child(even) .year {
        right: -220px;
    }
}
@media (max-width: 992px) {
    .timeline-item:nth-child(even) .year {
        right: auto;
        text-align: left;
    }
    .timeline-item:nth-child(even) .timeline-title {
        text-align: left;
    }
    .timeline-item:nth-child(even) .timeline-description {
        text-align: left;
    }
}
@media (max-width: 768px) {
    .timeline-item:nth-child(even) .timeline-content .col-lg-6
    {
        padding-left: 0px !important;
        padding-right: 20px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content .col-lg-6
    {
        padding-left: 20px !important;
        padding-right: 0px !important;
    }
    .timeline-item {
        margin-bottom: 40px;
    }
    .timeline-item:nth-child(even) .timeline-title {
        text-align: center;
    }
    .timeline-item:nth-child(even) .timeline-description {
        text-align: center;
    }
    .header h1 {
        font-size: 2.2rem;
    }
    .timeline-content {
        flex-direction: column !important;
        text-align: center;
        min-height: auto;
    }
    .timeline-image {
        width: 100% !important;
        height: auto !important;
    }
    .timeline-text {
        padding: 30px 20px;
    }
    .year {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        font-size: 4rem !important;
        margin-bottom: 15px;
        display: block;
        text-align: center;
    }
    .timeline-title {
        font-size: 1.5rem;
    }
    .timeline-description {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {

    .timeline-item:nth-child(even) .timeline-content .col-lg-6
{
    padding-left: 0px !important;
    padding-right: 20px !important;
}

.timeline-item:nth-child(odd) .timeline-content .col-lg-6
{
    padding-left: 20px !important;
    padding-right: 0px !important;
}
    .timeline-item {
        margin-bottom: 20px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .header .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    .timeline-text {
        padding: 25px 15px;
    }
    .year {
        font-size: 3rem !important;
    }
    .timeline-title {
        font-size: 1.3rem;
    }
    .timeline-item:nth-child(even) .timeline-title {
        text-align: center;
    }
    .timeline-item:nth-child(even) .timeline-description {
        text-align: center;
    }
}
