.custom-button::after {
    content: "loanDepot will waive all lender fees when you refinance your home with us in the future!";
    display: block;
    font-weight: 400;
    font-size: 18px; /* Default font size */
    font-family: 'Open Sans';
    line-height: 1.5;
    color: white;
    white-space: normal;
    text-align: center;
    position: absolute;
    top: 65%; /* Default top position */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
}

/* For screens larger than 1024px (Desktops) */
@media (min-width: 1024px) {
    .custom-button::after {
        font-size: 18px; /* Adjust font size if needed for larger screens */
        top: 65%; /* Adjust position */
    }
}

/* For medium screens like tablets (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .custom-button::after {
        font-size: 16px; /* Smaller font for tablets */
        top: 63%; /* Adjust vertical position */
    }
}

/* For small screens like mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .custom-button::after {
        font-size: 14px; /* Smaller font for mobile devices */
        top: 55%; /* Adjust the position for smaller screens */
        width: 90%; /* Reduce width for mobile devices */
    }
}

/* For very small screens (max-width: 480px) */
@media (max-width: 480px) {
    .custom-button::after {
        font-size: 18px; /* Even smaller font for very small screens */
        top: 65%; /* Centered more for small devices */
        width: 100%; /* Ensure full width is used */
    }
}


.custom-button-two::after {
    content: "Should I wait to buy a home?";
    display: block;
    font-weight: 400;
    font-size: 18px; /* Default font size */
    font-family: 'Open Sans';
    line-height: 1.5;
    color: white;
    white-space: normal;
    text-align: center;
    position: absolute;
    top: 65%; /* Default top position */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
}

/* For screens larger than 1024px (Desktops) */
@media (min-width: 1024px) {
    .custom-button-two::after {
        font-size: 18px; /* Adjust font size if needed for larger screens */
        top: 60%; /* Adjust position */
    }
}

/* For medium screens like tablets (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .custom-button-two::after {
        font-size: 16px; /* Smaller font for tablets */
        top: 63%; /* Adjust vertical position */
    }
}

/* For small screens like mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .custom-button-two::after {
        font-size: 14px; /* Smaller font for mobile devices */
        top: 55%; /* Adjust the position for smaller screens */
        width: 90%; /* Reduce width for mobile devices */
    }
}

/* For very small screens (max-width: 480px) */
@media (max-width: 480px) {
    .custom-button-two::after {
        font-size: 18px; /* Even smaller font for very small screens */
        top: 60%; /* Centered more for small devices */
        width: 100%; /* Ensure full width is used */
    }
}


.custom-button-three::after {
    content: "Is renting or buying a home best for me?";
    display: block;
    font-weight: 400;
    font-size: 18px; /* Default font size */
    font-family: 'Open Sans';
    line-height: 1.5;
    color: white;
    white-space: normal;
    text-align: center;
    position: absolute;
    top: 65%; /* Default top position */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
}

/* For screens larger than 1024px (Desktops) */
@media (min-width: 1024px) {
    .custom-button-three::after {
        font-size: 18px; /* Adjust font size if needed for larger screens */
        top: 60%; /* Adjust position */
    }
}

/* For medium screens like tablets (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .custom-button-three::after {
        font-size: 16px; /* Smaller font for tablets */
        top: 63%; /* Adjust vertical position */
    }
}

/* For small screens like mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .custom-button-three::after {
        font-size: 14px; /* Smaller font for mobile devices */
        top: 55%; /* Adjust the position for smaller screens */
        width: 90%; /* Reduce width for mobile devices */
    }
}

/* For very small screens (max-width: 480px) */
@media (max-width: 480px) {
    .custom-button-three::after {
        font-size: 18px; /* Even smaller font for very small screens */
        top: 60%; /* Centered more for small devices */
        width: 100%; /* Ensure full width is used */
    }
}

