/* Wrapper */
.members-filters {
    background: #a7c1b0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    justify-content: space-between;
}

/* Rows */
.members-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: space-between;
}

/* Columns */
.members-filter-col {
    display: flex;
    flex-direction: column;
}

/* Desktop Layout */
.members-filter-search {
    width: 45%;
}

.members-filter-type,
.members-filter-industry {
    width: 25%;
}


.members-filter-program,
.members-filter-cohort {
    width: 35%;
}

.members-buttons {
    width: 25%
}

/* Inputs */
.members-filter-col label {
    font-weight: 500;
    margin-bottom: 5px;
}

.members-filter-col input,
.members-filter-col select {
    padding: 10px 10px !important;
    border-radius: 6px !important;
    width: 100% !important;
    background: white !important;
}

.members-filter-col select {
    appearance: none; /* Remove default styling */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
}

/* Buttons */
.members-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-around;
    flex-direction: row;
    padding: 0;
}

.members-btn-apply {
    background: #4a90e2;
    border: none;
    padding: 8px 20px !important;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    transition: background 0.3s;
    font-size: 13px !important;
}

.members-btn-apply:hover {
    background: #357ab8;
}

/* -----------------------
   Tablet Layout (641px - 1024px)
------------------------- */
@media (max-width: 1024px) and (min-width: 641px) {
    .members-filter-search {
        width: 100%;
    }

    .members-filter-type,
    .members-filter-industry,
    .members-filter-program,
    .members-filter-cohort {
        width: 47% !important;
    }
    .members-buttons {
        width: 100% !important;
    }

    .members-buttons {
        flex: 1;
        justify-content: flex-start;
    }
}

/* -----------------------
   Mobile Layout (≤640px)
------------------------- */
@media (max-width: 640px) {
    .members-filters-row {
        flex-direction: column;
    }

    .members-filter-search,
    .members-filter-type,
    .members-filter-industry,
    .members-filter-program,
    .members-filter-cohort,
    .members-buttons {
        width: 100% !important;
    }

    .members-buttons {
        order: 2; /* push to bottom */
        justify-content: space-between;
    }

    .members-btn-apply {
        width: 100%;
    }
}


/* member Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}
.member-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}
.member-card:hover {
    transform: translateY(-4px);
}
.member-card-inner {
    display: flex;
    gap: 15px;
    padding: 20px;
    align-items: flex-start;
}

.website-location {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.member-website, .member-list-location {
    display: flex;
    gap: 2px;
}
.member-logo img {
    width: 60px;
    height: 60px;
    border-radius: 10%;
    object-fit: cover;
}
.member-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.member-name {
    margin: 0;
    font-weight: 600;
    color: #555 !important;
}
.member-website,
.member-list-location {
    font-size: 0.9rem;
    color: #555 !important;
    margin: 2px 0;
}

.member-type, .member-industry {
    display: flex;
    gap: 8px;
    color: #555 !important;
}
.member-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.member-tag {
    background: #234;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.member-taxonomies {
    display: flex;
    gap: 20px;
}

.member-website .icon,
.member-list-location .icon,
.member-website .dashicons,
.member-list-location .dashicons {
    margin-right: 6px;
    vertical-align: middle;
}

.members-directory-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    padding-top: 20px;
}

/* Sections */
.pd-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.pd-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}
.pd-modal-expertise span,
.pd-modal-benefits span {
    display: inline-block;
    background: #3b5d50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin: 3px 5px 0 0;
}


.custom-tfe-filter {
    border: none !important;
    background: white !important;
}

.clear-filter-button {
    background: #DDDDDD !important;
    border-color: #DDDDDD !important;
}


/* Pagination wrapper */
.custom-pagination {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 8px; /* spacing between numbers */
    margin: 30px 0 !important;
    font-size: 16px;
    text-decoration: none !important;
}

/* Pagination links */
.custom-pagination a,
.custom-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none !important;
    font-weight: 500;
    color: #111; /* black text */
    background: transparent;
    transition: all 0.2s ease;
}

/* Hover effect */
.custom-pagination a:hover {
    border-color: #ccc;
    background: #f8f8f8;
}

/* Active page */
.custom-pagination .current {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* Dots */
.custom-pagination .dots {
    pointer-events: none;
    color: #666;
}


.members-details-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 12px 20px;
    margin-top: 1rem;
}

.member-detail-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #444;
    min-width: 0; /* required for ellipsis in grid */
}

.member-detail-item .value {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.member-detail-item .dashicons {
    flex-shrink: 0;
    margin-right: 6px;
    font-size: 18px;
    color: #666;
}



