.a2z-timeline-wrapper {
    position: relative;
    padding: 20px 0;
    font-family: "Inter", Sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Central Line */
/* Central Line */
.a2z-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    height: 0;
    /* Default invisible until JS calculates */
    width: 1px;
    background: #D9D9D9;
    transform: translateX(-50%);
    transition: height 0.5s ease-out;
    /* Smooth growth if desired */
}

/* Animations */
.a2z-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    width: 100%;

    /* Animation Defaults (All Devices) */
    opacity: 0;
    transform: translateY(30px);
    /* Vertical Slide Up */
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.a2z-timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay (Optional - handled by observer timing usually, but simple CSS delay can be nice) */
/* Actually, IntersectionObserver handles per-element appearance, which naturally staggers as you scroll. */


/* Content Box - The Card */
.a2z-timeline-content {
    width: 45%;
    padding: 32px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
    /* Ensure text aligns correctly inside the card */
    text-align: left;
}

/* Spacer for the other side */
.a2z-timeline-spacer {
    width: 45%;
}

/* Marker (Dot) */
.a2z-timeline-marker-wrapper {
    position: absolute;
    left: 50%;
    top: 32px;
    /* Align with top padding of card approx */
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: transparent;
}

/* Background for the marker to hide the line behind it? 
   The original uses an absolute icon. 
   If we want the line to NOT go through the dot, we need a background. 
   But the dot is a defined SVG circle. 
   Let's check the SVG: it IS a circle path. 
   The container of the icon might need a white bg if the icon is transparent. 
   But the icon has `fill`. 
*/

.a2z-timeline-marker svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

/* Typography matching post-140.css */
.a2z-timeline-year {
    font-family: "Inter", Sans-serif;
    font-size: 72px;
    font-weight: 400;
    color: #0A0A0A;
    margin: 0 0 10px 0;
    line-height: 1;
}

.a2z-timeline-title {
    font-family: "Inter", Sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #0A0A0A;
    margin: 0 0 15px 0;
}

.a2z-timeline-description {
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #6F6F6F;
    line-height: 1.6;
}

.a2z-timeline-description p {
    margin-bottom: 0;
    /* Remove default p margin inside the desc */
}

/* Alternating Layout */

/* 
   NOTE: The first child in .a2z-timeline-wrapper is .a2z-timeline-line!
   So the Items correspond to indices 2, 3, 4, 5...
   Item 1 = Child 2 (Even) -> We want this LEFT -> flex-direction: row
   Item 2 = Child 3 (Odd)  -> We want this RIGHT -> flex-direction: row-reverse
*/

/* Odd children (Items 2, 4...) - Content Right */
.a2z-timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Even children (Items 1, 3...) - Content Left */
.a2z-timeline-item:nth-child(even) {
    flex-direction: row;
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .a2z-timeline-content {
        width: 42%;
        /* Slightly narrower cards */
        padding: 24px;
    }

    .a2z-timeline-year {
        font-size: 56px;
        /* Reduced from 72px */
    }

    .a2z-timeline-title {
        font-size: 22px;
    }

    .a2z-timeline-item {
        margin-bottom: 40px;
        /* Tighter spacing */
    }
}

/* Responsive Mobile (< 768px) */
@media (max-width: 767px) {
    .a2z-timeline-line {
        left: 20px;
    }

    .a2z-timeline-item {
        flex-direction: column !important;
        margin-bottom: 40px;
        padding-left: 0;
    }

    .a2z-timeline-content {
        width: calc(100% - 70px);
        /* 50px Left Margin + 20px Right Gutter */
        margin-left: 50px;
        text-align: left !important;
        padding: 24px;
        /* Reduced padding */
    }

    .a2z-timeline-spacer {
        display: none;
    }

    .a2z-timeline-marker-wrapper {
        left: 20px;
        top: 24px;
        /* Align with new padding-top */
        transform: translateX(-50%);
    }

    .a2z-timeline-year {
        font-size: 40px;
        /* Better fit for small screens */
    }

    .a2z-timeline-title {
        font-size: 18px;
    }

    .a2z-timeline-description {
        font-size: 15px;
    }
}