/* OSCE steps timeline (universal-page "Steps type 3" block) — card layout.
   Cards auto-fit into as many columns as fit the row and wrap on their own,
   so it looks right at every width with no JS and no fixed column count. */

.osce-timeline {
    background-color: #fafafa;
}

.osce-timeline-header {
    margin-bottom: 30px;
}

.osce-timeline-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 30px;
    color: #787878;
}

.osce-timeline-title * {
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

.osce-timeline-subtitle {
    margin: 0;
    color: #787878;
}

.osce-timeline-subtitle * {
    margin: 0;
}

/* ---- Cards grid ---- */
.osce-timeline-content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 26px 28px;
    background-color: #fff;
    border: 1px solid #ececf2;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(40, 30, 80, .05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(40, 30, 80, .1);
}

/* Slim gradient accent along the top of each card. */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(270deg, #f06543 6.77%, #08a835 49.48%, #3c97ef 93.23%);
}

.timeline-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #cdea68;
    color: #232323;
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
}

.timeline-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #232323;
}

.timeline-title * {
    margin: 0;
    font-weight: 600;
}

.timeline-subtitle {
    margin: 6px 0 0;
    color: #787878;
    line-height: 1.5;
}

.timeline-subtitle * {
    margin: 0;
}

@media screen and (max-width: 575px) {
    .osce-timeline-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-item {
        padding: 24px 20px 22px;
        gap: 14px;
    }
}
