/* Members Archive Styles */
.members-archive-wrap {
    padding: 40px 0;
}

.members-page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

/* Single Member Page */
.single-member-wrap {
    padding: 40px 0;
}

/* Category Filter Buttons */
.members-category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.cat-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cat-btn:hover,
.cat-btn.active {
    background: #dc3545;
    color: #fff;
}

/* Filter Form */
.members-filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.filter-col {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.filter-submit-btn {
    padding: 12px 30px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.filter-submit-btn:hover {
    background: #c82333;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.member-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.member-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.member-name a {
    color: #333;
    text-decoration: none;
}

.member-name a:hover {
    color: #dc3545;
}

.member-position {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 10px;
}

.member-cat-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #dc3545;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
}

.no-members-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #6c757d;
}

/* Single Member Page */
.single-member-wrap {
    padding: 40px 0;
}

.member-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.back-link:hover {
    background: #218838;
}

.member-profile {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.member-image-large {
    flex: 0 0 350px;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image-large img {
    width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.member-no-image-large {
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 8px;
    color: #6c757d;
}

.member-details {
    flex: 1;
    min-width: 300px;
}

.member-name {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.member-position-large {
    font-size: 20px;
    color: #28a745;
    margin-bottom: 30px;
}

.member-meta-list {
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.meta-item strong {
    width: 120px;
    color: #495057;
}

.meta-item span {
    color: #212529;
}

.member-social h4 {
    margin-bottom: 15px;
    color: #333;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #dc3545;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-col {
        max-width: 100%;
        width: 100%;
    }
    
    .member-profile {
        flex-direction: column;
        align-items: center;
    }
    
    .member-image-large,
    .member-no-image-large {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }
}
