/* --- Global Section and Container Styles --- */
.ourapproach-workflow-section {
    background: var(--opco-bg);
    padding: var(--opco-spacing-section) 0;
    overflow: hidden;
}

.ourapproach-workflow-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Desktop Grid Layout --- */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    grid-template-rows: repeat(5, auto);
    row-gap: 0.3rem;
    column-gap: 0.15rem;
    align-items: stretch;
    justify-items: center;
    position: relative;
    width: 100%;
}

/* --- Grid Item Positioning --- */
.step-1 { grid-area: 1 / 1 / 2 / 2; }
.arrow-1-2 { grid-area: 1 / 2 / 2 / 3; }
.step-2 { grid-area: 1 / 3 / 2 / 4; }
.arrow-2-4 { grid-area: 2 / 3 / 3 / 4; justify-self: center; }
.step-4 { grid-area: 3 / 3 / 4 / 4; }
.arrow-4-3 { grid-area: 3 / 2 / 4 / 3; }
.step-3 { grid-area: 3 / 1 / 4 / 2; }
.arrow-3-5 { grid-area: 4 / 1 / 5 / 2; justify-self: center; }
.step-5 { grid-area: 5 / 1 / 6 / 2; }
.arrow-5-6 { grid-area: 5 / 2 / 6 / 3; }
.step-6 { grid-area: 5 / 3 / 6 / 4; }


/* --- General Item Styles & Animation Setup --- */
.workflow-item {
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--opco-font-main);
    min-width: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.workflow-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Step Card Styles (Universal Layout) --- */
.workflow-step {
    border: 3px solid var(--opco-accent);
    background: var(--opco-bg-card);
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(47, 41, 41, 0.07);
    padding: 1.5rem;
    min-width: 210px;
    line-height: 1.38;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    /* This now applies to ALL screen sizes */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.step-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.step-label {
    display: inline-block;
    color: var(--opco-accent);
    font-family: var(--opco-font-main);
    font-weight: 700;
}

.workflow-step .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--opco-accent);
    color: var(--opco-primary);
    font-family: var(--opco-font-headings);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 9px 0 rgba(212, 175, 55, 0.07);
}

.workflow-step .step-num i {
    font-size: 1.09em;
    color: var(--opco-primary);
}

.workflow-step .step-content {
    min-width: 0;
    flex: 1 1 0;
}

.workflow-step h3 {
    font-family: var(--opco-font-headings);
    margin: 0 0 0.42rem 0;
    line-height: 1.11;
}

.step-desc {
    color: var(--opco-text-secondary);
    margin-bottom: 0.45em;
}

.step-outputs {
    padding-left: 1.08em;
    margin: 0 0 0.12em 0;
    color: var(--opco-text-secondary);
    /* For centered cards, keeping the list text left-aligned is better for readability */
    text-align: left;
    display: inline-block;
}

.step-outputs li {
    margin-bottom: 0.13em;
}

/* --- Arrow Styles --- */
.workflow-arrow {
    font-size: 3.2rem;
    color: var(--opco-accent);
    min-height: 48px;
    line-height: 1;
}

.workflow-arrow i {
    font-size: 3.2rem;
    color: var(--opco-accent);
}

.desktop-arrow {
    display: inline-block;
}

.mobile-arrow {
    display: none;
}

/* --- Responsive Styles --- */
@media (max-width: 1300px) {
    .ourapproach-workflow-container {
        max-width: 100vw;
        padding: 0 1.2rem;
    }
}

@media (max-width: 900px) {
    .workflow-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: center;
    }

    .workflow-item {
        width: 100%;
        min-width: unset;
        justify-content: center;
    }
    
    .workflow-step {
        max-width: 98vw;
        margin: 0.38rem auto 0.12rem auto;
    }

    .desktop-arrow {
        display: none !important;
    }

    .mobile-arrow {
        display: inline-block !important;
    }

    .workflow-arrow i {
        font-size: 2.8rem !important;
        transform: none !important;
    }
    
    /* MOBILE REORDERING FIX */
    .step-1 { order: 1; }
    .arrow-1-2 { order: 2; }
    .step-2 { order: 3; }
    .arrow-2-4 { order: 4; }
    .step-3 { order: 5; }
    .arrow-4-3 { order: 6; }
    .step-4 { order: 7; }
    .arrow-3-5 { order: 8; }
    .step-5 { order: 9; }
    .arrow-5-6 { order: 10; }
    .step-6 { order: 11; }
}