/* ===== 페이지 타이틀 바 ===== */
.page-title-bar {
  background: var(--navy);
  padding: .7rem 0;
  border-bottom: 3px solid var(--gold);
}
.page-title-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem;
}
.page-title-bar h1 {
  font-size: 1.15rem; font-weight: 900; color: #fff;
}
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.bc-sep { margin: 0 .35rem; }

/* ===== 섹션 탭 내비 ===== */
.sec-nav-wrap {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 52px; z-index: 100;
}
.sec-nav {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav li a {
  display: block; padding: .75rem 1.1rem;
  font-size: .95rem; font-weight: 700; color: var(--sub);
  white-space: nowrap; border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.sec-nav li a:hover,
.sec-nav li.current a { color: var(--navy); border-color: var(--navy); }

/* ===== 본문 공통 ===== */
.about-wrap { padding: 2rem 0 3rem; max-width: 900px; }
.sec-title {
  font-size: 1.3rem; font-weight: 900; color: var(--navy);
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 1.5rem;
}

/* ===== 사진 플레이스홀더 공통 ===== */
.person-photo {
  background: #dde3ee;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.person-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.person-photo .photo-icon {
  color: #8090aa;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.person-photo .photo-icon svg { width: 55%; height: 55%; }
/* 사진이 로드되면 아이콘 숨김 */
.person-photo img + .photo-icon { display: none; }

/* ===== 회장 인사말 ===== */
.greeting-layout {
  display: flex; gap: 2rem; align-items: flex-start;
}
.greeting-photo {
  width: 180px; height: 230px;
  flex-shrink: 0;
}
.greeting-badge {
  display: inline-block; font-size: .78rem; font-weight: 800;
  color: var(--white); background: var(--navy);
  padding: .15rem .6rem; margin-bottom: .9rem;
  letter-spacing: .1em;
}
.greeting-head {
  font-size: 1.2rem; font-weight: 900; color: var(--navy);
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 1.2rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}
.greeting-body p { margin-bottom: 1rem; color: #2a2a2a; line-height: 2; }
.greeting-closing { font-weight: 800; color: var(--navy); margin-top: 1.4rem !important; }
.greeting-sig {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: right; color: #444; line-height: 1.7;
  font-size: 1rem;
}
.greeting-sig strong { color: var(--navy); }

/* ===== 설립 목적 & 회칙 ===== */
.purpose-box {
  background: var(--navy-lt);
  border-left: 4px solid var(--navy);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.8rem;
}
.purpose-head { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.purpose-box p { color: #2a2a2a; line-height: 1.9; }
.purpose-ref { font-size: .82rem; color: var(--sub); margin-left: .4rem; }
.rules-box { background: var(--white); border: 1px solid var(--border); }
.rules-head {
  font-size: 1rem; font-weight: 800; color: var(--white);
  background: var(--navy); padding: .7rem 1.3rem;
}
.rules-content { padding: 1.3rem 1.5rem; }
.rules-chapter { margin-bottom: 1.4rem; }
.rules-chapter:last-child { margin-bottom: 0; }
.rules-chapter h4 {
  font-size: 1rem; font-weight: 800; color: var(--navy);
  margin-bottom: .5rem; padding-bottom: .35rem;
  border-bottom: 1px solid var(--navy-lt);
}
.rules-chapter p { font-size: .97rem; color: #333; line-height: 1.9; margin-bottom: .5rem; }
.rules-chapter p:last-child { margin-bottom: 0; }
.rules-history { font-size: .82rem !important; color: var(--sub) !important; margin-top: .3rem; }

/* ===== 임역원 소개 ===== */
.officer-section { margin-bottom: 2.5rem; }
.officer-section--narrow .officer-section-title { width: fit-content; min-width: 80px; }
.officer-section-title {
  font-size: .97rem; font-weight: 900; color: var(--white);
  background: var(--navy); padding: .42rem 1rem;
  margin-bottom: 1rem; letter-spacing: .04em;
}

/* 카드 공통 */
.officer-card {
  background: var(--white); border: 1px solid var(--border);
  text-align: center; overflow: hidden;
}
.officer-card.vip { border-color: var(--navy); }
.officer-card .person-photo { width: 100%; aspect-ratio: 3/4; max-height: 160px; }
.officer-card .card-info { padding: .4rem .4rem .5rem; }
.officer-card .officer-role {
  display: block; font-size: .68rem; font-weight: 800;
  color: var(--sub); margin-bottom: .1rem;
}
.officer-card .officer-name { display: block; font-size: .85rem; font-weight: 800; }
.officer-card .officer-church { display: block; font-size: .72rem; color: var(--sub); margin-top: .05rem; }

/* VIP 라벨 */
.vip-label {
  background: var(--navy); color: #fff;
  font-size: .82rem; font-weight: 900;
  padding: .35rem .5rem; text-align: center;
  letter-spacing: .08em;
}

/* VIP 3인 그리드 (명예회장 / 회장 / 수석부회장) */
.officer-grid-vip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .85rem; max-width: 390px; margin-bottom: 1.5rem;
}
.officer-grid-vip .officer-card { border-color: var(--navy); }
.officer-grid-vip .officer-card .officer-name { font-size: 1rem; }

/* 단독 카드 (명예회장·회장·수석부회장) */
.officer-grid-single {
  display: flex; gap: .85rem;
  max-width: 150px;
}

/* 5열 그리드 */
.officer-grid-4 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem;
}
@media (max-width: 720px) {
  .officer-grid-vip { grid-template-columns: repeat(3, 1fr); }
  .officer-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .officer-grid-vip { grid-template-columns: repeat(2, 1fr); }
}

/* 하위호환: 기존 클래스 유지 */
.officer-grid-lg { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:.75rem; }
.officer-card-lg { background:var(--white); border:1px solid var(--border); text-align:center; overflow:hidden; }
.officer-card-lg.vip { border-color:var(--navy); }
.officer-card-lg .person-photo { width:100%; aspect-ratio:3/4; }
.officer-card-lg .card-info { padding:.7rem .6rem .8rem; }
.officer-card-lg .officer-role { display:block; font-size:.78rem; font-weight:800; color:var(--sub); margin-bottom:.2rem; }
.officer-card-lg .officer-name { display:block; font-size:1.05rem; font-weight:800; }
.officer-card-lg .officer-church { display:block; font-size:.82rem; color:var(--sub); margin-top:.15rem; }
.officer-grid-sm { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:.6rem; }
.officer-card-sm { background:var(--white); border:1px solid var(--border); text-align:center; overflow:hidden; }
.officer-card-sm .person-photo { width:100%; aspect-ratio:3/4; }
.officer-card-sm .card-info { padding:.55rem .5rem .65rem; }
.officer-card-sm .officer-role { display:block; font-size:.74rem; font-weight:800; color:var(--sub); margin-bottom:.15rem; }
.officer-card-sm .officer-name { display:block; font-size:.95rem; font-weight:800; }
.officer-card-sm .officer-church { display:block; font-size:.78rem; color:var(--sub); margin-top:.1rem; }

/* ===== 역대 회장 ===== */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .55rem;
}
.history-card {
  background: var(--white); border: 1px solid var(--border);
  text-align: center; overflow: hidden;
}
.history-card.current { border-color: var(--navy); }
.history-card .person-photo { width: 100%; aspect-ratio: 4/5; }
.history-card .card-info { padding: .4rem .4rem .55rem; }
.hist-gen {
  display: block; font-size: .68rem; font-weight: 800;
  color: var(--sub); letter-spacing: .05em; margin-bottom: .1rem;
}
.hist-name { display: block; font-size: .85rem; font-weight: 800; }
.hist-church { display: block; font-size: .72rem; color: var(--sub); margin-top: .05rem; }
.hist-badge {
  display: inline-block; font-size: .72rem; font-weight: 800;
  color: var(--white); background: var(--navy);
  padding: .1rem .45rem; margin-top: .35rem;
}

/* ===== 연락처 ===== */
.contact-officers {
  display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.contact-person {
  background: var(--white); border: 1px solid var(--border);
  text-align: center; overflow: hidden; width: 150px;
}
.contact-person .person-photo { width: 100%; aspect-ratio: 3/4; }
.contact-person .card-info { padding: .65rem .5rem .8rem; }
.contact-person .officer-role {
  display: block; font-size: .78rem; font-weight: 800;
  color: var(--sub); margin-bottom: .15rem;
}
.contact-person .officer-name { display: block; font-size: 1rem; font-weight: 800; }
.contact-person .officer-phone {
  display: block; font-size: .85rem; color: var(--navy);
  font-weight: 700; margin-top: .2rem;
}
.contact-table-wrap { background: var(--white); border: 1px solid var(--border); max-width: 700px; }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th,
.contact-table td {
  padding: .9rem 1.2rem; border-bottom: 1px solid #f0f1f3;
  font-size: 1rem; text-align: left; line-height: 1.6;
}
.contact-table tr:last-child th,
.contact-table tr:last-child td { border-bottom: none; }
.contact-table th {
  width: 90px; font-weight: 800; color: var(--navy);
  background: var(--navy-lt); white-space: nowrap;
}
.contact-table td { color: #2a2a2a; }

/* ===== 반응형 ===== */
@media (max-width: 720px) {
  .sec-nav-wrap { top: 0; }
  /* 인사말 — 세로 배치 + 중앙 정렬 */
  .greeting-layout { flex-direction: column; align-items: center; text-align: center; }
  .greeting-photo { width: 160px; height: 200px; }
  .greeting-sig { text-align: center; }
  .greeting-body p { text-align: left; }
  /* 본문 패딩 */
  .about-wrap { padding: 1.2rem 0 2rem; }
  /* 임역원 그리드 */
  .officer-grid-lg { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .officer-grid-sm { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .officer-grid-4 { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  /* 역대회장 */
  .history-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  /* 연락처 */
  .contact-table th { width: 70px; font-size: .9rem; }
  .contact-table td { font-size: .9rem; }
  /* 연락처 사진 */
  .contact-officers { gap: .7rem; }
  .contact-person { width: 120px; }
}
@media (max-width: 420px) {
  .officer-grid-lg { grid-template-columns: repeat(3, 1fr); }
  .officer-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .officer-grid-4  { grid-template-columns: repeat(3, 1fr); }
  .history-grid    { grid-template-columns: repeat(3, 1fr); }
}
