.loan-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.loan-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E6E8EB; /* clearer outline */
    box-shadow: none; /* remove default shadow to avoid banding */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.loan-card:hover {
    transform: translateY(-3px);
    border-color: #CFD6DF;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.loan-card__image {
    display: block;
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    line-height: 0; /* remove image baseline gap */
}

.loan-card__image img {
    width: 100%;
    height: 100%;
    display: block; /* remove baseline gap that shows as a stripe */
    object-fit: cover;
    transition: transform 0.35s ease;
}

.loan-card:hover .loan-card__image img {
    transform: scale(1.04);
}

.loan-card__content {
    padding: 16px 18px 18px;
    min-height: 96px; /* ensure consistent card height regardless of title lines */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loan-card__title {
    margin: 0 0 8px;
    font-family: Open Sans, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #2c2c2c;
    line-height: 1.5;
    min-height: 48px; /* 2 lines x ~24px */
}

.loan-card__cta {
    font-size: 14px;
    font-weight: 600;
    color: #0049ff;
    line-height: 1.5;
}

@media (min-width: 1200px) {
    .loan-card__image { height: 220px; }
    .loan-card__title { font-size: 19px; }
}

@media (max-width: 576px) {
    .loan-card__image { height: 180px; }
}


