/* Timeline Wrapper */
.tl-f36c3692-wrapper {
    position: relative;
    padding: 20px 0;
    font-family: inherit;
    overflow: hidden;
}

.tl-f36c3692-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px; /* Customizable vertical spacing */
}

/* Central Line */
.tl-f36c3692-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline Item Container */
.tl-f36c3692-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center content */
    width: 100%;
    z-index: 2;
}

/* Alternating Layout */
.tl-f36c3692-item:nth-child(odd) { flex-direction: row; }
.tl-f36c3692-item:nth-child(even) { flex-direction: row-reverse; }

/* Reversed Alternating Layout via Class */
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(odd) { flex-direction: row-reverse; }
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(even) { flex-direction: row; }

/* Columns */
.tl-f36c3692-text-col,
.tl-f36c3692-image-col {
    width: calc(50% - 60px); /* Adjusts via control */
    display: flex;
    flex-direction: column;
}

.tl-f36c3692-text-col {
    gap: 15px; /* Default content spacing */
}

/* Remove default margins from text elements to let gap handle spacing */
.tl-f36c3692-subheading,
.tl-f36c3692-heading,
.tl-f36c3692-desc {
    margin: 0;
}

/* Remove bottom margin from last paragraph in description to prevent double spacing */
.tl-f36c3692-desc p:last-child {
    margin-bottom: 0;
}

/* Left-Side Cards (Right-Aligned Text within its col) */
.tl-f36c3692-item:nth-child(odd) .tl-f36c3692-text-col {
    text-align: right;
    align-items: flex-end;
}
.tl-f36c3692-item:nth-child(even) .tl-f36c3692-text-col {
    text-align: left;
    align-items: flex-start;
}

.tl-f36c3692-item:nth-child(odd) .tl-f36c3692-image-col { align-items: flex-start; }
.tl-f36c3692-item:nth-child(even) .tl-f36c3692-image-col { align-items: flex-end; }

/* Reversed Alignments */
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(odd) .tl-f36c3692-text-col { text-align: left; align-items: flex-start; }
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(even) .tl-f36c3692-text-col { text-align: right; align-items: flex-end; }

.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(odd) .tl-f36c3692-image-col { align-items: flex-end; }
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(even) .tl-f36c3692-image-col { align-items: flex-start; }


/* Marker Wrapper - explicitly placed to the right of the center line */
.tl-f36c3692-marker-wrapper {
    position: absolute;
    /* top controlled via dynamic setting */
    top: 50%;
    transform: translateY(-50%);
    left: calc(50% + 15px); /* Adjusted by control */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

/* Ensure the dot aligns nicely */
.tl-f36c3692-marker-wrapper .tl-f36c3692-year {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 8px;
    background: transparent;
    padding: 0;
}

.tl-f36c3692-marker-wrapper .tl-f36c3692-dot {
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #eff6ff;
}

.tl-f36c3692-mobile-marker {
    display: none; /* hidden on desktop */
}

/* Typography */
.tl-f36c3692-subheading { color: #3b82f6; font-size: 0.9rem; font-weight: 500; margin-bottom: 0; }
.tl-f36c3692-heading { font-size: 1.8rem; font-weight: 700; color: #111827; margin: 0; text-decoration: none; line-height: 1.2; display: inline-block; }
a.tl-f36c3692-heading:hover { color: #3b82f6; }
.tl-f36c3692-desc { color: #4b5563; font-size: 1rem; line-height: 1.6; margin: 0; }

/* Button */
.tl-f36c3692-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    background-color: #1e293b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}
.tl-f36c3692-btn:hover {
    background-color: #334155;
    color: #fff;
}

/* Keep button inside its alignment box */
.tl-f36c3692-item:nth-child(odd) .tl-f36c3692-btn { align-self: flex-end; }
.tl-f36c3692-item:nth-child(even) .tl-f36c3692-btn { align-self: flex-start; }
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(odd) .tl-f36c3692-btn { align-self: flex-start; }
.tl-f36c3692-reversed .tl-f36c3692-item:nth-child(even) .tl-f36c3692-btn { align-self: flex-end; }

/* Mobile alignment override for button */
@media (max-width: 1024px) {
    .tl-f36c3692-item:nth-child(odd) .tl-f36c3692-btn,
    .tl-f36c3692-item:nth-child(even) .tl-f36c3692-btn,
    .tl-f36c3692-reversed .tl-f36c3692-item:nth-child(odd) .tl-f36c3692-btn,
    .tl-f36c3692-reversed .tl-f36c3692-item:nth-child(even) .tl-f36c3692-btn {
        align-self: flex-start;
    }
}

/* Images */
.tl-f36c3692-image-col img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    display: block;
}

/* Responsive - Mobile/Tablet Screens */
@media (max-width: 1024px) {
    .tl-f36c3692-container {
        padding-left: 30px; /* Make space for the left-aligned line */
    }

    .tl-f36c3692-line {
        display: block !important;
        left: 30px; /* Position line on the left */
        transform: translateX(-50%);
    }

    .tl-f36c3692-marker-wrapper {
        display: none; /* Remove desktop marker */
    }

    .tl-f36c3692-item,
    .tl-f36c3692-item:nth-child(odd),
    .tl-f36c3692-item:nth-child(even),
    .tl-f36c3692-reversed .tl-f36c3692-item:nth-child(odd),
    .tl-f36c3692-reversed .tl-f36c3692-item:nth-child(even) {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 20px; /* Space between line and content */
    }

    .tl-f36c3692-text-col,
    .tl-f36c3692-image-col {
        width: 100% !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .tl-f36c3692-text-col { order: 2; margin-bottom: 20px; }
    .tl-f36c3692-image-col { order: 3; }

    .tl-f36c3692-mobile-marker {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        position: relative;
    }

    .tl-f36c3692-mobile-dot {
        position: absolute;
        left: -20px; /* Exact distance to center over the line */
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background-color: #3b82f6;
        border-radius: 50%;
        box-shadow: 0 0 0 4px #eff6ff;
        z-index: 2;
    }
    
    .tl-f36c3692-mobile-marker .tl-f36c3692-year {
        display: inline-block;
        font-size: 1rem;
        font-weight: 600;
        color: #3b82f6;
        background: transparent;
        padding: 0;
        margin: 0;
        margin-left: 10px; /* Space from dot */
    }
}
