* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  background: #ffffff;
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 고정된 헤더(로고바 60px + 유틸리티바 37px) 높이만큼 본문을 밀어냄.
   브로드시트 홈(home.html, body.page-home)은 별도의 고정 헤더가 없으므로 제외 */
body:not(.page-home) {
  padding-top: 97px;
}

/* ===== 헤더 ===== */
.header {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

/* 상단 유틸리티 메뉴 */
.topbar {
  border-bottom: 1px solid #f2f2f2;
  background: #fafafa;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 36px;
  padding: 0 28px;
}

.topbar-inner a {
  color: #777777;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.topbar-inner a:hover {
  color: #333333;
}

.topbar-inner .divider {
  color: #dddddd;
  font-size: 11px;
}

/* 메인 네비게이션 */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
}

.navbar .brand {
  font-size: 22px;
  font-weight: 800;
  color: #333333;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar .menu {
  display: flex;
  gap: 4px;
  list-style: none;
}

.navbar .menu a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  color: #444444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.navbar .menu a:hover {
  background: #f5f5f5;
}

.navbar .menu a.active {
  background: #333333;
  color: #ffffff;
  font-weight: 600;
}

/* ===== 가운데 영역 (사이드 + 본문) ===== */
.layout {
  display: flex;
  flex: 1;
}

/* 좌측 사이드 메뉴 (오프캔버스 드로어: 평소 숨김, 햄버거로 열기) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  max-width: 80vw;
  height: 100%;
  z-index: 1100;
  background: #fafafa;
  border-right: 1px solid #ececec;
  padding: 72px 16px 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.18);
}

/* 드로어 닫기(×) 버튼 */
.sidebar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #888888;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-close:hover {
  background: #f0f0f0;
  color: #333333;
}

/* 어두운 배경 오버레이 */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* 햄버거 버튼 (좌상단) */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.hamburger:hover {
  background: #f2f2f2;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333333;
  border-radius: 2px;
}

/* 상단 메뉴 슬라이더 (모바일에서 좌우 화살표 노출) */
.menu-slider {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-arrow {
  display: none; /* 데스크톱에서는 숨김 */
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #555555;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, opacity 0.15s;
}

.menu-arrow:hover {
  background: #f2f2f2;
}

.menu-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #555555;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}

.sidebar a:hover {
  background: #f0f0f0;
}

.sidebar a.active {
  background: #efefef;
  color: #333333;
  font-weight: 600;
}

/* 본문 */
.content {
  flex: 1;
  padding: 40px;
}

.content h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.content p.lead {
  color: #777777;
  font-size: 16px;
  margin-bottom: 28px;
}

/* ===== 하단 푸터 ===== */
.footer {
  border-top: 1px solid #ececec;
  background: #fafafa;
  padding: 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: #888888;
  font-size: 13px;
  line-height: 1.7;
}

.footer-addr {
  color: #555555;
  font-weight: 500;
}

.footer-contact {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0;
}

.footer-contact span {
  position: relative;
}

.footer-contact span:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -10px;
  color: #dddddd;
}

.footer-copy {
  margin-top: 8px;
  color: #aaaaaa;
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ===== 버튼 (라운드) ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: #333333;
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  background: #ffffff;
  color: #333333;
  border: 1px solid #d5d5d5;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.actions {
  display: flex;
  gap: 12px;
}

/* ===== 폼 카드 ===== */
.card {
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 32px 28px;
}

.card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.card .subtitle {
  color: #888888;
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  font-size: 15px;
  transition: border 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: #999999;
}

.form-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #888888;
}

/* ===== 휴대폰번호 필수 입력 모달 (로그인 시 미입력 계정) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-card .hint-err {
  color: #c0392b;
  font-size: 13px;
  margin: -8px 0 14px;
  display: none;
}

.modal-card .hint-err.show {
  display: block;
}

.form-footer a {
  color: #333333;
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ===== 게시판 ===== */
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.board-head h1 {
  margin-bottom: 0;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table thead th {
  border-top: 2px solid #333333;
  border-bottom: 1px solid #dddddd;
  padding: 12px 8px;
  color: #555555;
  font-weight: 600;
  background: #fafafa;
}

.board-table tbody td {
  border-bottom: 1px solid #eeeeee;
  padding: 12px 8px;
  text-align: center;
  color: #555555;
}

.board-table tbody td.title {
  text-align: left;
}

/* 실회원 명단 등 긴 표에서 스크롤해도 헤더 행이 고정되도록 */
.sticky-table-wrap {
  max-height: 640px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #eeeeee;
}

.sticky-table-wrap table.board-table {
  border-collapse: separate;
  border-spacing: 0;
}

.sticky-table-wrap table.board-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 #dddddd;
}

.sticky-table-wrap table.board-table tbody td {
  border-bottom: 1px solid #eeeeee;
}

.grade-select {
  padding: 5px 8px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 13px;
}

.join-date-input {
  width: 100px;
  padding: 5px 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  text-align: center;
}

.join-date-input:focus {
  outline: none;
  border-bottom: 1px solid #999999;
}

.board-table tbody tr:hover {
  background: #fafafa;
}

.board-table .title a {
  color: #333333;
  text-decoration: none;
}

.board-table .title a:hover {
  text-decoration: underline;
}

.clip {
  color: #4f7cff;
  margin-left: 6px;
  font-size: 13px;
}

.board-empty {
  text-align: center;
  color: #aaaaaa;
  padding: 40px 0;
}

/* 작성 폼 */
.write-form {
  border-top: 2px solid #333333;
}

.write-row {
  display: flex;
  border-bottom: 1px solid #eeeeee;
}

.write-row .label {
  width: 120px;
  flex-shrink: 0;
  background: #fafafa;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  display: flex;
  align-items: center;
}

.write-row .field {
  flex: 1;
  padding: 10px 14px;
}

.write-row .field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 14px;
}

.write-row .field textarea {
  width: 100%;
  min-height: 220px;
  padding: 10px 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.write-row .field input:focus,
.write-row .field textarea:focus {
  outline: none;
  border-color: #999999;
}

.file-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #aaaaaa;
}

.file-list {
  list-style: none;
  margin-top: 8px;
  font-size: 13px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #555555;
}

.file-list .remove {
  color: #d33;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 13px;
}

.btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* 상세 보기 */
.view-head {
  border-top: 2px solid #333333;
  border-bottom: 1px solid #dddddd;
  padding: 18px 8px;
}

.view-head h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.view-meta {
  font-size: 13px;
  color: #999999;
  display: flex;
  gap: 16px;
}

.view-attach {
  border-bottom: 1px solid #eeeeee;
  padding: 14px 8px;
  font-size: 14px;
  background: #fafafa;
}

.view-attach strong {
  color: #555555;
  margin-right: 10px;
}

.view-attach a {
  color: #4f7cff;
  text-decoration: none;
  margin-right: 14px;
}

.view-attach a:hover {
  text-decoration: underline;
}

.view-body {
  padding: 24px 8px;
  min-height: 160px;
  font-size: 15px;
  line-height: 1.8;
  color: #444444;
  white-space: pre-wrap;
  border-bottom: 1px solid #eeeeee;
}

/* 첨부한 이미지(결산보고서·회의록 스캔 등)를 본문 아래에 펼쳐 보여주는 영역 */
.view-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 8px 4px;
}

.view-images img {
  display: block;
  width: 100%;
  max-width: 820px;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
}

/* ===== 상단 이미지 슬라이드 (5장, 자동 전환) ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1568 / 544;
  background: #111111;
  border-top: 1px solid #ececec;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

/* ----- 히어로 좌측 세로 페이지 인디케이터 (about.html 등 메인 홈용) ----- */
.hero-pagenav {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.hero-pagenav-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-pagenav-indicator {
  position: absolute;
  left: -5.5px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a84c;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4);
  transition: top 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-pagenav-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 22px;
}

.hero-pagenav-btn {
  background: none;
  border: none;
  padding: 3px 0;
  cursor: pointer;
  font-family: inherit;
}

.hero-pagenav-num {
  font-size: 20px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.hero-pagenav-btn:hover .hero-pagenav-num {
  color: rgba(255, 255, 255, 0.9);
}

.hero-pagenav-btn.is-active .hero-pagenav-num {
  color: #ffffff;
  font-weight: 800;
  font-size: 23px;
}

@media (max-width: 900px) {
  .hero-pagenav {
    display: none;
  }
}

/* ===== 토스트 메시지 (alert() 대체) ===== */
#toast-container {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: #1a2744;
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(90vw, 420px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 특별회원 접근 제어 ===== */
.lock-box {
  max-width: 460px;
  margin: 40px auto;
  text-align: center;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 48px 32px;
  background: #fafafa;
}

.lock-box .lock-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.lock-box h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.lock-box p {
  color: #777777;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.demo-hint {
  margin-top: 14px;
  font-size: 12px;
  color: #999999;
  text-align: center;
  line-height: 1.6;
}

.check-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  color: #555555;
  cursor: pointer;
  line-height: 1.5;
}

.check-group input {
  margin-top: 2px;
}

.topbar-inner .welcome {
  color: #444444;
  font-weight: 600;
  font-size: 13px;
}

/* ===== 관리자 회원관리 ===== */
.pending-count {
  font-size: 13px;
  color: #d9534f;
  font-weight: 600;
}

.admin-table td {
  font-size: 13px;
}

/* 실회원 명단 표: 아이디·이름 등 짧은 값 위주라 100% 폭으로 늘리면 보기 나쁘므로 적당한 고정 폭으로 제한
   (table-layout:auto는 긴 입력/버튼 열에 밀려 이름 등 텍스트 열이 부당하게 줄어들므로 fixed로 폭을 그대로 유지) */
.real-member-table {
  table-layout: fixed;
  width: 910px;
  max-width: 100%;
}

.real-member-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table select {
  padding: 6px 8px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.ok { background: #e7f6ec; color: #2e7d46; }
.badge.wait { background: #fdeaea; color: #c0392b; }
.badge.req { background: #eef2ff; color: #4f46e5; }

.act .mini {
  border: 1px solid #d5d5d5;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.act .mini:hover { background: #f5f5f5; }
.act .mini.primary { background: #333; color: #fff; border-color: #333; }
.act .mini.primary:hover { opacity: 0.85; }
.act .mini.danger { color: #c0392b; border-color: #e3b9b4; }
.act .mini.danger:hover { background: #fdeaea; }

.admin-note {
  margin-top: 18px;
  font-size: 13px;
  color: #888888;
  line-height: 1.7;
}

/* ===== 투표 ===== */
.poll-total {
  font-size: 13px;
  color: #888888;
  font-weight: 600;
}

.poll-card {
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 28px 26px;
  background: #ffffff;
  max-width: 560px;
}

.poll-q {
  font-size: 19px;
  margin-bottom: 18px;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: border 0.15s, background 0.15s;
}

.poll-option:hover {
  border-color: #999999;
  background: #fafafa;
}

.poll-msg {
  font-size: 14px;
  color: #777777;
  padding: 8px 0 4px;
}

.poll-msg.done {
  color: #2e7d46;
  font-weight: 600;
}

.poll-msg a {
  color: #333333;
  font-weight: 600;
}

.poll-divider {
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 20px 0 16px;
}

.poll-results-title {
  font-size: 14px;
  color: #555555;
  margin-bottom: 14px;
}

.poll-result {
  margin-bottom: 14px;
}

.poll-result-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555555;
  margin-bottom: 6px;
}

.poll-bar {
  height: 12px;
  background: #f0f0f0;
  border-radius: 999px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: #333333;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ===== 투표 생성/헤더 (관리자) ===== */
.poll-card {
  margin-bottom: 20px;
}

.poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.poll-head .poll-q {
  margin-bottom: 0;
}

.poll-card .poll-total {
  font-size: 12px;
  color: #999999;
  margin-bottom: 14px;
}

.poll-create {
  background: #fafafa;
}

.poll-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.poll-input:focus {
  outline: none;
  border-color: #999999;
}

.poll-create-opts {
  display: flex;
  flex-direction: column;
}

/* ===== 투표 마감일 ===== */
.poll-deadline-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  margin: 4px 0 6px;
}

.poll-deadline {
  font-size: 13px;
  color: #c0392b;
  background: #fdeaea;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.poll-deadline.over {
  color: #777777;
  background: #f0f0f0;
}

/* ===== 게시판 상단 고정(공지) ===== */
.pinned-row {
  background: #fffaf0;
}

.pinned-row:hover {
  background: #fff4e0;
}

.pinned-row td {
  border-bottom: 1px solid #f3e6cf;
}

.pin-flag {
  display: inline-block;
  color: #c0392b;
  font-weight: 700;
  font-size: 13px;
  margin-right: 2px;
}

.pin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  color: #555555;
  cursor: pointer;
}

/* ===================================================================
   홈 메인 디자인 (3단 패널 + 히어로 파노라마)
   =================================================================== */
.home-content {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* ----- 상단 3단 정보 패널 ----- */
.home-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.panel {
  background: #ffffff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.panel-notice {
  border-left: 3px solid #5b9bd5;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.panel-sub {
  display: block;
  font-size: 12px;
  color: #999999;
  margin-top: 3px;
}

.leaf {
  color: #4caf50;
}

.view-btn {
  flex-shrink: 0;
  background: #eef0f8;
  color: #6b6f8a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.view-btn:hover {
  background: #e2e5f3;
}

/* NOTICE 게시글 목록 */
.notice-list {
  list-style: none;
}

.notice-list li {
  position: relative;
  padding: 9px 0 9px 14px;
  border-bottom: 1px dashed #eeeeee;
  font-size: 14px;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: 8px;
  color: #5b9bd5;
  font-weight: 700;
}

.notice-list a {
  display: block;
  color: #555555;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-list a:hover {
  color: #5b9bd5;
}

/* 자료실 / 주변환경 썸네일 */
.thumb {
  width: 100%;
  height: 120px;
  margin-bottom: 14px;
  background: #f4f6f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soft-btn {
  display: block;
  text-align: center;
  background: #eef0f8;
  color: #5a5f7d;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.soft-btn:hover {
  background: #e2e5f3;
}

.env-title {
  font-size: 22px;
  margin-top: 2px;
}

/* ----- 하단 히어로 파노라마 ----- */
.home-hero {
  position: relative;
  height: 420px;
  margin: 24px -40px -40px;          /* .content 패딩 상쇄 → 풀블리드 */
  width: calc(100% + 80px);
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #c8e8f5 0%,
    #e8f4e8 55%,
    #4a9c3a 55%,
    #3d8a2e 100%
  );
}

.hero-city {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 180px;
  opacity: 0.9;
  z-index: 1;
}

.balloon {
  position: absolute;
  height: 70px;
  z-index: 2;
}

.balloon1 { top: 32px; left: 8%; }
.balloon2 { top: 64px; left: 46%; height: 54px; }
.balloon3 { top: 22px; right: 12%; }

.hero-children {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 260px;
  z-index: 3;
}

.hero-text {
  position: absolute;
  left: 40px;
  bottom: 36px;
  z-index: 4;
  color: #ffffff;
}

.hero-script {
  font-family: "Dancing Script", cursive;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-en {
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.7;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================================================================
   모바일 / 태블릿 반응형
   =================================================================== */

/* 태블릿 이하 (1024px) : 사이드바 + 본문을 세로로 쌓기 */
@media (max-width: 1024px) {
  .content {
    padding: 28px 22px;
  }

  /* 히어로 풀블리드 보정 (.content 패딩 22px) */
  .home-hero {
    margin: 24px -22px -28px;
    width: calc(100% + 44px);
  }
}

/* 모바일 (768px) */
@media (max-width: 768px) {
  /* 상단 유틸리티 메뉴 : 줄바꿈 + 가운데 정렬 */
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    height: auto;
    padding: 8px 14px;
  }

  /* 메인 네비 : [좌상단 햄버거+브랜드] 한 줄 / 메뉴는 아래 가로 스크롤 */
  .navbar {
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
    padding: 12px 14px;
  }

  .nav-left {
    width: 100%;
    justify-content: flex-start;
  }

  /* 메뉴 슬라이더 : 화살표 + 가로 스크롤 트랙 */
  .menu-slider {
    width: 100%;
  }

  .menu-arrow {
    display: inline-flex;
  }

  .navbar .menu {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .navbar .menu::-webkit-scrollbar {
    display: none;
  }

  .navbar .menu a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }

  /* 본문 여백 축소 */
  .content {
    padding: 22px 16px;
  }

  .content h1 {
    font-size: 23px;
  }

  /* 버튼 액션 : 세로로 쌓고 꽉 채우기 */
  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  /* 게시판 헤더 : 제목 + 버튼 세로 정렬 */
  .board-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* 게시판 표 : 가로 스크롤 + 여백 축소 */
  .board-table {
    font-size: 13px;
  }

  .board-table thead th,
  .board-table tbody td {
    padding: 10px 6px;
  }

  /* 글쓰기 폼 : 라벨/입력을 세로로 */
  .write-row {
    flex-direction: column;
  }

  .write-row .label {
    width: 100%;
    padding: 10px 14px 4px;
  }

  /* 상세 보기 메타 정보 줄바꿈 */
  .view-meta {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  /* 카드/폼 영역 풀 너비 */
  .card,
  .poll-card,
  .lock-box {
    max-width: 100%;
  }

  /* 관리자 표 가로 스크롤 래퍼가 없으므로 폰트 축소 */
  .admin-table td,
  .admin-table th {
    font-size: 12px;
    padding: 8px 5px;
  }

  /* 푸터 여백 축소 */
  .footer {
    padding: 20px 16px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 4px;
  }

  /* 세로 구분선 제거(세로 정렬이므로) */
  .footer-contact span:not(:last-child)::after {
    content: "";
  }

  /* 홈 3단 패널 → 1단 세로 배치 */
  .home-panels {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel {
    min-height: auto;
  }

  /* 히어로 축소 (.content 패딩 16px) */
  .home-hero {
    height: 300px;
    margin: 18px -16px -22px;
    width: calc(100% + 32px);
  }

  .hero-children {
    height: 180px;
  }

  .hero-city {
    height: 120px;
  }

  .balloon {
    height: 48px;
  }

  .hero-text {
    left: 18px;
    bottom: 22px;
    padding: 12px 14px;
  }

  .hero-script {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .hero-en {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

/* 소형 모바일 (480px) */
@media (max-width: 480px) {
  .navbar .brand {
    font-size: 20px;
  }

  .navbar .menu a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .content {
    padding: 18px 13px;
  }

  .content h1 {
    font-size: 21px;
  }

  .card {
    padding: 24px 18px;
  }

  .btn-row {
    flex-wrap: wrap;
  }

  /* 히어로 풀블리드 보정 (.content 패딩 13px) */
  .home-hero {
    margin: 16px -13px -18px;
    width: calc(100% + 26px);
  }

  .hero-text {
    left: 13px;
  }
}

/* ═══════════════════════════════════════
   개선된 헤더 스타일
═══════════════════════════════════════ */

/* 유틸리티 바 */
.topbar {
  background: #1a2744 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 900;
}
.topbar-inner {
  justify-content: flex-end !important;
  height: 36px !important;
  padding: 0 20px !important;
  gap: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar-inner a {
  color: rgba(255,255,255,0.60) !important;
  font-size: 12px !important;
  padding: 0 11px !important;
  line-height: 36px !important;
  border-right: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  transition: color .18s;
}
.topbar-inner a:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.topbar-inner a:hover { color: #c9a84c !important; }
.topbar-inner .divider { display: none !important; }
.topbar-inner #auth-status { display: contents; }

/* 로고 바 */
.logobar {
  background: #1a2744;
  padding: 12px 20px 10px;
}
.logobar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.logobar-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}
.logobar-text { display: flex; flex-direction: column; }
.logobar-text .brand {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.logobar-text .brand-sub {
  font-size: 11px;
  color: #c9a84c;
  letter-spacing: 1.3px;
  font-weight: 400;
}

/* 메인 내비게이션 */
.navbar {
  background: #223066 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18) !important;
  height: auto !important;
  padding: 0 20px !important;
  justify-content: flex-start !important;
  position: relative;
  z-index: 200;
}
.navbar .brand { display: none !important; }
.navbar .menu {
  display: flex !important;
  gap: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  align-items: stretch;
}
.navbar .menu::-webkit-scrollbar { display: none; }
.navbar .menu li { display: flex; align-items: stretch; }
.navbar .menu a,
.navbar .menu button {
  color: rgba(255,255,255,0.82) !important;
  background: none !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 20px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: color .18s, border-color .18s, background .18s !important;
  letter-spacing: -0.2px;
}
.navbar .menu a:hover,
.navbar .menu button:hover,
.navbar .menu a.active,
.navbar .menu button[aria-expanded="true"] {
  color: #c9a84c !important;
  border-bottom-color: #c9a84c !important;
  background: rgba(255,255,255,0.05) !important;
}
#board-toggle .arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  transition: transform .25s;
  vertical-align: middle;
}
#board-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* 오버레이 */
.side-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.side-overlay.open { opacity: 1; pointer-events: auto; }

/* 사이드 패널 */
.side-panel {
  position: fixed; top: 0; left: 0;
  width: 260px; height: 100%;
  background: #fff; z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}
.side-panel.open { transform: translateX(0); }
.side-panel__head {
  background: #1a2744;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.side-panel__title { color: #c9a84c; font-size: 15px; font-weight: 700; }
.side-panel__close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 20px;
  line-height: 1; padding: 2px 4px; transition: color .18s;
}
.side-panel__close:hover { color: #fff; }
.side-panel__menu { flex: 1; overflow-y: auto; padding: 10px 0; }
.side-panel__menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  color: #1a2744; text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.side-panel__menu a:hover,
.side-panel__menu a.active {
  background: #f4f1ea; border-left-color: #c9a84c; font-weight: 700;
}
.side-panel__menu .menu-icon { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; }
.side-divider { height: 1px; background: #e8e2d8; margin: 5px 18px; }
.side-panel__foot {
  padding: 14px 18px; border-top: 1px solid #e8e2d8;
  font-size: 11.5px; color: #999; line-height: 1.8;
}

/* 모바일 */
@media (max-width: 600px) {
  .topbar-inner a { font-size: 11px !important; padding: 0 8px !important; }
  .logobar-text .brand { font-size: 17px !important; }
  .navbar .menu a,
  .navbar .menu button { font-size: 13px !important; padding: 0 13px !important; height: 44px !important; }
  .side-panel { width: 80vw; max-width: 290px; }
}


/* ═══════════════════════════════════════════
   sidebar: PC는 항상 표시 / 모바일은 숨김
═══════════════════════════════════════════ */

/* 모바일 (768px 이하): sidebar 숨기고 side-panel 사용 */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .layout { display: block !important; }
  .content { width: 100% !important; }
}

/* ═══════════════════════════════════════════
   PC: 로고 + 메뉴 한 줄 표시 (769px 이상)
═══════════════════════════════════════════ */
@media (min-width: 769px) {
  /* logobar와 navbar를 하나의 flex 행으로 합침 */
  .logobar {
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    height: 60px !important;
  }
  .logobar-inner {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  /* navbar를 logobar 오른쪽에 붙임 */
  .navbar {
    position: static !important;
    flex: 1 !important;
    box-shadow: none !important;
    padding: 0 0 0 30px !important;
    height: 60px !important;
    background: #1a2744 !important;
  }
  .navbar .menu {
    height: 60px !important;
  }
  .navbar .menu a,
  .navbar .menu button {
    height: 60px !important;
    border-bottom: 3px solid transparent !important;
    font-size: 14px !important;
  }
  .navbar .menu a:hover,
  .navbar .menu button:hover,
  .navbar .menu a.active,
  .navbar .menu button[aria-expanded="true"] {
    border-bottom-color: #c9a84c !important;
  }
  /* logobar + navbar 묶음을 flex로 */
  .header {
    display: flex !important;
    flex-direction: column !important;
  }
  .header > .logobar,
  .header > .navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  /* 두 줄을 한 줄로: logobar 안에 navbar를 포함시키는 효과 */
  .header > .logobar { order: 2; }
  .header > .topbar  { order: 1; }
  .header > .navbar  { order: 2; }
  .header > .hero-slider  { order: 3; }

  /* 실제 한 줄로: logobar에 navbar를 오른쪽 정렬 */
  .logobar {
    justify-content: space-between !important;
  }
  .navbar {
    padding: 0 !important;
    background: transparent !important;
  }
}

/* ═══════════════════════════════════════════
   headbar: 로고 + 메뉴 한 줄
═══════════════════════════════════════════ */
.headbar {
  background: #1a2744;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 901;
}
.headbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 20px;
}
.headbar .logobar-icon {
  width: 44px; height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}
.headbar .logobar-text { display: flex; flex-direction: column; }
.headbar .brand {
  font-size: 23px; font-weight: 800;
  color: #fff; text-decoration: none;
  letter-spacing: -0.5px; line-height: 1.2;
}
.headbar .brand-sub {
  font-size: 12.5px; color: #c9a84c;
  letter-spacing: 1.2px; font-weight: 500;
}
.headbar .navbar {
  flex: 1;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 60px !important;
  position: static !important;
  z-index: auto !important;
}
.headbar .navbar .menu {
  height: 60px !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.headbar .navbar .menu::-webkit-scrollbar { display: none; }
.headbar .navbar .menu a,
.headbar .navbar .menu button {
  height: 60px !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 16.5px !important;
  font-weight: 600 !important;
  padding: 0 20px !important;
  border-bottom: 3px solid transparent !important;
  background: none !important;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center;
  white-space: nowrap; text-decoration: none;
  transition: color .18s, border-color .18s;
}
.headbar .navbar .menu a:hover,
.headbar .navbar .menu button:hover,
.headbar .navbar .menu a.active,
.headbar .navbar .menu button[aria-expanded="true"] {
  color: #c9a84c !important;
  border-bottom-color: #c9a84c !important;
}

/* 모바일: 로고 → 유틸리티 줄(홈으로 등) → 메뉴 줄(장교빌딩 소개 등) → 히어로 순서로 재배치 */
@media (max-width: 768px) {
  .header { display: flex; flex-direction: column; }

  /* headbar 박스 자체는 렌더링에서 빠지고, 내부의 로고/메뉴가 .header의 개별 flex 아이템이 됨 */
  .headbar { display: contents; }

  .headbar-logo {
    order: 1;
    margin-right: 0;
    width: 100%;
    background: #1a2744;
    padding: 10px 16px 8px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 902;
  }

  .topbar {
    order: 2;
    top: 58px; /* .headbar-logo 실제 높이(10+40+8)만큼 아래에서 고정 */
    z-index: 901;
  }

  .headbar .navbar {
    order: 3;
    width: 100%;
    height: 44px !important;
    background: #1a2744 !important;
    padding: 0 16px !important;
    position: fixed !important;
    top: 95px !important; /* 58px(로고) + 37px(유틸리티 줄) */
    left: 0 !important;
    right: 0 !important;
    z-index: 900 !important;
  }
  .headbar .navbar .menu { height: 44px !important; }
  .headbar .navbar .menu a,
  .headbar .navbar .menu button { height: 44px !important; font-size: 13px !important; padding: 0 12px !important; }

  .hero-slider { order: 4; }

  body:not(.page-home) {
    padding-top: 139px; /* 로고(58) + 유틸리티(37) + 메뉴(44) */
  }
}

/* ===== 관리자 본문 수정 툴바 ===== */
.content-edit-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: #fff8ea;
  border: 1px solid #f0dcae;
  border-radius: 8px;
}

.content-editable-area.editing {
  outline: 2px dashed #c9a84c;
  outline-offset: 8px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   홈 화면 — 브로드시트(신문 인쇄) 스타일 리디자인
   종이빛 배경 + 잉크빛 세리프 + 시안 포인트, 박스 없이 여백/글자크기로 위계
═══════════════════════════════════════════════════════════════ */
body.page-home {
  --paper: #f3f2f2;
  --ink: #201e1d;
  --ink-70: rgba(32, 30, 29, 0.7);
  --ink-60: rgba(32, 30, 29, 0.6);
  --ink-45: rgba(32, 30, 29, 0.45);
  --ink-32: rgba(32, 30, 29, 0.32);
  --ink-22: rgba(32, 30, 29, 0.22);
  --ink-12: rgba(32, 30, 29, 0.12);
  --cyan: #0088b0;
  --cyan-dark: #046f90;
  --magenta: #d6006c;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Noto Serif KR", serif;
}

body.page-home main.bs-main {
  flex: 1 0 auto;
}

body.page-home a {
  font-family: inherit;
}

/* ----- 좌측 고정 세로 섹션 내비게이션 ----- */
.secnav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 190px;
  z-index: 500;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.secnav-rail {
  position: absolute;
  left: 59px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink-12);
}

.secnav-body {
  position: relative;
  padding-left: 44px;
  pointer-events: auto;
}

.secnav-track {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.secnav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 30px;
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-family: inherit;
}

.secnav-num {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-32);
  transition: color 0.3s ease;
  font-variant-numeric: tabular-nums;
}

.secnav-tick {
  width: 20px;
  height: 1px;
  background: var(--ink-22);
  transition: background 0.3s ease, width 0.3s ease;
}

.secnav-btn:hover .secnav-num {
  color: var(--ink-60);
}

.secnav-btn.is-active .secnav-num {
  color: var(--ink);
  font-weight: 600;
}

.secnav-btn.is-active .secnav-tick {
  background: var(--cyan);
  width: 26px;
}

.secnav-indicator {
  position: absolute;
  left: 74px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.secnav-indicator-line {
  width: 34px;
  height: 1px;
  background: var(--cyan);
}

.secnav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.secnav--on-dark .secnav-rail {
  background: rgba(255, 255, 255, 0.28);
}

.secnav--on-dark .secnav-num {
  color: rgba(255, 255, 255, 0.5);
}

.secnav--on-dark .secnav-btn:hover .secnav-num {
  color: rgba(255, 255, 255, 0.8);
}

.secnav--on-dark .secnav-btn.is-active .secnav-num {
  color: #ffffff;
}

.secnav--on-dark .secnav-tick {
  background: rgba(255, 255, 255, 0.35);
}

.secnav--on-dark .secnav-label {
  color: #ffffff;
}

/* ----- 헤더 ----- */
.bs-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-12);
  position: relative;
  z-index: 50;
}

.bs-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px 24px 190px;
  gap: 24px;
}

.bs-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

.bs-brand-kr {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bs-brand-en {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-60);
}

.bs-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.bs-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
}

.bs-nav ul a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 5px;
}

.bs-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transition: right 0.25s ease;
}

.bs-nav ul a:hover::after {
  right: 0;
}

.bs-auth a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.bs-auth a[href="login.html"] {
  border: 1px solid var(--ink);
  padding: 8px 22px;
  transition: background 0.18s ease, color 0.18s ease;
}

.bs-auth a[href="login.html"]:hover {
  background: var(--ink);
  color: var(--paper);
}

.bs-auth .divider {
  color: var(--ink-22);
  margin: 0 8px;
  font-size: 12px;
}

.bs-auth .welcome {
  font-size: 13px;
  color: var(--ink);
}

/* ----- 히어로 슬라이드쇼 ----- */
.bs-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.bs-hero-slides {
  position: absolute;
  inset: 0;
}

.bs-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.bs-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.bs-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bsKenburns 26s ease-in-out infinite alternate;
}

.bs-hero-slide:nth-child(odd) img {
  transform-origin: 24% 32%;
}

.bs-hero-slide:nth-child(even) img {
  transform-origin: 76% 68%;
}

@keyframes bsKenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

.bs-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.45) 38%, rgba(10, 9, 8, 0) 68%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0) 46%);
}

.bs-hero-content {
  position: absolute;
  left: 250px;
  right: 96px;
  bottom: 56px;
  z-index: 3;
  color: #ffffff;
  max-width: 640px;
}

.bs-hero-caption {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

.bs-hero-headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

.bs-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
  max-width: 480px;
}

.bs-hero-actions {
  display: flex;
  gap: 14px;
}

/* ----- 히어로 이미지 페이지 인디케이터 (좌측 세로선 01~08) ----- */
.bs-hero-pagenav {
  position: absolute;
  left: 200px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.bs-hero-pagenav-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.bs-hero-pagenav-indicator {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(10, 9, 8, 0.4);
  transition: top 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.bs-hero-pagenav-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 16px;
}

.bs-hero-pagenav-btn {
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-family: inherit;
}

.bs-hero-pagenav-num {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.bs-hero-pagenav-btn:hover .bs-hero-pagenav-num {
  color: rgba(255, 255, 255, 0.8);
}

.bs-hero-pagenav-btn.is-active .bs-hero-pagenav-num {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .bs-hero-pagenav {
    display: none;
  }
}

/* ----- 버튼 (브로드시트 톤) ----- */
.bs-btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bs-btn-primary {
  background: var(--cyan);
  color: #ffffff;
  border-color: var(--cyan);
}

.bs-btn-primary:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
}

.bs-btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

.bs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* ----- 본문 2단 그리드 ----- */
.bs-content-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 96px 120px 190px;
}

.bs-grid {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 96px;
}

.bs-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--ink-12);
  padding-bottom: 18px;
}

.bs-col-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bs-more {
  font-size: 13px;
  color: var(--ink-60);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.bs-more:hover {
  color: var(--cyan);
}

.bs-notice-list {
  list-style: none;
}

.bs-notice-list li {
  border-bottom: 1px solid var(--ink-12);
}

.bs-notice-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  text-decoration: none;
  color: var(--ink);
}

.bs-notice-title {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.bs-notice-list a:hover .bs-notice-title {
  color: var(--cyan);
}

.bs-notice-date {
  font-size: 13px;
  color: var(--ink-45);
  font-variant-numeric: tabular-nums;
}

.bs-notice-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 2px 6px;
  flex-shrink: 0;
}

.bs-col-side {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.bs-side-block h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 16px;
}

.bs-side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.bs-side-list li {
  border-bottom: 1px solid var(--ink-12);
}

.bs-side-list a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bs-side-list a:hover {
  color: var(--cyan);
}

/* 방문한 링크도 브라우저 기본 보라색이 아닌 팔레트 색으로 고정 */
.bs-nav ul a:visited,
.bs-notice-list a:visited,
.bs-side-list a:visited {
  color: var(--ink);
}

.bs-more:visited {
  color: var(--ink-60);
}

.bs-side-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-60);
  margin-bottom: 14px;
}

/* ----- 푸터 ----- */
.bs-footer {
  padding: 28px 96px;
  text-align: center;
  border-top: 1px solid var(--ink-12);
}

.bs-footer p {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-45);
}

/* ----- 반응형 ----- */
@media (max-width: 900px) {
  .secnav {
    display: none;
  }

  .bs-header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .bs-hero-content {
    left: 24px;
    right: 24px;
  }

  .bs-content-section {
    padding: 72px 24px;
  }

  .bs-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .bs-footer {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .bs-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }

  .bs-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
  }

  .bs-nav ul {
    width: 100%;
    gap: 12px 20px;
    flex-wrap: wrap;
  }

  .bs-auth {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }

  .bs-hero {
    height: 70vh;
    min-height: 420px;
  }

  .bs-hero-headline {
    font-size: 30px;
  }

  .bs-hero-sub {
    font-size: 14px;
  }

  .bs-hero-actions {
    flex-direction: column;
  }

  .bs-content-section {
    padding: 56px 20px;
  }

  .bs-col-head h2 {
    font-size: 22px;
  }
}
