/* =============================================================
   BPM Partners List  –  2-column vertical card grid
   [burggraaf_partners_list]
   ============================================================= */

/* Grid wrapper */
.bpm-partners-list {
    display: grid;
    grid-template-columns: repeat(var(--bpm-list-columns, 2), 1fr);
    gap: 20px;
    width: 100%;
}

/* ---------- Card ---------- */
.bpm-partner-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
    transition: box-shadow .2s ease;
}

.bpm-partner-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
}

/* ---------- Thumbnail (full-width top image) ---------- */
.bpm-partner-card__image {
    position: relative;
    width: 100%;
    height: 120px;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.bpm-partner-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.bpm-partner-card:hover .bpm-partner-card__image img {
    transform: scale(1.04);
}

.bpm-partner-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

/* ---------- Card body ---------- */
.bpm-partner-card__body {
    display: flex;
    flex: 1 1 auto;
    gap: 0;
    border-top: 3px solid #951b80;
}

/* Name + Address — left half of body */
.bpm-partner-card__info {
    flex: 1 1 0;
    padding: 16px 16px 16px 20px;
    border-right: 1px solid #ebebeb;
    min-width: 0;
}

.bpm-partner-card__name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: underline;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.bpm-partner-card__name:hover {
    color: #951b80;
}

.bpm-partner-card__address {
    margin: 0;
    font-size: .8125rem;
    color: #555;
    line-height: 1.55;
}

/* Contact — right half of body */
.bpm-partner-card__contact {
    flex: 1 1 0;
    padding: 16px 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bpm-partner-card__contact-label {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.bpm-partner-card__contact-link {
    font-size: .8125rem;
    color: #555;
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpm-partner-card__contact-link:hover {
    color: #1a1a1a;
}

/* ---------- Action button (full-width footer) ---------- */
.bpm-partner-card__action {
    padding: 0 20px 18px;
}

.bpm-partner-card__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 18px;
    background: #951b80;
    color: #ffffff;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    border-radius: 3px;
    box-sizing: border-box;
    transition: background .15s ease;
}

.bpm-partner-card__btn:hover {
    background: rgb(52, 46, 142);
    color: #fff;
}

/* ---------- Responsive: collapse to 1 column on small screens ---------- */
@media (max-width: 700px) {
    .bpm-partners-list {
        grid-template-columns: 1fr;
    }
}
