/* Manay Timeline Style */
.timeline-wrapper {
    background: white;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.timeline-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.timeline-header p {
    font-size: 1.1rem;
    color: #666;
}

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

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #363636;
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    width: 100%;
}

.timeline-item.left {
    text-align: right;
    padding-right: calc(50% + 30px);
}

.timeline-item.right {
    text-align: left;
    padding-left: calc(50% + 30px);
}

.timeline-date {
    font-weight: bold;
    color: #D9D9D9;
    font-size: 1.1rem;
    display: inline-block;
    margin-right: 15px;
}

.timeline-content {
    background: white;
    display: flex;
    align-items: center;
}

.timeline-item.left .timeline-content {
    flex-direction: row-reverse;
}

.timeline-item.left .timeline-date {
    margin-right: 0;
    margin-left: 15px;
}

.timeline-circle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #D9D9D9;
    border-radius: 50%;
    z-index: 10;
    top: 50%;
    transform: translate(-50%, -50%);
}

.event-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #D9D9D9;
}

.event-summary {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.logo-container img {
    width: 150px !important;
    height: 45px !important;
    object-fit: contain;
    filter: brightness(0.7) contrast(1.2);
    object-position: left;
}

.multi-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
    flex-wrap: nowrap;
}

.multi-logo-container img {
    width: 150px !important;
    height: 45px !important;
    object-fit: contain;
    filter: brightness(0.7) contrast(1.2);
}

/* Alignment Classes */
.logo-container.align-left {
    justify-content: flex-start;
}

.logo-container.align-center {
    justify-content: center;
}

.logo-container.align-right {
    justify-content: flex-end;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin: 20px 0;
    }

    .timeline-content {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .timeline-date {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-bottom: 5px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-line {
        display: none;
    }

    .timeline-circle {
        display: none;
    }

    /* Logo alignment to left for mobile and Force Order */
    .event-content {
        display: flex;
        flex-direction: column;
    }

    .logo-container {
        justify-content: flex-start !important;
        order: -1;
        /* Always first */
    }

    .logo-container img {
        max-width: 120px;
        max-height: 36px;
    }

    .multi-logo-container {
        justify-content: flex-start !important;
        gap: 15px;
    }

    .multi-logo-container img {
        width: 120px !important;
        height: 36px !important;
    }
}