/* c3 카드 배경 아이콘 — 모바일 50% 축소 */
@media (max-width: 767px) {
  main#main_page section.c3 article .wrap .c3_swiper ul li .bg_wrap {
    height: 100px;
  }
}

/* c3 swiper — ul 높이 자동화 (height:100%가 pagination 포함 높이를 상속해 카드 아래 빈공간 생성 방지) */
main#main_page section.c3 article .wrap .c3_swiper ul.swiper-wrapper {
  gap: 0;
  margin: 0;
  padding: 0;
  height: auto;
}

/* c2 event 슬라이드 — dl justify-content 수정 (flex:1으로 dl이 확장될 때 텍스트 아래위 벌어짐 방지) */
main#main_page
  section.c2
  article
  .wrap
  > div.right_wrap
  .c2_swiper
  .swiper-wrapper
  .swiper-slide
  a
  dl {
  justify-content: flex-start;
  gap: 15px;
}

/* c2 event 슬라이드 — 행사 정보 표시 */
main#main_page
  section.c2
  article
  .wrap
  > div.right_wrap
  .c2_swiper
  .swiper-wrapper
  .swiper-slide
  a
  dl
  dd.event-period {
  font-size: 16px;
  color: #666;
  font-weight: 400;
  margin-top: -10px;
  line-height: 1.5;
}

main#main_page
  section.c2
  article
  .wrap
  > div.right_wrap
  .c2_swiper
  .swiper-wrapper
  .swiper-slide
  a
  dl
  dd.event-description {
  font-size: 16px;
  color: #888;
  margin-top: -5px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
  main#main_page
    section.c2
    article
    .wrap
    > div.right_wrap
    .c2_swiper
    .swiper-wrapper
    .swiper-slide
    a
    dl
    dd.event-period,
  main#main_page
    section.c2
    article
    .wrap
    > div.right_wrap
    .c2_swiper
    .swiper-wrapper
    .swiper-slide
    a
    dl
    dd.event-description {
    font-size: 14px;
  }
}

/* 헤더 로그인 래퍼 높이 정렬(global 버튼과 동일 패딩 기준) */
#header #header_wrap #header_right #login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  background: transparent;
  border: 0;
  line-height: 1;
  cursor: pointer;
}

/* 회비·기부 버튼: 줄바꿈 방지 + 텍스트만 모바일 숨김 (♥는 유지) */
#header #header_wrap #header_right .global a p {
  white-space: nowrap;
}

#header #header_wrap #header_right .global a p .dues-text {
  display: inline;
}

@media (max-width: 767px) {
  #header #header_wrap #header_right .global a p .dues-text {
    display: none;
  }
}

/* 회비·기부 버튼을 모든 해상도에서 항상 노출 */
#header #header_wrap #header_right .global {
  display: flex;
}

/* 헤더 로그인/마이페이지 아이콘 */
#header_right .header-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-right: 0;
  transition: color 0.2s;
}
#header_right .header-login-icon:hover {
  color: #1a6fc4;
}
#header.white #header_right .header-login-icon {
  color: #1e1e1e;
}
#header:not(.white) #header_right .header-login-icon {
  color: #1e1e1e;
}

/* 메뉴 열고 닫는 전환 중에도 아이콘 색상 고정 */
#header #header_wrap #header_right #login.header-login-icon,
#header.white #header_wrap #header_right #login.header-login-icon,
#header:not(.white) #header_wrap #header_right #login.header-login-icon,
body:has(#menuicon.active)
  #header
  #header_wrap
  #header_right
  #login.header-login-icon {
  color: #1e1e1e;
}

@media (max-width: 1024px) {
  #header #header_wrap #header_left .logo a > p {
    font-size: 14px;
  }
}

/* main c3 card override */
main#main_page section.c3 article .wrap .c3_swiper ul li {
  height: 347px;
  aspect-ratio: auto;
}

main#main_page
  section.c3
  article
  .wrap
  .c3_swiper
  ul
  li
  .box_content
  .box_bottom
  a {
  height: auto;
  opacity: 1;
  padding: 5px 20px;
  margin-top: 20px;
}

/* main c4 heading matches c2 title styling */
main#main_page section.c4 article > .wrap[data-aos] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

main#main_page section.c4 article > .wrap h3 {
  display: flex;
  align-items: center;
  gap: 5px;
}

main#main_page section.c4 article > .wrap h3 .icon {
  height: 30px;
}

main#main_page section.c4 article > .wrap h3 .icon svg {
  height: 100%;
  object-fit: contain;
}

main#main_page section.c4 article > .wrap h3 .tab_menu {
  font-size: 28px;
  font-weight: 600;
}

main#main_page section.c4 article > .wrap h3 .tab_menu .tab_btn {
  color: #a8a8a8;
}

main#main_page section.c4 article > .wrap h3 .tab_menu .tab_btn.active {
  color: #1e1e1e;
}

/* footer redesign */
#footer.footer-renew {
  background: #4d86d4;
  padding: 34px 0;
}

#footer.footer-renew .footer_wrap {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

#footer.footer-renew .footer_left {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  color: #fff;
}

#footer.footer-renew .footer_left .logo a {
  display: flex;
  align-items: center;
  gap: 30px;
}

#footer.footer-renew .footer_left .logo a > p {
  position: relative;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

#footer.footer-renew .footer_left .logo a > p::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

#footer.footer-renew .footer-logo-white {
  filter: brightness(0) invert(1);
}

#footer.footer-renew .address address {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  column-gap: 10px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

#footer.footer-renew .address address .full {
  width: 100%;
}

#footer.footer-renew .address address a {
  color: inherit;
  text-decoration: none;
}

#footer.footer-renew .address address a:hover {
  text-decoration: underline;
}

#footer.footer-renew .footer_right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

#footer.footer-renew .privacy-link {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

#footer.footer-renew .privacy-link:hover {
  text-decoration: underline;
}

#footer.footer-renew .family-site-wrap select {
  width: 251px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
  padding: 0 54px 0 22px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

#footer.footer-renew .family-site-wrap select option {
  color: #1e1e1e;
}

/* nice-select 적용 시 푸터 드롭다운 모양 유지 */
#footer.footer-renew .family-site-wrap .nice-select {
  width: 251px;
  position: relative;
}

#footer.footer-renew .family-site-wrap .nice-select .current {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
  padding: 0 54px 0 22px;
  cursor: pointer;
}

#footer.footer-renew .family-site-wrap .nice-select .current::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-60%) rotate(45deg);
}

#footer.footer-renew .family-site-wrap .nice-select .list {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: 100%;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #ffffff;
  z-index: 20;
}

#footer.footer-renew .family-site-wrap .nice-select.open .list {
  display: block;
}

#footer.footer-renew .family-site-wrap .nice-select .list .option {
  padding: 8px 14px;
  color: #1e1e1e;
  font-size: 14px;
  line-height: 1.4;
}

#footer.footer-renew .family-site-wrap .nice-select .list .option:hover,
#footer.footer-renew .family-site-wrap .nice-select .list .option.selected {
  background: #f2f6ff;
}

#footer.footer-renew .family-site-wrap .nice-select.open .current::after {
  transform: translateY(-40%) rotate(225deg);
}

@media (max-width: 1024px) {
  #footer.footer-renew {
    padding: 24px 0;
  }

  #footer.footer-renew .footer_wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  #footer.footer-renew .footer_left {
    flex-direction: column;
    gap: 12px;
  }

  #footer.footer-renew .footer_left .logo {
    width: 180px;
    min-width: 180px;
  }

  #footer.footer-renew .address address {
    font-size: 14px;
    line-height: 1.45;
  }

  #footer.footer-renew .footer_right {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  #footer.footer-renew .privacy-link {
    font-size: 14px;
  }

  #footer.footer-renew .family-site-wrap {
    flex: 1;
    max-width: 210px;
  }

  #footer.footer-renew .family-site-wrap .nice-select {
    width: 100%;
  }

  #footer.footer-renew .family-site-wrap .nice-select .current {
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
    padding: 0 40px 0 14px;
  }

  #footer.footer-renew .family-site-wrap .nice-select .current::after {
    right: 14px;
  }

  #footer.footer-renew .family-site-wrap select {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
    padding: 0 40px 0 14px;
    background-position:
      calc(100% - 16px) calc(50% - 3px),
      calc(100% - 10px) calc(50% - 3px);
  }
}

@media (max-width: 1024px) {
  #footer.footer-renew .footer_wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  #footer.footer-renew .footer_right {
    order: -1;
  }

  #footer.footer-renew .footer_left {
    order: 1;
  }
}

/* ============================================================
   AUTH PAGES — login / join / logout
   ============================================================ */

/* 페이지 전체 레이아웃 */
main#sub_page.auth {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  background: #f0f4fb;
}

.auth-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── 왼쪽 브랜드 패널 ── */
.auth-panel {
  flex: 0 0 420px;
  background: linear-gradient(155deg, #4688e3 0%, #2b5eb5 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

/* 장식용 원형 도형들 */
.auth-panel::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -100px;
  right: -120px;
  pointer-events: none;
}
.auth-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: 40px;
  left: -70px;
  pointer-events: none;
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 100%;
}

.auth-panel-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}
.auth-panel-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}
.auth-panel-logo span {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

.auth-panel-content h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.auth-panel-content p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
}

.auth-panel-dots {
  display: flex;
  gap: 8px;
  margin-top: 56px;
}
.auth-panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s;
}
.auth-panel-dots span:first-child {
  background: rgba(255, 255, 255, 0.9);
  width: 24px;
  border-radius: 4px;
}

/* ── 오른쪽 폼 패널 ── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: #fff;
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 36px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ── 로그아웃 완료 메시지 ── */
.logout-message {
  text-align: center;
  padding: 20px 0 40px;
}
.logout-icon {
  margin-bottom: 20px;
}
.logout-desc {
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 8px;
}
.logout-redirect {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
}
.btn-logout-home {
  display: inline-block;
  padding: 12px 32px;
  background: #1e1e1e;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-logout-home:hover {
  background: #444;
}

/* ── 폼 요소 ── */
.auth .form-group {
  margin-bottom: 16px;
}
.auth .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.auth .form-group input[type="text"],
.auth .form-group input[type="password"],
.auth .form-group input[type="email"],
.auth .form-group input[type="tel"],
.auth .form-group input[type="number"],
.auth .form-group textarea {
  width: 100%;
  height: 52px;
  border: 1.5px solid #dde4f0;
  border-radius: 10px;
  font-size: 15px;
  color: #1e1e1e;
  padding: 0 16px;
  background: #f8fafd;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  letter-spacing: -0.01em;
}
.auth .form-group input:focus,
.auth .form-group textarea:focus {
  border-color: #4688e3;
  box-shadow: 0 0 0 3px rgba(70, 136, 227, 0.1);
  background: #fff;
}
.auth .form-group input::placeholder,
.auth .form-group textarea::placeholder {
  color: #bbb;
  font-size: 14px;
}

.auth .form-group textarea {
  height: auto;
  min-height: 68px;
  padding: 13px 16px;
  resize: vertical;
}

/* 아이디 중복 확인 row */
.input-with-btn {
  display: flex;
  gap: 8px;
}
.input-with-btn input {
  flex: 1;
  min-width: 0;
}
.btn-check {
  flex-shrink: 0;
  height: 52px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid #4688e3;
  border-radius: 10px;
  color: #4688e3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-check:hover {
  background: #4688e3;
  color: #fff;
}

/* 필드 메시지 */
.field-msg {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.field-msg.ok {
  color: #2ba84a;
}
.field-msg.error {
  color: #e53e3e;
}

/* 필수 표시 */
.required {
  color: #e53e3e;
  font-size: 11px;
  margin-left: 2px;
}

/* 읽기 전용 필드 */
.auth .form-group.readonly label {
  color: #aaa;
}
.readonly-val {
  font-size: 15px;
  color: #555;
  padding: 14px 16px;
  background: #f5f7fa;
  border: 1.5px solid #e8edf5;
  border-radius: 10px;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* fieldset (가입 폼) */
.auth fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.auth fieldset + fieldset {
  margin-top: 8px;
}
.auth fieldset legend {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: #4688e3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0 10px 0;
  margin: 22px 0 14px;
  border-bottom: 1.5px solid #edf1fb;
}

/* ── 버튼 ── */
.auth .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  text-decoration: none;
  letter-spacing: -0.02em;
  -webkit-appearance: none;
}
.auth .btn-primary {
  background: #4688e3;
  color: #fff;
  width: 100%;
  margin-top: 10px;
}
.auth .btn-primary:hover {
  background: #2d6fd8;
  box-shadow: 0 6px 20px rgba(70, 136, 227, 0.32);
}
.auth .btn-primary:disabled {
  background: #b5cff7;
  cursor: not-allowed;
  box-shadow: none;
}
.auth .btn-outline {
  background: transparent;
  color: #4688e3;
  border: 1.5px solid #4688e3;
}
.auth .btn-outline:hover {
  background: #f0f5ff;
}

.auth .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* 결과 메시지 박스 */
.form-result {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.form-result.success {
  background: #e8f7ee;
  color: #1a6b38;
  border: 1px solid #b7e4c7;
}
.form-result.error {
  background: #fff5f5;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* 하단 안내 링크 */
.auth-link {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-top: 24px;
  letter-spacing: -0.01em;
}
.auth-link a {
  color: #4688e3;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}
.auth-link a:hover {
  text-decoration: underline;
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .auth-panel {
    flex: 0 0 340px;
    padding: 60px 36px;
  }
  .auth-panel-content h2 {
    font-size: 22px;
  }
  .auth-form-panel {
    padding: 60px 36px;
  }
}

@media (max-width: 720px) {
  main#sub_page.auth {
    align-items: flex-start;
    background: #fff;
  }
  .auth-layout {
    flex-direction: column;
    min-height: auto;
  }
  .auth-panel {
    flex: none;
    position: relative;
    height: auto;
    align-self: auto;
    padding: 88px 28px 48px;
    text-align: center;
  }
  .auth-panel-logo {
    justify-content: center;
  }
  .auth-panel-content h2 {
    font-size: 20px;
  }
  .auth-panel-content p {
    font-size: 13px;
  }
  .auth-panel-dots {
    justify-content: center;
  }
  .auth-form-panel {
    padding: 40px 28px 72px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .auth-wrap {
    max-width: 100%;
  }
  .auth-title {
    font-size: 22px;
  }
}

/* ── 2열 폼 레이아웃 ── */
.auth .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

/* native select — nice-select가 적용되지 않는 환경 대비 (display는 !important 제거 — jQuery .hide() 허용) */
main#sub_page.auth .form-group select {
  display: block;
  width: 100% !important;
  height: 52px !important;
  border: 1.5px solid #dde4f0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  color: #1e1e1e !important;
  padding: 0 40px 0 16px !important;
  background-color: #f8fafd !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  cursor: pointer !important;
  letter-spacing: -0.01em;
  box-sizing: border-box !important;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background-color 0.18s;
}
main#sub_page.auth .form-group select:focus {
  border-color: #4688e3 !important;
  box-shadow: 0 0 0 3px rgba(70, 136, 227, 0.1) !important;
  background-color: #fff !important;
}

/* nice-select 위젯 — index.js의 $("select").niceSelect() 적용 시 */
main#sub_page.auth .form-group .nice-select {
  position: relative !important;
  width: 100% !important;
  height: 52px !important;
  line-height: 50px !important;
  border: 1.5px solid #dde4f0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  color: #1e1e1e !important;
  padding: 0 40px 0 16px !important;
  background-color: #f8fafd !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  letter-spacing: -0.01em;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background-color 0.18s;
  float: none !important;
}
main#sub_page.auth .form-group .nice-select::after {
  display: none !important;
}
main#sub_page.auth .form-group .nice-select.open,
main#sub_page.auth .form-group .nice-select:focus {
  border-color: #4688e3 !important;
  box-shadow: 0 0 0 3px rgba(70, 136, 227, 0.1) !important;
  background-color: #fff !important;
  outline: none !important;
}
main#sub_page.auth .form-group .nice-select .current {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 50px !important;
}
main#sub_page.auth .form-group .nice-select .list {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: #fff !important;
  border: 1.5px solid #dde4f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
main#sub_page.auth .form-group .nice-select.open .list {
  display: block !important;
}
main#sub_page.auth .form-group .nice-select .list .option {
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #1e1e1e !important;
  cursor: pointer !important;
  list-style: none !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background 0.1s;
}
main#sub_page.auth .form-group .nice-select .list .option:hover,
main#sub_page.auth .form-group .nice-select .list .option.focus {
  background: #f2f6ff !important;
}
main#sub_page.auth .form-group .nice-select .list .option.selected {
  color: #4688e3 !important;
  font-weight: 600 !important;
}

/* 주소 묶음 */
.addr-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 약관 동의 체크박스 */
.terms-group {
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.terms-group .checkbox-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
.terms-group .checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  border: 1.5px solid #bbb !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  cursor: pointer !important;
  accent-color: #4688e3;
}
.terms-group .checkbox-label input[type="checkbox"]:checked {
  border-color: #4688e3 !important;
}

/* 약관 전문 보기 버튼 */
.terms-view-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 3px 10px;
  font-size: 12px;
  color: #4688e3;
  background: transparent;
  border: 1px solid #4688e3;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1.6;
}
.terms-view-btn:hover {
  background: #4688e3;
  color: #fff;
}

/* ── 약관 모달 ── */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.terms-modal-overlay[hidden] {
  display: none;
}
.terms-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef1f8;
  flex-shrink: 0;
}
.terms-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
}
.terms-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #888;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.15s,
    color 0.15s;
}
.terms-modal-close:hover {
  background: #f0f3fa;
  color: #333;
}
.terms-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}
.terms-modal-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 20px 0 6px;
}
.terms-modal-body h4:first-child {
  margin-top: 0;
}
.terms-modal-body p {
  margin: 0 0 8px;
}
.terms-effective {
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid #eef1f8;
  font-size: 13px;
  color: #777;
}
.terms-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #eef1f8;
  flex-shrink: 0;
}
.terms-modal-footer .btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: #4688e3;
  color: #fff;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.terms-modal-footer .btn:hover {
  background: #2f6fd4;
}

/* 모달 버튼 색상 변형 — 다른 페이지에서 class 추가로 재활용 */
/* .btn--blue : 파란색 (기본값과 동일, 명시적 사용 시) */
.terms-modal-footer .btn.btn--blue {
  background: #4688e3;
  border-color: #4688e3;
  color: #fff;
}
.terms-modal-footer .btn.btn--blue:hover {
  background: #2f6fd4;
  border-color: #2f6fd4;
}

/* .btn--red : 붉은색 (탈퇴·삭제·위험 동작) */
.terms-modal-footer .btn.btn--red {
  background: #e53e3e;
  border-color: #e53e3e;
  color: #fff;
}
.terms-modal-footer .btn.btn--red:hover {
  background: #c53030;
  border-color: #c53030;
}

/* .btn--white : 흰색 아웃라인 (취소·보조 동작) */
.terms-modal-footer .btn.btn--white {
  background: #fff;
  border-color: #dde4f0;
  color: #445;
}
.terms-modal-footer .btn.btn--white:hover {
  background: #f5f7fb;
  border-color: #c5cfe8;
}
.btn-text {
  padding: 10px 16px;
  font-size: 14px;
  color: #888;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background 0.15s,
    color 0.15s;
}
.btn-text:hover {
  background: #f0f3fa;
  color: #444;
}

@media (max-width: 480px) {
  .terms-modal-box {
    max-height: 90vh;
    border-radius: 12px;
  }
  .terms-modal-header,
  .terms-modal-body,
  .terms-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 600px) {
  .auth .form-row {
    grid-template-columns: 1fr;
  }
}

/* join 페이지 — 폼이 넓어서 패널 비율 조정 */
main#sub_page.auth.join .auth-form-panel {
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}
main#sub_page.auth.join .auth-wrap {
  max-width: 480px;
}

/* mypage */
main#sub_page.mypage {
  min-height: 100vh;
  padding: 120px 3% 80px;
  background: #f5f7fb;
}
.mypage-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.mypage-wrap .page-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

/* 회원 정보 카드 */
.member-info-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(70, 136, 227, 0.08);
  padding: 36px 40px;
  margin-bottom: 20px;
}
.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #f0f4fb;
}
.member-name {
  font-size: 22px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.03em;
}
.member-year {
  font-size: 15px;
  font-weight: 600;
  color: #4688e3;
  background: #eef4ff;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-admin {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #4688e3;
  padding: 3px 10px;
  border-radius: 20px;
}
.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
}
.info-list dt {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  align-self: start;
  padding-top: 1px;
  letter-spacing: -0.01em;
}
.info-list dd {
  font-size: 15px;
  color: #333;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.mypage-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}
.mypage .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.mypage .btn-outline {
  background: #fff;
  color: #4688e3;
  border: 1.5px solid #4688e3;
}
.mypage .btn-outline:hover {
  background: #f0f5ff;
}
.mypage .btn-text {
  background: #fff;
  color: #999;
  border: 1.5px solid #e0e6f0;
}
.mypage .btn-text:hover {
  background: #f8f9fb;
  color: #555;
}

/* mypage edit — 섹션 카드 */
.edit-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(70, 136, 227, 0.08);
  padding: 36px 40px;
  margin-bottom: 20px;
}
.edit-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f0f4fb;
}

/* mypage edit — 폼 요소 (auth 스코프 밖에서도 동일 스타일 적용) */
.mypage.edit .form-group {
  margin-bottom: 16px;
}
.mypage.edit .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.mypage.edit .form-group.readonly label {
  color: #aaa;
}

.mypage.edit .form-group input[type="text"],
.mypage.edit .form-group input[type="password"],
.mypage.edit .form-group input[type="email"],
.mypage.edit .form-group input[type="tel"] {
  width: 100%;
  height: 52px;
  border: 1.5px solid #dde4f0;
  border-radius: 10px;
  font-size: 15px;
  color: #1e1e1e;
  padding: 0 16px;
  background: #f8fafd;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  letter-spacing: -0.01em;
  box-sizing: border-box;
}
.mypage.edit .form-group input:focus {
  border-color: #4688e3;
  box-shadow: 0 0 0 3px rgba(70, 136, 227, 0.1);
  background: #fff;
}
.mypage.edit .form-group input::placeholder {
  color: #bbb;
  font-size: 14px;
}
.mypage.edit .form-group input[readonly] {
  background: #f2f5fb;
  color: #888;
  cursor: default;
}
.mypage.edit .form-group input[readonly]:focus {
  border-color: #dde4f0;
  box-shadow: none;
  background: #f2f5fb;
}
.mypage.edit .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* 가로 배치 행 */
.mypage.edit .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}
.mypage.edit .form-row .form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 16px;
}
.mypage.edit .form-row .form-group--narrow {
  flex: 0 0 140px;
}

/* mypage edit — 비밀번호 확인 섹션 (진입 전 본인 확인) */
.pw-confirm-section {
  max-width: 460px;
  margin: 0 auto 20px;
}
.pw-confirm-section .pw-confirm-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 28px;
}
.pw-confirm-section .pw-confirm-desc strong {
  color: #4688e3;
}

@media (max-width: 767px) {
  main#sub_page.mypage {
    padding: 100px 5% 60px;
  }
  .member-info-card,
  .edit-section {
    padding: 24px 20px;
  }
  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 10px 14px;
  }
  .member-name {
    font-size: 18px;
  }
  .mypage-wrap .page-title {
    font-size: 22px;
  }
  .mypage-actions {
    flex-wrap: wrap;
  }
  .mypage.edit .form-row {
    flex-direction: column;
    gap: 0;
  }
  .mypage.edit .form-row .form-group--narrow {
    flex: 1;
  }
}

/* association greeting 서명 */
.association.greeting .greeting-sign {
  text-align: right;
}

/* association greeting 회장 사진 */
.association.greeting .chairman-photo img {
  width: 300px;
  margin: 40px 0;
}

@media (max-width: 767px) {
  .association.greeting .chairman-photo img {
    width: 200px;
  }
}

/* association greeting — company overview 동일 레이아웃 */
main#sub_page.association.greeting section.c3 article .wrap dl {
  display: flex;
  gap: 200px;
}
main#sub_page.association.greeting section.c3 article .wrap dl dt {
  font-size: 40px;
  font-weight: 600;
  min-width: 580px;
}
main#sub_page.association.greeting section.c3 article .wrap dl dd {
  font-size: 18px;
  line-height: 1.5;
}
main#sub_page.association.greeting section.c4 article .img_wrap {
  width: 100%;
  height: 600px;
}
main#sub_page.association.greeting section.c4 article .img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
main#sub_page.association.greeting section.c5 article .wrap .box_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
main#sub_page.association.greeting section.c5 article .wrap .box_wrap li {
  display: flex;
  width: calc(25% - 15px);
}
main#sub_page.association.greeting section.c5 article .wrap .box_wrap li dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
main#sub_page.association.greeting section.c5 article .wrap .box_wrap li dl dt {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #7ecaff;
  background-color: #edf8ff;
  border-radius: 10px;
  padding-block: 20px;
  font-size: 20px;
  font-weight: 500;
  color: #005b9a;
}
main#sub_page.association.greeting section.c5 article .wrap .box_wrap li dl dd {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px 20px 20px 20px;
  border: 1px solid #ebebeb;
  background-color: #f8f8f8;
  border-radius: 10px;
  flex: 1;
}
main#sub_page.association.greeting
  section.c5
  article
  .wrap
  .box_wrap
  li
  dl
  dd
  .text {
  flex: 1;
  font-size: 18px;
  padding-inline: 10px;
}
main#sub_page.association.greeting
  section.c5
  article
  .wrap
  .box_wrap
  li
  dl
  dd
  .img {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 325/189;
}
main#sub_page.association.greeting
  section.c5
  article
  .wrap
  .box_wrap
  li
  dl
  dd
  .img
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main#main_page
  section.c2
  article
  .wrap
  > div.right_wrap
  .c2_swiper
  .swiper-slide
  dl
  dt {
  margin-bottom: -15px; /* dt 아래 간격 */
}

main#main_page
  section.c2
  article
  .wrap
  > div.right_wrap
  .c2_swiper
  .swiper-slide
  dl
  dd {
  margin: 0 0 5px 0; /* dd 사이 간격 */
}

@media (max-width: calc(1500px + 6vw)) {
  main#sub_page.association.greeting section.c3 article .wrap dl {
    gap: 20px;
    justify-content: space-between;
  }
  main#sub_page.association.greeting section.c3 article .wrap dl dt {
    font-size: 38px;
    min-width: max-content;
  }
  main#sub_page.association.greeting section.c3 article .wrap dl dd {
    font-size: 16px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dt {
    font-size: 18px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dd
    .text {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  main#sub_page.association.greeting section.c3 article .wrap dl {
    flex-direction: column;
    gap: 20px;
  }
  main#sub_page.association.greeting section.c3 article .wrap dl dt {
    font-size: 32px;
  }
  main#sub_page.association.greeting section.c3 article .wrap dl dd {
    font-size: 16px;
  }
  main#sub_page.association.greeting section.c4 article .img_wrap {
    height: 500px;
  }
  main#sub_page.association.greeting section.c5 article .wrap .box_wrap li {
    width: calc(50% - 10px);
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dt {
    font-size: 17px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dd
    .text {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  main#sub_page.association.greeting section.c3 article .wrap dl dt {
    font-size: 20px;
  }
  main#sub_page.association.greeting section.c3 article .wrap dl dd {
    font-size: 15px;
  }
  main#sub_page.association.greeting section.c4 article .img_wrap {
    height: 300px;
  }
  main#sub_page.association.greeting section.c5 article .wrap .box_wrap li {
    width: calc(50% - 10px);
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dt {
    font-size: 16px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dd {
    padding: 20px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dd
    .text {
    font-size: 15px;
  }
}

@media (max-width: 450px) {
  main#sub_page.association.greeting section.c3 article .wrap dl dt {
    font-size: 20px;
  }
  main#sub_page.association.greeting section.c3 article .wrap dl dd {
    font-size: 14px;
  }
  main#sub_page.association.greeting section.c4 article .img_wrap {
    height: 300px;
  }
  main#sub_page.association.greeting section.c5 article .wrap .box_wrap {
    gap: 10px;
  }
  main#sub_page.association.greeting section.c5 article .wrap .box_wrap li {
    width: calc(100% - 0px);
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dt {
    padding-block: 20px;
    font-size: 15px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dd {
    padding: 20px;
  }
  main#sub_page.association.greeting
    section.c5
    article
    .wrap
    .box_wrap
    li
    dl
    dd
    .text {
    font-size: 14px;
  }
}

/* main c4 — plus_btn (c2와 동일 스타일) */
main#main_page section.c4 article .wrap > .plus_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 39px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

main#main_page section.c4 article .wrap > .plus_btn a {
  position: relative;
  background-color: #f5f5f5;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

main#main_page section.c4 article .wrap > .plus_btn a svg {
  width: 100%;
  object-fit: contain;
}

main#main_page section.c4 article .wrap > .plus_btn a svg path {
  transition: 0.3s;
}

main#main_page section.c4 article .wrap > .plus_btn:hover a {
  background-color: #4688e3;
}

main#main_page section.c4 article .wrap > .plus_btn:hover a svg path {
  stroke: #fff;
}

/* main c4 — JS requestAnimationFrame marquee */
main#main_page section.c4 article .c4_swiper {
  user-select: none;
  cursor: grab;
  height: 100px; /* swiper-wrapper height:100%가 뷰포트 기준으로 잘못 계산되는 것을 방지 */
}

main#main_page section.c4 article .c4_swiper:active {
  cursor: grabbing;
}

main#main_page section.c4 article .c4_swiper .swiper-wrapper {
  display: flex;
  width: max-content;
  will-change: transform;
  height: auto; /* swiper.min.css height:100% 오버라이드 */
}

main#main_page section.c4 article .c4_swiper .swiper-wrapper .swiper-slide {
  margin-right: 30px;
}

main#main_page section.c4 article .c4_swiper .swiper-wrapper .swiper-slide img {
  outline: 1px solid #e0e0e0;
  outline-offset: -1px;
}

main#main_page section.c4 .banner-img-wrap {
  position: relative;
  display: block;
  height: 100%;
  line-height: 0;
}

main#main_page section.c4 .banner-member-name {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 14px;
  line-height: 1.2;
  color: #333;
  background: rgba(255, 255, 255, 0.82);
  padding: 1px 5px;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: calc(1500px + 6vw)) {
  main#main_page section.c4 article > .wrap h3 .tab_menu {
    font-size: 26px;
  }
}

@media (max-width: 1024px) {
  main#main_page section.c4 article .c4_swiper {
    height: 70px;
  }
  main#main_page section.c4 article .c4_swiper .swiper-wrapper .swiper-slide {
    height: 70px;
  }
  main#main_page section.c4 article > .wrap h3 .tab_menu {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  main#main_page section.c4 article > .wrap h3 .tab_menu {
    font-size: 18px;
  }
  main#main_page section.c4 article .wrap > .plus_btn {
    width: 30px;
  }
}

@media (max-width: 450px) {
  main#main_page section.c4 article > .wrap h3 .icon {
    height: 20px;
  }
  main#main_page section.c4 article > .wrap h3 .tab_menu {
    font-size: 18px;
  }
}

/* ── 나의 활동 카드 ── */
main#sub_page.mypage .my-activity-card {
  background: #fff;
  border: 1.5px solid #e4eaf5;
  border-radius: 16px;
  padding: 24px 0 20px;
  margin-bottom: 20px;
}
main#sub_page.mypage .activity-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2340;
  padding: 0 32px;
  margin-bottom: 16px;
}

/* 탭 바 */
main#sub_page.mypage .activity-tabs {
  display: flex;
  border-bottom: 1.5px solid #eef1f8;
  padding: 0 32px;
  margin-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
main#sub_page.mypage .activity-tabs::-webkit-scrollbar {
  display: none;
}
main#sub_page.mypage .activity-tab {
  padding: 8px 14px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #aab2c8;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
  margin-bottom: -1.5px;
}
main#sub_page.mypage .activity-tab.is-active {
  color: #4361ee;
  border-bottom-color: #4361ee;
}
main#sub_page.mypage .activity-tab:hover:not(.is-active) {
  color: #445;
}

/* 리스트 */
main#sub_page.mypage .activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
main#sub_page.mypage .activity-item {
  border-bottom: 1px solid #f0f3fa;
}
main#sub_page.mypage .activity-item:last-child {
  border-bottom: none;
}
main#sub_page.mypage .activity-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  text-decoration: none;
  transition: background 0.12s;
}
main#sub_page.mypage .activity-link:hover {
  background: #f8f9ff;
  text-decoration: none;
}

/* 텍스트 */
main#sub_page.mypage .activity-body {
  flex: 1;
  min-width: 0;
}
main#sub_page.mypage .activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a2340;
  line-height: 1.4;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
main#sub_page.mypage .activity-parent-title {
  font-size: 12px;
  font-weight: 600;
  color: #4361ee;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
main#sub_page.mypage .activity-comment-text {
  font-size: 13px;
  font-weight: 500;
  color: #1a2340;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
main#sub_page.mypage .activity-meta {
  font-size: 12px;
  color: #aab2c8;
  margin: 0;
}

/* 우측 (썸네일 + 댓글수) */
main#sub_page.mypage .activity-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
main#sub_page.mypage .activity-thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f3fa;
  flex-shrink: 0;
}
main#sub_page.mypage .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
main#sub_page.mypage .thumb-cnt {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.4;
}
main#sub_page.mypage .activity-comment-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  text-align: center;
}
main#sub_page.mypage .comment-cnt-num {
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.1;
}
main#sub_page.mypage .comment-cnt-label {
  font-size: 10px;
  color: #aab2c8;
  margin-top: 2px;
}

/* 더보기 버튼 */
main#sub_page.mypage .activity-more-btn {
  display: block;
  width: calc(100% - 64px);
  margin: 12px 32px 4px;
  padding: 10px;
  background: #f5f7fb;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #667;
  cursor: pointer;
  transition: background 0.15s;
}
main#sub_page.mypage .activity-more-btn:hover {
  background: #eaecf5;
}
main#sub_page.mypage .activity-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 로딩 / 빈 상태 */
main#sub_page.mypage .activity-loading,
main#sub_page.mypage .activity-empty {
  text-align: center;
  font-size: 13px;
  color: #aab2c8;
  padding: 28px 32px;
  list-style: none;
}

/* ── 마이페이지 공통 ── */
main#sub_page.mypage .mypage-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
main#sub_page.mypage .page-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 28px;
}

/* ── 회원 정보 카드 ── */
main#sub_page.mypage .member-info-card {
  background: #fff;
  border: 1.5px solid #e4eaf5;
  border-radius: 16px;
  padding: 28px 32px 24px;
  margin-bottom: 20px;
}
main#sub_page.mypage .member-info-card .info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
main#sub_page.mypage .member-info-card .member-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a2340;
}
main#sub_page.mypage .member-info-card .member-year {
  font-size: 14px;
  color: #667;
  font-weight: 500;
}
main#sub_page.mypage .member-info-card .badge-admin {
  font-size: 11px;
  font-weight: 700;
  background: #4361ee;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
}
main#sub_page.mypage .member-info-card .info-list {
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 10px;
  column-gap: 16px;
}
main#sub_page.mypage .member-info-card .info-list dt {
  font-size: 13px;
  font-weight: 600;
  color: #8898aa;
  display: flex;
  align-items: center;
}
main#sub_page.mypage .member-info-card .info-list dd {
  font-size: 14px;
  color: #2d3748;
  word-break: break-all;
  display: flex;
  align-items: center;
}

/* ── 나의 소모임 카드 ── */
main#sub_page.mypage .my-clubs-card {
  background: #fff;
  border: 1.5px solid #e4eaf5;
  border-radius: 16px;
  padding: 24px 32px 20px;
  margin-bottom: 20px;
}
/* 소모임 헤더 (제목 + 관리 링크) */
main#sub_page.mypage .my-clubs-card .clubs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

main#sub_page.mypage .my-clubs-card .clubs-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2340;
  margin: 0;
}

/* 소모임관리 링크 */
main#sub_page.mypage .my-clubs-card .clubs-manage-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4688e3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

main#sub_page.mypage .my-clubs-card .clubs-manage-link:hover {
  background: rgba(70, 136, 227, 0.1);
  text-decoration: none;
  color: #3a7bd5;
}

main#sub_page.mypage .my-clubs-card .clubs-manage-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
main#sub_page.mypage .club-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
main#sub_page.mypage .club-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
main#sub_page.mypage .club-chip:hover {
  opacity: 0.82;
  text-decoration: none;
}
main#sub_page.mypage .club-chip--year {
  background: #e8eeff;
  color: #3452c8;
  border: 1.5px solid #c5d0f8;
}
main#sub_page.mypage .club-chip--manual {
  background: #e6f7f4;
  color: #1a8a7a;
  border: 1.5px solid #b8e6df;
}
main#sub_page.mypage .chip-label {
  line-height: 1.2;
}
main#sub_page.mypage .chip-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1px 6px;
  letter-spacing: 0.01em;
}
main#sub_page.mypage .chip-badge--role {
  background: rgba(0, 0, 0, 0.13);
}
main#sub_page.mypage .club-chip-empty {
  font-size: 13px;
  color: #aab2c8;
}
main#sub_page.mypage .clubs-notice {
  font-size: 12px;
  color: #aab2c8;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── 마이페이지 액션 버튼 ── */
main#sub_page.mypage .mypage-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
main#sub_page.mypage .mypage-actions .actions-left {
  display: flex;
  gap: 10px;
  align-items: center;
}
main#sub_page.mypage .mypage-actions .actions-right {
  display: flex;
  align-items: center;
}

/* 탈퇴 버튼 (빨간 아웃라인) */
main#sub_page.mypage .btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1.5px solid #e53e3e;
  border-radius: 10px;
  background: transparent;
  color: #e53e3e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1;
}
main#sub_page.mypage .btn-danger-outline:hover {
  background: #e53e3e;
  color: #fff;
}

/* ── 탈퇴 모달 ── */
.withdraw-modal-box {
  max-width: 460px;
  width: 92vw;
}
.withdraw-warn {
  background: #fff8f0;
  border: 1.5px solid #f6c27a;
  border-radius: 10px;
  padding: 16px 18px;
}
.withdraw-warn-title {
  font-size: 14px;
  font-weight: 700;
  color: #b7640a;
  margin-bottom: 10px;
}
.withdraw-warn-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.withdraw-warn-list li {
  font-size: 13px;
  color: #6b4a1e;
  line-height: 1.6;
  margin-bottom: 4px;
}
.withdraw-warn-list li:last-child {
  margin-bottom: 0;
}
.withdraw-confirm-text {
  font-size: 13px;
  color: #667;
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
}

/* ── 마이페이지 edit 폼 ── */
main#sub_page.mypage.edit .edit-section {
  background: #fff;
  border: 1.5px solid #e4eaf5;
  border-radius: 16px;
  padding: 28px 32px 24px;
  margin-bottom: 20px;
}
main#sub_page.mypage.edit .edit-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 20px;
}
main#sub_page.mypage.edit .pw-confirm-section {
  max-width: 460px;
  margin: 0 auto;
}
main#sub_page.mypage.edit .pw-confirm-desc {
  font-size: 14px;
  color: #667;
  margin-bottom: 20px;
  line-height: 1.7;
}
main#sub_page.mypage.edit .form-group {
  margin-bottom: 16px;
}
main#sub_page.mypage.edit .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 7px;
}
main#sub_page.mypage.edit .form-group .required {
  color: #e53e3e;
}
main#sub_page.mypage.edit .form-group input[type="text"],
main#sub_page.mypage.edit .form-group input[type="email"],
main#sub_page.mypage.edit .form-group input[type="tel"],
main#sub_page.mypage.edit .form-group input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1.5px solid #dde4f0;
  border-radius: 10px;
  font-size: 15px;
  padding: 0 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
  color: #1a2340;
  background: #fff;
}
main#sub_page.mypage.edit .form-group input:focus {
  border-color: #4361ee;
}
main#sub_page.mypage.edit .form-group input::placeholder {
  color: #b0bac9;
}
main#sub_page.mypage.edit .form-group input[readonly] {
  background: #f5f7fb;
  color: #8898aa;
  cursor: default;
}
main#sub_page.mypage.edit .form-group .readonly-val {
  font-size: 15px;
  color: #1a2340;
  padding: 12px 0 4px;
  margin: 0;
  border-bottom: 1.5px solid #e4eaf5;
}
main#sub_page.mypage.edit .field-msg {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
}
main#sub_page.mypage.edit .field-msg.ok {
  color: #2d9e6b;
}
main#sub_page.mypage.edit .field-msg.error {
  color: #e53e3e;
}
main#sub_page.mypage.edit .form-result {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
}
main#sub_page.mypage.edit .form-result.success {
  background: #eefaf4;
  color: #1a7a50;
  border: 1px solid #b3e6d0;
}
main#sub_page.mypage.edit .form-result.error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5b8b8;
}
main#sub_page.mypage.edit .form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
main#sub_page.mypage.edit .form-row {
  display: flex;
  gap: 16px;
}
main#sub_page.mypage.edit .form-row .form-group {
  flex: 1;
  min-width: 0;
}
main#sub_page.mypage.edit .form-row .form-group--narrow {
  flex: 0 0 140px;
}
main#sub_page.mypage.edit .addr-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
main#sub_page.mypage.edit .input-with-btn {
  display: flex;
  gap: 8px;
}
main#sub_page.mypage.edit .input-with-btn input {
  flex: 1;
}
main#sub_page.mypage.edit .btn-check {
  white-space: nowrap;
  padding: 0 16px;
  height: 48px;
  border: 1.5px solid #4361ee;
  border-radius: 10px;
  background: #fff;
  color: #4361ee;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
main#sub_page.mypage.edit .btn-check:hover {
  background: #4361ee;
  color: #fff;
}

@media (max-width: 600px) {
  main#sub_page.mypage .mypage-wrap {
    padding: 24px 0 40px;
  }
  main#sub_page.mypage .member-info-card,
  main#sub_page.mypage .my-clubs-card,
  main#sub_page.mypage.edit .edit-section {
    padding: 20px 18px 18px;
    border-radius: 12px;
  }
  main#sub_page.mypage .my-activity-card {
    border-radius: 12px;
    padding-top: 20px;
  }
  main#sub_page.mypage .activity-card-title {
    padding: 0 18px;
  }
  main#sub_page.mypage .activity-tabs {
    padding: 0 18px;
  }
  main#sub_page.mypage .activity-tab {
    padding: 8px 10px 10px;
    font-size: 12px;
  }
  main#sub_page.mypage .activity-link {
    padding: 12px 18px;
    gap: 10px;
  }
  main#sub_page.mypage .activity-more-btn {
    width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
  }
  main#sub_page.mypage .member-info-card .info-list {
    grid-template-columns: 76px 1fr;
    row-gap: 8px;
  }
  main#sub_page.mypage .mypage-actions {
    flex-wrap: wrap;
  }
  main#sub_page.mypage.edit .form-row {
    flex-direction: column;
    gap: 0;
  }
  main#sub_page.mypage.edit .form-row .form-group--narrow {
    flex: unset;
  }
}

/* ═══════════════════════════════════════
   오시는 길 (association location)
   ═══════════════════════════════════════ */

/* 지도 영역 */
main#sub_page.association.location .location-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(60, 80, 140, 0.1);
  margin-bottom: 32px;
  line-height: 0;
}
main#sub_page.association.location .location-map-iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

/* 주소·연락처 카드 */
main#sub_page.association.location .location-info-card {
  background: #fff;
  border: 1.5px solid #e4eaf5;
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
main#sub_page.association.location .location-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
main#sub_page.association.location .location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
main#sub_page.association.location .loc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #eef2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4361ee;
  margin-top: 2px;
}
main#sub_page.association.location .loc-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
main#sub_page.association.location .loc-label {
  font-size: 12px;
  font-weight: 700;
  color: #8898aa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
main#sub_page.association.location .loc-value {
  font-size: 17px;
  font-weight: 500;
  color: #1a2340;
  line-height: 1.6;
  margin: 0;
}
main#sub_page.association.location .loc-value a {
  color: #1a2340;
  text-decoration: none;
}
main#sub_page.association.location .loc-value a:hover {
  color: #4361ee;
  text-decoration: underline;
}
main#sub_page.association.location .loc-sub {
  display: block;
  font-size: 14px;
  color: #8898aa;
  margin-top: 2px;
}

/* 네이버 지도 버튼 */
main#sub_page.association.location .btn-naver-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #03c75a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.12s;
  box-shadow: 0 4px 16px rgba(3, 199, 90, 0.3);
}
main#sub_page.association.location .btn-naver-map:hover {
  background: #02b050;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* 반응형 */
@media (max-width: 900px) {
  main#sub_page.association.location .location-info-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 28px;
    gap: 28px;
  }
  main#sub_page.association.location .btn-naver-map {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  main#sub_page.association.location .location-map-iframe {
    height: 280px;
  }
  main#sub_page.association.location .location-info-card {
    padding: 22px 20px;
    border-radius: 12px;
  }
  main#sub_page.association.location .loc-value {
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════
   임원진 (association executives)
   ═══════════════════════════════════════ */

.exec-section {
  background: #fff;
}
.exec-section--gray {
  background: #f7f9fc;
}

.exec-section-title {
  margin-bottom: 36px;
}
.exec-section-title h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1a2340;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.exec-year-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #4361ee;
  background: #eef2ff;
  border-radius: 20px;
  padding: 3px 12px;
  vertical-align: middle;
}
.exec-empty {
  text-align: center;
  color: #aab2c8;
  padding: 40px 0;
  font-size: 15px;
}

/* 주요 3인 카드 */
.exec-main-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.exec-main-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 calc(33.333% - 20px);
  max-width: 220px;
}
.exec-photo-wrap {
  width: 130px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2ff;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(60, 80, 140, 0.1);
  flex-shrink: 0;
}
.exec-photo-wrap--sm {
  width: 100px;
  height: 138px;
}
.exec-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exec-role {
  font-size: 13px;
  font-weight: 700;
  color: #4361ee;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.exec-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a2340;
  margin: 0 0 4px;
}
.exec-grad {
  font-size: 13px;
  color: #8898aa;
  margin: 0 0 2px;
}
.exec-field {
  font-size: 12px;
  color: #aab2c8;
  margin: 0;
}

/* 기타 임원 4열 그리드 */
.exec-other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  border-top: 1.5px solid #f0f3fa;
  padding-top: 32px;
}
.exec-other-item {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.exec-other-role {
  font-size: 12px;
  font-weight: 700;
  color: #4361ee;
  margin: 0 0 5px;
  letter-spacing: 0.02em;
}
.exec-other-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a2340;
  margin: 0 0 3px;
}
.exec-other-grad {
  font-size: 12px;
  color: #aab2c8;
  font-weight: 400;
}
.exec-other-field {
  font-size: 12px;
  color: #aab2c8;
  margin: 0;
}

/* 역대 회장 사진 카드 그리드 */
.exec-former-president-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px 20px;
}
.exec-fp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.exec-fp-info {
  margin-top: 10px;
}
.exec-fp-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a2340;
  margin: 0 0 3px;
}
.exec-fp-grad {
  font-size: 12px;
  color: #aab2c8;
  font-weight: 400;
}
.exec-fp-term {
  font-size: 12px;
  font-weight: 600;
  color: #4361ee;
  margin: 0 0 2px;
}
.exec-fp-year {
  font-size: 12px;
  color: #aab2c8;
  margin: 0;
}

/* 역대 회장단 테이블 */
.exec-former-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.exec-former-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.exec-former-table thead th {
  background: #f0f4fb;
  color: #4361ee;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid #dde4f0;
  white-space: nowrap;
}
.exec-former-table tbody td {
  padding: 11px 16px;
  text-align: center;
  border-bottom: 1px solid #f0f3fa;
  color: #1a2340;
  vertical-align: middle;
}
.exec-former-table tbody tr:hover td {
  background: #f7f9fc;
}
.exec-tbl-term {
  font-weight: 700;
  color: #4361ee;
  white-space: nowrap;
}
.exec-tbl-year {
  color: #8898aa;
  white-space: nowrap;
}
.exec-td-empty {
  color: #ccc;
}
.exec-tbl-grad {
  font-size: 12px;
  color: #aab2c8;
  margin-left: 2px;
}

/* 테이블 사진 셀 */
.exec-tbl-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.exec-tbl-photo-wrap {
  width: 85px;
  height: 118px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2ff;
  flex-shrink: 0;
}
.exec-tbl-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exec-tbl-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a2340;
  text-align: center;
  line-height: 1.4;
  word-break: keep-all;
}

/* 반응형 */
@media (max-width: 1024px) {
  .exec-main-card {
    flex: 0 0 calc(50% - 14px);
    max-width: 200px;
  }
  .exec-other-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .exec-section-title h3 {
    font-size: 22px;
  }
  .exec-main-row {
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .exec-main-card {
    flex: 0 0 calc(33.333% - 8px);
    max-width: none;
  }
  .exec-photo-wrap {
    width: 110px;
    height: 152px;
  }
  .exec-photo-wrap--sm {
    width: 72px;
    height: 100px;
  }
  .exec-role {
    font-size: 11px;
  }
  .exec-name {
    font-size: 14px;
  }
  .exec-grad,
  .exec-field {
    font-size: 11px;
  }
  .exec-other-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exec-former-president-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 18px 12px;
  }
  .exec-former-table {
    font-size: 13px;
  }
  .exec-former-table thead th,
  .exec-former-table tbody td {
    padding: 9px 8px;
  }
  .exec-tbl-photo-wrap {
    width: 55px;
    height: 76px;
  }
  .exec-tbl-name {
    font-size: 13px;
  }
  .exec-tbl-grad {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .exec-main-row {
    gap: 6px;
  }
  .exec-main-card {
    flex: 0 0 calc(33.333% - 4px);
  }
  .exec-photo-wrap {
    width: 68px;
    height: 94px;
  }
  .exec-name {
    font-size: 12px;
  }
  .exec-role {
    font-size: 10px;
  }
  .exec-other-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════
   CKEditor 콘텐츠 영역 공통 보정
   style.css의 전역 strong 재정의를 에디터 출력 영역에서 되돌림
   ═══════════════════════════════════════ */

main section article .wrap .ck-content strong {
  color: inherit;
  font-weight: bold;
}

/* ============================================================
   BOARD — list / view  (style.css 클래스 보완)
   ============================================================ */

/* ── 카테고리 탭 ── */
.board-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid #e1e1e1;
}
.board-tab {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #828282;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.board-tab:hover {
  color: #1e1e1e;
}
.board-tab.active {
  color: #4688e3;
  border-bottom-color: #4688e3;
  font-weight: 600;
}

/* ── 본문 영역 좌측 정렬 override (style.css는 center) ── */
main#sub_page.detail section.c3 article .wrap .desc_wrap .desc {
  text-align: left;
  padding-block: 40px;
}

/* ── 게시물 구분 뱃지 ── */
.board-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f0fe;
  color: #4688e3;
  margin-right: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
/* 탭별 색상 */
.board-badge--notice {
  background: #dbeafe;
  color: #1d4ed8;
} /* 공지   */
.board-badge--gathering {
  background: #dcfce7;
  color: #15803d;
} /* 모임   */
.board-badge--condolence {
  background: #fee2e2;
  color: #dc2626;
} /* 경조사 */
.board-badge--news {
  background: #e0f2fe;
  color: #0369a1;
} /* 소식   */
.board-badge--photo {
  background: #fef9c3;
  color: #a16207;
} /* 사진   */
.board-badge--data {
  background: #f3f4f6;
  color: #374151;
} /* 자료   */
.board-badge--report {
  background: #f3e8ff;
  color: #7e22ce;
} /* 보고서 */

/* ── 빈 목록 ── */
.board-empty-row td {
  text-align: center;
  padding: 60px 0 !important;
  color: #828282;
  font-size: 16px;
}

/* ── 상세 페이지 날짜+첨부파일 행 ── */
.detail_meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}
.detail_files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.detail_file_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}
.detail_file_link:hover {
  color: #4688e3;
}
.detail_file_icon {
  width: 14px;
  min-width: 14px;
  display: flex;
}
.detail_file_icon svg {
  width: 100%;
  height: auto;
}
.detail_file_icon svg path {
  transition: stroke 0.15s;
}
.detail_file_link:hover .detail_file_icon svg path {
  stroke: #4688e3;
}
.detail_file_name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail_file_size {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .detail_meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail_files {
    align-items: flex-start;
  }
}

/* ── 페이지네이션 하단 여백 ── */
main#sub_page.list_all .pagination_style {
  margin-bottom: 100px;
}

/* ── 목록보기 버튼 하단 여백 ── */
main#sub_page.detail section.c3 article .wrap .desc_wrap .button_wrap {
  margin-bottom: 100px;
}

/* ── 반응형 탭 ── */
@media (max-width: 767px) {
  .board-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
  /* nth-of-type 삭제 - none_mo 클래스로 대체 */
}

/* ═══════════════════════════════════════
   회칙 (association rules)
   ═══════════════════════════════════════ */

/* 빈 상태 */
main#sub_page.association.rules .rules-empty {
  text-align: center;
  color: #aab2c8;
  padding: 60px 0;
  font-size: 16px;
}

/* 메타 바 */
main#sub_page.association.rules .rules-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0f4fb;
  border-radius: 10px;
  padding: 14px 22px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
main#sub_page.association.rules .rules-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
main#sub_page.association.rules .rules-meta-label {
  font-size: 12px;
  font-weight: 700;
  color: #8898aa;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
main#sub_page.association.rules .rules-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a2340;
  white-space: nowrap;
}
main#sub_page.association.rules .rules-meta-sep {
  color: #dde4f0;
  font-size: 16px;
  flex-shrink: 0;
}
main#sub_page.association.rules .rules-meta-current .rules-meta-value {
  color: #4361ee;
}

/* 회칙 본문 */
main#sub_page.association.rules .rules-content-wrap {
  margin-bottom: 40px;
}
main#sub_page.association.rules .rules-content {
  line-height: 1.9;
  color: #2d3748;
  font-size: 15px;
}

/* 개정 이력 리스트 */
main#sub_page.association.rules .rules-version-nav {
  border-top: 2px solid #f0f3fa;
  padding-top: 28px;
  margin-top: 12px;
}
main#sub_page.association.rules .rules-version-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: #8898aa;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
main#sub_page.association.rules .rules-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  /* border: 1px solid #e8edf5; */
  /* border-radius: 10px; */
  overflow: hidden;
}
main#sub_page.association.rules .rules-history-item:last-child {
  border-bottom: none;
}
main#sub_page.association.rules .rules-ver-btn,
main#sub_page.association.rules .rules-history-static {
  display: flex;
  align-items: center;
  /* gap: 16px; */
  /* width: 100%; */
  /* padding: 13px 20px; */
  padding: 5px 0px;
  box-sizing: border-box;
}
main#sub_page.association.rules .rules-ver-btn {
  background: #fff;
  border: none;
  cursor: pointer;
  color: #2d3748;
  text-align: left;
  transition: background 0.12s;
}
main#sub_page.association.rules .rules-ver-btn:hover {
  background: #f7f9fc;
}
main#sub_page.association.rules .rules-ver-btn.is-active {
  background: #eef2ff;
}
main#sub_page.association.rules .rules-ver-btn.is-active .rules-history-no,
main#sub_page.association.rules .rules-ver-btn.is-active .rules-history-date {
  color: #4361ee;
  font-weight: 700;
}
main#sub_page.association.rules .rules-history-static {
  color: #c0c8d8;
}
main#sub_page.association.rules .rules-history-no {
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 110px;
}
main#sub_page.association.rules .rules-history-date {
  font-size: 14px;
  flex: 1;
  color: inherit;
}
main#sub_page.association.rules .rules-history-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #4361ee;
  border-radius: 20px;
  padding: 2px 10px;
  flex-shrink: 0;
  margin-left: 20px;
}

/* 반응형 */
@media (max-width: 767px) {
  main#sub_page.association.rules .rules-meta-bar {
    padding: 12px 16px;
    gap: 8px;
  }
  main#sub_page.association.rules .rules-meta-sep {
    display: none;
  }
  main#sub_page.association.rules .rules-meta-item {
    width: 100%;
  }
  main#sub_page.association.rules .rules-content {
    font-size: 14px;
  }
  main#sub_page.association.rules .rules-history-no {
    font-size: 13px;
    min-width: 90px;
  }
  main#sub_page.association.rules .rules-history-date {
    font-size: 13px;
  }
}

/* ============================================================
   CLUBS (GROUPS) — 기수별 모임 및 소모임
   ============================================================ */

/* 소모임 페이지 전체 레이아웃 보장 */
body:has(main#sub_page.list_all) {
  min-height: 100vh;
}

main#sub_page.list_all {
  min-height: calc(100vh - 200px);
}

/* 기수별 모임 전용 섹션 타이틀 */
.sub_section_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid #4688e3;
}
.sub_section_title h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
  letter-spacing: -0.02em;
}
.sub_section_title .title_actions {
  display: flex;
  gap: 10px;
}
.sub_section_title .btn_write {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #4688e3;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.sub_section_title .btn_write:hover {
  background: #2d6fd8;
  text-decoration: none;
  color: #fff;
}

/* 검색/탭 영역 개선 */
.search_status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.search_status .current_wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.search_status .serach_wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 기수별 모임 탭 */
.club_tabs {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}
.club_tabs a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-decoration: none;
  border-radius: 6px;
  border: 1.5px solid #e0e6f0;
  background: #fff;
  transition: all 0.2s;
}
.club_tabs a.active,
.club_tabs a:hover {
  color: #4688e3;
  border-color: #4688e3;
  background: #f0f5ff;
}

/* 기수 선택 드롭다운 */
.year_select {
  margin-right: 16px;
  position: relative;
  display: inline-block;
}
.year_select select {
  min-width: 160px;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1.5px solid #dde4f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e1e1e;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  line-height: normal;
  font-family: inherit;
}
.year_select select:focus {
  border-color: #4688e3;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(70, 136, 227, 0.1);
}
.year_select select option {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #fff;
  color: #1e1e1e;
}

/* 페이지네이션 플레이스홀더 (빈 상태 여백용) */
.pagination_placeholder {
  height: 60px;
  margin-top: 40px;
}

/* 소모임 개설 요청 버튼 */
.action_buttons {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 100px;
  padding-top: 30px;
  border-top: 1px solid #f0f3fa;
}
.action_buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #4688e3;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.action_buttons .btn:hover {
  background: #2d6fd8;
  text-decoration: none;
  color: #fff;
}

/* 페이지네이션 하단 여백 */
.pagination_style {
  margin-bottom: 100px;
}

/* 데이터 래퍼 하단 여백 */
.data_wrap {
  /* margin-bottom: 100px !important; */
  min-height: 400px;
}

/* 소모임 페이지 전용 하단 여백 보장 - 강력한 선택자 */
main#sub_page.list_all section.c3.padding_120 {
  /* padding-bottom: 200px !important; */
  margin-bottom: 0 !important;
}

/* 소모임 페이지 article 래퍼 하단 여백 */
main#sub_page.list_all section.c3 article {
  /* padding-bottom: 150px !important; */
}

/* 소모임 페이지 wrap 컨테이너 하단 여백 */
main#sub_page.list_all section.c3 article .wrap {
  /* margin-bottom: 150px !important; */
}

/* 페이지네이션 하단 여백 강화 */
.pagination_style {
  margin-bottom: 100px !important;
  margin-top: 40px !important;
}

/* 페이지네이션 플레이스홀더 강화 */
.pagination_placeholder {
  height: 100px !important;
  margin-top: 40px !important;
}

/* 갤러리 레이아웃 재정의 */
.gallery_wrap {
  margin-bottom: 60px !important;
  min-height: 300px;
}
.gallery_wrap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery_wrap li {
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.gallery_wrap li:hover {
  box-shadow: 0 4px 20px rgba(70, 136, 227, 0.12);
}
.gallery_wrap li a {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.gallery_wrap li a:hover {
  text-decoration: none;
}
.gallery_wrap li dl {
  margin: 0;
}
.gallery_wrap li dt {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery_wrap li dd {
  font-size: 14px;
  color: #777;
  margin: 0;
  line-height: 1.3;
}
.gallery_wrap li.empty,
.gallery_wrap li.gallery-empty {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: 80px 20px !important;
  color: #777 !important;
  border: 1px dashed #e0e6f0 !important;
  background: #f9fafc !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* 갤러리 UL 요소가 1개 컬럼일 때 */
.gallery_wrap ul:has(.gallery-empty) {
  grid-template-columns: 1fr !important;
}

/* 추가 보장 */
.gallery_wrap .gallery-empty {
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 테이블 래퍼 하단 여백 강화 */
main#sub_page.list_all .table_wrap_ver3 {
  margin-bottom: 80px !important;
}

/* Clubs year dropdown (nice-select) */
main#sub_page.list_all select.club-year-select {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
}

main#sub_page.list_all .club-year-select + .nice-select {
  position: relative;
  min-width: 108px;
  border: 2px solid #dde4f0;
  border-radius: 4px;
  background: #fff;
  padding: 10px 34px 10px 12px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

main#sub_page.list_all .club-year-select + .nice-select .current {
  display: block;
  color: #1e1e1e;
}

main#sub_page.list_all .club-year-select + .nice-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s ease;
}

main#sub_page.list_all .club-year-select + .nice-select.open::after {
  transform: translateY(-35%) rotate(225deg);
}

main#sub_page.list_all .club-year-select + .nice-select .list {
  position: absolute;
  left: -2px;
  right: -2px;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  border: 2px solid #dde4f0;
  border-radius: 6px;
  background: #fff;
  list-style: none;
  display: none;
  z-index: 30;
}

main#sub_page.list_all .club-year-select + .nice-select.open .list {
  display: block;
}

main#sub_page.list_all .club-year-select + .nice-select .list .option {
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

main#sub_page.list_all .club-year-select + .nice-select .list .option:hover,
main#sub_page.list_all .club-year-select + .nice-select .list .option.focus,
main#sub_page.list_all .club-year-select + .nice-select .list .option.selected {
  background: #f2f7ff;
  color: #0d56c9;
}

/* 반응형 */
@media (max-width: 1024px) {
  .search_status {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .search_status .current_wrap {
    flex-direction: column;
    gap: 12px;
  }
  .search_status .serach_wrap {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .club_tabs {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .year_select {
    margin-right: 0;
  }
  .year_select select {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 767px) {
  .sub_section_title h3 {
    font-size: 18px;
  }
  .club_tabs {
    gap: 6px;
  }
  .club_tabs a {
    padding: 6px 12px;
    font-size: 13px;
  }
  .year_select select {
    height: 38px;
    font-size: 13px;
  }
  .gallery_wrap ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* 모바일에서 작성자 컬럼 숨김 - 삭제됨 (날짜 컬럼을 숨기고 있었음) */
}

/* ========================================
   행사 페이지 (events)
   ======================================== */

/* 행사 목록 - 카드 그리드 */
.event_section_wrap {
  margin-bottom: 60px;
}

.event_section_wrap .section_title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid #333;
  color: #333;
}

.event_card_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.event_card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.event_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.event_status_badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #28a745;
  color: white;
}

.event_status_badge.ended {
  background: #6c757d;
}

.event_title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #333;
  padding-right: 80px;
}

.event_meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.event_meta .meta_icon {
  font-size: 16px;
}

.event_desc {
  margin: 16px 0;
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.event_link {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.event_link a {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.event_link a:hover {
  color: #5568d3;
}

.event_card.ended .event_link a {
  color: #6c757d;
}

/* 행사 상세 - 정보 박스 */
.event_info_box {
  background: white;
  color: #333;
  padding: 40px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 40px;
}

.info_header {
  margin-bottom: 20px;
}

.status_badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #28a745;
  color: white;
}

.status_badge.ended {
  background: #6c757d;
}

.info_content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info_item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.info_item .icon {
  font-size: 18px;
  line-height: 1.5;
}

.info_item .text {
  line-height: 1.5;
}

.info_item.description {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.info_item.description p {
  margin: 0;
  line-height: 1.7;
  color: #555;
}

/* 탭 & 버튼 컨트롤 */
.board_tab_controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.tab_buttons {
  display: flex;
  gap: 8px;
}

.tab_btn {
  padding: 8px 16px;
  border: 2px solid #dde4f0;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.tab_btn {
  color: #666;
  background: white;
}

.tab_btn.active {
  color: #007bff;
  background: #f8f9fa;
}

.tab_btn:hover {
  background: #f8f9fa;
}

.action_buttons {
  display: flex;
  gap: 8px;
}

.action_btn {
  padding: 8px 16px;
  border: 2px solid #dde4f0;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.action_btn.participants {
  background: #4688e3;
  color: white;
  border-color: #4688e3;
}

.action_btn.donors {
  background: #4688e3;
  color: white;
  border-color: #4688e3;
}

.action_btn:hover {
  opacity: 0.9;
}

.action_btn .btn_icon {
  font-size: 14px;
}

/* 모달 */
.modal_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal_overlay.active {
  display: flex;
}

.modal_content {
  background: white;
  border-radius: 12px;
  max-width: 95vw;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal_box {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal_header {
  padding: 24px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal_header h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.modal_close {
  font-size: 28px;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_close:hover {
  color: #333;
}

.modal_body {
  padding: 24px;
  overflow-y: auto;
}

.person_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 20px;
}

@media (max-width: 1200px) {
  .person_grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .person_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person_card {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.person_name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.person_name .person_year {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.person_donation {
  font-size: 13px;
  color: #007bff;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.4;
}

.person_amount {
  font-size: 13px;
  color: #007bff;
  font-weight: 500;
  margin-top: 4px;
}

.person_inkind {
  font-size: 13px;
  color: #007bff;
  font-weight: 500;
  margin-top: 4px;
}

.loading,
.error,
.no_data {
  text-align: center;
  padding: 40px;
  color: #999;
}

.error {
  color: #dc3545;
}

/* 반응형 */
@media (max-width: 768px) {
  .event_card_grid {
    grid-template-columns: 1fr;
  }

  .event_title {
    font-size: 18px;
    padding-right: 70px;
  }

  .event_info_box {
    padding: 24px;
  }

  .board_tab_controls {
    flex-direction: column;
    align-items: stretch;
  }

  .tab_buttons,
  .action_buttons {
    width: 100%;
    justify-content: center;
  }

  .tab_btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 16px;
  }

  .action_btn {
    flex: 1;
    justify-content: center;
    font-size: 13px;
  }

  .person_grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Dues 페이지 연도 선택 - 네이티브 select 사용 */
main#sub_page.dues select.year-select {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  pointer-events: auto !important;
}

/* drawer 메뉴: 서브메뉴가 없는 항목은 화살표 숨김 */
@media (max-width: 767px) {
  #drawer #drawer_wrap .gnb > li:not(:has(.sub_menu)) > a::after {
    display: none;
  }
}

/* 소모임 view 페이지 - detail 페이지와 동일한 스타일 적용 */
main#sub_page.clubs.view section.c3 article .wrap .detail_title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

main#sub_page.clubs.view section.c3 article .wrap .detail_title h4 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}

main#sub_page.clubs.view section.c3 article .wrap .detail_title .detail_meta {
  text-align: center;
}

main#sub_page.clubs.view section.c3 article .wrap .detail_title .date {
  font-size: 20px;
  color: #828282;
}

main#sub_page.clubs.view section.c3 article .wrap .desc_wrap {
  width: 100%;
  border-top: 1px solid #0a0a0a;
}

main#sub_page.clubs.view section.c3 article .wrap .desc_wrap .desc {
  padding: 60px 0;
  min-height: 300px;
}

main#sub_page.clubs.view section.c3 article .wrap .desc_wrap .control_wrap {
  width: 100%;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div {
  display: flex;
  align-items: center;
  padding: 15px 0;
  gap: 50px;
  border-bottom: 1px solid #ebebeb;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .left_wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .left_wrap
  .arrow {
  width: 14px;
  min-width: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .left_wrap
  .arrow
  img {
  width: 100%;
  height: auto;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .left_wrap
  span {
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .right_wrap {
  flex: 1;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .right_wrap
  a {
  font-size: 16px;
  color: #828282;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .control_wrap
  > div
  .right_wrap
  a:hover {
  color: #4688e3;
}

main#sub_page.clubs.view section.c3 article .wrap .desc_wrap .button_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 60px;
  padding-bottom: 100px;
}

main#sub_page.clubs.view section.c3 article .wrap .desc_wrap .button_wrap a {
  overflow: hidden;
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 10px 30px;
  color: #828282;
  transition: 0.15s;
  -webkit-transition: 0.15s;
  -moz-transition: 0.15s;
  -ms-transition: 0.15s;
  -o-transition: 0.15s;
}

main#sub_page.clubs.view
  section.c3
  article
  .wrap
  .desc_wrap
  .button_wrap
  a:hover {
  color: #4688e3;
}

/* 첨부파일 링크 스타일 */
main#sub_page.clubs.view .detail_files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

main#sub_page.clubs.view .detail_file_link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f8f8;
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  transition: background 0.2s;
}

main#sub_page.clubs.view .detail_file_link:hover {
  background: #e8e8e8;
}

main#sub_page.clubs.view .detail_file_icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

main#sub_page.clubs.view .detail_file_icon svg {
  width: 100%;
  height: 100%;
}

main#sub_page.clubs.view .detail_file_name {
  flex: 1;
  color: #333;
}

main#sub_page.clubs.view .detail_file_size {
  color: #999;
  font-size: 12px;
}

/* ═══════════════════════════════════════
   사이트 전체 placeholder 컬러 통일
   ═══════════════════════════════════════ */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #cccccc !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════
   납부 현황 페이지 모바일 테이블 (table_wrap_ver4)
   ═══════════════════════════════════════ */
@media (max-width: 767px) {
  /* 기부자 명단 - 모바일에서 순위, 행사명, 기부일 숨김 */
  .table_wrap_ver4 table thead tr th:nth-of-type(1),
  .table_wrap_ver4 table thead tr th:nth-of-type(5),
  .table_wrap_ver4 table thead tr th:nth-of-type(6),
  .table_wrap_ver4 table tbody tr td:nth-of-type(1),
  .table_wrap_ver4 table tbody tr td:nth-of-type(5),
  .table_wrap_ver4 table tbody tr td:nth-of-type(6) {
    display: none;
  }

  /* 회비/평생회비 명단 - 모바일에서 납부일 숨김 */
  .table_wrap_ver5 table thead tr th:nth-of-type(4),
  .table_wrap_ver5 table tbody tr td:nth-of-type(4) {
    display: none;
  }
}

/* ═══════════════════════════════════════
   행사 문의 모달 UI 개선
   ═══════════════════════════════════════ */
.modal_content.inquiry_modal {
  max-width: 600px;
  width: 90%;
}

.inquiry_modal .form_row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.inquiry_modal .form_row .form_group {
  flex: 1;
  margin-bottom: 0;
}

.inquiry_modal .form_group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.inquiry_modal .form_group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dde4f0;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.inquiry_modal .inquiry_textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dde4f0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.inquiry_modal .inquiry_textarea:focus {
  outline: none;
  border-color: #4688e3;
}

.inquiry_modal .form_actions {
  text-align: right;
  margin-top: 24px;
}

.inquiry_modal .action_btn.inquiry {
  background: #4688e3;
  color: white;
  border-color: #4688e3;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  min-width: 120px;
  justify-content: center;
}

.inquiry_modal .action_btn.inquiry:hover {
  background: #3a76c9;
  border-color: #3a76c9;
}

.inquiry_modal .required {
  color: #e74c3c;
}

@media (max-width: 480px) {
  .inquiry_modal .form_row {
    flex-direction: column;
    gap: 20px;
  }

  .inquiry_modal .form_row .form_group {
    margin-bottom: 0;
  }
}

/* 행사 문의 모달 - readonly input 스타일 */
.inquiry_modal .form_group input[readonly] {
  background-color: #f8f9fa;
  cursor: default;
}

.inquiry_modal .form_group input[readonly]:focus {
  border-color: #dde4f0;
  outline: none;
}

/* 관리자 로그인 시 헤더 아이콘 빨간색 표시 */
.header-login-icon.admin-logged-in svg {
  stroke: #dc3545;
  filter: drop-shadow(0 0 2px rgba(220, 53, 69, 0.3));
}

.header-login-icon.admin-logged-in:hover svg {
  stroke: #c82333;
  filter: drop-shadow(0 0 4px rgba(220, 53, 69, 0.5));
}

/* 소모임 관리 - 모임장 위임 드롭다운 (nice-select) */
.mypage .delegate-form .nice-select.delegate-select {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 42px;
  line-height: 1.5;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 40px 10px 12px;
  margin-bottom: 16px;
  background-color: #fff;
  box-sizing: border-box;
  cursor: pointer;
}

.mypage .delegate-form .nice-select.delegate-select .current {
  display: block;
  color: #333;
  font-weight: normal;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mypage .delegate-form .nice-select.delegate-select::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666;
  width: 0;
  height: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.mypage .delegate-form .nice-select.delegate-select.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.mypage .delegate-form .nice-select.delegate-select:hover,
.mypage .delegate-form .nice-select.delegate-select:focus {
  border-color: #4688e3;
}

.mypage .delegate-form .nice-select.delegate-select .list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  background-color: #fff;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.mypage .delegate-form .nice-select.delegate-select.open .list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mypage .delegate-form .nice-select.delegate-select .list .option {
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mypage .delegate-form .nice-select.delegate-select .list .option:hover {
  background-color: #f8f9fa;
}

.mypage .delegate-form .nice-select.delegate-select .list .option.selected {
  background-color: #e9f2ff;
  color: #4688e3;
  font-weight: 500;
}

.mypage
  .delegate-form
  .nice-select.delegate-select
  .list
  .option.selected:hover {
  background-color: #d6e9ff;
}

.mypage .delegate-form .nice-select.delegate-select .list .option.disabled {
  display: none;
}

/* 공지/소식/자료실 리스트 - 댓글/좋아요 아이콘 */
main#sub_page.list_all .post_stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

main#sub_page.list_all .post_stats .stat_item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #999;
}

main#sub_page.list_all .post_stats .stat_item.like {
  color: #ff4757;
}

main#sub_page.list_all .post_stats .stat_item.comment {
  color: #4688e3;
}

main#sub_page.list_all .post_stats .stat_item svg {
  vertical-align: middle;
}

/* 날짜 표시 기본 스타일 (데스크톱: full, 모바일: short) */
.date-short {
  display: none;
}

.date-full {
  display: inline;
}

/* 태블릿/모바일 반응형 테이블 컬럼 숨김 */
@media (max-width: 1024px) {
  table th.none_tab,
  table td.none_tab {
    display: none !important;
  }
}

/* ========================================
   게시판 모바일 반응형 - 최종 (페이지별 완전 분리)
   ======================================== */
@media only screen and (max-width: 770px) {
  /* 1. none_mo 클래스 숨김 - 기본 규칙 */
  th.none_mo,
  td.none_mo {
    display: none !important;
    visibility: hidden !important;
  }

  /* 2. board/events 전용 - 날짜 컬럼 강제 표시 */
  /* 4개 컬럼: 번호(1), 제목(2), 날짜(3), 조회(4) */
  main#sub_page[data-page-type="board"] .table_wrap_ver3 table thead tr th:nth-of-type(3),
  main#sub_page[data-page-type="board"] .table_wrap_ver3 table tbody tr td:nth-of-type(3),
  main#sub_page[data-page-type="events"] .table_wrap_ver3 table thead tr th:nth-of-type(3),
  main#sub_page[data-page-type="events"] .table_wrap_ver3 table tbody tr td:nth-of-type(3) {
    display: table-cell !important;
  }

  /* 3. clubs 전용 - none_mo 우선순위 강화 */
  /* 6개 컬럼: 번호(1), 제목(2), 첨부(3), 작성자(4), 날짜(5), 조회(6) */
  main#sub_page[data-page-type="clubs"] th.none_mo,
  main#sub_page[data-page-type="clubs"] td.none_mo {
    display: none !important;
    visibility: hidden !important;
  }

  /* 4. 제목 헤더 중앙 정렬 */
  th.left {
    text-align: center !important;
  }

  /* 5. 날짜 형식 전환 */
  span.date-full {
    display: none !important;
  }

  span.date-short {
    display: inline !important;
  }
}

/* ========================================
   첨부 이미지 표시 영역
   ======================================== */
.attached_images {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

.attached_image_item {
  margin-bottom: 20px;
}

.attached_image_item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.attached_image_item img:hover {
  transform: scale(1.02);
}

.attached_image_item p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

@media (max-width: 768px) {
  .attached_images {
    margin-top: 20px;
    padding-top: 20px;
  }

  .attached_image_item {
    margin-bottom: 15px;
  }

  .attached_image_item p {
    font-size: 12px;
  }
}

/* CSS 버전: 2025-01-26-v5 */
