/* n49-cards.css — the rich "Top 100" listing card (from Downloads/website/index.html),
   scoped under .n49card so it cannot disturb the rest of the legacy listings page.
   Loaded on index.html (homepage + search results). */

.n49card, .n49card *, .n49card *::before, .n49card *::after { box-sizing: border-box; }
.n49card {
    font-family: 'DM Sans', sans-serif;
    color: #3B3B3B;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E7E7E7;
    overflow: hidden;
}
.n49card p { margin: 0 0 10px; }
.n49card p:last-child { margin: 0; }
.n49card a { color: #3B3B3B; text-decoration: none; transition: all .3s ease; }
.n49card a:hover { color: var(--portal-color, #0066cc); }
.n49card h2, .n49card h3, .n49card h4 { line-height: 1.2; font-weight: 700; margin: 0 0 8px; }
.n49card h2 { font-size: 22px; }
.n49card img { max-width: 100%; height: auto; vertical-align: bottom; }

.n49card .info-body { padding: 25px 30px; }

/* flex helpers (scoped) */
.n49card .flex { display: flex; flex-wrap: wrap; justify-content: space-between; }
.n49card .flex.center { align-items: center; }
.n49card .flex.top { align-items: flex-start; }
.n49card .flex.gap { justify-content: flex-start; }
.n49card .grow { flex-grow: 1; }
.n49card .mb-3 { margin-bottom: 3px; } .n49card .mb-5 { margin-bottom: 5px; }
.n49card .mt-10 { margin-top: 10px; } .n49card .mt-15 { margin-top: 15px; } .n49card .mt-20 { margin-top: 20px; }
.n49card .mb-15 { margin-bottom: 15px; } .n49card .mb-20 { margin-bottom: 20px; }
.n49card .font-weight-700 { font-weight: 700; }

/* logo */
.n49card .logo {
    flex: 0 0 auto; width: 110px; height: 110px; border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.16);
}
.n49card .logo img { max-height: 100%; width: auto; object-fit: contain; }
.n49card .verified { display: inline-block; vertical-align: middle; margin: -2px 0 0 3px; }
.n49card .grow.body { padding: 0 0 0 20px; }

/* rating */
.n49card .rating-wrap { font-size: 0; margin: 0 0 8px; }
.n49card .rating-wrap .rating,
.n49card .rating-wrap .rating-stars::before {
    display: inline-block; vertical-align: middle; width: 90px; height: 18px;
    background: url('assets/icon-stars.svg') no-repeat 0 0; margin: 0 4px 0 0;
}
.n49card .rating-wrap .rating-stars { overflow: hidden; }
.n49card .rating-wrap .rating-stars::before { content: ''; background-image: url('assets/icon-stars-hover.svg'); }
.n49card .rating-wrap > span, .n49card .rating-wrap > a {
    display: inline-block; vertical-align: middle; font-size: 14px; margin: 0 0 0 6px;
}
.n49card .rating-wrap > a { font-weight: 700; color: var(--portal-color, #0066cc); }

/* meta row */
.n49card .meta-row {
    justify-content: flex-start; column-gap: 20px; row-gap: 6px; margin: 16px 0 14px;
    padding: 10px 0; border-top: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7;
}
.n49card .meta-row > p { display: inline-flex; align-items: center; gap: 0 7px; margin: 0; font-size: 14px; font-weight: 700; }
.n49card .meta-row .social-wrap { margin-left: auto; }
.n49card .social-wrap { font-size: 0; }
.n49card .social-wrap a { display: inline-block; vertical-align: top; margin: 0 10px 0 0; }
.n49card .social-wrap a:last-child { margin-right: 0; }

/* buttons */
.n49card .btn-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.n49card .btn {
    display: inline-block; cursor: pointer; font-size: 14px; font-weight: 700; color: #fff;
    text-align: center; background: var(--portal-color, #0066cc); border: 2px solid var(--portal-color, #0066cc);
    border-radius: 4px; padding: 8px 22px;
}
.n49card .btn:hover { filter: brightness(0.9); color: #fff; }
.n49card .btn.outline { background: #fff; color: var(--portal-color, #0066cc); }

/* what clients say */
.n49card .clients-say { background: #f5f5f7; border-radius: 10px; padding: 18px 22px 22px; border: 1px solid #E7E7EE; }
.n49card .clients-say > .acc-name { font-size: 16px; }
.n49card .clients-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 30px;
    background: #fff; border: 1px solid #E7E7EE; border-radius: 10px; padding: 14px 18px; margin-top: 10px;
}
.n49card .acc-name { display: block; font-weight: 700; font-size: 14px; }
.n49card .acc-meter { display: flex; align-items: center; column-gap: 12px; }
.n49card .client-stat .acc-bar { flex: 1 1 auto; }
.n49card .acc-bar { height: 9px; border-radius: 100px; background: #d9d9d9; overflow: hidden; }
.n49card .acc-bar > span { display: block; height: 100%; border-radius: 100px; background: var(--portal-color, #0066cc); }
.n49card .acc-num { font-size: 14px; font-weight: 700; white-space: nowrap; }
.n49card .acc-total { color: #AFAFAF; }

/* compact trust bar */
.n49card .trust { display: flex; align-items: center; justify-content: space-between; column-gap: 18px; row-gap: 12px;
    margin-top: 18px; padding: 12px 14px 12px 22px; background: #f5f5f7; border-radius: 10px; }
.n49card .trust-left { display: flex; align-items: center; }
.n49card .trust-question { font-size: 16px; font-weight: 700; }
.n49card .trust-right { flex: 0 0 auto; display: flex; align-items: center; column-gap: 10px; }
.n49card .trust-score { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.n49card .trust-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.n49card .trust-num { font-size: 22px; font-weight: 700; color: #1B5FC4; }
.n49card .trust-total { font-size: 15px; font-weight: 700; }
.n49card .trust-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: #1B5FC4; border-radius: 6px; }
.n49card .trust-badge.green { background: #4DBA7D; } .n49card .trust-badge.orange { background: #F3B72A; } .n49card .trust-badge.red { background: #D61730; }
.n49card .trust-badge svg { display: block; }

.n49card .link-more { font-weight: 600; color: var(--portal-color, #0066cc); }

@media (max-width: 800px) {
    .n49card .info-body { padding: 18px; }
    .n49card .logo { width: 70px; height: 70px; }
    .n49card .grow.body { padding: 12px 0 0; width: 100%; }
    .n49card .clients-grid { grid-template-columns: 1fr; }
    .n49card .trust { flex-wrap: wrap; }
    .n49card .meta-row > p { width: 100%; }
}

/* spacing between listing cards on the homepage */
#algolia-hits .ais-Hits-list > .ais-Hits-item { margin-bottom: 22px; }
#algolia-hits .ais-Hits-list > .ais-Hits-item:last-child { margin-bottom: 0; }
