@import url('https://fonts.googleapis.com/css?family=Amaranth|Source+Sans+Pro&display=swap');

body {
    /* padding: 20px; */
}

.center {
    margin: 0 auto;
    text-align: center;
}

.main {
    padding: 2em 0;
}

.main h1 {
    color: #61d4d7;
    font-family: 'Amaranth', sans-serif;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Adding the SVG path before each timeline item */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 100%;
    z-index: 1;
}

/* Unique SVG for each timeline item */
.timeline-item:nth-child(1)::before {
    background: url('data:image/svg+xml;utf8,<svg width="2169" height="653" viewBox="0 0 2169 653" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 648.5C567 -265.5 2043.5 1010.5 2160.5 1.5" stroke="rgb(229,75,16)" stroke-width="16" stroke-dasharray="32 32"/></svg>') no-repeat;
    background-size: contain;
    background-position: center;
    width: 50%;
    height: 100%;
    z-index: 0;
    top: 130%;
    left: 50%;
}

.timeline-item:nth-child(2)::before {
    background: url('data:image/svg+xml,%3Csvg%20width%3D%222168%22%20height%3D%22587%22%20viewBox%3D%220%200%202168%20587%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2160.5%20582.5C1706%20-331%20654%20933%207.5%205%22%20stroke%3D%22rgb(229,75,16)%22%20stroke-width%3D%2216%22%20stroke-dasharray%3D%2232%2032%22%2F%3E%3C%2Fsvg%3E') no-repeat;
    background-size: contain;
    background-position: center;
    width: 45%;
    height: 100%;
    z-index: 0;
    left: 50%;
    top: 145%;
}

.timeline-item:nth-child(3)::before {
    background: url('data:image/svg+xml;utf8,<svg width="2169" height="653" viewBox="0 0 2169 653" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 648.5C567 -265.5 2043.5 1010.5 2160.5 1.5" stroke="rgb(229,75,16)" stroke-width="16" stroke-dasharray="32 32"/></svg>') no-repeat;
    background-size: contain;
    background-position: center;
    width: 50%;
    height: 100%;
    z-index: 0;
    top: 134%;
    left: 50%;
}

.timeline-item:nth-child(4)::before {
    background: url('data:image/svg+xml,%3Csvg%20width%3D%222168%22%20height%3D%22587%22%20viewBox%3D%220%200%202168%20587%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2160.5%20582.5C1706%20-331%20654%20933%207.5%205%22%20stroke%3D%22rgb(229,75,16)%22%20stroke-width%3D%2216%22%20stroke-dasharray%3D%2232%2032%22%2F%3E%3C%2Fsvg%3E') no-repeat;
    background-size: contain;
    background-position: center;
    width: 55%;
    height: 100%;
    z-index: 0;
    left: 52%;
    top: 128%;
}

.timeline-item:nth-child(5)::before {
    background: url('data:image/svg+xml;utf8,<svg width="2169" height="653" viewBox="0 0 2169 653" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 648.5C567 -265.5 2043.5 1010.5 2160.5 1.5" stroke="rgb(229,75,16)" stroke-width="16" stroke-dasharray="32 32"/></svg>') no-repeat;
    background-size: contain;
    background-position: center;
    width: 50%;
    height: 100%;
    z-index: 0;
    top: 142%;
    left: 50%;
}

@media screen and (max-width: 768px) {

    .timeline-item:nth-child(1)::before,
    .timeline-item:nth-child(2)::before,
    .timeline-item:nth-child(3)::before,
    .timeline-item:nth-child(4)::before,
    .timeline-item:nth-child(5)::before {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .timeline-item {
        display: block;
        margin-bottom: 50px !important;
        /* Adjust spacing for mobile */
    }

    .timeline-item img {
        position: relative !important;
        width: 100% !important;
        /* Make image full width on mobile */
        margin-bottom: 15px;
        /* Add margin below the image to separate from the text */
    }

    .timeline-item-content {
        width: 100% !important;
        /* Ensure content takes full width */
        left: 0 !important;
        /* Override left positioning */
        text-align: justify;
        /* Keep text alignment consistent */
    }

    .timeline-item-content h3,
    .timeline-item-content p {
        margin: 0;
        /* Remove margin to avoid extra space */
    }

    .yummy img {
        top: 13px;
        left: 34px;
    }
}



/* Remove SVG for the last timeline item */
.timeline-item:last-child::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 200px;
}

.timeline-item-content {
    position: relative;
    width: 45%;
    padding: 20px;
    border-radius: 14px;
    color: white;
    z-index: 2;
}

.timeline-item img {
    width: 100%;
    border-radius: 14px;
}

.timeline-item:nth-child(odd) .timeline-item-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-item-content {
    left: 55%;
}

.timeline-item:nth-child(odd) img {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    border-radius: 14px;
}

.timeline-item:nth-child(even) img {
    position: absolute;
    left: 0%;
    top: 0;
    width: 40%;
    border-radius: 14px;
}

.timeline-item-content h3 {
    color: #6f231c;
}

.timeline-item-content p,
.timeline-item-content ul {
    color: rgb(20, 19, 19);
}

@media screen and (max-width: 768px) {
    .timeline svg {
        display: none;
        /* Hides SVG on small screens */
    }

    .timeline-item-content {
        width: 100%;
        left: 0 !important;
        /* margin-left: 40px; */
    }

    .timeline-item img {
        position: relative;
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        margin-top: 10px;
    }
}