.borrowerleads2-container {
    --primary-text-color: #1e2c3d;
    display: flex;
    flex-wrap: nowrap;
    color: var(--primary-text-color);
    overflow: hidden;
    height: 330px;
}

.borrowerleads2-content {
    display: flex;
    gap: 40px;
}

.borrowerleads2-image-container,
.borrowerleads2-image-container img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    order: 1;
}

.borrowerleads2-image-container::after {
    content: '';
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.borrowerleads2-get-started-container {
    display: flex;
    align-items: center;
    order: 2;
}

.borrowerleads2-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    gap: 20px;
    padding-right: 20px;
    order: 3;
}

.borrowerleads2-apply-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.borrowerleads2-apply-now {
    margin: 0;
    font-size: 2.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.borrowerleads2-212-logo img {
    max-width: 75px;
    min-width: 75px;
    height: auto;
}

.borrowerleads2-divider {
    width: 100%;
    background-color: var(--primary-text-color);
    height: 2px;
}

@media (max-width: 768px) {
    .borrowerleads2-container {
        height: auto;
    }

    .borrowerleads2-content {
        flex-direction: column;
        gap: 0px;
    }

    .borrowerleads2-image-container {
        max-height: 250px;
    }

    .borrowerleads2-image-container::after {
        content: '';
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        top: unset;
        right: unset;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100px;
    }

    .borrowerleads2-header-section {
        padding: 15px;
        order: 2;
    }

    .borrowerleads2-get-started-container {
        width: 100%;
        padding: 15px;
        order: 3;
    }

    .borrowerleads2-get-started-button {
        width: 100%;
    }
}

@media (max-width: 476px) {
    .borrowerleads2-apply-now {
        font-size: 2rem;
    }
}