.reference-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
    border: 1.5px solid #e0e0e0;
    padding: 30px 30px;
    border-radius: 15px;
    font-family: var(--font-body);
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0);
    transition: border-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.4s ease-out;
}

a.reference-card:hover {
    border: 1.5px solid #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.reference-card__read-more {
    font-size: 0.75rem;
    color: #bbbbbb;
    transition: color 0.2s ease;
    white-space: nowrap;
    margin-left: 4px;
}

.reference-card:hover .reference-card__read-more {
    color: #1D3557;
}

a.reference-card {
    cursor: pointer;
}

div.reference-card {
    cursor: default;
}

.reference-card__quote {
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
    flex: 1;
}

.reference-card__info-container {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    gap: 15px;
}

.reference-card__referee-details {
    line-height: 1.5;
}

.reference-card__referee-company {
    font-weight: 600;
}

.reference-card__referee-image {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reference-card__referee-image img {
    border-radius: 100px;
    width: 75px;
    height: auto;
    flex-shrink: 0;
}

.reference-card__company-logo {
    margin-left: auto;
    align-self: center;
}

.reference-card__company-logo img {
    width: 75px;
    height: auto;
}

/* Mobile */
@media (max-width: 600px) {
    .reference-card__info-container {
        flex-direction: column;        /* stack image+details and logo vertically */
        align-items: flex-start;
        gap: 12px;
    }

    /* image + name/role stay side by side */
    .reference-card__referee-image {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;                   /* stretch to push logo below */
    }

    .reference-card__referee-image img {
        width: 50px;                   
        flex-shrink: 0;
    }

    .reference-card__company-logo {
        margin-left: 0;
        align-self: flex-start;
    }

    .reference-card__company-logo img {
        width: 60px;
    }
}

/* If there's only one card for a row, center that card on desktop and don't on mobile devices. */

.wp-block-column:only-child {
    max-width: 50%;
    margin-inline: auto;
}

@media (max-width: 1024px) {
    .wp-block-columns {
        flex-direction: column;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .wp-block-column {
        flex-basis: unset !important;
        max-width: 600px;
        width: 100%;
    }

    .wp-block-column:only-child {
        max-width: 600px;
        margin-inline: 0;
    }
}