/* How It Works Section */
#how-it-works {
    padding: 60px 20px;
    background: linear-gradient(45deg, #f5e1e1, #fff);
    text-align: center;
}

#how-it-works h2 {
    font-size: 2.5rem;
    margin-left: 100px;
    color: #057c85;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
    text-align: left;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step {
    flex: 0 0 30%;
    background-color: #ffffff;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-in-out;
    transition: transform 0.3s;
}

.step:hover {
    transform: scale(1.05);
}

.step img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.step p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.step a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.step a:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .steps-container {
        display: flex;
        flex-direction: column;   /* Stack items vertically */
        align-items: center;      /* Center the items */
        gap: 20px;                /* Add spacing between items */
    }

    .step {
        flex: 1 1 100%;           /* Full width on mobile */
        max-width: 90%;           /* Add padding on the sides */
        padding: 20px;
        box-sizing: border-box;
        text-align: center;       /* Center-align content */
    }

    .step img {
        width: 40px;              /* Slightly reduce icon size */
        height: 40px;
        margin-bottom: 10px;
    }

    .step h3 {
        font-size: 1.4rem;        /* Adjust heading size */
        margin-bottom: 8px;
    }

    .step p {
        font-size: 1rem;          /* Adjust paragraph size */
        line-height: 1.5;
    }

    #how-it-works h2 {
        text-align: center;       /* Center the heading */
        margin: 0 0 20px 0;       /* Remove left margin */
        font-size: 2rem;          /* Reduce font size slightly */
    }
}

