/* ============================================================
   Homepage — Assessment & Certification Process
   Responsive timeline redesign
   ============================================================ */

.process-section {
    --process-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    --process-line: linear-gradient(90deg, var(--govt-navy, #0b3d7c), var(--govt-saffron, #e8850c));
    --process-card-bg: #ffffff;
    --process-card-border: rgba(11, 61, 124, 0.1);
    --process-card-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    --process-pad-y: clamp(2.25rem, 5vw, 3.75rem);
    --process-pad-x: clamp(0.85rem, 3vw, 1.5rem);
    --process-gap: clamp(0.85rem, 2vw, 1.25rem);
    position: relative;
    padding: var(--process-pad-y) 0;
    background: var(--process-bg);
    overflow: hidden;
}

.process-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 18%, rgba(11, 61, 124, 0.04) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(232, 133, 12, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.process-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--process-pad-x);
    box-sizing: border-box;
}

.process-header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto clamp(1.5rem, 3.5vw, 2.5rem);
}

.process-header .section-eyebrow {
    margin-bottom: 0.55rem;
}

.process-header .section-title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.4rem, 1.5vw + 0.95rem, 2.1rem);
    font-weight: 800;
    color: var(--govt-navy, #0b3d7c);
    line-height: 1.2;
    padding-bottom: 0;
}

/* No accent bar through the title (homepage-enhance adds ::after) */
.process-section .section-title::after {
    display: none !important;
    content: none !important;
}

.process-header .section-subtitle {
    margin: 0;
    font-size: clamp(0.86rem, 0.45vw + 0.72rem, 1.02rem);
    color: #64748b;
    line-height: 1.5;
}

/* Timeline list reset */
.process-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--process-gap);
    position: relative;
}

.process-step {
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
    position: relative;
}

/* Kill legacy welcome-redesign horizontal connectors on all breakpoints */
.process-section .process-step::after {
    display: none !important;
    content: none !important;
}

/* Step card */
.process-step__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    background: var(--process-card-bg);
    border: 1px solid var(--process-card-border) !important;
    border-radius: 14px !important;
    padding: clamp(1rem, 2vw, 1.35rem) clamp(0.85rem, 1.8vw, 1.1rem);
    box-shadow: var(--process-card-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.process-step__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(11, 61, 124, 0.12);
    border-color: rgba(11, 61, 124, 0.2) !important;
}

.process-step__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.85rem;
}

.process-step__badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--govt-saffron, #e8850c);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.55rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(232, 133, 12, 0.35);
    z-index: 2;
}

.process-step__icon {
    width: clamp(3rem, 5.5vw, 3.65rem);
    height: clamp(3rem, 5.5vw, 3.65rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--govt-navy-light, #0e4a94), var(--govt-navy, #0b3d7c));
    color: #fff;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    box-shadow: 0 8px 20px rgba(11, 61, 124, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step__card:hover .process-step__icon {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 26px rgba(11, 61, 124, 0.28);
}

.process-step__title {
    margin: 0 0 0.45rem;
    font-size: clamp(0.92rem, 0.5vw + 0.78rem, 1.08rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.process-step__tag {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

.process-step__tag--required {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.process-step__tag--review {
    background: rgba(11, 61, 124, 0.08);
    color: var(--govt-navy, #0b3d7c);
    border: 1px solid rgba(11, 61, 124, 0.15);
}

.process-step__tag--outcome {
    background: rgba(19, 136, 8, 0.1);
    color: #0f6c06;
    border: 1px solid rgba(19, 136, 8, 0.2);
}

.process-note {
    margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
    max-width: 42rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(11, 61, 124, 0.06);
    border: 1px solid rgba(11, 61, 124, 0.12);
    color: #475569;
    font-size: clamp(0.78rem, 0.35vw + 0.68rem, 0.88rem);
    line-height: 1.5;
    text-align: center;
}

.process-note i {
    color: var(--govt-navy, #0b3d7c);
    margin-right: 0.35rem;
}

.process-step__text {
    margin: 0;
    font-size: clamp(0.78rem, 0.35vw + 0.68rem, 0.9rem);
    color: #64748b;
    line-height: 1.55;
}

/* Desktop — 5-column grid (no connector lines) */
@media (min-width: 1200px) {
    .process-timeline {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: clamp(0.75rem, 1.2vw, 1rem);
        padding-top: 0.25rem;
    }

    .process-step {
        z-index: 1;
    }
}

/* Large tablet — 3 + 2 layout */
@media (min-width: 992px) and (max-width: 1199px) {
    .process-timeline {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: var(--process-gap);
    }

    .process-step:nth-child(1),
    .process-step:nth-child(2),
    .process-step:nth-child(3) {
        grid-column: span 2;
    }

    .process-step:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .process-step:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Tablet — 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-step:last-child {
        grid-column: 1 / -1;
        max-width: min(100%, 22rem);
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile — vertical timeline cards */
@media (max-width: 767px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .process-step {
        position: relative;
        padding-left: 0.35rem;
    }

    .process-step:not(:last-child)::after {
        display: block !important;
        content: "" !important;
        position: absolute;
        left: 2.15rem;
        top: 4.25rem;
        bottom: -0.85rem;
        width: 2px;
        background: linear-gradient(180deg, rgba(11, 61, 124, 0.35), rgba(232, 133, 12, 0.25));
        z-index: 0;
    }

    .process-step__card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 0;
        padding: 0.95rem 1rem;
        position: relative;
        z-index: 1;
    }

    .process-step__visual {
        margin: 0 0.9rem 0 0;
        flex-shrink: 0;
    }

    .process-step__badge {
        top: -0.25rem;
        right: -0.25rem;
    }

    .process-step__icon {
        width: 2.85rem;
        height: 2.85rem;
        font-size: 1.1rem;
    }

    .process-step__content {
        flex: 1;
        min-width: 0;
        padding-top: 0.15rem;
    }

    .process-step__title {
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 380px) {
    .process-step__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-step__visual {
        margin: 0 0 0.65rem;
    }

    .process-step:not(:last-child)::after {
        left: 50%;
        top: 5.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-step__card,
    .process-step__icon {
        transition: none;
    }

    .process-step__card:hover,
    .process-step__card:hover .process-step__icon {
        transform: none;
    }
}
