:root {
    --primary-color: #005ca3;
    --text-color: #303030;
    --light-bg: #f4faff;
    --white: #ffffff;
    --border-color: rgba(21, 27, 33, 0.2);
}

.how-we-work-section {
    background-color: var(--white);
    margin-top: 36px;
    margin: 0 -4px;
    padding-top: 26px;
}

.title-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.how-we-work-section .section-subtitle {
    margin-bottom: 22px;
    margin-top: 25px;
}

.description {
    font-family: 'Lato', serif;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 37px;
    font-size: 18px;
    text-transform: none;
    text-align: left;
    line-height: 22px;
    color: #303030;
}

.process-cards {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin: 0 -2px;
}

.cards-row-first, .cards-row-second {
    display: flex;
    gap: 19px;
    justify-content: center;
}

.process-card {
    position: relative;
    border: 0.9px solid var(--border-color);
    width: 100%;
    display: flex ;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.process-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-card-wide {
    max-width: fit-content;
}

.card-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content-how {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 25px 17px 21px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    color: var(--white);
    transition: all .3s ease;
}

.card-title-how {
    text-transform: none;
    /* Desk/H5 */
    text-align: left;
    color: #FFF;
    font-feature-settings: 'liga' off, 'clig' off;
    /* Desk/H5 */
    font-family: NAMU;
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
    transition: all 0.3s ease 0s;
}

.process-card:hover .card-title-how {
    font-size: 20px;
    margin-top: 0;
}

.card-description {
    margin: 0;
    opacity: 0;
    text-align: left;
    text-transform: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #FFF;
    /* Desk/body2 */
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.process-card:hover .card-description {
    opacity: 1;
    max-height: 200px;
    margin-top: 16px;
}

.arrow-icon-how {
    position: absolute;
    top: 18px;
    right: 18px;
    transition: all 0.3s ease 0s;
}

.process-card:hover .arrow-icon-how {
    transform: rotate(180deg);
}

@media (max-width: 1200px) {
    .process-card-wide {
        max-width: 420px;
    }

    .section-subtitle {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .section-header {
        margin-bottom: 0px;
    }

    .title-header {
        gap: 15px;
        margin-bottom: 0;
    }

    .section-title {
        font-size: 16px;
        letter-spacing: 5px;
    }

    .section-subtitle {
        font-size: 28px;
        margin: 15px 0;
    }

    .description {
        font-size: 14px;
    }

    .cards-row-first, .cards-row-second {
        gap: 17px;
    }

    .process-card {
        max-width: 220px;
        min-height: 280px;
    }

    .process-card-wide {
        max-width: 340px;
    }

    .card-title-how {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .cards-row-first, .cards-row-second {
        flex-direction: column;
        align-items: center;
    }

    .process-card, .process-card-wide {
        max-width: 100%;
        width: 100%;
        min-height: 250px;
        height: 250px;
    }

    .section-subtitle {
        font-size: 24px;
    }

    .description {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 0px;
    }

    .title-header {
        gap: 10px;
        margin-bottom: 0;
    }

    .section-title {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .section-subtitle {
        font-size: 20px;
        margin: 10px 0;
    }

    .description {
        font-size: 13px;
    }

    .card-content {
        /* padding: 15px; */
    }

    .card-title-how {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .how-we-work-section {
        margin: 0;
        padding-top: 8px;
    }

    .title-header {
    }

    .how-we-work-section .section-subtitle {
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .description {
        font-size: 16px;
        line-height: normal;
        margin-bottom: 29px;
    }

    .process-cards {
        margin: 0;
        gap: 17px;
    }

    .cards-row-second {
    }

    .process-card {
        border-radius: 5px;
        overflow: hidden;
        height: 258px;
    }

    .process-card:hover {
    }

    .process-card-wide {
    }

    .card-background {
    }

    .card-content-how {
        padding: 0 10px 10px 13px;
    }

    .card-title-how {
        font-size: 18px;
    }

    .process-card:hover .card-title-how {
        font-size: 18px;
        margin: 0;
    }

    .card-description {
        font-size: 14px;
    }

    .process-card:hover .card-description {
        margin-top: 18px;
    }

    .arrow-icon-how {
        top: 11px;
        right: 11px;
    }

    .process-card:hover .arrow-icon-how {
    }
}
