from bs4 import BeautifulSoup


def find_company_indeed(card: BeautifulSoup) -> str:
    """
    Processes an individual job card to find the name of the company that posted the job.

    Args:
        card (BeautifulSoup object): A BS4 object consisting of the section of the HTML doc result for a
                                    single job posting (card taken from html div classname).

    Returns:
        str: The company from the job card if found, otherwise empty string.
    """
    company_text = card.find('span', class_='company')
    if not company_text:
        company_text = card.find('div', class_='company')
    if company_text:
        return company_text.text.strip()

    return ""