/* =========================================================
   members.css
   ✅ (수정) 임원진/역대회장단 페이지 전용 스타일
   - 사용자 스크린샷처럼: 가운데 제목 + 탭(밑줄) + 역할별 표
   - 다른 페이지에 영향이 없도록 members.html에서만 로딩
========================================================= */

.officersMain{
  padding: 56px 0 64px;
}

.officersTitle{
  text-align:center;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  margin: 8px 0 26px;
}

/* =========================
   Tabs
========================= */
.officersTabs{
  display:flex;
  justify-content:space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(9,18,37,.18);
  margin: 0 auto 34px;
  max-width: 980px;
}

.officersTab{
  appearance:none;
  border:none;
  background:transparent;
  padding: 14px 10px 16px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(9,18,37,.45);
  cursor:pointer;
  position:relative;
}

.officersTab.is-active{
  color: var(--topbar-a);
}

.officersTab.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:3px;
  background: var(--topbar-a);
  border-radius: 999px;
}

/* =========================
   Panels
========================= */
.officersPanel{
  display:none;
  max-width: 980px;
  margin: 0 auto;
}

.officersPanel.is-active{
  display:block;
}

/* 역할 블록 */
.officerBlock{
  margin: 0 0 32px;
}

.officerBlock__title{
  font-size: 20px;
  font-weight: 1000;
  color: var(--topbar-a);
  margin: 0 0 10px;
}

/* 표 */
.officerTableWrap{
  border-top: 1px solid rgba(9,18,37,.16);
  border-bottom: 1px solid rgba(9,18,37,.16);
}

.officerTable{
  width:100%;
  border-collapse:collapse;
}

.officerTable th,
.officerTable td{
  padding: 18px 16px;
  text-align:center;
  font-size: 15px;
}

.officerTable thead th{
  background: rgba(9,18,37,.06);
  font-weight: 1000;
}

.officerTable tbody td{
  border-top: 1px solid rgba(9,18,37,.12);
}

/* =========================
   Past presidents placeholder
========================= */
.pastBox{
  border: 1px solid rgba(9,18,37,.12);
  border-radius: 16px;
  padding: 18px 18px 8px;
  background: rgba(42,111,232,.03);
}

.pastBox__title{
  font-weight: 1000;
  font-size: 18px;
  margin: 0 0 8px;
}

.pastBox__desc{
  margin: 0 0 14px;
  color: rgba(9,18,37,.72);
  line-height: 1.7;
}

.pastList{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.pastItem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 14px;
  border-radius: 12px;
  background:#fff;
  border: 1px solid rgba(9,18,37,.10);
}

.pastItem__year{
  font-weight: 1000;
}

.pastItem__hint{
  color: rgba(9,18,37,.55);
  font-weight: 800;
}

/* 모바일 */
@media (max-width: 720px){
  .officersTitle{ font-size: 28px; }
  .officersTabs{ gap: 10px; }
  .officersTab{ font-size: 16px; }
  .officerTable th, .officerTable td{ padding: 14px 10px; font-size: 14px; }
}


/* =========================================================
   ✅ 상단(회원/임원진) 탭
   - sportsmed 사이트처럼 "밑줄" 형태로 보이도록 구성
========================================================= */
.primaryTabs{
  display:flex;
  gap: 22px;
  border-bottom: 1px solid rgba(9,18,37,.18);
  margin: 18px 0 28px;
}

.primaryTab{
  appearance:none;
  border:0;
  background:transparent;
  padding: 14px 8px;
  font-weight: 800;
  font-size: 17px;
  color: rgba(9,18,37,.55);
  cursor:pointer;
  position:relative;
}

.primaryTab.is-active{
  color: var(--topbar-a);
}

.primaryTab.is-active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:3px;
  background: var(--topbar-a);
  border-radius: 3px 3px 0 0;
}

.primaryPanel{ display:none; }
.primaryPanel.is-active{ display:block; }

/* =========================================================
   ✅ 회원명단(표 + 검색)
========================================================= */
.membersHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
  margin: 6px 0 14px;
}

.membersTitle{
  margin:0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing:-0.02em;
}

.membersSearch{
  display:flex;
  align-items:center;
  gap: 10px;
}

.membersSearch__label{
  font-size: 13px;
  color: rgba(9,18,37,.65);
}

.membersSearch__input{
  width: 280px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border:1px solid rgba(9,18,37,.18);
  background:#fff;
  outline:none;
}

.membersSearch__input:focus{
  border-color: rgba(42,111,232,.55);
  box-shadow: 0 0 0 4px rgba(42,111,232,.12);
}

.membersTableWrap{
  overflow:auto;
  border:1px solid rgba(9,18,37,.12);
  border-radius: 12px;
  background:#fff;
}

.membersTable{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.membersTable th,
.membersTable td{
  padding: 12px 14px;
  border-bottom:1px solid rgba(9,18,37,.10);
  font-size:14px;
  vertical-align:middle;
}

.membersTable th{
  background: rgba(9,18,37,.06);
  font-weight:900;
}

.membersTable tr:last-child td{ border-bottom:0; }

@media (max-width: 520px){
  .membersSearch__input{ width: 100%; }
}


/* 회원 명단 표: 이름/소속 가운데 정렬 */
.membersTable th, .membersTable td{ text-align:center; }


/* =========================================================
   ✅ (수정) 임원진 영역을 한 화면에 연속으로 보이게 하는 보조 스타일
========================================================= */
.officersPanel--stacked{
  display:block;
}


/* =========================================================
   ✅ [추가] 역대 임원 명단 표 전용 스타일
   - 열이 5개라서 데스크톱/모바일 모두 읽기 쉽도록 최소 너비와 줄간격을 보강했습니다.
========================================================= */
.officerTableWrap--history{
  overflow-x:auto; /* ✅ [추가] 칸 수가 많을 때 모바일에서 표가 잘리지 않도록 가로 스크롤을 허용합니다. */
}

.officerTable--history{
  min-width: 880px; /* ✅ [추가] 임기/회장/총무/감사/학술위원장 5개 열이 찌그러지지 않게 최소 너비를 지정했습니다. */
}

.officerTable--history td{
  line-height: 1.65; /* ✅ [추가] 감사 칸에 여러 명이 들어가도 답답하지 않게 줄 간격을 넉넉하게 조정했습니다. */
  vertical-align: middle;
}
