/* (사)한국예총 익산지회 그누보드 5 테마 디자인 시스템 - 모바일 반응형 최적화 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600;700;900&family=Pretendard:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

  /* Color Palette - Heritage Ink & Golden Royalty */
  --bg-dark: #090c15;
  --bg-dark-card: rgba(20, 26, 42, 0.85);
  --bg-light: #f9f7f2;
  --bg-light-card: #ffffff;

  --primary-gold: #c59b27;
  --primary-gold-bright: #e6b839;
  --primary-gold-light: rgba(197, 155, 39, 0.15);

  --text-main: #222222;
  --text-muted: #666666;
  --text-dark-theme: #f1f3f7;
  --text-dark-muted: #a0aec0;

  --border-light: #e5dfd5;
  --border-dark: rgba(255, 255, 255, 0.12);

  --glass-bg: rgba(9, 12, 21, 0.85);
  --glass-border: rgba(197, 155, 39, 0.3);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 그누보드 표준 스크린리더 전용 텍스트(예: 스마트에디터2의 "웹에디터 시작/끝").
   화면엔 안 보이고 스크린리더에는 읽히게 하는 그누보드 기본 core css(default.css)의
   .sound_only 정의를 그대로 가져온 것 - 이 테마엔 core css가 로드되지 않아서
   이 클래스가 없어 텍스트가 그냥 화면에 노출되고 있었다. */
.sound_only {
  display: inline-block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  /* body 높이는 페이지 전체 길이(뷰포트보다 훨씬 김)라 cover가 그 길이를 기준으로
     확대돼 과하게 확대된 것처럼 보였다. fixed로 뷰포트 기준 크기로 고정한다. */
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
.font-serif {
  font-family: var(--font-serif);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header & GNB (모든 페이지 공통)
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 12, 21, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
  transition: var(--transition-normal);
}

#site-header.scrolled {
  background: rgba(9, 12, 21, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--primary-gold);
}

.header-container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  /* z-index 작동을 위해 필수 */
  z-index: 200 !important;
  /* hanok-header-eaves(z-index:2) 위에 배치 */
  pointer-events: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  fill: var(--primary-gold);
  flex-shrink: 0;
}

.brand-logo .title-wrap {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-logo .main-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  white-space: nowrap;
  word-break: keep-all;
}

.brand-logo .sub-title {
  font-size: 0.68rem;
  color: var(--primary-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Desktop Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 8px;
  position: relative;
  white-space: nowrap;
  word-break: keep-all;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-gold-bright);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-auth-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-header-auth {
  padding: 6px 14px;
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-sm);
  color: var(--primary-gold-bright);
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(197, 155, 39, 0.12);
  white-space: nowrap;
  word-break: keep-all;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-header-auth:hover {
  background: var(--primary-gold);
  color: #090c15;
}

.btn-admin-gold {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #9e7a17 100%) !important;
  color: #090c15 !important;
  border: none !important;
}

/* Dropdown Submenu (1차→2차 계층 드롭다운) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-arrow {
  font-size: 0.7rem;
  margin-left: 2px;
  opacity: 0.7;
  transition: var(--transition-normal);
}

.nav-dropdown:hover .nav-arrow {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: rgba(9, 12, 21, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: var(--transition-normal);
}

.nav-dropdown-item:hover {
  background: rgba(197, 155, 39, 0.18);
  color: var(--primary-gold-bright);
}

/* ==========================================================================
   Mobile Floating Menu Button & Side Drawer (모든 페이지 공통)
   ========================================================================== */
.mobile-floating-menu-btn {
  display: none;
  /* 데스크톱에서 숨김 */
  position: fixed !important;
  bottom: 24px !important;
  left: 20px !important;
  /* 좌하단 고정 */
  right: auto !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e356d 0%, #101e42 100%) !important;
  border: 2px solid var(--primary-gold-bright) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(197, 155, 39, 0.5) !important;
  z-index: 999999 !important;
  /* 최상단 플로팅 */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}

.mobile-floating-menu-btn:active {
  transform: scale(0.92);
}

.hamburger-icon {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-gold-bright);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-floating-menu-btn.active .hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-floating-menu-btn.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-floating-menu-btn.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Side Drawer (좌측 슬라이드 오프캔버스 메뉴 패널) */
.mobile-side-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  /* 최상위 오버레이 레이어 */
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.4s ease;
}

.mobile-side-drawer.active {
  pointer-events: auto !important;
  visibility: visible !important;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-side-drawer.active .drawer-backdrop {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  /* 좌측에서 슬라이드 */
  right: auto;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: #090e1a !important;
  /* 100% 완전 불투명 다크 딥 블루 */
  border-right: 2px solid var(--primary-gold) !important;
  box-shadow: 15px 0 50px rgba(0, 0, 0, 0.95) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  color: #ffffff !important;
  z-index: 10 !important;
}

.mobile-side-drawer.active .drawer-content {
  transform: translateX(0) !important;
}

.drawer-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(197, 155, 39, 0.08);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-emblem {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.drawer-title {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  margin: 0;
}

.drawer-sub {
  color: var(--primary-gold-bright);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--primary-gold-bright);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.drawer-body {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.drawer-link {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(197, 155, 39, 0.3) !important;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.drawer-home-link {
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.3) 0%, rgba(30, 53, 109, 0.45) 100%) !important;
  border: 1px solid var(--primary-gold-bright) !important;
  color: #f8dc8c !important;
}

.drawer-link:hover,
.drawer-link:active {
  background: rgba(197, 155, 39, 0.28) !important;
  border-color: #f8dc8c !important;
  color: #f8dc8c !important;
  transform: translateX(4px);
}

/* 상위 메뉴(8개 회원협회 등)와 그 하위 항목을 시각적으로 구분해서
   플랫하게 나열되던 모바일 드로어 메뉴를 데스크톱 드롭다운과 같은
   계층 구조로 보이게 한다. */
.drawer-brand {
  text-decoration: none !important;
  color: inherit !important;
  transition: opacity 0.25s ease;
}

.drawer-brand:hover {
  opacity: 0.82;
}

.drawer-group {
  display: flex;
  flex-direction: column;
}

.drawer-group-title {
  width: 100%;
  background: rgba(197, 155, 39, 0.16) !important;
  font-family: inherit;
  cursor: pointer;
  justify-content: space-between !important;
}

.drawer-group-arrow {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  color: var(--primary-gold-bright);
}

.drawer-group.open .drawer-group-title {
  background: rgba(197, 155, 39, 0.28) !important;
  border-color: #f8dc8c !important;
}

.drawer-group.open .drawer-group-arrow {
  transform: rotate(180deg);
}

/* 아코디언: 접혀있을 땐 높이 0으로 숨기고, 펼쳐지면 부드럽게 열린다 */
.drawer-subgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
  border-left: 2px solid rgba(197, 155, 39, 0.35);
  margin-left: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.drawer-group.open .drawer-subgroup {
  max-height: 600px;
  opacity: 1;
  margin-top: 8px;
}

.drawer-sublink {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.drawer-auth-box {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-auth-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.drawer-btn-gold {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #9e7a17 100%) !important;
  color: #090c15 !important;
  border: none !important;
}


/* ==========================================================================
   Subpage Banner
   ========================================================================== */
.subpage-hero {
  /* main.container와 같은 유리블러 반투명 처리로 통일 - 배경 이미지가 그대로
     비치도록 불투명 배경 대신 블러를 쓴다. 배경이 밝아지므로 글자색도 어두운
     톤으로 맞춘다(원래 흰 글자는 짙은 남색 배경 전용이었음). */
  position: relative;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* padding-top은 고정 헤더(80px) + 그 밑에 겹치는 금색 처마 장식선
     (.hanok-header-eaves, 110px, 모든 페이지 공통)을 반드시 다 지나야 한다.
     이보다 짧으면 제목(h1)이 장식선 뒤에 가려서 안 보이게 된다. */
  padding: 125px 24px 22px;
  color: var(--text-main);
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--primary-gold);
}

.subpage-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 12px;
  position: relative;
  word-break: keep-all;
}

.subpage-hero p {
  color: #9e7a17;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.05em;
  position: relative;
  word-break: keep-all;
}

/* ==========================================================================
   Board Buttons (글쓰기/목록/수정/삭제 등 - 모든 게시판 스킨 공용)
   .btn-primary/.btn-secondary 클래스가 여러 스킨 파일에서 쓰이는데 실제
   정의가 어디에도 없어서 글쓰기 버튼 등이 그냥 텍스트 링크처럼 보였다.
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ad8036 0%, #7d5a24 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #6e4a1f;
  text-decoration: none !important;
  transition: var(--transition-normal);
  box-shadow: 0 4px 12px rgba(125, 90, 36, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c59b27 0%, #8a5a2b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(125, 90, 36, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-dark);
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  text-decoration: none !important;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: #1a2032;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* PC Mode Outer Frame Width (최대 가로폭 1366px) */
#wrapper,
#site-header .header-container,
#site-footer .footer-container,
#hd_wrapper {
  max-width: 1366px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 게시판, 글쓰기, 글수정, 회원/정보페이지 전용 (가로폭 1200px 중앙 정렬) */
#container,
.container,
.content-card,
.sub-container,
#bo_list,
#bo_v,
#bo_w,
#fregister,
#fregisterform,
#flogin,
#fmember,
#ctt,
.co_content,
.board-list-wrap,
.board-view-wrap,
.board-write-wrap {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 규칙: body 배경이 이미지(background.jpg)이므로, 카드 배경이 없는 날 텍스트가
   그 위에 그대로 얹히면 가독성이 떨어진다. 이 테마는 id="container"를 쓰지 않고
   head.php에서 일반 페이지마다 <main class="container">로 감싸므로, 그 실제
   요소(main.container)에 유리블러 반투명 패널을 깔아, 어떤 콘텐츠 요소가 나중에
   추가/변경되어도(스킨 교체, 새 페이지 등) main.container 안에만 있으면 항상
   이 배경을 상속받아 가독성이 보장된다. .content-card처럼 이미 자체 불투명
   배경이 있는 요소는 그 위에 그대로 그려지므로 이중 블러 문제도 없다.
   -> 새 콘텐츠를 추가할 때 이 계층(main.container 안) 밖에 두지 않도록 주의.
   예외: 게시판 글 상세페이지(.board-view-content가 있는 view.skin.php)는
   적용 대상이 아니다 - 본문 자체가 이미 카드 레이아웃으로 완성돼 있어서다. */
main.container {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  margin-top: 20px;
  margin-bottom: 20px;
}

main.container:has(.board-view-content) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Dual Grid for Notice & Events Boards */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Page Section Card */
.content-card {
  background: var(--bg-light-card);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  margin-bottom: 40px;
}

/* Common Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .sub-tag {
  color: var(--primary-gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-header .main-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text-main);
  word-break: keep-all;
}

/* Traditional Decorative Divider */
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.deco-divider::before,
.deco-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--primary-gold);
}

.deco-divider svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-gold);
}

/* ==========================================================================
   Pulse-Glow CTA (사이트 공용) - cheditor5 고급 템플릿의 "깜빡이는 라이브 뱃지"(tpl-50)
   펄스 링 효과를 재사용 가능한 클래스로 만든 것. 중요한 링크/버튼에만 선택적으로 붙인다
   (모든 버튼에 남용하면 산만해지므로 페이지당 1~2개 핵심 CTA로 제한 권장).
   기본 색은 사이트 골드 톤이며, 다른 색이 필요하면 --pulse-color만 오버라이드하면 된다.
   ========================================================================== */
.pulse-cta-glow {
  position: relative;
}

.pulse-cta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--pulse-color, rgba(197, 155, 39, 0.55));
  animation: pulse-cta-ring 2s infinite;
  pointer-events: none;
}

@keyframes pulse-cta-ring {
  0% { box-shadow: 0 0 0 0 var(--pulse-color, rgba(197, 155, 39, 0.55)); }
  70% { box-shadow: 0 0 0 14px rgba(197, 155, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 155, 39, 0); }
}

/* ==========================================================================
   Footer (모든 페이지 공통 기본 스타일)
   ========================================================================== */
#site-footer {
  background-color: var(--bg-dark);
  color: var(--text-dark-muted);
  border-top: 1px solid rgba(197, 155, 39, 0.3);
  padding: 20px 24px 12px;
}

.footer-container {
  max-width: 1366px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.footer-brand {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-emblem {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.footer-brand .footer-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

.footer-info {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.info-item {
  display: inline-block;
  white-space: nowrap;
}

.info-divider {
  color: rgba(197, 155, 39, 0.6);
  font-size: 0.76rem;
  user-select: none;
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-col-assoc {
  flex: 1.2;
}

.footer-col-quick {
  flex: 0.8;
  align-items: flex-end;
}

.footer-col-title {
  color: var(--primary-gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-assoc-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  margin: 0;
}

.footer-assoc-text a,
.footer-quick-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-assoc-text a:hover,
.footer-quick-links a:hover {
  color: var(--primary-gold-bright);
  text-decoration: underline;
}

.footer-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-bottom {
  max-width: 1366px;
  margin: 4px auto 0;
  padding: 6px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
}

.footer-bottom-line {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  margin: 0;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
}

.footer-bottom-line a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-bottom-line a:hover {
  color: #f8dc8c;
  text-decoration: underline;
}

/* Board Header for Latest Boards */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.board-header h3 {
  font-size: 1.15rem;
}

.board-more {
  color: var(--primary-gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS (모든 페이지 공통)
   ========================================================================== */

/* 데스크톱(993px 이상) 명시적 내비 보장 */
@media (min-width: 993px) {
  .main-nav {
    display: flex !important;
  }

  .mobile-floating-menu-btn {
    display: none !important;
  }
}

/* Tablet breakpoint - 데스크톱 내비 숨기고 플로팅 버튼 활성화 */
@media (max-width: 992px) {
  .main-nav {
    display: none !important;
    /* 모바일 GNB 메뉴 숨김 */
  }

  .mobile-floating-menu-btn {
    display: flex !important;
    /* 플로팅 메뉴 버튼 활성화 */
  }

  .header-container {
    height: 70px;
    padding: 0 16px;
  }

  .container {
    padding: 40px 16px;
  }

  /* 모바일/태블릿 푸터 레이아웃 & 플로팅 버튼 간섭 방지 안전 패딩 확보 */
  #site-footer,
  .hanok-footer {
    padding-bottom: 95px !important;
    /* 플로팅 버튼(좌하단)에 텍스트가 가리지 않도록 95px 공간 확보 */
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
  }

  .footer-brand {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-logo-row {
    justify-content: center !important;
  }

  .footer-info {
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.84rem !important;
    line-height: 1.7 !important;
  }

  .footer-col {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-col-quick {
    align-items: center !important;
  }

  .footer-quick-links {
    justify-content: center !important;
  }

  .footer-bottom {
    text-align: center !important;
    padding: 10px 10px 0 !important;
  }

  .footer-bottom-line {
    text-align: center !important;
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }

  .dual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .subpage-hero {
    padding: 122px 16px 18px; /* 처마 장식선(110px)이 이 구간까진 그대로 유지됨 */
  }
}

/* Mobile Phone breakpoint */
@media (max-width: 768px) {
  .header-container {
    height: 60px;
    padding: 0 12px;
  }

  .brand-logo svg {
    width: 30px;
    height: 30px;
  }

  .brand-logo .main-title {
    font-size: 0.95rem;
  }

  .brand-logo .sub-title {
    font-size: 0.6rem;
  }

  .container {
    padding: 30px 14px;
  }

  .content-card {
    padding: 20px 14px;
    border-radius: var(--radius-sm);
  }

  .subpage-hero {
    padding: 90px 14px 16px; /* 이 구간부터 처마 장식선이 75px로 줄어듦 */
  }

  .subpage-hero h1 {
    font-size: 1.5rem;
  }

  .deco-divider::before,
  .deco-divider::after {
    width: 35px;
  }

  .footer-container {
    padding: 0 14px;
    gap: 12px;
  }

  .footer-brand .footer-title {
    font-size: 0.92rem;
    white-space: normal;
  }

  .footer-info {
    font-size: 0.75rem;
  }

  .info-item {
    white-space: normal;
  }

  .mobile-floating-menu-btn {
    bottom: 20px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Very small phone */
@media (max-width: 480px) {
  .brand-logo .sub-title {
    display: none;
  }

  .brand-logo .main-title {
    font-size: 0.88rem;
  }

  .drawer-title {
    font-size: 0.92rem;
  }

  .footer-assoc-text {
    white-space: normal;
  }
}

/* 작성자 이름 + 프로필 아이콘 - 항상 한 줄로, 줄바꿈 방지 */
.sv_member,
.sv_guest {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: middle;
}

.profile_img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.profile_img img {
  display: block;
  border-radius: 50%;
  vertical-align: middle;
}

/* Sideview Member Dropdown Menu (작성자 클릭 팝업) */
.sv_wrap {
  display: inline-block;
  position: relative;
}

.sv_wrap .sv {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 140px;
  text-align: left;
}

.sv_wrap:hover .sv,
.sv_wrap.active .sv {
  display: block !important;
}

.sv_wrap .sv a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
}

.sv_wrap .sv a:hover {
  background: var(--primary-gold-light);
  color: var(--primary-gold);
}