/* Wrapper */
.member-filter-wrapper {
    max-width: 1200px;
    margin: auto;
}

/* Reset Button */
#reset-filters {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    margin-bottom: 15px;
}

/* FILTER ITEMS GRID */
.filter-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

/* Desktop */
@media (min-width: 1024px) {
    .filter-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Checkbox Row */
.filter-option {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    white-space: normal;
}

/* Hide default checkbox */
.filter-option input {
    display: none;
}

/* Custom checkbox */
.filter-option span {
    width: 18px;
    height: 18px;
    border: 2px solid #111;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

/* Checked state */
.filter-option input:checked + span {
    background: #111;
}

.filter-option input:checked + span::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* HIDDEN ITEMS */
.hidden-item {
    display: none;
}

/* SHOW MORE BUTTON */
.toggle-more {
    margin-top: 10px;
    background: none;
    border: none;
    color: #0073aa;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* Prevent inline text breaking */
.filter-group {
    overflow: hidden;
}


/* Loader */
#member-loader {
    display: none;
    width: 60px;
    height: 60px;
    border: 5px solid #eee;
    border-top: 5px solid #111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card */
.member-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transition: transform .3s;
}

.member-card:hover {
    transform: translateY(-6px);
}

.member-thumb img {
    width: 100%;
    height: auto;
}

/* Content */
.member-content {
    padding: 18px;
}

.member-content h3 {
    margin: 0 0 8px;
}

.meta {
    font-size: 13px;
    opacity: .7;
}

/* Read More */
.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 30px;
    background: #bb602b;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Pagination */
.ajax-pagination {
    margin-top: 30px;
    text-align: center;
}

.page-num {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #eee;
    cursor: pointer;
}


/* Wrapper must be relative */
.member-filter-wrapper {
    position: relative;
}

/* Overlay */
.member-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Spinner */
.member-loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e5e5e5;
    border-top: 5px solid #111;
    border-radius: 50%;
    animation: memberSpin 1s linear infinite;
    margin: auto;
}

@keyframes memberSpin {
    to {
        transform: rotate(360deg);
    }
}


.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.page-num {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 4px;
    border-radius: 20px;
    background: #eee;
    color: #111;
    font-weight: 500;
    transition: all .2s ease;
}

.page-num:hover {
    background: #ddd;
}

.page-num.active {
    background: #111;
    color: #fff;
    pointer-events: none;
}


.filter-badge {
    display: none;
}

/* Image container */
.member-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;          /* Change ratio if needed */
    overflow: hidden;
    background: #f2f2f2;
    position: relative;
}

/* Image itself */
.member-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* Crop without stretching */
    display: block;
}
