.timeline-container-bb543778 {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    user-select: none;
    overflow: hidden;
    box-sizing: border-box;
}

.timeline-container-bb543778 * {
    box-sizing: border-box;
}

/* Custom individual styles variables mapping */
.timeline-item-bb543778 {
    --item-card-bg: var(--custom-card-bg, #ffffff);
    --item-marker-bg: var(--custom-marker-bg, #ffffff);
    --item-marker-border: var(--custom-marker-color, #3b82f6);
    --item-marker-text: var(--custom-marker-color, #3b82f6);
    --item-text-title: var(--custom-text-color, #1e293b);
}

/* Base Wrapper */
.timeline-wrapper-bb543778 {
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none; /* Firefox */
    position: relative;
    padding-left: 50px;
    padding-right: 50px;
    scroll-behavior: smooth;
}

.timeline-wrapper-bb543778::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Horizontal Line positioned inside container */
.timeline-layout-horizontal .timeline-line-bb543778 {
    position: absolute;
    top: 50%;
    left: calc(var(--item-width, 320px) / 2);
    right: calc(var(--item-width, 320px) / 2);
    height: 4px;
    background-color: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-layout-horizontal .timeline-line-fill-bb543778 {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #3b82f6;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-events-bb543778 {
    display: flex;
    position: relative;
    z-index: 2;
}

/* Horizontal Layout Specifics */
.timeline-layout-horizontal .timeline-events-bb543778 {
    flex-direction: row;
    min-width: max-content;
}

.timeline-item-bb543778 {
    position: relative;
    width: var(--item-width, 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.timeline-marker-bb543778 {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--item-marker-bg);
    border: 3px solid var(--item-marker-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--item-marker-text);
    z-index: 3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-layout-horizontal .timeline-marker-bb543778 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-marker-bb543778 svg {
    width: 18px;
    height: 18px;
    fill: var(--item-marker-text);
}

.timeline-item-bb543778.active-marker-bb543778 .timeline-marker-bb543778 {
    background-color: var(--item-marker-border);
    color: #fff;
}

.timeline-item-bb543778.active-marker-bb543778 .timeline-marker-bb543778 svg {
    fill: #fff;
}

.timeline-layout-horizontal .timeline-item-bb543778.active-marker-bb543778 .timeline-marker-bb543778 {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.timeline-card-bb543778 {
    position: absolute;
    background: var(--item-card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: var(--item-width, 320px);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.timeline-image-bb543778 {
    margin: 10px 0 15px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.timeline-image-bb543778 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    max-height: 200px;
}

.timeline-item-bb543778.active-marker-bb543778 .timeline-card-bb543778 {
    opacity: 1;
}

.timeline-layout-horizontal .timeline-item-bb543778.active-marker-bb543778 .timeline-card-bb543778 {
    transform: translateY(-5px);
}

.timeline-layout-horizontal .pos-above-bb543778 .timeline-card-bb543778 {
    bottom: 40px;
}

.timeline-layout-horizontal .pos-below-bb543778 .timeline-card-bb543778 {
    top: 40px;
}

/* Connector Line */
.timeline-card-bb543778::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 25px;
    background-color: var(--item-marker-border);
    opacity: 0.5;
    transition: height 0.3s ease;
}

.timeline-layout-horizontal .timeline-card-bb543778::after {
    left: 50%;
    transform: translateX(-50%);
}

.timeline-layout-horizontal .pos-above-bb543778 .timeline-card-bb543778::after {
    top: 100%;
}

.timeline-layout-horizontal .pos-below-bb543778 .timeline-card-bb543778::after {
    bottom: 100%;
}

.timeline-date-bb543778 {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-title-bb543778 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--item-text-title);
}

.timeline-desc-bb543778 {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.timeline-link-bb543778 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.timeline-link-bb543778 .link-icon-bb543778 {
    display: flex;
    align-items: center;
}

.timeline-link-bb543778 .link-icon-bb543778 svg {
    width: 1em;
    height: 1em;
    transition: fill 0.3s ease;
}

/* Navigation Buttons */
.timeline-nav-btn-bb543778 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.timeline-nav-btn-bb543778:hover {
    background-color: #f8fafc;
    transform: scale(1.05);
}

.timeline-nav-btn-bb543778 i {
    font-size: 18px;
    color: #475569;
}

.prev-btn-bb543778 {
    margin-right: 15px;
    margin-left: 10px;
}

.next-btn-bb543778 {
    margin-left: 15px;
    margin-right: 10px;
}

/* ==========================================================================
   Vertical Layout Mode (Fully Optimized for 30+ items and custom styles)
   ========================================================================== */
.timeline-layout-vertical {
    flex-direction: column;
    padding: 40px 10px;
}

.timeline-layout-vertical .timeline-wrapper-bb543778 {
    width: 100%;
    padding: 0;
    overflow: visible;
}

.timeline-layout-vertical .timeline-events-bb543778 {
    flex-direction: column;
    min-width: 100%;
    align-items: center;
}

/* Central Line for Vertical Mode */
.timeline-layout-vertical .timeline-line-bb543778 {
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background-color: #e2e8f0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-layout-vertical .timeline-line-fill-bb543778 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #3b82f6;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-layout-vertical .timeline-item-bb543778 {
    width: 100%;
    min-height: 140px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.timeline-layout-vertical .timeline-marker-bb543778 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.timeline-layout-vertical .timeline-item-bb543778.active-marker-bb543778 .timeline-marker-bb543778 {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.timeline-layout-vertical .timeline-card-bb543778 {
    position: relative;
    width: calc(50% - 50px);
    max-width: var(--item-width, 320px);
    top: auto !important;
    bottom: auto !important;
}

/* Alternate Left and Right Side Content in Vertical Mode */
.timeline-layout-vertical .pos-above-bb543778 {
    flex-direction: row;
}
.timeline-layout-vertical .pos-above-bb543778 .timeline-card-bb543778 {
    margin-right: auto;
    margin-left: calc(50% + 50px);
    text-align: left;
}
.timeline-layout-vertical .pos-above-bb543778 .timeline-card-bb543778::after {
    right: 100%;
    left: auto;
    top: 50%;
    width: 30px;
    height: 2px;
    transform: translateY(-50%);
}

.timeline-layout-vertical .pos-below-bb543778 {
    flex-direction: row-reverse;
}
.timeline-layout-vertical .pos-below-bb543778 .timeline-card-bb543778 {
    margin-left: auto;
    margin-right: calc(50% + 50px);
    text-align: right;
}
.timeline-layout-vertical .pos-below-bb543778 .timeline-card-bb543778::after {
    left: 100%;
    right: auto;
    top: 50%;
    width: 30px;
    height: 2px;
    transform: translateY(-50%);
}

/* ==========================================================================
   Mobile Responsiveness & Adjustments
   ========================================================================== */
@media (max-width: 767px) {
    /* Horizontal Layout switches to vertical scroll cleanly on mobile */
    .timeline-layout-horizontal .timeline-wrapper-bb543778 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-layout-vertical .timeline-line-bb543778 {
        left: 25px;
        transform: none;
    }
    
    .timeline-layout-vertical .timeline-item-bb543778 {
        justify-content: flex-start;
        padding-left: 60px;
        min-height: auto;
        margin-bottom: 25px;
    }
    
    .timeline-layout-vertical .timeline-marker-bb543778 {
        left: 25px;
        transform: translateY(-50%);
        top: 30px;
    }
    
    .timeline-layout-vertical .timeline-item-bb543778.active-marker-bb543778 .timeline-marker-bb543778 {
        transform: translateY(-50%) scale(1.1);
    }
    
    .timeline-layout-vertical .timeline-card-bb543778 {
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
        max-width: 100%;
    }
    
    .timeline-layout-vertical .timeline-card-bb543778::after {
        right: 100% !important;
        left: auto !important;
        top: 30px !important;
        width: 15px !important;
        height: 2px !important;
        transform: translateY(-50%) !important;
    }
}
