/*--------------------------------------------------------------
# Workflow Integration Section (Reusable Component)
--------------------------------------------------------------*/
.workflow-integration-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 120px 0 80px; 
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.workflow-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
    gap: 60px;
    max-width: 1280px;
    width: 100%;
    box-sizing: border-box;
}

.workflow-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 711px;
    width: 100%;
}

.workflow-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(34, 140, 34, 0.6);
}

.workflow-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1E2939;
    margin: 0;
}

.workflow-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #0A1837;
    margin: 0;
}

.workflow-steps-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.workflow-step-card {
    flex: 1;
    position: relative;
    border-radius: 48px;
    box-sizing: border-box;
    padding: 92px 24px 24px;
    min-height: 466px;
    background-color: #FFFFFF; /* For the gray cutout block in the corner */
    display: flex;
    flex-direction: column;
}

/* Card Colored Backgrounds (Pseudo Element) */
.workflow-step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 48px 0 48px 48px; /* Top right corner must be rectangular to cut it evenly */
    z-index: 1;
}

.workflow-step-card.step-1::before {
    background-color: #E8F5DB;
}

.workflow-step-card.step-2::before {
    background-color: #014B24;
}
.workflow-step-card.step-2 .workflow-step-title,
.workflow-step-card.step-2 .workflow-step-desc {
    color: #FFFFFF;
}

.workflow-step-card.step-3::before {
    background-color: #31B331;
}
.workflow-step-card.step-3 .workflow-step-title,
.workflow-step-card.step-3 .workflow-step-desc {
    color: #FFFFFF;
}

/* Circular Number Position */
.workflow-step-number-container {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 104px;
    height: 104px;
    z-index: 5;
}

/* The pristine concentric circle cutout (white) */
.workflow-step-mask-fix {
    position: absolute;
    top: -1px; /* Overlap 1px to prevent sub-pixel background bleed */
    right: -1px;
    width: 106px; /* 104 + 2 for overlap */
    height: 106px;
    background: #FFFFFF;
    border-bottom-left-radius: 52px;
    z-index: 1;
}

/* Fillet for top-edge smooth transition */
.workflow-step-mask-fix::before {
    content: '';
    position: absolute;
    top: 0px; left: -24px; 
    width: 25px; height: 24px;
    background: radial-gradient(circle at 0px 24px, transparent 23.5px, #FFFFFF 24px);
}

/* Fillet for right-edge smooth transition */
.workflow-step-mask-fix::after {
    content: '';
    position: absolute;
    bottom: -23px; right: 0px; 
    width: 25px; height: 24px;
    background: radial-gradient(circle at 0px 24px, transparent 23.5px, #FFFFFF 24px);
}

.workflow-step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    z-index: 3;
}

.workflow-step-number span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: #0A1837;
}

/* Step Card Text Content */
.workflow-step-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
    position: relative;
    z-index: 5;
}

.workflow-step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #0A1837;
    margin: 0;
}

.workflow-step-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #0A1837;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .workflow-steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .workflow-step-card {
        flex: none;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 250px;
        padding: 56px 32px 32px;
    }
}

@media (max-width: 768px) {
    .workflow-title {
        font-size: 32px;
    }
    .workflow-description {
        font-size: 18px;
    }
    .workflow-step-title {
        font-size: 24px;
        max-width: calc(100% - 85px); /* Leave more room for the circle cutout */
    }
    
    .workflow-step-desc {
        max-width: calc(100% - 20px);
    }
    
    /* Scale down the number circle and cutout for mobile */
    .workflow-step-number-container {
        width: 80px;
        height: 80px;
    }
    
    .workflow-step-mask-fix {
        width: 82px; /* 80 + 2 overlap */
        height: 82px;
        border-bottom-left-radius: 40px;
    }
    
    .workflow-step-mask-fix::before {
        left: -16px;
        width: 17px; height: 16px;
        background: radial-gradient(circle at 0px 16px, transparent 15.5px, #FFFFFF 16px);
    }
    
    .workflow-step-mask-fix::after {
        bottom: -15px;
        width: 17px; height: 16px;
        background: radial-gradient(circle at 0px 16px, transparent 15.5px, #FFFFFF 16px);
    }
    
    .workflow-step-number {
        width: 76px;
        height: 76px;
        top: -3px;
        right: -3px;
    }
    
    .workflow-step-number span {
        font-size: 28px;
    }
}
