/* How it Works Section */
.how-it-works-section {
    /* padding: 60px 0; */
    background-color: transparent;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-family: 'Rammetto One';
}

.section-description {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    /* font-family: 'Rammetto One'; */
}

.process-section {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.take-section {
    margin-bottom: 0;
}

.give-section {
    background-color: #f5f4ed;
    padding: 80px 0;
}

.process-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.process-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.process-title-text {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
    line-height: 1.2;
    font-family: 'Rammetto One';
    text-align: center;
}

.how-it-works-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    /* min-height: calc(100vh - 300px); */
    /* max-height: calc(100vh - 300px);  */
    justify-content: space-between;
    padding: 0.5rem 0;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.75rem;
    width: 100%;
    flex-shrink: 0;
}

.step-icon {
    width: clamp(90px, 20vw, 120px);
    height: clamp(90px, 20vw, 120px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.step-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0 0 0.25rem 0;
    color: var(--secondary);
    font-family: 'Rammetto One';
    font-weight: 500;
    line-height: 1.3;
}

.step-description {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }

    .process-section {
        margin-bottom: 5rem;
    }

    .take-section {
        margin-bottom: 0;
    }

    .process-section .container {
        flex-direction: row;
        align-items: stretch;
        gap: 2.5rem;
    }

    .give-section .container {
        justify-content: flex-start;
    }

    .take-section .container {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    .process-title {
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: auto;
        padding-right: 2rem;
    }

    .take-section .process-title {
        padding-right: 0;
        padding-left: 2rem;
    }

    .process-title-text {
        text-align: left;
    }

    .how-it-works-content {
        flex-direction: column;
        align-items: flex-start;
        max-width: 650px;
        min-height: auto;
        max-height: none;
        width: auto;
        padding: 0;
    }

    .give-section .how-it-works-content {
        align-items: flex-start;
    }

    .take-section .how-it-works-content {
        align-items: flex-end;
    }

    .step {
        /* padding: 2rem 0; */
        gap: 2rem;
    }

    .step-icon {
        width: clamp(160px, 18vw, 220px);
        height: clamp(160px, 18vw, 220px);
    }

    .step-title {
        font-size: clamp(1.375rem, 3.5vw, 1.75rem);
        margin-bottom: 0.5rem;
    }

    .step-description {
        font-size: clamp(1rem, 2vw, 1.125rem);
        line-height: 1.5;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .section-title {
        font-size: 4rem;
    }

    .process-section .container {
        gap: 3rem;
    }

    .process-title {
        padding-right: 2.5rem;
    }

    .take-section .process-title {
        padding-left: 2.5rem;
    }

    .how-it-works-content {
        max-width: 700px;
    }

    .step-icon {
        width: clamp(180px, 9vw, 240px);
        height: clamp(180px, 9vw, 240px);
    }

    .step-title {
        font-size: clamp(1.5rem, 3vw, 1.875rem);
    }

    .step-description {
        font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    }
}
