.sheikh_altusi__wrapper {
    margin-top: 95px;
    padding-top: 40px;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.intro>p {
    font-size: 16px;
    font-weight: var(--weight-medium);
    color: var(--color-shades-primary);
    text-align: right;
    line-height: normal;
}

.break-divider {
    width: 100%;
    height: 30px;
}


/* --- Timeline layout --- */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 40px auto 80px;
    padding-right: 200px;
    /* space for the right-side markers */
}

/* vertical connector line running through the markers */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 89px;
    /* aligns with marker centers */
    width: 2px;
    background-color: var(--color-shades-primary);
    opacity: 0.35;
}

.timeline-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 100px;
}

.timeline-section:last-child {
    margin-bottom: 0;
}

/* --- Right-side marker (diamond + heading) --- */
.timeline-marker {
    position: absolute;
    right: -200px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.marker-diamond {
    width: 46px;
    height: 46px;
    background-color: var(--color-surface);
    position: relative;
    z-index: 2;
}

.timeline-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--color-shades-primary);
    background-color: var(--color-surface);
    margin: 0;
    line-height: 1.4;
}

/* --- Content column --- */
.timeline-content {
    flex: 1;
    min-width: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-content p {
    font-size: 16px;
    font-weight: var(--weight-regular);
    color: var(--color-shades-primary);
    line-height: 1.9;
    margin: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-list li {
    position: relative;
    padding-right: 20px;
    font-size: 15px;
    color: var(--color-shades-primary);
    line-height: 1.7;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background-color: var(--color-brand, #1e4d8c);
    transform: rotate(45deg);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .timeline {
        padding-right: 0;
        padding-top: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-section {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 100px;
    }

    .timeline-marker {
        position: static;
        right: auto;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .marker-diamond {
        width: 40px;
        height: 40px;
    }
}



/* --- Timeline animations --- */

/* initial hidden state */
.timeline-section {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* revealed state (toggled by JS on scroll) */
.timeline-section.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* diamond marker draws attention when its section appears */
.timeline-section.is-visible .marker-diamond {
    animation: diamond-pop 0.6s ease;
}

@keyframes diamond-pop {
    0% {
        transform: scale(0.4) rotate(-8deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.15) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* the connector line grows downward once as the timeline enters */
.timeline::before {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.2s ease;
}

.timeline.is-active::before {
    transform: scaleY(1);
}

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .timeline-section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .timeline-section.is-visible .marker-diamond {
        animation: none;
    }

    .timeline::before {
        transform: scaleY(1);
        transition: none;
    }
}