.how-it-works-section {
    background-color: #f6faff;
    padding-bottom: 80px;
    overflow: hidden;
}

.how-it-works-header {
    background: linear-gradient(135deg, #010a37 40%, #446cff 100%);
    padding: 80px 0 120px 0;
    position: relative;
}

.steps-wrapper {
    margin-top: -160px;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    height: 100%;
}

.step-icon-wrapper {
    margin-bottom: 1.5rem;
}

/* Icon wrapper */
.step-card .icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--yellow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
}

/* Icon inside wrapper */
.step-card .icon-wrap img {
    width: 42px;
    height: 42px;
    stroke: var(--yellow);
    fill: none;
    stroke-width: 1.8;
}

.step-title {
    color: #003451;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Feature Cards Section */
.feature-cards-section {
    padding: 15px 0 15px 0;
    background-color: #ecf2fd;
    border-radius: 24px;
}

.feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
}

.feature-illustration {
    text-align: center;
    margin-bottom: 2rem;
}

.illustration-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    color: #003451;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    background-color: white;
    border-radius: 24px;
    width: fit-content;
    border: 1px solid #e1e2e8;
}

.feature-item span {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-check {
    color: #10b981 !important;
    font-size: 1rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Feature Buttons */
.feature-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: auto;
}

.businesses-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.businesses-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.freelancers-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.freelancers-btn:hover {
    background: linear-gradient(135deg, #e5890b 0%, #c2670a 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Media Queries */
@media (max-width: 767.98px) {
    .how-it-works-section {
        padding-bottom: 0px;
    }
    .how-it-works-header {
        padding: 60px 0 80px 0;
    }

    .steps-wrapper {
        margin-top: -110px;
    }

    .step-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .feature-list {
        margin: 0;
    }

    .feature-cards-section {
        padding: 0px 0 60px 0;
        background-color: #f6fafe;
    }

    .business-features-card {
        background-color: #e1eafd !important;
    }

    .how-it-works-section .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        background-color: #f2efe9;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .feature-item span {
        font-size: 0.8rem;
    }

    .how-it-works-section .feature-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .illustration-img {
        width: 150px;
        height: 120px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .step-card {
        margin-bottom: 2rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (min-width: 1200px) {
    .how-it-works-header {
        padding: 100px 0 140px 0;
    }

    .step-card {
        padding: 3rem 2.5rem;
    }

    .feature-card {
        padding: 3rem;
    }
}
