.manufacturing-hero-bg {
    background-image: url('../../img/manufacturing/hero.jpg');
    background-size: cover;
    background-position: center;
}

/* --- DESKTOP Timeline styles --- */
.timeline-item {
    position: relative;
    padding-bottom: 4rem;
    padding-left: 2.5rem;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 2px;
    height: 100%;
    background-color: #e5e7eb;
    /* gray-200 */
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -0.7rem;
    top: 0.5rem;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 9999px;
    background-color: #fff;
    border: 4px solid #0284c7;
    /* sky-600 */
    z-index: 10;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.timeline-item.active .timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.3);
}

.timeline-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
    margin-top: 0;
}

.timeline-item.active .timeline-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* --- TABLET & MOBILE Horizontal Scroller styles --- */
@media (max-width: 1023px) {
    #timeline-wrapper {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1.5rem;
        padding-left: 2rem;
        /* Makes first dot visible on tablet */
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #timeline-wrapper::-webkit-scrollbar {
        display: none;
    }

    .timeline-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
        padding-bottom: 1.5rem;
        /* Adds spacing on mobile */
        cursor: default;
    }

    .timeline-item::before {
        display: none;
        /* Hide vertical line */
    }

    .timeline-content {
        max-height: none;
        opacity: 1;
        overflow: visible;
        margin-top: 0.5rem;
    }
}

/* --- TABLET ONLY dot positioning --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .timeline-item {
        padding-left: 2.5rem;
        /* Space for the dot */
    }

    .timeline-item .timeline-dot {
        position: absolute;
        left: -0.7rem;
        top: 0.5rem;
    }
}

/* --- MOBILE ONLY dot positioning --- */
@media (max-width: 767px) {
    .timeline-item {
        padding-left: 1rem;
    }

    .timeline-item .timeline-dot {
        position: relative;
        display: inline-block;
        left: auto;
        top: 0.5rem;
        flex-shrink: 0;
    }
}