/* =========================
   MEMBER LISTING
========================= */
.page-header {
    padding: 35px 0 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #3e3f9b;
}

.page-header p {
    color: #4b5563;
    margin-bottom: 20px;
}

.small-search {
    justify-content: flex-start;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 50px;
}

.member-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ea;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 6px 18px rgba(62, 63, 155, 0.04);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(62, 63, 155, 0.12);
}

.member-card-top {
    height: 5px;
}

.member-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 20px 70px;
}

.member-logo-wrap {
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.member-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.member-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.member-category {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #00a5e5;
    font-weight: 600;
}

.member-group-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    object-fit: contain;
    opacity: 0.95;
}

.member-card-body p {
    flex-grow: 1;
    margin-bottom: 0;
    color: #4b5563;
}

.no-results {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    color: #4b5563;
}

/* =========================
   MEMBER LISTING MOBILE
========================= */

@media (max-width: 900px) {

    .page-header h1 {
        font-size: 2rem;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .member-card-body {
        padding: 15px 15px 60px;
    }

    .member-logo-wrap {
        height: 90px;
    }

    .member-card h3 {
        font-size: 1rem;
    }

    .member-category {
        font-size: 0.85rem;
    }

    .member-group-badge {
        width: 38px;
        height: 38px;
    }

}