/*
|--------------------------------------------------------------------------
| MASE FORMER PRESIDENTS — TIMELINE
|--------------------------------------------------------------------------
*/

/* INTRO */
.mase-fp-intro {
    margin-bottom: 48px;
}

.mase-fp-intro__eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
}

.mase-fp-intro__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #0a1f44;
    margin: 0 0 16px;
}

.mase-fp-intro__text {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 720px;
}

/* TIMELINE WRAPPER */
.mase-fp-timeline {
    --fp-timeline-color: #6B3FE3;
    --fp-year-col: 140px;
    --fp-marker-col: 40px;
    --fp-row-top: 6px; /* shared top offset for year, dot, and content */
    margin: 40px 0 60px;
}

/* RESET LIST */
.mase-fp-timeline .mase-fp-timeline__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mase-fp-timeline .mase-fp-timeline__list > li.mase-fp-timeline__item {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
    background: none !important;
    background-image: none !important;
}

.mase-fp-timeline .mase-fp-timeline__list > li.mase-fp-timeline__item::before,
.mase-fp-timeline .mase-fp-timeline__list > li.mase-fp-timeline__item::after,
.mase-fp-timeline .mase-fp-timeline__list > li.mase-fp-timeline__item::marker {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
}

/* TIMELINE ITEM — grid: year | marker | content */
.mase-fp-timeline .mase-fp-timeline__item {
    display: grid !important;
    grid-template-columns: var(--fp-year-col) var(--fp-marker-col) 1fr;
    align-items: stretch;
    gap: 0;
    padding: 0 0 48px !important;
    position: relative;
}

.mase-fp-timeline .mase-fp-timeline__item:last-child {
    padding-bottom: 0 !important;
}

/*
 * KEY: All three columns share the same --fp-row-top offset
 * so the year, dot, and content top-align perfectly.
 */

/* YEAR */
.mase-fp-timeline .mase-fp-timeline__year {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--fp-timeline-color);
    white-space: nowrap;
    padding-top: var(--fp-row-top);
}

/* MARKER (dot + connecting line) */
.mase-fp-timeline .mase-fp-timeline__marker {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    width: 100%;
    min-height: 100%;
}

.mase-fp-timeline .mase-fp-timeline__dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fp-timeline-color) !important;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 4px #ffffff;
    border: none;
    /* match the visual middle of the year text (24px font, line-height 1) */
    margin-top: calc(var(--fp-row-top) + 5px);
}

.mase-fp-timeline .mase-fp-timeline__line {
    width: 2px;
    background: #e5e7eb;
    margin-top: 4px;
    margin-bottom: -48px;
    justify-self: center;
    align-self: stretch;
    min-height: 40px;
}

.mase-fp-timeline .mase-fp-timeline__item:last-child .mase-fp-timeline__line {
    display: none;
}

/* CONTENT */
.mase-fp-timeline .mase-fp-timeline__content {
    padding-left: 8px;
    padding-top: var(--fp-row-top);
}

.mase-fp-timeline .mase-fp-timeline__media {
    width: 140px;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: 10px;
    background: var(--light, #f3f4f6);
    margin: 0 0 14px;
}

.mase-fp-timeline .mase-fp-timeline__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.mase-fp-timeline .mase-fp-timeline__media a:hover .mase-fp-timeline__image {
    transform: scale(1.04);
}

.mase-fp-timeline .mase-fp-timeline__name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: #0a1f44;
    margin-top: 2px;
}

.mase-fp-timeline .mase-fp-timeline__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mase-fp-timeline .mase-fp-timeline__name a:hover {
    color: var(--fp-timeline-color);
}

.mase-fp-timeline .mase-fp-timeline__text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-top: 8px;
}

.mase-fp-timeline .mase-fp-timeline__text p {
    margin: 0 0 8px;
}

.mase-fp-timeline .mase-fp-timeline__text p:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .mase-fp-timeline {
        --fp-year-col: 100px;
        --fp-marker-col: 28px;
    }

    .mase-fp-timeline .mase-fp-timeline__year {
        font-size: 16px;
    }

    .mase-fp-timeline .mase-fp-timeline__dot {
        width: 12px;
        height: 12px;
    }

    .mase-fp-timeline .mase-fp-timeline__media {
        width: 110px;
    }

    .mase-fp-timeline .mase-fp-timeline__name {
        font-size: 16px;
    }

    .mase-fp-timeline .mase-fp-timeline__text {
        font-size: 14px;
    }

    .mase-fp-intro__title {
        font-size: 24px;
    }
}