/* 위원회 페이지 전용 스타일 */

.content-area {
    flex: 1;
    padding-top: 40px;
    max-width: 922px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.committee-info-section,
.committee-members-section {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.section-card {
    background: #ffffff;
    padding: 2rem;
    min-height: 450px; /* 최소 높이 설정 */
}

/* 위원회 멤버 섹션 전용 스타일 */
.committee-members-section .section-card {
    min-height: 400px; /* 멤버 테이블이 들어갈 충분한 높이 */
}

.committee-members-section .table-responsive {
    min-height: 300px; /* 테이블 영역 최소 높이 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid gray;
    padding-bottom: 0.5rem;
}

.committee-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.committee-tasks {
    list-style: none;
    padding: 0;
    min-height: 200px; /* 5개 항목 기준 고정 높이 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.committee-tasks li {
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    min-height: 40px; /* 각 항목의 최소 높이 */
    display: flex;
    align-items: center;
}

.committee-tasks li:empty {
    display: flex; /* 빈 항목도 공간 차지하도록 변경 */
    min-height: 40px;
}

.committee-tasks li:last-child {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
}

.committee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.committee-table th,
.committee-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: keep-all;
}

/* 각 컬럼별 스타일 통일 */
.committee-table th:nth-child(1),
.committee-table td:nth-child(1) {
    width: 25%;
    font-weight: 500;
    color: #495057;
}

.committee-table th:nth-child(2),
.committee-table td:nth-child(2) {
    width: 20%;
    font-weight: 600;
    color: #2c3e50;
}

.committee-table th:nth-child(3),
.committee-table td:nth-child(3) {
    width: 20%;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.committee-table th:nth-child(4),
.committee-table td:nth-child(4) {
    width: 35%;
    font-weight: 400;
    color: #495057;
    text-align: center;
    padding-left: 1rem;
}

.committee-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    height: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.committee-table td {
    background-color: #ffffff;
    height: 55px;
    transition: all 0.2s ease;
}

.committee-table tbody tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.committee-table tbody tr:hover td {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 직위별 스타일 차별화 */
.committee-table td:nth-child(2) {
    position: relative;
}

.committee-table td:nth-child(2):before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: 0 2px 2px 0;
}

/* 성명 스타일 강조 */
.committee-table td:nth-child(3) {
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: 0.5px;
}

/* 소속 기관명 스타일 */
.committee-table td:nth-child(4) {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #6c757d;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px dashed #dee2e6;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .content-area {
        padding: 0px 10px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .section-card {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .committee-members-section .section-card {
        min-height: 350px;
    }
    
    .committee-members-section .table-responsive {
        min-height: 250px;
    }
    
    .committee-table {
        font-size: 0.9rem;
    }
    
    .committee-table th,
    .committee-table td {
        padding: 0.75rem 0.5rem;
        height: auto;
        min-height: 45px;
        font-size: 0.9rem;
    }
    
    .committee-table th:nth-child(4),
    .committee-table td:nth-child(4) {
        text-align: center;
        padding-left: 0.5rem;
    }
    
    .committee-table td:nth-child(2):before {
        width: 2px;
        height: 50%;
    }
    
    .committee-table th {
        height: 45px;
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
    
    .committee-table td {
        height: 50px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .committee-description p {
        font-size: 1rem;
    }
    
    .committee-tasks {
        min-height: 180px; /* 태블릿에서 높이 조정 */
    }
    
    .committee-tasks li {
        min-height: 36px;
        padding: 0.6rem 0;
    }
    
    .no-data {
        padding: 2rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 0px 10px; 
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .section-card {
        padding: 1rem;
        border-radius: 6px;
        min-height: 150px;
    }
    
    .committee-members-section .section-card {
        min-height: 300px;
    }
    
    .committee-members-section .table-responsive {
        min-height: 200px;
    }
    
    .committee-table th,
    .committee-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.85rem;
        height: auto;
        min-height: 40px;
    }
    
    .committee-table th:nth-child(1),
    .committee-table td:nth-child(1) {
        width: 20%;
    }
    
    .committee-table th:nth-child(2),
    .committee-table td:nth-child(2) {
        width: 15%;
    }
    
    .committee-table th:nth-child(3),
    .committee-table td:nth-child(3) {
        width: 20%;
    }
    
    .committee-table th:nth-child(4),
    .committee-table td:nth-child(4) {
        width: 45%;
        text-align: center;
        padding-left: 0.3rem;
        font-size: 0.8rem;
    }
    
    .committee-table td:nth-child(2):before {
        display: none; /* 모바일에서는 장식 요소 제거 */
    }
    
    .committee-table th {
        height: 40px;
        font-size: 0.8rem;
        letter-spacing: 0.2px;
    }
    
    .committee-table td {
        height: 45px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .committee-tasks {
        min-height: 150px; /* 모바일에서 높이 조정 */
    }
    
    .committee-tasks li {
        min-height: 30px;
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .no-data {
        padding: 1.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
