/* Frontend Members Directory - Single Column Layout */
.sabcva-members-directory {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.no-members-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-members-found h3 {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-members-found p {
    color: #868e96;
    font-size: 16px;
}

.members-list-single-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.member-card-single {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.member-card-single:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.member-card-header {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    gap: 30px;
}

.member-photo-section {
    flex-shrink: 0;
}

/* FIXED: LinkedIn-style circular profile photo */
.member-passport-photo {
    width: 150px;
    height: 150px; /* Changed to equal width/height for circle */
    object-fit: cover;
    border-radius: 50% !important; /* Force circle shape */
    border: 4px solid #0077B5; /* LinkedIn blue */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

/* FIXED: LinkedIn-style circular placeholder */
.photo-placeholder-rectangular {
    width: 150px;
    height: 150px; /* Changed to equal width/height for circle */
    background: linear-gradient(135deg, #0077B5 0%, #00A0DC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    border-radius: 50% !important; /* Force circle shape */
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.member-basic-info {
    flex: 1;
}

.member-name-large {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.member-meta-section {
    margin-bottom: 20px;
}

.member-type-tag {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.committee-interest {
    background: #e7f3ff;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.committee-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.committee-value {
    color: #007bff;
    font-weight: 600;
    margin-left: 8px;
    font-size: 14px;
}

/* PROFESSIONAL DETAILS SECTION - SIMPLE TABLE */
.professional-details-section {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 15px;
}

.professional-details-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
    position: relative;
}

.professional-details-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #007bff;
}

.professional-details-table {
    width: 100%;
    border-collapse: collapse;
}

.professional-details-table tr {
    border-bottom: 1px dashed #e9ecef;
}

.professional-details-table tr:last-child {
    border-bottom: none;
}

.professional-details-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.professional-details-table .detail-label {
    font-weight: 600;
    color: #495057;
    width: 120px;
    font-size: 14px;
    padding-right: 10px;
}

.professional-details-table .detail-value {
    color: #2d3748;
    font-size: 14px;
    word-break: break-word;
}

.professional-details-table .detail-value a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.professional-details-table .detail-value a:hover {
    text-decoration: underline;
}

.professional-details-table tr:nth-child(3) .detail-value a {
    color: #0a66c2;
    font-weight: 600;
}

.member-bio-section {
    padding: 30px;
    background: white;
}

.bio-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
    position: relative;
}

.bio-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #007bff;
}

.member-bio-content {
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

.member-bio-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.member-bio-content p:last-child {
    margin-bottom: 0;
}

.member-bio-content strong {
    color: #2d3748;
    font-weight: 600;
}

.no-bio-message {
    color: #868e96;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 0;
}

.members-pagination {
    text-align: center;
    margin-top: 40px;
}

.members-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 3px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.members-pagination .page-numbers.current {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.members-pagination .page-numbers:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sabcva-members-directory {
        padding: 15px;
    }
    
    .member-card-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .member-photo-section {
        align-self: center;
    }
    
    .member-passport-photo,
    .photo-placeholder-rectangular {
        width: 120px;
        height: 120px; /* Equal for circle */
        border-radius: 50% !important; /* Force circle */
    }
    
    .member-name-large {
        font-size: 24px;
    }
    
    .professional-details-section {
        padding: 20px;
    }
    
    .professional-details-table {
        display: block;
    }
    
    .professional-details-table tr {
        display: block;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #e9ecef;
    }
    
    .professional-details-table tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .professional-details-table td {
        display: block;
        padding: 5px 0;
    }
    
    .professional-details-table .detail-label {
        width: 100%;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .member-bio-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .member-card-single {
        margin: 0 5px;
    }
    
    .member-name-large {
        font-size: 22px;
    }
    
    .member-passport-photo,
    .photo-placeholder-rectangular {
        width: 100px;
        height: 100px; /* Equal for circle */
        border-radius: 50% !important; /* Force circle */
    }
    
    .professional-details-section {
        padding: 15px;
    }
}