/* Workflow Section */
.workflow {
    padding: var(--spacing-xxl) 0;
    width: 100%;
}

.workflow-header {
    text-align: center;
    margin-bottom: var(--spacing-xl, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.workflow-tagline {
    font-size: 14px;
    color: #616161;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    font-weight: 500;
}

.workflow-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    color: #0f2e4a;
    max-width: 940px;
    margin: 0 auto;
    letter-spacing: -2.08px;
    font-weight: 500;
    font-family: var(--font-secondary);
}

.workflow-title span {
    font-weight: 300;
    font-style: italic;
}

.workflow-cards-wrapper {
    display: flex;
    gap: 32px;
    max-width: 1216px;
    margin: 0 auto 48px;
    padding: 0 24px;
    /* Give some padding for smaller screens if inner container */
}

.workflow-card {
    flex: 1;
    background-color: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 10px 10px -3.75px rgba(0, 0, 0, 0.06), 0 2.3px 2.3px -2.5px rgba(0, 0, 0, 0.16), 0 0.6px 0.6px -1.25px rgba(0, 0, 0, 0.18);
}

.workflow-card-image {
    background-color: #fafafa;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 10px;
    height: 330px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dots background placeholder */
.workflow-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#d0d0d0 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.8;
}

.workflow-card-image:has(img)::before {
    display: none;
}

.workflow-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Center icon placeholder */
.workflow-card-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    background-color: #616161;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.workflow-card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.workflow-card-title {
    font-size: 22px;
    color: #0f2e4a;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.5;
}

.workflow-card-desc {
    font-size: 16px;
    color: #616161;
    font-weight: 500;
    letter-spacing: -0.32px;
    line-height: 1.5;
}

.workflow-action {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .workflow-title br {
        display: none;
    }

    .workflow-title {
        font-size: clamp(26px, 5vw, 32px);
        /* Slightly smaller on mobile to ensure it fits in 2 lines */
    }

    .workflow-cards-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .workflow-card-image {
        height: 250px;
    }
}