.business-card-container {
    /* Container styles remain flexible */
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.oe_partner_card_link {
    /* Match the specified link styling */
    display: inline;
    position: static;
    width: auto;
    height: auto;
    padding: 0px;
    margin: 0px;
    border: 0px none rgb(0, 0, 0);
    color: rgb(0, 0, 0);
    text-decoration: none solid rgb(0, 0, 0);
    box-sizing: border-box;
}

/* Prevent color change on hover for the link and all its contents */
.oe_partner_card_link:hover,
.oe_partner_card_link:hover div,
.oe_partner_card_link:hover .company-name {
    color: inherit !important;
    text-decoration: none !important;
}

.oe_partner_card {
    /* Match the specified card styling */
    display: flex;
    position: static;
    width: 331.682px;
    height: 160px;
    padding: 16px;
    margin: 16px 0px 0px;
    border: 0px none rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 5px 0px;
    flex-direction: row;
    align-items: normal;
    justify-content: normal;
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.oe_partner_card:hover {
    transform: translateY(-6px);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 5px 15px 0px;
}

.oe_partner_card_image {
    flex: 0 0 auto;
    margin-right: 16px;
}

.oe_partner_card_image img {
    width: auto;
    height: auto;
    max-height: 128px;
    max-width: 128px;
    object-fit: contain;
}

.oe_partner.card_content {
    flex: 1;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oe_partner.card_content h6 {
    color: var(--o-color-1);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 18px; /* Slightly larger than content text */
    font-family: var(--headings-font), var(--font-sans-serif);
}

.oe_partner.card_content div {
    margin-bottom: 0.25rem;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.4;
}

.oe_partner.card_content .company-name {
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    font-size: 16px;
    font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .oe_partner_card {
        flex-direction: row; /* Keep as row instead of column */
        height: auto;
        min-height: 120px;
        width: 100%;
        align-items: center;
    }
    
    .oe_partner_card_image {
        margin-right: 16px;
        margin-bottom: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30%; /* Fixed width proportion */
        max-width: 100px;
    }
    
    .oe_partner_card_image img {
        max-height: 90px;
        max-width: 90px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .oe_partner.card_content {
        flex: 1;
        text-align: left;
        font-size: 14px;
        width: 70%;
    }
    
    .oe_partner.card_content .company-name {
        font-size: 15px;
       
    }
    
    .oe_partner.card_content div {
        font-size: 14px;
        margin-bottom: 2px;
        line-height: 1.3;
    }
}

/* Responsive adjustments for very small screens */
@media (max-width: 400px) {
    .oe_partner_card {
        width: 100%;
        padding: 10px;
    }
    
    .oe_partner_card_image {
        width: 80px;
        min-width: 80px;
    }
    
    .oe_partner_card_image img {
        max-height: 70px;
        max-width: 70px;
    }
    
    .oe_partner.card_content {
        font-size: 13px;
    }
    
    .oe_partner.card_content .company-name {
        font-size: 14px;
    }
    
    .oe_partner.card_content div {
        font-size: 13px;
        line-height: 1.2;
    }
}

/* Fix for very narrow screens */
@media (max-width: 320px) {
    .oe_partner_card {
        padding: 8px;
    }
    
    .oe_partner_card_image {
        width: 70px;
        min-width: 70px;
    }
    
    .oe_partner_card_image img {
        max-height: 60px;
        max-width: 60px;
    }
}
