/* =========================================
   WORKING PROCESS
   FYVRON COMPOSITE THEME
========================================= */

.working-process-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0 95px;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(23, 74, 145, .42),
            transparent 35%
        ),
        linear-gradient(
            125deg,
            #071a38 0%,
            #0b3778 52%,
            #102d58 100%
        );
    color: #fff;
    isolation: isolate;
}

/* Subtle technical grid */
.working-process-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
    opacity: .45;
}

/* Heading */

.process-heading {
    max-width: 720px;
    margin: 0 auto 65px;
    text-align: center;
}

.process-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent, #ffb800);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.process-kicker-line {
    display: inline-block;
    width: 25px;
    height: 2px;
    background: var(--accent, #ffb800);
}

.process-heading h2 {
    margin: 17px 0 14px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.process-heading h2 span {
    color: var(--accent, #ffb800);
}

.process-heading > p {
    max-width: 570px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.8;
}

.process-heading-icon {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    color: var(--accent, #ffb800);
    font-size: 19px;
}

/* Timeline */

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

/* Horizontal connecting line */

.process-timeline::before {
    content: "";
    position: absolute;
    top: 42px;
    left: 10%;
    right: 10%;
    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(255, 184, 0, .2),
        rgba(255, 184, 0, .85),
        rgba(255, 255, 255, .6),
        rgba(255, 184, 0, .2)
    );
}

/* Individual step */

.process-step {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: center;
}

.process-step-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 86px;
    height: 86px;
    margin: 0 auto 22px;

    border: 2px solid var(--accent, #ffb800);
    border-radius: 50%;
    background: #091a33;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.process-step-marker::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 184, 0, .24);
    border-radius: 50%;
}

.process-step-marker span {
    position: relative;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.5px;
}

.process-step:hover .process-step-marker {
    transform: translateY(-5px);
    background: var(--accent, #ffb800);
    border-color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.process-step:hover .process-step-marker span {
    color: #071a38;
}

.process-step-content {
    padding: 0 4px;
}

.process-step-label {
    display: block;
    margin-bottom: 7px;
    color: var(--accent, #ffb800);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.process-step-content h3 {
    margin: 0 0 11px;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.process-step-content p {
    max-width: 205px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .77);
    font-size: 12px;
    line-height: 1.8;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
    .working-process-section {
        padding: 75px 0;
    }

    .process-heading {
        margin-bottom: 45px;
    }

    .process-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 40px;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step-marker {
        width: 78px;
        height: 78px;
        margin-bottom: 18px;
    }

    .process-step-marker span {
        font-size: 24px;
    }

    .process-step-content h3 {
        font-size: 14px;
    }
}

/* =========================================
   MOBILE - VERTICAL TIMELINE
========================================= */

@media (max-width: 575.98px) {
    .working-process-section {
        padding: 60px 0 65px;
    }

    .process-heading {
        margin-bottom: 38px;
        padding: 0 5px;
    }

    .process-kicker {
        gap: 8px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .process-kicker-line {
        width: 18px;
    }

    .process-heading h2 {
        margin: 14px 0 12px;
        font-size: 30px;
        letter-spacing: -.7px;
    }

    .process-heading > p {
        max-width: 340px;
        font-size: 12px;
        line-height: 1.8;
    }

    .process-heading-icon {
        margin-top: 15px;
    }

    .process-timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    /* Vertical line behind the markers */

    .process-timeline::before {
        display: block;
        top: 28px;
        bottom: 45px;
        left: 32px;
        right: auto;
        width: 2px;
        height: auto;

        background: linear-gradient(
            180deg,
            var(--accent, #ffb800),
            rgba(255, 255, 255, .25),
            var(--accent, #ffb800)
        );
    }

    .process-step {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        text-align: left;
    }

    .process-step-marker {
        width: 66px;
        height: 66px;
        margin: 0;
    }

    .process-step-marker::before {
        inset: 5px;
    }

    .process-step-marker span {
        font-size: 21px;
    }

    .process-step-content {
        padding: 5px 0 0;
    }

    .process-step-label {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .process-step-content h3 {
        margin-bottom: 7px;
        font-size: 15px;
    }

    .process-step-content p {
        max-width: 100%;
        margin: 0;
        font-size: 12px;
        line-height: 1.75;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .process-step-marker {
        transition: none;
    }
}