/* Reset & Base */
*, *::before, *::after {margin: 0; padding: 0; box-sizing: border-box;}
html {scroll-behavior: smooth; font-size: 16px;}
body {font-family: 'Noto Sans KR', sans-serif; color: #333; background: #fff; line-height: 1.6; overflow-x: hidden;}
a {text-decoration: none; color: inherit;}
ul, ol {list-style: none;}
img {max-width: 100%; height: auto;}

img.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 0;
  color: #999;
  font-size: 1.5rem;
  text-align: center;
  padding: 40px;
}

button {cursor: pointer; border: none; background: none; font-family: inherit;}

/* Css Variables */
:root {
  --primary: #7fc141;
  --primary-dark: #5fa02e;
  --dark: #1a1a1a;
  --text: #333;
  --text-light: #666;
  --border: #e3e3e3;
  --bg-light: #f7f7f7;
  --font-en: 'Montserrat', sans-serif;
  --font-ko: 'Noto Sans KR', sans-serif;
  --transition: 0.3s ease;
  --header-h: 74px;
}

/* Header */
.header {position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: transparent; z-index: 1000;}
.header.scrolled {background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.08);}
.header-inner {width: 100%; height: 100%; display: flex; align-items: center; padding: 0 32px; position: relative;}

/* Logo */
.header-logo {flex-shrink: 0; z-index: 2; display: flex; align-items: center; gap: 10px;}
.header-logo img {height: 36px; width: auto; filter: brightness(0) invert(1);}
.header.scrolled .header-logo img {filter: none;}
.header-logo-sub {height: 36px !important;}

/* Gnb - Center Navigation */
.gnb {position: absolute; left: 50%; transform: translateX(-50%); z-index: 3;}
.gnb ul {display: flex; gap: 0;}
.gnb li {position: relative;}
.gnb li > a {display: block; padding: 0 24px; line-height: var(--header-h); font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: -0.02em; white-space: nowrap;}
.gnb li > a:hover {color: #fff;}
.header.scrolled .gnb li > a {color: var(--text);}
.header.scrolled .gnb li > a:hover {color: var(--primary);}

/* Mega Menu */
.mega-menu {position: fixed; top: var(--header-h); left: 0; right: 0; background: #7fc142; box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 999; max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; opacity: 0;}
.mega-menu.open {max-height: 480px; opacity: 1;}
.mega-menu-inner {max-width: 960px; margin: 0 auto; padding: 20px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;}
.mega-3col {grid-template-columns: repeat(3, 1fr); max-width: 820px; align-items: start;}
.mega-col {padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.3); opacity: 1; transition: opacity 0.3s;}
.mega-col:last-child {border-right: none;}
.mega-col.active {opacity: 1;}
.mega-col-title {display: block; font-size: 0.9rem; font-weight: 700; color: #fff; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,0.4);}
.mega-col-2 {display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px;}
.mega-col-2 .mega-col-title {grid-column: 1 / -1;}
.mega-item-full {grid-column: 1 / -1;}
.mega-item {display: flex; align-items: center; gap: 12px; padding: 4px 8px; margin: 0 -8px; border-radius: 4px; font-size: 0.85rem; color: #fff; transition: background 0.2s, color 0.2s;}
.mega-item:hover {background: #fff; color: #7fc142;}
.mega-thumb {display: none;}

/* Active Menu Indicator */
.js-gnb-menu li.menu-active > a {color: var(--primary) !important;}

/* Header Right */
.header-right {margin-left: auto; display: flex; align-items: center; gap: 12px; z-index: 2;}
.header-unesco-text {font-size: 0.92rem; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: -2px;}
.header.scrolled .header-unesco-text {color: rgba(0,0,0,0.45);}
.profile {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:none;border:none;cursor:pointer;border-radius:50%;transition:all 0.2s;}
.profile svg {stroke:rgba(255,255,255,0.7);transition:stroke 0.2s;}
.profile:hover svg {stroke:#fff;}
.header.scrolled .profile svg {stroke:var(--text);}
.header.scrolled .profile:hover svg {stroke:var(--primary);}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}

.lang-btn:hover {border-color: #fff; color: #fff;}
.header.scrolled .lang-btn {border-color: var(--border); color: var(--text);}
.header.scrolled .lang-btn:hover {border-color: var(--primary); color: var(--primary);}
.lang-btn svg {width: 14px; height: 14px;}

/* Hamburger */
.hamburger {display: none; flex-direction: column; gap: 5px; width: 24px; padding: 0;}
.hamburger span {display: block; width: 100%; height: 2px; background: #fff;}
.header.scrolled .hamburger span {background: var(--dark);}

/* Mobile Nav */
.gnb-brand {display: none;}
.gnb-close {display: none;}
.gnb-copyright {display: none;}
.gnb-toggle {display: none !important;}
.gnb-sub {display: none !important;}

/* Hero */
.hero {position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center;}
.hero-video {position: absolute; inset: 0; z-index: 0;}
.hero-video video {width: 100%; height: 100%; object-fit: cover;}
.hero-video-mobile {display: none; position: absolute; inset: 0; z-index: 0; background: url('../images/hero-main-mobile.jpg') center/cover no-repeat;}
.hero-bg-img {position: absolute; inset: 0; z-index: 0; overflow: hidden;}
.hero-bg-img img {width: 100%; height: 100%; object-fit: cover; animation: heroZoom 12s ease-in-out infinite alternate;}
.hero-bg-img::after {content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.15) 55%, transparent 60%); background-size: 200% 100%; animation: heroShimmer 5s ease-in-out infinite;}

@keyframes heroZoom {
  0% {transform: scale(1);}
  100% {transform: scale(1.1);}
}

@keyframes heroShimmer {
  0% {background-position: 200% 0;}
  100% {background-position: -200% 0;}
}

.hero::before {content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1;}
.hero-content {position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px;}
.hero-sub {font-family: var(--font-en); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.3s forwards;}
.hero-title {font-size: 3rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.6s forwards;}
.hero-desc {font-size: 1.1rem; font-weight: 300; line-height: 1.8; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s 0.9s forwards;}

@keyframes fadeUp {
  to {opacity: 1; transform: translateY(0);}
}

/* Hero Tab Bar */
.hero-tab-bar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 5px;
  gap: 2px;
  opacity: 0;
  animation: fadeUpCenter 0.8s 1.2s forwards;
}

@keyframes fadeUpCenter {
  from {opacity: 0; transform: translateX(-50%) translateY(30px);}
  to {opacity: 1; transform: translateX(-50%) translateY(0);}
}

.hero-tab-slider {position: absolute; height: calc(100% - 10px); border-radius: 100px; background: #fff; transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; opacity: 0;}
.hero-tab-slider.is-visible {opacity: 1;}
.hero-tab {position: relative; z-index: 1; padding: 10px 24px; font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.85); border-radius: 100px; white-space: nowrap; transition: color 0.3s, font-weight 0.3s;}
.hero-tab:hover {color: #fff;}
.hero-tab.is-active {color: var(--primary); font-weight: 700;}
.hero-unesco-text {position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 0.82rem; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: -2px; line-height: 1.6; white-space: nowrap; text-align: right;}

/* Section Common */
.section-title {font-family: var(--font-en); font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; letter-spacing: -0.02em; text-align: center;}

/* Sub Page Hero */
.sub-hero {position: relative; width: 100%; height: 75px; margin-top: var(--header-h); background: #3f55a5; display: flex; align-items: center; justify-content: flex-start; overflow: hidden;}
.sub-hero-inner {position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 12px;}
.sub-hero-title {font-family: var(--font-en); font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0;}
.sub-hero-desc {font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.6);}
.sub-hero-unesco {margin-left: auto; display: flex; align-items: center; gap: 10px;}
.sub-hero-unesco-text {font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: -0.5px; line-height: 1.5; text-align: right;}
.sub-hero-unesco-icon {width: 32px; height: 32px; color: rgba(255,255,255,0.4); flex-shrink: 0;}

/* Sub Side Nav */
.nav-lnb-menu {position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 100; padding: 0 0 0 14px;}
.nav-lnb-menu-title {font-size: 0.85rem; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #eee; border-left: 1px solid #ddd; margin-left: -14px; padding-left: 14px;}
.nav-lnb-menu a {display: block; padding: 5px 0 5px 14px; font-size: 0.92rem; color: var(--text-light); white-space: normal; max-width: 120px; transition: color 0.2s; position: relative; border-left: 1px solid #ddd; margin-left: -14px;}
.nav-lnb-menu a:hover {color: var(--primary);}

.nav-lnb-menu a::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.nav-lnb-menu a.is-current {color: var(--primary); font-weight: 700;}
.nav-lnb-menu a.is-current::before {border-color: var(--primary); background: var(--primary);}

/* Sub Page Content */
.sub-page-body {padding: 35px 0 80px; min-height: 60vh; font-size: 0.95rem; color: var(--text-light); line-height: 1.8;}

/* Intro Slider */
.intro-slider {position: relative; overflow: hidden;}
.intro-slider .intro-header {padding-bottom: 20px; border-bottom: 1px solid var(--border); padding-right: 200px;}
.intro-slider .intro-line {display: none;}
.intro-slider-track {display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);}
.intro-slide {width: 100%; flex-shrink: 0;}
.intro-slide .intro-grid {align-items: stretch; grid-template-columns: 1fr 360px;}
.intro-slide .intro-image {position: relative; aspect-ratio: auto; min-height: 360px; background: var(--bg-light); border-radius: 8px; overflow: hidden;}

.slide-controls {
  position: absolute;
  top: 6px;
  right: calc(360px + 48px);
  left: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.slide-counter {font-family: var(--font-en); font-size: 0.82rem; font-weight: 700; color: var(--text-light);}
.slide-counter .current {color: var(--primary); font-size: 1rem;}
.slide-dots {display: flex; gap: 5px;}
.slide-dot {width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background 0.3s, width 0.3s; border: none; padding: 0;}
.slide-dot.is-active {background: #c8102e; width: 8px; border-radius: 50%;}
.slide-toggle {width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; background: none; border: none;}
.slide-toggle::before {content: ''; display: block; width: 20px; height: 20px; background: var(--dark); border-radius: 2px;}
.slide-toggle.is-paused::before {width: 0; height: 0; background: none; border-left: 20px solid var(--dark); border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-radius: 0;}

/* Intro Section (이미지형 소개 레이아웃) */
.intro-section {padding: 0; border-bottom: 1px solid var(--border);}
.intro-section:last-child {border-bottom: none;}
.intro-header {display: flex; align-items: center; gap: 20px; margin-bottom: 32px;}
.intro-title {font-size: 1.6rem; font-weight: 800; color: var(--dark); white-space: nowrap; flex-shrink: 0;}
.intro-line {flex: 1; height: 1px; background: var(--border);}
.intro-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;}
.intro-text p {font-size: 0.92rem; color: var(--text); line-height: 1.9; margin-bottom: 16px; text-align: justify;}
.intro-text p:last-child {margin-bottom: 0;}
.intro-text strong {font-weight: 700; color: var(--dark);}
.intro-image {border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-light);}
.intro-image img {width: 100%; height: 100%; object-fit: cover;}

/* 이미지 없을 때 플레이스홀더 */

/* 인사말 카드 */
.greeting-list {display: flex; flex-direction: column; gap: 48px;}
.greeting-card {display: flex; gap: 40px; align-items: flex-start;}
.greeting-card:nth-child(even) {flex-direction: row;}
.greeting-photo {width: 180px; height: 220px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg-light);}
.greeting-photo img {width: 100%; height: 100%; object-fit: cover;}
.greeting-body {flex: 1;}
.greeting-name {font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 2px;}
.greeting-name span {font-size: 0.85rem; font-weight: 500; color: var(--text-light); margin-left: 8px;}
.greeting-divider {width: 40px; height: 3px; background: var(--primary); margin: 12px 0 16px; border-radius: 2px;}
.greeting-body p {font-size: 0.92rem; color: var(--text); line-height: 1.9;}

/* 섬기는분들 그리드 */

/* 섬기는분들 - 리디자인 */
.ppl-section-title {font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);}
.ppl-tag-list {display: flex; flex-wrap: wrap; gap: 8px;}

.ppl-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.ppl-tag:hover {background: var(--primary); color: #fff; border-color: var(--primary);}
.ppl-tag small {font-size: 0.75rem; color: #999; font-weight: 400;}
.ppl-tag:hover small {color: rgba(255,255,255,0.7);}
.ppl-accordion {display: flex; flex-direction: column; gap: 8px;}
.ppl-acc-item {border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden;}

.ppl-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: #fafafa;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.2s;
  text-align: left;
}

.ppl-acc-header:hover {background: #f0f4ff;}
.ppl-acc-header em {font-style: normal; font-weight: 400; color: var(--text-light); font-size: 0.88rem;}
.ppl-acc-icon {font-size: 1.2rem; color: var(--primary); font-weight: 700; flex-shrink: 0; width: 24px; text-align: center;}
.ppl-acc-body {display: none; padding: 16px 20px 20px; border-top: 1px solid #e8e8e8;}
.ppl-acc-item.is-open .ppl-acc-body {display: block;}
.ppl-acc-item.is-open .ppl-acc-header {background: #f0f4ff;}
.ppl-staff-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;}
.ppl-staff-card {display: flex; flex-direction: column; align-items: center; padding: 20px 16px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; text-align: center; transition: all 0.2s;}
.ppl-staff-card:hover {border-color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,0.06);}
.ppl-staff-role {font-size: 0.78rem; font-weight: 600; color: var(--primary); margin-bottom: 6px;}
.ppl-staff-name {font-size: 1rem; font-weight: 700; color: var(--dark);}

/* 섬기는분들 테이블 */

/* 오시는길 */
.location-map-wrap {margin-top: 32px; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); border: 1px solid #eee; overflow: hidden;}
.location-map-wrap .root_daum_roughmap {width: 100% !important; max-width: 100%;}
.location-map-wrap .root_daum_roughmap .wrap_map {width: 100% !important;}
.location-map-wrap .root_daum_roughmap iframe {max-width: 100% !important;}
.location-info {display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px;}
.location-info-card {display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; transition: box-shadow 0.3s, transform 0.3s;}
.location-info-card:hover {box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px);}
.location-info-icon {width: 48px; height: 48px; flex-shrink: 0; background: var(--bg-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 10px; color: var(--primary);}
.location-info-icon svg {width: 100%; height: 100%;}
.location-info-body h4 {font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 6px;}
.location-info-body p {font-size: 0.9rem; line-height: 1.7; color: var(--text); margin: 0;}

/* 연혁 타임라인 */
.hist-timeline {position: relative; margin-top: 0; padding-bottom: 40px;}
.hist-timeline::before {content: ''; position: absolute; left: calc(280px + 20px); top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), #c5cae9 40%, #e0e0e0);}
.hist-year-block {display: flex; align-items: flex-start; gap: 0; margin-bottom: 56px;}
.hist-year-block:first-child {margin-top: 0; position: relative; opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(.23,1,.32,1), transform 0.7s cubic-bezier(.23,1,.32,1);}
.hist-year-block.is-visible {opacity: 1; transform: translateY(0);}
.hist-left {width: 280px; flex-shrink: 0; text-align: right; padding-right: 20px; opacity: 0; transform: translateX(-30px); transition: opacity 0.6s 0.2s cubic-bezier(.23,1,.32,1), transform 0.6s 0.2s cubic-bezier(.23,1,.32,1);}
.hist-year-block.is-visible .hist-left {opacity: 1; transform: translateX(0);}
.hist-year {font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 16px;}
.hist-thumb {width: 200px; height: 130px; border-radius: 10px; overflow: hidden; margin-left: auto; background: var(--bg-light); box-shadow: 0 4px 16px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center;}
.hist-thumb img {width: 100%; height: 100%; object-fit: cover; object-position: center center;}
.hist-center {width: 42px; flex-shrink: 0; display: flex; justify-content: center; padding-top: 14px; position: relative; z-index: 1;}
.hist-dot {width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 0 0 4px rgba(127,193,65,0.15); transition: transform 0.3s, box-shadow 0.3s;}
.hist-year-block.is-visible .hist-dot {animation: histPulse 0.6s 0.3s ease-out both;}

@keyframes histPulse {
  0% {transform: scale(0.5); box-shadow: 0 0 0 0 rgba(127,193,65,0.35);}
  60% {transform: scale(1.3); box-shadow: 0 0 0 8px rgba(127,193,65,0.1);}
  100% {transform: scale(1); box-shadow: 0 0 0 4px rgba(127,193,65,0.15);}
}

.hist-right {flex: 1; padding-left: 20px; padding-top: 2px; opacity: 0; transform: translateX(30px); transition: opacity 0.6s 0.3s cubic-bezier(.23,1,.32,1), transform 0.6s 0.3s cubic-bezier(.23,1,.32,1);}
.hist-year-block.is-visible .hist-right {opacity: 1; transform: translateX(0);}
.hist-events {list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 12px; padding: 24px 28px; box-shadow: 0 2px 16px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;}
.hist-events li {display: flex; gap: 10px; padding: 8px 0; font-size: 0.92rem; line-height: 1.65; color: var(--text); border-bottom: 1px solid #f5f5f5;}
.hist-events li:last-child {border-bottom: none; padding-bottom: 0;}
.hist-events li:first-child {padding-top: 0;}
.hist-events li em {flex-shrink: 0; font-style: normal; font-weight: 600; font-size: 0.82rem; color: var(--primary); font-family: 'Montserrat', sans-serif; white-space: nowrap; min-width: 42px;}
.hist-events li strong {color: var(--primary); font-weight: 700;}

/* 오시는길 지도 */
.map-wrap {border-radius: 8px; overflow: hidden; margin-top: 24px; background: var(--bg-light); height: 320px;}
.map-wrap iframe {width: 100%; height: 100%; border: 0;}

/* 스크롤 Reveal 애니메이션 */
[data-reveal] {opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(.23,1,.32,1), transform 0.7s cubic-bezier(.23,1,.32,1);}
[data-reveal].is-visible {opacity: 1; transform: translateY(0);}

/* 국내사업 탭 */
.dtab-bar {position: relative; margin-bottom: 36px; padding: 0;}
.dtab-scroll {display: flex; flex-wrap: wrap; gap: 8px;}
.dtab-btn {flex: 0 0 auto;}

.dtab-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  text-align: center;
}

.dtab-btn:hover {background: var(--bg-light); border-color: #ccc;}
.dtab-btn.is-active {color: #fff; font-weight: 700; background: var(--primary); border-color: var(--primary);}
.dtab-panels {position: relative;}
.dtab-panel {display: none; animation: dtabFade 0.4s ease;}
.dtab-panel.is-active {display: block;}

@keyframes dtabFade {
  from {opacity: 0; transform: translateY(12px);}
  to {opacity: 1; transform: translateY(0);}
}

/* 갤러리 그리드 */
.gallery-section-title {font-size: 1rem; font-weight: 700; margin: 28px 0 12px; color: var(--text); padding-left: 12px; border-left: 3px solid var(--primary);}
.gallery-section-title:first-child {margin-top: 0;}
.gallery-grid {display: grid; gap: 12px;}
.gallery-grid.col-2 {grid-template-columns: 1fr 1fr;}
.gallery-grid.col-3 {grid-template-columns: 1fr 1fr 1fr;}
.gallery-grid.col-4 {grid-template-columns: 1fr 1fr 1fr 1fr;}
.gallery-grid img {width: 100%; border-radius: 8px; object-fit: cover;}

/* 기사 테이블 */
.board-table-wrap {max-height: 480px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px;}
.board-table td {padding: 8px 12px; border-bottom: 1px solid #f0f0f0; font-size: 0.85rem; color: var(--text);}
.board-table tbody tr:hover {background: var(--bg-light);}

/* side-nav 배너 */
.side-nav-banner {margin-top: 20px; margin-left: -14px; padding: 20px 16px; background: #f8f8f8; border: 1px solid #e0e0e0; border-radius: 10px; text-align: center; border-left: 1px solid #e0e0e0;}
.side-nav-banner-title {font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 4px;}
.side-nav-banner-sub {font-size: 0.95rem; font-weight: 700; color: #e53e3e; margin-bottom: 8px;}
.side-nav-banner-info {font-size: 0.8rem; color: #666; line-height: 1.6;}
.side-nav-banner-account {margin-top: 8px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 0.75rem; color: #888; line-height: 1.5;}

/* 탭 콘텐츠 */
.dtab-detail {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; overflow: hidden;}
.dtab-detail-body {min-width: 0;}
.dtab-detail-img {border-radius: 14px; overflow: hidden; min-width: 0; width: 100%; aspect-ratio: 4/3;}
.dtab-detail-img:has(img) {box-shadow: 0 4px 20px rgba(0,0,0,0.08);}
.dtab-detail-img:has(.intro-image-placeholder) {box-shadow: none;}
.img-placeholder {width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-light); border-radius: 14px; color: var(--text-light); font-size: 0.9rem; font-weight: 500;}
.dtab-detail-img img {width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;}
.dtab-detail-body h4 {font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 10px;}
.dtab-detail-body p {font-size: 0.92rem; line-height: 1.85; color: var(--text); margin-bottom: 10px;}
.dtab-tag {display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--primary); background: var(--bg-light); padding: 4px 14px; border-radius: 20px; margin: 0 4px 16px 0;}
.container {max-width: 1200px; margin: 0 auto; padding: 0 24px;}

/* About */
.about {padding: 100px 0; background: #fff;}

/* Business */
.business {padding: 100px 0; background: var(--bg-light);}

/* Campaign */
.campaign-img-wrap {position: relative;}
.campaign-full-img {position: relative; border-radius: 14px; overflow: hidden;}
.campaign-full-img img {width: 100%; display: block;}

.campaign-detail-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.campaign-detail-btn:hover {background: var(--primary);}
.campaign-img-center {display: flex; align-items: center; justify-content: center; aspect-ratio: auto;}
.campaign-detail-btn-center {top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%);}
.campaign-detail-btn-lg {padding: 16px 40px; font-size: 1.1rem;}

/* Campaign Support Box (후원방법) */
.campaign-support-box {margin-top: 28px; border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px 24px; color: var(--text); overflow: hidden;}
.campaign-support-title {font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px dotted var(--border);}
.campaign-support-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center;}
.campaign-support-item {display: flex; flex-direction: column; align-items: center; gap: 6px;}
.campaign-support-icon {width: 48px; height: 48px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; margin-bottom: 4px;}
.campaign-support-icon svg {width: 26px; height: 26px;}
.campaign-support-item strong {font-size: 0.82rem; font-weight: 700; line-height: 1.3;}
.campaign-support-item p {font-size: 0.75rem; line-height: 1.4; color: var(--text-light); margin: 0;}
.campaign-receipt {margin-top: 20px; padding-top: 16px; border-top: 1px dotted var(--border);}
.campaign-receipt-title {font-size: 1rem; font-weight: 700; margin-bottom: 10px;}
.campaign-receipt ul {list-style: none; padding: 0; margin: 0;}
.campaign-receipt li {font-size: 0.82rem; line-height: 1.7; color: var(--text-light); padding-left: 14px; position: relative;}
.campaign-receipt li::before {content: "·"; position: absolute; left: 2px; font-weight: 700;}

@media (max-width: 768px) {
  .campaign-support-grid {grid-template-columns: repeat(2, 1fr); gap: 20px 12px;}
  .campaign-support-box {padding: 20px 16px;}
}

.campaign-modal {max-width: 900px; width: 90%;}
.campaign-modal-body {padding: 0;}
.campaign-modal-body img {width: 100%; display: block; border-radius: 0 0 12px 12px;}
.campaign-gallery-body {padding: 16px; max-height: 80vh; overflow-y: auto;}
.campaign-gallery-list {display: flex; flex-direction: column; gap: 12px;}
.campaign-gallery-list img {width: 100%; display: block; border-radius: 8px;}

/* Campaign Info Box (북한영유아영양지원) */
.campaign-info-box {background: #f8f9fa; border-radius: 14px; padding: 40px; border: 1px solid var(--border);}
.campaign-info-section {margin-bottom: 28px;}
.campaign-info-section:last-child {margin-bottom: 0;}
.campaign-info-section p {font-size: 0.95rem; line-height: 1.8; color: var(--text);}
.campaign-info-label {font-size: 1rem; font-weight: 700; color: #3f55a5; margin-bottom: 8px;}
.campaign-info-footer {margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border);}
.campaign-info-item {display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.95rem; color: var(--text);}
.campaign-info-icon {color: #3f55a5; font-size: 0.8rem;}
.campaign-ars {display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap;}
.campaign-ars-label {display: inline-flex; align-items: center; justify-content: center; background: #3f55a5; color: #fff; font-size: 0.85rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: 0.05em;}
.campaign-ars-number {font-size: 1.3rem; font-weight: 800; color: #3f55a5; letter-spacing: 0.02em;}
.campaign-ars-desc {width: 100%; font-size: 0.82rem; color: var(--text-light); margin-top: 4px;}

@media (max-width: 768px) {
  .campaign-info-box {padding: 24px 18px;}
  .campaign-info-section p {font-size: 0.88rem;}
  .campaign-ars-number {font-size: 1.1rem;}
}

.campaign {padding: 100px 0; background: #fff;}

/* Campaign Sub Page */
.campaign-section {margin-bottom: 60px;}
.campaign-section-title {font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);}

/* Res-notice */
.notice {padding: 100px 0; background: var(--bg-light);}

/* 북한사업 */
.nk-columns {display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px;}
.nk-col .intro-text p {font-size: 0.92rem; color: var(--text); line-height: 1.9; margin-bottom: 16px; text-align: justify;}
.nk-col .intro-text p:last-child {margin-bottom: 0;}
.nk-gallery {display: grid; grid-template-columns: 1fr 1fr; gap: 24px;}
.nk-gallery-item {border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.06);}
.nk-slider {position: relative; overflow: hidden;}
.nk-slider-track {display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);}
.nk-slide {width: 100%; flex-shrink: 0; aspect-ratio: 16/9;}
.nk-slide img {width: 100%; height: 100%; object-fit: cover; object-position: center;}
.nk-slider-dots {position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px;}
.nk-dot {width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.3s;}
.nk-dot.is-active {background: #fff;}

/* 연대 이미지 */
.nk-columns .nk-col {display: flex; flex-direction: column;}
.alliance-desc {font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px;}
.alliance-images {display: flex; flex-direction: column; gap: 16px; margin-top: auto;}
.alliance-img {border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); aspect-ratio: 16/10;}
.alliance-img img {width: 100%; height: 100%; object-fit: cover; object-position: center;}

/* 기획 페이지 */
.planning-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 48px;}
.planning-item {display: flex; flex-direction: column;}
.planning-slider {position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-top: auto;}
.planning-slider-track {display: flex; transition: transform 0.5s ease;}
.planning-slide {min-width: 100%;}
.planning-slide img {width: 100%; height: auto; display: block;}
.planning-slider-dots {position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px;}
.planning-dot {width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.3s;}
.planning-dot.is-active {background: #fff;}

/* 일반 게시판 */
.board-header {display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 0.88rem; color: var(--text-light);}
.board-header strong {color: var(--primary); font-weight: 700;}
.board-table {overflow-x: auto;}
.board-table table {width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.6;}
.board-table th {background: #3f55a5; color: #fff; font-weight: 600; padding: 13px 16px; text-align: center; font-size: 0.88rem; white-space: nowrap;}
.board-table td {padding: 13px 16px; border-bottom: 1px solid #eee; color: var(--text); vertical-align: middle;}
.board-table td:first-child {text-align: center; color: var(--text-light); font-family: var(--font-en); font-size: 0.85rem; width: 60px;}
.board-table td:last-child {text-align: center; color: #aaa; font-family: var(--font-en); font-size: 0.82rem; width: 110px; white-space: nowrap;}
.board-table td:nth-child(2) {cursor: pointer;}
.board-table td:nth-child(2):hover {color: var(--primary);}
.board-table tbody tr:hover {background: #fafafa;}
.board-pagination {display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 32px;}

.board-pagination a,
.board-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 0.85rem;
  font-family: var(--font-en);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}

.board-pagination a:hover {border-color: var(--primary); color: var(--primary);}
.board-pagination .is-active {background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700;}
.board-pagination .pg-next {font-size: 0.78rem;}
.board-footer {display: flex; align-items: center; justify-content: center; position: relative; margin-top: 32px;}
.board-footer .board-pagination {margin-top: 0;}

.board-write-btn {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  transition: background 0.2s;
}

.board-write-btn:hover {background: var(--primary-dark); color: #fff;}

/* 갤러리 게시판 */
.gallery-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;}
.gallery-card {background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;}
.gallery-card:hover {transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1);}
.gallery-thumb {aspect-ratio: 4/3; background: var(--bg-light); overflow: hidden;}
.gallery-thumb img {width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;}
.gallery-card:hover .gallery-thumb img {transform: scale(1.05);}
.gallery-thumb-placeholder {width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 0.85rem;}
.gallery-info {padding: 16px 18px;}
.gallery-info h4 {font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.gallery-info time {font-family: var(--font-en); font-size: 0.78rem; color: #aaa;}

/* 영상 게시판 */
.video-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;}
.video-card {display: block; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;}
.video-card:hover {transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1);}
.video-thumb {position: relative; aspect-ratio: 16/9; background: #222; overflow: hidden;}
.video-thumb img {width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.4s;}
.video-card:hover .video-thumb img {opacity: 1; transform: scale(1.05);}
.video-thumb-placeholder {width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #2a2a2a; color: #555; font-size: 0.82rem;}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.video-card:hover .video-play-btn {background: rgba(255,0,0,0.85); transform: translate(-50%, -50%) scale(1.1);}
.video-play-btn svg {width: 22px; height: 22px; fill: #fff; margin-left: 3px;}
.video-info {padding: 16px 18px;}
.video-info h4 {font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.video-info time {font-family: var(--font-en); font-size: 0.78rem; color: #aaa;}

/* Footer */
.footer {background: #2b3a6e; color: rgba(255,255,255,0.6); padding: 56px 0 0; font-size: 0.85rem;}
.footer-inner {max-width: 1200px; margin: 0 auto; padding: 0 24px;}

/* Footer Main: 4-column Grid */
.footer-main {display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);}
.footer-col-about {padding-right: 20px;}
.footer-logo-text {font-size: 1.25rem; font-weight: 700; color: #fff; display: block; margin-bottom: 14px;}
.footer-desc {font-size: 0.82rem; line-height: 1.75; color: rgba(255,255,255,0.55); margin-bottom: 20px; max-width: 85%;}
.footer-col-title {font-size: 0.9rem; font-weight: 700; color: #fff; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.15); display: inline-block;}
.footer-nav {list-style: none; padding: 0; margin: 0;}
.footer-nav li {margin-bottom: 10px;}
.footer-nav a {font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s, padding-left 0.2s;}
.footer-nav a:hover {color: #fff; padding-left: 4px;}

/* Contact List */
.footer-contact-list {list-style: none; padding: 0; margin: 0;}
.footer-contact-list li {display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.82rem; line-height: 1.6;}
.footer-contact-list svg {flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.4);}

/* Social */
.footer-social {display: flex; gap: 10px;}
.footer-social a {width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.82rem; transition: all 0.25s;}
.footer-social a:hover {background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff;}

/* Footer Bottom */
.footer-bottom {padding: 24px 0; display: flex; justify-content: space-between; align-items: center;}
.footer-bottom-left {display: flex; align-items: center; gap: 24px;}
.footer-banners {display: flex; align-items: center; gap: 12px;}
.footer-banners a {display: block; height: 48px; opacity: 0.6; transition: opacity 0.2s; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden;}
.footer-banners a:hover {opacity: 1;}
.footer-banners img {height: 100%; width: auto; display: block;}
.footer-copyright {font-size: 0.78rem; color: rgba(255,255,255,0.35);}
.footer-powered {display: flex; align-items: center; gap: 4px;}
.footer-powered span {font-family: var(--font-en); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.3);}
.footer-powered a {font-family: var(--font-en); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.55); transition: color 0.2s;}
.footer-powered a:hover {color: #fff;}

/* Responsive: Sub-side-nav Hide */
@media (max-width: 1340px) {
  .nav-lnb-menu {display: none !important;}
}

/* Write Modal */
.modal-overlay {display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.5); align-items: center; justify-content: center;}
.modal-overlay.is-open {display: flex;}
.modal {background: #fff; border-radius: 8px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);}
.modal-header {display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #eee;}
.modal-header h3 {font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0;}
.modal-close {background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; line-height: 1; padding: 0;}
.modal-close:hover {color: var(--text);}
.modal-body {padding: 24px;}
.modal-field {margin-bottom: 20px;}
.modal-field:last-child {margin-bottom: 0;}
.modal-field label {display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 8px;}
.modal-input {width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.92rem; color: var(--text); box-sizing: border-box; transition: border-color 0.2s;}
.modal-input:focus {outline: none; border-color: var(--primary);}

.modal-textarea {
  width: 100%;
  min-height: 200px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--text);
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
}

.modal-textarea:focus {outline: none; border-color: var(--primary);}
.modal-file {font-size: 0.88rem; color: var(--text-light);}
.modal-footer {display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid #eee;}
.modal-btn-cancel {padding: 9px 22px; font-size: 0.88rem; font-weight: 600; color: var(--text); background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; transition: background 0.2s;}
.modal-btn-cancel:hover {background: #eee;}
.modal-btn-submit {padding: 9px 22px; font-size: 0.88rem; font-weight: 600; color: #fff; background: var(--primary); border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s;}
.modal-btn-submit:hover {background: var(--primary-dark);}
.modal-footer-between {justify-content: space-between;}
.modal-footer-left {display: flex; gap: 8px;}
.modal-btn-edit {padding: 9px 22px; font-size: 0.88rem; font-weight: 600; color: var(--primary); background: #fff; border: 1px solid var(--primary); border-radius: 4px; cursor: pointer; transition: all 0.2s;}
.modal-btn-edit:hover {background: var(--primary); color: #fff;}
.modal-btn-delete {padding: 9px 22px; font-size: 0.88rem; font-weight: 600; color: #e74c3c; background: #fff; border: 1px solid #e74c3c; border-radius: 4px; cursor: pointer; transition: all 0.2s;}
.modal-btn-delete:hover {background: #e74c3c; color: #fff;}

/* Gallery Modal */
.modal-gallery {max-width: 800px;}
.modal-gallery .modal-body {padding: 0;}
.gallery-modal-main {width: 100%; aspect-ratio: 16/10; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;}
.gallery-modal-main img {width: 100%; height: 100%; object-fit: contain;}
.gallery-modal-main .gallery-placeholder {color: #bbb; font-size: 1rem;}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-modal-nav:hover {background: rgba(0,0,0,0.7);}
.gallery-modal-prev {left: 12px;}
.gallery-modal-next {right: 12px;}
.gallery-modal-thumbs {display: flex; gap: 8px; padding: 12px 24px; background: #fafafa; border-top: 1px solid #eee; overflow-x: auto;}
.gallery-modal-thumbs img {width: 72px; height: 54px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s;}
.gallery-modal-thumbs .is-active {border-color: var(--primary); opacity: 1;}

.gallery-modal-thumbs .thumb-placeholder {
  width: 72px;
  height: 54px;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #bbb;
  flex-shrink: 0;
  transition: all 0.2s;
}

.gallery-modal-thumbs .thumb-placeholder.is-active {border-color: var(--primary); opacity: 1;}
.gallery-modal-info {padding: 16px 24px;}
.gallery-modal-info h4 {font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px;}
.gallery-modal-info time {font-size: 0.82rem; color: #999; font-family: var(--font-en);}
.gallery-modal-counter {position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.78rem; padding: 3px 10px; border-radius: 12px; font-family: var(--font-en);}

/* Overview Button */
.board-overview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: all 0.2s;
}

.board-overview-btn:hover {background: var(--primary); color: #fff;}

/* View Modal */
.modal-view {max-width: 720px;}

/* Wide Modal */
.modal-wide {max-width: 960px;}
.modal-wide .modal-body {padding: 0 24px; max-height: 70vh; overflow-y: auto;}
.modal-wide .modal-body table {width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.6;}
.modal-wide .modal-body thead {position: sticky; top: 0; z-index: 1;}
.modal-wide .modal-body th {background: var(--dark); color: #fff; font-weight: 600; padding: 11px 14px; white-space: nowrap; font-size: 0.84rem;}
.modal-wide .modal-body td {padding: 10px 14px; border-bottom: 1px solid #f0f0f0; color: var(--text); vertical-align: middle;}
.modal-wide .modal-body tbody tr:hover {background: #fafafa;}
.modal-wide .modal-body td:first-child {text-align: center; white-space: nowrap; color: #999; font-family: var(--font-en); font-size: 0.82rem;}
.modal-wide .modal-body td:nth-child(2) {text-align: center; white-space: nowrap; font-weight: 600; font-size: 0.84rem;}
.modal-meta {padding: 0 24px 16px; font-size: 0.82rem; color: #999; border-bottom: 1px solid #eee;}
.modal-content {font-size: 0.94rem; line-height: 1.8; color: var(--text); white-space: pre-line;}

/* Responsive: Tablet */
@media (max-width: 1024px) {
  .gnb li > a {padding: 0 16px; font-size: 0.88rem;}
  .intro-grid {gap: 32px;}

  /* 타임라인 태블릿 */
  .hist-timeline::before {left: calc(200px + 20px);}
  .hist-left {width: 200px;}
  .hist-year {font-size: 2.2rem;}
  .hist-thumb {width: 160px; height: 100px;}

  /* 국내사업 탭 태블릿 */
  .dtab-detail {gap: 32px;}

  /* 게시판 태블릿 */
  .gallery-grid {grid-template-columns: repeat(2, 1fr);}
  .video-grid {grid-template-columns: repeat(2, 1fr);}
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  :root {--header-h: 60px;}
  .hero-video {display: none;}
  .nk-campaign-img {display: none !important;}
  .hero-video-mobile {display: block;}
  .hamburger {display: flex;}

  .gnb {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 22px 28px 40px;
    transition: right 0.35s ease;
    z-index: 2000;
    transform: none;
    left: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
  }

  .gnb.open {right: 0;}
  .gnb-brand {display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #e8e8e8; font-size: 1.2rem; font-weight: 800; color: #3f55a5; font-family: var(--font-en);}
  .gnb ul {flex-direction: column; gap: 0;}
  .js-gnb-menu > li {position: relative; border-bottom: 1px solid #eee;}
  .js-gnb-menu > li > a {display: block; padding: 14px 0; font-size: 1rem; color: var(--dark); line-height: 1.4; border-bottom: none;}
  .js-gnb-menu > li > a:hover {color: var(--primary);}

  .gnb-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px; right: 0;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
  }

  .gnb-toggle:hover {background: var(--bg-light); color: var(--primary);}
  .gnb-sub {display: flex !important; flex-direction: column; padding: 0 0 0 12px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;}
  .gnb-sub.is-open {padding-bottom: 12px;}
  .gnb-sub li {border: none;}
  .gnb-sub li a {display: block; padding: 6px 0; font-size: 0.88rem; color: var(--text-light); border-bottom: none !important; line-height: 1.4;}
  .gnb-sub li a:hover {color: var(--primary);}
  .mega-menu {display: none;}
  .gnb-close {display: block; position: absolute; top: 24px; right: 20px; font-size: 1.6rem; color: var(--text-light); line-height: 1;}
  .gnb-copyright {display: block; margin-top: auto; font-size: 0.72rem; color: var(--text-light); font-family: var(--font-en);}
  .header-inner {padding: 0 16px;}
  .header-logo img {height: 24px;}
  .header-logo-sub {height: 24px !important;}
  .header-unesco-text {display: none;}
  .lang-btn {padding: 5px 10px; font-size: 0.7rem;}
  .sub-hero {height: 65px;}
  .sub-hero-title {font-size: 1.4rem; line-height: 1; margin-bottom: 3px;}
  .sub-hero-desc {font-size: 0.75rem;}
  .sub-hero-inner {padding: 0 24px;}
  .sub-hero-unesco {display: none;}
  .sub-page-body {padding: 0 0 40px;}
  .intro-section {padding: 24px 0;}
  .intro-title {font-size: 1.3rem;}
  .intro-grid {grid-template-columns: 1fr; gap: 24px;}
  .greeting-card,
  .greeting-card:nth-child(even) {flex-direction: column;}
  .greeting-photo {width: 140px; height: 170px;}
  .greeting-divider {margin: 12px auto 16px;}
  .intro-image {aspect-ratio: 16/9;}
  .intro-slider-track {display: block;}
  .intro-slider-track .intro-slide {margin-bottom: 32px;}
  .intro-slider-track .intro-slide:last-child {margin-bottom: 0;}
  .intro-slide .intro-image {display: block; aspect-ratio: 16/9; min-height: auto;}
  .slide-controls {display: none;}
  .intro-slider .intro-header {padding-right: 0;}
  .ppl-staff-grid {grid-template-columns: repeat(2, 1fr);}

  /* 타임라인 모바일 */
  .hist-timeline::before {left: 20px;}
  .hist-year-block {flex-direction: column; gap: 0;}
  .hist-left {width: 100%; text-align: left; padding-right: 0; padding-left: 46px; display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px;}
  .hist-year {font-size: 1.8rem; margin-bottom: 0; margin-top: 8px;}
  .hist-thumb {width: 120px; height: 80px; margin-left: auto; flex-shrink: 0;}
  .hist-center {position: absolute; left: 0; top: 6px; width: 42px;}
  .hist-right {padding-left: 46px;}
  .hist-events {padding: 16px 18px;}
  .hist-events li {font-size: 0.85rem;}
  .hist-events li em {font-size: 0.78rem; min-width: 36px;}
  .location-info {grid-template-columns: 1fr; gap: 16px;}
  .location-info-card {padding: 18px;}
  .map-wrap {height: 240px;}

  /* 국내사업 탭 모바일 */
  .dtab-btn {font-size: 0.82rem;}
  .dtab-detail {grid-template-columns: 1fr; gap: 20px;}
  .dtab-detail-img {aspect-ratio: 4/3;}
  .hero-title {font-size: 1.8rem;}
  .hero-desc {font-size: 0.9rem;}
  .hero-tab-bar {bottom: 24px;}
  .hero-tab {padding: 8px 16px; font-size: 0.8rem;}

  /* 북한사업 모바일 */
  .nk-columns {grid-template-columns: 1fr; gap: 32px;}
  .nk-gallery {grid-template-columns: 1fr;}
  .planning-grid {grid-template-columns: 1fr; gap: 32px;}
  .ppl-staff-grid {grid-template-columns: 1fr;}

  /* 게시판 모바일 */
  .gallery-grid {grid-template-columns: 1fr;}
  .video-grid {grid-template-columns: 1fr;}
  .board-table th:first-child,
  .board-table td:first-child {display: none;}
  .board-table td:last-child {width: 80px; font-size: 0.75rem;}
  .modal-wide .modal-body th:first-child,
  .modal-wide .modal-body td:first-child {display: none;}
  .footer-main {grid-template-columns: 1fr 1fr; gap: 32px;}
  .footer-col-about {grid-column: 1 / -1; text-align: center; padding-right: 0;}
  .footer-col-about .footer-desc {max-width: 500px; margin-left: auto; margin-right: auto;}
  .footer-social {justify-content: center;}
  .footer-col-contact {grid-column: 1 / -1;}
  .footer-bottom {flex-direction: column; align-items: center; text-align: center; gap: 16px;}
  .footer-bottom-left {flex-direction: column; gap: 12px;}
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .sub-hero {height: 55px;}
  .sub-hero-title {font-size: 1.2rem; line-height: 1; margin-bottom: 2px;}
  .sub-hero-desc {font-size: 0.7rem;}
  .sub-hero-inner {padding: 0 20px;}
  .hero-title {font-size: 1.5rem;}
  .hero-sub {font-size: 0.8rem;}
  .hero-tab {padding: 7px 12px; font-size: 0.75rem;}
  .section-title {font-size: 1.5rem;}
  .footer {padding: 40px 0 0;}
  .footer-main {grid-template-columns: 1fr; gap: 28px;}
  .footer-col-about {text-align: center;}
  .footer-col-links {text-align: center;}
  .footer-col-title {display: block; text-align: center;}
  .footer-nav a:hover {padding-left: 0;}
  .footer-col-contact {text-align: left;}
  .footer-banners {justify-content: center;}
}
