/* 시안A CSS: 격조 있는 역사관 스타일 — 다크네이비 + 골드 */
:root {
    --yun-navy: #1a2744;
    --yun-navy-dark: #0f1a2e;
    --yun-gold: #c9a84c;
    --yun-gold-light: #e8d48b;
    --yun-white: #ffffff;
    --yun-gray-50: #f8f9fa;
    --yun-gray-100: #f1f3f5;
    --yun-gray-300: #dee2e6;
    --yun-gray-500: #868e96;
    --yun-gray-700: #495057;
    --yun-gray-900: #212529;
    --yun-red: #c0392b;
    --yun-contain: 1320px;
    --yun-header-h: 120px;
    --yun-font-serif: 'Noto Serif KR', serif;
}

/* ===== 컨테이너 ===== */
.yun-contain { max-width: var(--yun-contain); margin: 0 auto; padding: 0 24px; }

/* ===== 유틸리티바 ===== */
.yun-util-bar { background: var(--yun-navy-dark); padding: 6px 0; font-size: 13px; color: rgba(255,255,255,.6); }
.yun-util-bar .yun-contain { display: flex; justify-content: space-between; align-items: center; }
.yun-util-right a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.yun-util-right a:hover { color: var(--yun-gold); }
.yun-util-sep { margin: 0 10px; opacity: .3; }

/* ===== 메인 네비게이션 ===== */
.yun-nav-wrap { background: var(--yun-navy); position: sticky; top: 0; z-index: 1000; transition: background .3s, box-shadow .3s; }
.yun-nav-wrap.scrolled { background: rgba(26,39,68,.97); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.yun-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

/* 로고 */
.yun-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--yun-white); }
.yun-logo-icon svg { width: 40px; height: 40px; color: var(--yun-gold); }
.yun-logo-textbox { display: flex; flex-direction: column; }
.yun-logo-main { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; font-family: var(--yun-font-serif); }
.yun-logo-sub { font-size: 11px; opacity: .5; margin-top: 2px; }

/* GNB */
.yun-gnb-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.yun-gnb-item { position: relative; }
.yun-gnb-link { display: block; padding: 0 22px; line-height: 80px; color: var(--yun-white); font-size: 16px; font-weight: 600; text-decoration: none; transition: color .2s; letter-spacing: -0.3px; white-space: nowrap; }
.yun-gnb-link:hover, .yun-gnb-item.active .yun-gnb-link { color: var(--yun-gold); }

/* 메가메뉴 */
.yun-mega-menu { position: absolute; left: 0; right: 0; top: 100%; background: rgba(15,26,46,.97); border-top: 2px solid var(--yun-gold); max-height: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s; opacity: 0; }
.yun-mega-menu.open { max-height: 400px; opacity: 1; }
.yun-mega-inner { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; padding: 30px 0 40px; }
.yun-mega-col { padding: 0 16px; border-right: 1px solid rgba(255,255,255,.06); }
.yun-mega-col:last-child { border-right: none; }
.yun-mega-title { color: var(--yun-gold); font-size: 15px; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(201,168,76,.2); }
.yun-mega-sub { list-style: none; margin: 0; padding: 0; }
.yun-mega-sub li a { display: block; padding: 6px 0; color: rgba(255,255,255,.65); font-size: 14px; text-decoration: none; transition: color .2s, padding-left .2s; }
.yun-mega-sub li a:hover { color: var(--yun-white); padding-left: 6px; }

/* 모바일 토글 */
.yun-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.yun-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--yun-white); margin: 5px 0; transition: .3s; }

/* ===== 히어로 ===== */
.yun-hero { position: relative; height: 100vh; min-height: 600px; max-height: 900px; }
.yun-hero-swiper, .yun-hero-swiper .swiper-wrapper, .yun-hero-swiper .swiper-slide { height: 100%; }
.yun-hero-slide { height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.yun-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,26,46,.75) 0%, rgba(15,26,46,.4) 100%); }
.yun-hero-content { position: relative; z-index: 2; max-width: var(--yun-contain); margin: 0 auto; padding: 0 24px 80px; width: 100%; }
.yun-hero-sub { color: var(--yun-gold); font-size: 18px; font-weight: 600; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.yun-hero-title { color: var(--yun-white); font-size: 52px; font-weight: 900; line-height: 1.25; margin: 0 0 24px; font-family: var(--yun-font-serif); }
.yun-hero-title em { font-style: normal; color: var(--yun-gold-light); }
.yun-hero-desc { color: rgba(255,255,255,.7); font-size: 18px; font-family: var(--yun-font-serif); }

/* 히어로 컨트롤 */
.yun-hero-controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 24px; }
.yun-hero-nav button { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: .3s; display: inline-flex; align-items: center; justify-content: center; }
.yun-hero-nav button:hover { background: var(--yun-gold); border-color: var(--yun-gold); }
.yun-hero-counter { color: #fff; font-size: 16px; letter-spacing: 2px; }
.yun-hero-counter .current { font-weight: 700; font-size: 22px; }
.yun-hero-counter .divider { margin: 0 6px; opacity: .4; }

/* 관람정보 패널 */
.yun-visit-panel { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 10; }
.yun-visit-panel-inner { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-radius: 16px; padding: 32px 28px; min-width: 220px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.yun-visit-item { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.yun-visit-item i { font-size: 22px; color: var(--yun-navy); width: 30px; text-align: center; }
.yun-visit-item strong { font-size: 13px; color: var(--yun-gray-500); display: block; }
.yun-visit-item p { font-size: 16px; font-weight: 700; color: var(--yun-navy); margin: 2px 0 0; }
.yun-visit-divider { height: 1px; background: var(--yun-gray-300); margin: 6px 0; }
.yun-visit-btns { display: flex; gap: 8px; padding-top: 8px; }
.yun-visit-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--yun-navy); color: #fff; font-size: 13px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: .3s; flex: 1; justify-content: center; }
.yun-visit-btn:hover { background: var(--yun-gold); color: var(--yun-navy); }

/* ===== 퀵 바로가기 ===== */
.yun-quick-section { padding: 0; margin-top: -50px; position: relative; z-index: 5; }
.yun-quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--yun-white); border-radius: 16px; box-shadow: 0 4px 30px rgba(0,0,0,.1); overflow: hidden; }
.yun-quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 16px; text-decoration: none; transition: .3s; border-right: 1px solid var(--yun-gray-100); }
.yun-quick-card:last-child { border-right: none; }
.yun-quick-card:hover { background: var(--yun-navy); }
.yun-quick-card:hover .yun-quick-icon { background: var(--yun-gold); color: var(--yun-white); }
.yun-quick-card:hover .yun-quick-label { color: var(--yun-white); }
.yun-quick-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--yun-gray-100); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--yun-navy); transition: .3s; margin-bottom: 12px; }
.yun-quick-label { font-size: 15px; font-weight: 600; color: var(--yun-gray-700); transition: .3s; }

/* ===== 소개 섹션 ===== */
.yun-intro-section { padding: 100px 0; }
.yun-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.yun-section-badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--yun-gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.yun-section-title { font-size: 38px; font-weight: 900; line-height: 1.3; color: var(--yun-gray-900); margin: 0 0 24px; font-family: var(--yun-font-serif); }
.yun-intro-text { font-size: 16px; line-height: 1.8; color: var(--yun-gray-700); margin-bottom: 32px; }
.yun-btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: 2px solid var(--yun-navy); color: var(--yun-navy); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; transition: .3s; }
.yun-btn-outline:hover { background: var(--yun-navy); color: var(--yun-white); }
.yun-intro-quote { background: var(--yun-navy); border-radius: 20px; padding: 60px 48px; text-align: center; position: relative; }
.yun-intro-quote::before { content: ''; position: absolute; top: -8px; left: 40px; right: 40px; height: 4px; background: var(--yun-gold); border-radius: 2px; }
.yun-quote-hanja { font-size: 32px; color: var(--yun-gold); font-family: var(--yun-font-serif); margin-bottom: 20px; letter-spacing: 4px; }
.yun-quote-korean { font-size: 18px; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 16px; font-family: var(--yun-font-serif); }
.yun-quote-author { font-size: 15px; color: var(--yun-gold-light); font-weight: 600; }

/* ===== 게시판 섹션 ===== */
.yun-board-section { padding: 80px 0; background: var(--yun-gray-50); }
.yun-board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.yun-board-box { background: var(--yun-white); border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.yun-board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--yun-navy); }
.yun-board-title { font-size: 20px; font-weight: 700; color: var(--yun-navy); display: flex; align-items: center; gap: 10px; margin: 0; }
.yun-board-more { font-size: 14px; color: var(--yun-gray-500); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: .2s; }
.yun-board-more:hover { color: var(--yun-gold); }
.yun-board-list { list-style: none; margin: 0; padding: 0; }
.yun-board-list li { border-bottom: 1px solid var(--yun-gray-100); }
.yun-board-list li:last-child { border-bottom: none; }
.yun-board-list li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; text-decoration: none; transition: .2s; }
.yun-board-list li a:hover { padding-left: 10px; }
.yun-board-subject { font-size: 15px; color: var(--yun-gray-700); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yun-board-list li a:hover .yun-board-subject { color: var(--yun-navy); }
.yun-board-date { font-size: 13px; color: var(--yun-gray-500); margin-left: 16px; white-space: nowrap; }
.yun-board-empty { padding: 40px 0; text-align: center; color: var(--yun-gray-500); font-size: 14px; }

/* ===== 전시/교육 카드 ===== */
.yun-feature-section { padding: 100px 0; }
.yun-section-header { text-align: center; margin-bottom: 48px; }
.yun-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.yun-feature-card { position: relative; height: 380px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; }
.yun-feature-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.yun-feature-card:hover .yun-feature-bg { transform: scale(1.08); }
.yun-feature-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%); }
.yun-feature-info { position: relative; z-index: 2; padding: 32px; color: #fff; }
.yun-feature-badge { display: inline-block; background: var(--yun-gold); color: var(--yun-navy); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
.yun-feature-info h4 { font-size: 22px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.yun-feature-info p { font-size: 14px; opacity: .75; margin: 0; }

/* ===== 전환 배너 ===== */
.yun-switch-banner { padding: 40px 0 60px; }

/* ===== 푸터 ===== */
.yun-footer { margin-top: 0; }
.yun-footer-top { background: var(--yun-navy); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.yun-footer-links { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.yun-footer-links a { color: rgba(255,255,255,.8); font-size: 14px; text-decoration: none; transition: .2s; }
.yun-footer-links a:first-child { font-weight: 700; color: var(--yun-gold); }
.yun-footer-links a:hover { color: var(--yun-white); }
.yun-footer-sep { margin: 0 12px; color: rgba(255,255,255,.2); }
.yun-footer-main { background: var(--yun-navy-dark); padding: 48px 0; }
.yun-footer-grid { display: flex; justify-content: space-between; align-items: flex-start; }
.yun-footer-logo strong { font-size: 20px; color: var(--yun-white); display: block; margin-bottom: 4px; font-family: var(--yun-font-serif); }
.yun-footer-logo span { font-size: 12px; color: rgba(255,255,255,.4); }
.yun-footer-details { margin-top: 20px; }
.yun-footer-details p { font-size: 14px; color: rgba(255,255,255,.55); margin: 6px 0; }
.yun-footer-details span { color: rgba(255,255,255,.35); margin-right: 8px; }
.yun-footer-tel-label { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.yun-footer-tel-number { font-size: 32px; font-weight: 900; color: var(--yun-white); letter-spacing: -1px; }
.yun-footer-copyright { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.yun-footer-copyright p { font-size: 13px; color: rgba(255,255,255,.35); margin: 0; }

/* ===== 모바일 메뉴 ===== */
.yun-mobile-menu { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--yun-navy-dark); z-index: 9999; transition: right .35s; overflow-y: auto; }
.yun-mobile-menu.open { right: 0; }
.yun-mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.yun-mobile-menu-title { color: var(--yun-gold); font-size: 18px; font-weight: 700; }
.yun-mobile-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }
.yun-mobile-menu-group { border-bottom: 1px solid rgba(255,255,255,.06); }
.yun-mobile-menu-link { display: block; padding: 16px 24px; color: var(--yun-white); font-size: 16px; font-weight: 600; text-decoration: none; }
.yun-mobile-sub-list { padding: 0 24px 12px 36px; }
.yun-mobile-sub-link { display: block; padding: 8px 0; color: rgba(255,255,255,.55); font-size: 14px; text-decoration: none; }
.yun-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; display: none; }
.yun-mobile-overlay.open { display: block; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .yun-gnb { display: none; }
    .yun-mobile-toggle { display: block; }
    .yun-mega-menu { display: none !important; }
    .yun-visit-panel { display: none; }
    .yun-hero-title { font-size: 36px; }
    .yun-quick-grid { grid-template-columns: repeat(3, 1fr); }
    .yun-intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .yun-feature-grid { grid-template-columns: 1fr; }
    .yun-board-grid { grid-template-columns: 1fr; }
    .yun-footer-grid { flex-direction: column; gap: 24px; }
    .yun-mega-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .yun-util-bar { display: none; }
    .yun-hero { min-height: 500px; max-height: 700px; }
    .yun-hero-title { font-size: 28px; }
    .yun-hero-sub { font-size: 14px; }
    .yun-hero-desc { font-size: 15px; }
    .yun-quick-grid { grid-template-columns: repeat(3, 1fr); }
    .yun-quick-card { padding: 24px 8px; }
    .yun-quick-icon { width: 44px; height: 44px; font-size: 18px; }
    .yun-quick-label { font-size: 13px; }
    .yun-section-title { font-size: 28px; }
    .yun-intro-section, .yun-feature-section { padding: 60px 0; }
    .yun-quote-hanja { font-size: 22px; }
    .yun-footer-tel-number { font-size: 24px; }
}
