@charset "utf-8";

/* 기본 초기화 */
.people_wrap { position: relative; width: 100%; box-sizing: border-box; }
.people_wrap * { box-sizing: border-box; }

/* 카테고리별 그룹 섹션 */
.people_group { margin-bottom: 60px; }
.group_header { display: flex; align-items: center; border-bottom: 2px solid #333; margin-bottom: 20px; padding-bottom: 10px; }
.group_title { font-size: 1.5em; font-weight: bold; color: #222; margin: 0; }

/* 바로 등록 버튼 */
.btn_add_direct { display: inline-flex; align-items: center; font-size: 13px; color: #fff; background-color: #007bff; border: 1px solid #007bff; padding: 4px 10px; border-radius: 4px; margin-left: 15px; text-decoration: none; transition: 0.2s; height: 30px; }
.btn_add_direct:hover { background-color: #0056b3; border-color: #0056b3; color: #fff; }

/* [타입 1] 이사장 (가로로 긴 박스) */
.type_chairman { display: flex; flex-direction: column; gap: 20px; }
.chairman_box { width: 100%; display: flex; background: #fff; border: 1px solid #ddd; padding: 20px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); align-items: center; position: relative; }
.chairman_info { width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.chairman_info .name { font-size: 2em; font-weight: bold; color: #333;line-height: 1; }
.chairman_info .email { color: #888; font-size: 0.9em; }
.chairman_desc {display:none; flex-grow: 1; font-size: 1.1em; line-height: 1.7; color: #444; word-break: keep-all; }

/* [타입 2] 운영진 & 후원회원 (6열) */
.type_name_table { display: flex; flex-wrap: wrap; border-top: 1px solid #ddd; border-left: 1px solid #ddd; width: 100%; }
.name_cell {
    width: 16.6666%; /* 6개 */
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 15px 10px;
    text-align: center;
    position: relative;
}
.name_cell:hover { background-color: #f8f9fa; }
.name_cell .name { font-weight: bold; font-size: 1em; color: #333; display: block; }
.name_cell .admin_btn_box { top: 2px; right: 2px; transform: scale(0.7); opacity: 0.5; }
.name_cell:hover .admin_btn_box { opacity: 1; }

/* [타입 3] 후원 현황 (카드형) */
.type_status { display: flex; gap: 20px; flex-wrap: wrap; }
.status_card { flex: 1; min-width: 280px; background: #fdfdfd; border: 1px solid #eee; padding: 30px 20px; text-align: center; border-radius: 8px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* 설명문구(wr_1) 스타일: 맨 위로 강조 */
.status_desc { font-size: 1.1em; color: #333; font-weight: bold; display: block; width: 100%; border-bottom: 1px dashed #eee; padding-bottom: 15px; margin-bottom:15px}
/* 금액 스타일 */
.status_card .amount { font-size: 2.2em; font-weight: bold; color: #d63031; display: block; margin-bottom: 10px; line-height: 1.2; }
/* 인원 스타일 */
.status_card .count { font-size: 1em; color: #666; margin-bottom: 0; }
/* 통합 업데이트 날짜 (섹션 하단) */
.people_last_update { text-align: right; margin-top: 10px; color: #888; font-size: 0.9em; font-family: 'Noto Sans KR', sans-serif; }

/* [타입 4] 일반 임원 (기존 카드형) */
.type_person { display: flex; flex-wrap: wrap; gap: 20px; }
.person_card { width: calc(25% - 15px); background: #fff; border: 1px solid #ddd; padding: 20px; border-radius: 8px; position: relative; transition: 0.3s; text-align: center; }
.person_card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.person_card .name { font-size: 1.2em; font-weight: bold; display: block; }
.person_card .desc {display:none;  font-size: 0.9em; line-height: 1.5; color: #666; word-break: keep-all; margin-top: 10px; }

/* 공통 관리자 버튼 */
.admin_btn_box { position: absolute; top: 15px; right: 15px; z-index: 10; }
.empty_list { padding: 50px 0; text-align: center; color: #999; background: #f9f9f9; }

/* 반응형 처리 */
@media (max-width: 1200px) {
    .name_cell { width: 20%; }
}
@media (max-width: 1024px) {
    .name_cell { width: 25%; }
    .person_card { width: calc(33.33% - 14px); }
}
@media (max-width: 768px) {
    .chairman_box { flex-direction: column; text-align: center; padding: 30px 20px; }
/*    .chairman_info { width: 100%; border-right: 0; border-bottom: 1px solid #eee; margin: 0 0 20px 0; padding-bottom: 20px; }*/
    .name_cell { width: 33.3333%; }
    .person_card { width: calc(50% - 10px); }
    .status_card { width: 100%; }
}
@media (max-width: 480px) {
    .name_cell { width: 50%; }
    .person_card { width: 100%; }
    .btn_add_direct span { display: none; }
}