.elvia-process-rail,
.elvia-process-rail * {
    box-sizing: border-box;
}

.elvia-process-rail {
    --epr-dark: #062b2b;
    --epr-accent: #ffb229;
    --epr-line: #dcdad1;
    --epr-card-bg: #ffffff;
    --epr-border: #e8e7df;
    --epr-muted: #66736f;
    width: 100%;
    direction: rtl;
    color: var(--epr-dark);
    font-family: inherit;
}

.epr-track {
    position: relative;
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 470px;
    padding: 90px 8px;
}

.epr-track::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--epr-line) 7%, var(--epr-line) 93%, transparent);
    z-index: 1;
}

.epr-track::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    transform: translateY(-50%);
    background-image: radial-gradient(circle, rgba(6, 43, 43, .35) 1.6px, transparent 2px);
    background-size: 22px 2px;
    opacity: .55;
    z-index: 2;
    pointer-events: none;
}

.epr-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    z-index: 3;
}

.epr-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--epr-accent);
    color: var(--epr-dark);
    box-shadow: 0 16px 34px rgba(255, 178, 41, .28);
    z-index: 6;
    transition: transform .25s ease, box-shadow .25s ease;
}

.epr-pin::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 178, 41, .35);
}

.epr-pin span {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    direction: ltr;
}

.epr-card {
    position: absolute;
    left: 50%;
    width: min(245px, 92vw);
    padding: 20px 20px 22px;
    border-radius: 22px;
    background: var(--epr-card-bg);
    border: 1px solid var(--epr-border);
    box-shadow: 0 18px 42px rgba(6, 43, 43, .08);
    transform: translateX(-50%);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    z-index: 5;
}

.epr-card::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 46px;
    background: var(--epr-line);
    transform: translateX(-50%);
}

.epr-item:nth-child(odd) .epr-card {
    bottom: calc(50% + 58px);
}

.epr-item:nth-child(odd) .epr-card::before {
    bottom: -46px;
}

.epr-item:nth-child(even) .epr-card {
    top: calc(50% + 58px);
}

.epr-item:nth-child(even) .epr-card::before {
    top: -46px;
}

.epr-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 14px;
    background: rgba(255, 178, 41, .15);
    color: var(--epr-dark);
}

.epr-icon svg,
.epr-icon i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.epr-card h3 {
    margin: 0 0 8px;
    color: var(--epr-dark);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.55;
}

.epr-card p {
    margin: 0;
    color: var(--epr-muted);
    font-size: 13.5px;
    line-height: 1.9;
}

.epr-item:hover .epr-pin {
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow: 0 22px 42px rgba(255, 178, 41, .38);
}

.epr-item:hover .epr-card {
    transform: translateX(-50%) translateY(-4px);
    border-color: rgba(255, 178, 41, .65);
    box-shadow: 0 22px 50px rgba(6, 43, 43, .12);
}

.epr-item:nth-child(even):hover .epr-card {
    transform: translateX(-50%) translateY(4px);
}

@media (max-width: 1024px) {
    .epr-track {
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .epr-card {
        width: 220px;
        padding: 18px;
    }

    .epr-card h3 {
        font-size: 16px;
    }

    .epr-card p {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .epr-track {
        display: block;
        min-height: unset !important;
        padding: 0;
    }

    .epr-track::before {
        top: 0;
        right: 26px;
        bottom: 0;
        left: auto;
        width: 2px;
        height: auto;
        transform: none;
        background: var(--epr-line);
    }

    .epr-track::after {
        display: none;
    }

    .epr-item {
        position: relative;
        display: block;
        padding: 0 72px 22px 0;
        height: auto;
        min-height: 0;
    }

    .epr-item:last-child {
        padding-bottom: 0;
    }

    .epr-pin {
        top: 0;
        right: 0;
        left: auto;
        width: 52px;
        height: 52px;
        transform: none;
    }

    .epr-pin::before {
        inset: -6px;
    }

    .epr-pin span {
        font-size: 14px;
    }

    .epr-card,
    .epr-item:nth-child(odd) .epr-card,
    .epr-item:nth-child(even) .epr-card {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        transform: none;
    }

    .epr-card::before {
        display: none;
    }

    .epr-item:hover .epr-card,
    .epr-item:nth-child(even):hover .epr-card {
        transform: none;
    }
}
