/* Committee Frontend Styles */
.karuna-committee-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.karuna-committee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.karuna-committee-table thead {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
}

.karuna-committee-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.karuna-committee-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.karuna-committee-table tbody tr:hover {
    background-color: #f8f9fa;
}

.karuna-committee-table tbody tr.inactive {
    opacity: 0.6;
    background-color: #f9f9f9;
}

.karuna-committee-table td {
    padding: 15px;
    color: #333;
}

.karuna-committee-table td:first-child {
    font-weight: bold;
    color: #2c3e50;
}

.karuna-committee-table td:nth-child(3) {
    color: #e74c3c;
    font-weight: 500;
}

.member-photo {
    text-align: center;
}

.committee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.committee-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 3px solid #ddd;
}

.committee-avatar-placeholder .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

/* Grid Layout */
.karuna-committee-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.committee-col-1 { grid-template-columns: 1fr; }
.committee-col-2 { grid-template-columns: repeat(2, 1fr); }
.committee-col-3 { grid-template-columns: repeat(3, 1fr); }
.committee-col-4 { grid-template-columns: repeat(4, 1fr); }
.committee-col-5 { grid-template-columns: repeat(5, 1fr); }
.committee-col-6 { grid-template-columns: repeat(6, 1fr); }

.committee-member-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.committee-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.committee-member-card.inactive {
    opacity: 0.7;
    filter: grayscale(50%);
}

.member-photo {
    padding: 20px 20px 10px;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-avatar-placeholder .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
}

.member-info {
    padding: 0 20px;
}

.member-name {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 18px;
}

.member-designation {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-profession {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.member-status {
    display: inline-block;
    background: #f8d7da;
    color: #58151c;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* List Layout */
.karuna-committee-list {
    margin: 30px 0;
}

.committee-list-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.committee-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.committee-list-item.inactive {
    opacity: 0.7;
    background: #f9f9f9;
}

.list-photo {
    margin-right: 20px;
    flex-shrink: 0;
}

.list-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.list-details {
    flex-grow: 1;
}

.list-name {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 18px;
}

.list-designation {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 3px;
}

.list-profession,
.list-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 3px;
}

.list-status {
    display: inline-block;
    background: #f8d7da;
    color: #58151c;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .committee-col-4,
    .committee-col-5,
    .committee-col-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .committee-col-3,
    .committee-col-4,
    .committee-col-5,
    .committee-col-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .committee-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .list-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .karuna-committee-table {
        display: block;
    }
    
    .karuna-committee-table thead {
        display: none;
    }
    
    .karuna-committee-table tbody,
    .karuna-committee-table tr,
    .karuna-committee-table td {
        display: block;
        width: 100%;
    }
    
    .karuna-committee-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .karuna-committee-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
    }
    
    .karuna-committee-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
        color: #2c3e50;
    }
    
    .karuna-committee-table td:last-child {
        border-bottom: 0;
    }
    
    .karuna-committee-table td[data-label="Photo"] {
        text-align: center;
        padding-left: 15px;
    }
    
    .karuna-committee-table td[data-label="Photo"]:before {
        display: none;
    }
}

@media (max-width: 576px) {
    .committee-col-2,
    .committee-col-3,
    .committee-col-4,
    .committee-col-5,
    .committee-col-6 {
        grid-template-columns: 1fr;
    }
    
    .karuna-committee-table td {
        padding-left: 40%;
    }
    
    .karuna-committee-table td:before {
        width: 40%;
    }
}