/* ========================================
   KOICA 창립과 변화
   와이어프레임 목업 스타일
======================================== */

/* 색상 변수 */
:root {
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #e0e0e0;
    --bg-placeholder: #d0d0d0;
    --border-color: #999999;
    --border-light: #cccccc;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #888888;
    --highlight: #fff3cd;
    --highlight-border: #ffc107;
    --label-bg: #e3f2fd;
    --label-border: #2196f3;
    --label-text: #1565c0;
    --mockup-banner-bg: #fff3cd;
    --mockup-banner-border: #ffc107;
    --mockup-banner-text: #856404;
    
    /* 부서 색상 */
    --color-added: #10B981;
    --color-removed: #EF4444;
    --color-maintained: #6B7280;
    
    /* 지역별 색상 */
    --color-asia: #3B82F6;
    --color-africa: #F59E0B;
    --color-america: #10B981;
    --color-europe: #8B5CF6;
}

/* 기본 스타일 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    padding-top: 44px;
}

/* ========================================
   목업 배너
======================================== */
#mockup-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background-color: var(--mockup-banner-bg);
    border-bottom: 2px dashed var(--mockup-banner-border);
    padding: 10px 16px;
    text-align: center;
}

#mockup-banner span {
    color: var(--mockup-banner-text);
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   인터랙션 라벨
======================================== */
.interaction-label {
    background-color: var(--label-bg);
    border: 2px dashed var(--label-border);
    padding: 12px 20px;
    font-size: 13px;
    color: var(--label-text);
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
    text-align: left;
}

.interaction-label strong {
    font-weight: 600;
}

/* ========================================
   로딩 화면
======================================== */
#loading-screen {
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    background-color: var(--bg-light);
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px dashed var(--border-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   네비게이션
======================================== */
#navigation {
    background-color: var(--bg-white);
    border-bottom: 2px dashed var(--border-light);
    top: 44px;
}

#navigation.scrolled {
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-primary);
    border-radius: 8px;
    background-color: var(--bg-white);
}

.nav-link {
    color: var(--text-secondary);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.nav-home-link:hover {
    border-style: solid;
    background-color: var(--text-primary);
    color: var(--bg-white);
}

/* ========================================
   맨 위로 버튼
======================================== */
#back-to-top {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: var(--bg-light);
}

/* ========================================
   섹션 공통
======================================== */
.section-title {
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
}

/* ========================================
   섹션 1: 인트로 (새로운 구조)
======================================== */
.intro-section {
    position: relative;
    background-color: var(--bg-light);
}

/* 인터랙션 라벨 (고정) */
.intro-interaction-label {
    position: sticky;
    top: 110px;
    z-index: 40;
    padding: 0 16px;
    margin-bottom: -60px;
}

/* 타이틀 섹션 */
.intro-title-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-dark) 100%);
}

.intro-title-content {
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.intro-title-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    min-height: 3rem;
}

@media (min-width: 768px) {
    .intro-main-title {
        font-size: 3rem;
        min-height: 4rem;
    }
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--text-secondary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.intro-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.intro-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 스크롤 힌트 */
.intro-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.6s ease 0.6s;
}

.intro-scroll-hint.visible {
    opacity: 1;
}

.scroll-hint-text {
    font-size: 13px;
    color: var(--text-light);
}

.scroll-hint-arrow {
    color: var(--text-light);
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   인트로 가로 슬라이더 (Horizontal Swipe)
======================================== */

/* 슬라이더 래퍼 - 스크롤 영역 확보 */
.intro-slider-wrapper {
    position: relative;
    height: 400vh; /* 4개 슬라이드 × 100vh */
}

/* 고정 뷰포트 */
.intro-slider-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 슬라이드 트랙 (가로로 나열) */
.intro-slider-track {
    display: flex;
    width: 400%; /* 4개 슬라이드 */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 서브섹션 (각 슬라이드) */
.intro-subsection {
    width: 25%; /* 100% / 4 */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.intro-subsection:nth-child(odd) {
    background-color: var(--bg-white);
}

.intro-subsection:nth-child(even) {
    background-color: var(--bg-light);
}

/* 슬라이드 네비게이션 */
.intro-slider-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.intro-slider-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.slider-arrow:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-white);
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-indicators {
    display: flex;
    gap: 12px;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-light);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    transform: scale(1.2);
}

.slider-indicator:hover:not(.active) {
    background-color: var(--border-color);
}

/* 슬라이드 진행 바 */
.intro-slider-progress {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--border-light);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-slider-progress.visible {
    opacity: 1;
}

.intro-slider-progress-bar {
    height: 100%;
    background-color: var(--text-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* 분할 레이아웃 */
.intro-split-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

@media (min-width: 1024px) {
    .intro-split-layout {
        flex-direction: row;
    }
}

/* 왼쪽: 텍스트 영역 */
.intro-text-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
}

@media (min-width: 1024px) {
    .intro-text-side {
        padding: 60px;
        height: 100%;
    }
}

.intro-text-content {
    max-width: 480px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* 활성 슬라이드의 텍스트 */
.intro-subsection.active .intro-text-content {
    opacity: 1;
    transform: translateX(0);
}

.intro-number {
    display: inline-block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 8px;
}

.intro-year-badge {
    display: inline-block;
    margin-left: 16px;
    padding: 6px 14px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: middle;
}

.intro-subsection-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0;
}

@media (min-width: 768px) {
    .intro-subsection-title {
        font-size: 2.5rem;
    }
}

.intro-subsection-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.intro-subsection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-subsection-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px dashed var(--border-light);
}

.intro-subsection-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--border-color);
}

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

/* 오른쪽: 이미지 영역 (Parallax) */
.intro-image-side {
    flex: 1;
    position: relative;
    min-height: 400px;
    overflow: hidden;
    /* 배경에 이미지가 있음을 암시하는 패턴 */
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.03) 0%, transparent 70%);
    background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px, 100% 100%;
    background-color: var(--bg-light);
}

.intro-image-side::before {
    content: '[ 이미지 영역 ]';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    z-index: 0;
}

@media (min-width: 1024px) {
    .intro-image-side {
        min-height: auto;
        height: 100%;
    }
}

.parallax-image-group {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

/* 활성 슬라이드의 이미지 */
.intro-subsection.active .parallax-image-group {
    opacity: 1;
    transform: translateX(0);
}

/* 이미지 아이템 - 흩뿌리기 */
.parallax-img {
    position: absolute;
    transition: transform 0.3s ease-out;
    z-index: 2;
}

/* 이미지 연결선 컨테이너 */
.parallax-connections {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.parallax-connections svg {
    width: 100%;
    height: 100%;
}

.parallax-connections line {
    stroke: var(--border-color);
    stroke-width: 0.4;
    stroke-dasharray: 2 2;
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

.intro-subsection.active .parallax-connections line {
    opacity: 0.5;
}

/* 연결선 끝점 원 */
.parallax-connections circle {
    fill: var(--border-color);
    opacity: 0;
    transition: opacity 0.8s ease 0.8s;
}

.intro-subsection.active .parallax-connections circle {
    opacity: 0.6;
}

/* 이미지 위치 - 중앙 집중형 4분면 (여백 증가) */
/* 
   레이아웃 (중앙으로 모음):
   [1] | [2]
   ---------
   [3] | [4]
*/

/* 공통 위치 스타일 - 중앙 집중형 4분면 (data-position 기반) */
.parallax-img[data-position="top-left"]     { top: 25%; left: 18%; }
.parallax-img[data-position="top-right"]    { top: 25%; right: 18%; }
.parallax-img[data-position="bottom-left"]  { bottom: 25%; left: 18%; }
.parallax-img[data-position="bottom-right"] { bottom: 25%; right: 18%; }

/* 문서 스타일 세로 이미지 - 네트워크 선이 잘 보이도록 최적화 */
.parallax-img-placeholder {
    width: 120px;
    height: 150px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.parallax-img-placeholder .placeholder-icon {
    font-size: 1.8rem;
}

.parallax-img-placeholder .placeholder-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

/* 문서 느낌의 배경 패턴 */
.parallax-img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.03), transparent);
}

/* 문서 우측 상단 접힌 모서리 효과 */
.parallax-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--bg-light) 50%, transparent 50%);
    border-left: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
}

.parallax-img-placeholder:hover {
    border-style: solid;
    border-color: var(--text-secondary);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.02);
}

/* 클릭 가능 힌트 */
.parallax-img-placeholder .click-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parallax-img-placeholder:hover .click-hint {
    opacity: 1;
}

.parallax-img-placeholder.small {
    width: 100px;
    height: 125px;
}

.parallax-img-placeholder.small .placeholder-icon {
    font-size: 1.5rem;
}

.parallax-img-placeholder.small .placeholder-label {
    font-size: 10px;
}

.parallax-img-placeholder.large {
    width: 140px;
    height: 175px;
}

.parallax-img-placeholder.large .placeholder-icon {
    font-size: 2rem;
}

.parallax-img-placeholder.large .placeholder-label {
    font-size: 11px;
}

.placeholder-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.placeholder-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
}

/* 진행 인디케이터 */
.intro-progress-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-progress-indicator.visible {
    opacity: 1;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot:hover {
    background-color: var(--bg-dark);
}

.progress-dot.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    transform: scale(1.2);
}

/* 반응형: 모바일에서 인디케이터 숨김 */
@media (max-width: 768px) {
    .intro-progress-indicator {
        display: none;
    }
    
    .parallax-img-placeholder {
        width: 120px;
        height: 160px;  /* 세로 비율 유지 */
    }
    
    .parallax-img-placeholder.large {
        width: 150px;
        height: 200px;
    }
    
    .parallax-img-placeholder.small {
        width: 100px;
        height: 133px;
    }
    
    .placeholder-icon {
        font-size: 32px;
    }
    
    .placeholder-label {
        font-size: 11px;
    }
}

/* ========================================
   섹션 2: 설립배경 (세계 지도 스타일)
======================================== */
#founding {
    background-color: #1a1a2e;  /* 어두운 배경 */
}

#founding .section-title,
#founding .section-subtitle {
    color: #ffffff;
}

#founding .interaction-label {
    background-color: rgba(227, 242, 253, 0.1);
    border-color: rgba(33, 150, 243, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* 세계 지도 시각화 영역 */
.founding-visualization.world-map-style {
    position: relative;
    height: 600px;
    background: 
        radial-gradient(ellipse at 50% 36%, rgba(59, 130, 246, 0.2) 0%, transparent 35%),
        linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

/* 세계 지도 컨테이너 */
.world-map-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-svg {
    width: 100%;
    height: 100%;
    max-width: 1200px;
}

/* 대륙 스타일 */
.continent {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.asia-continent {
    fill: rgba(59, 130, 246, 0.15);
    stroke: rgba(59, 130, 246, 0.3);
}

/* 지도 그리드 */
.map-grid line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

/* 서울 마커 */
.seoul-marker .seoul-glow-outer {
    fill: rgba(59, 130, 246, 0.2);
    animation: seoulPulseOuter 3s infinite;
}

.seoul-marker .seoul-glow-inner {
    fill: rgba(59, 130, 246, 0.4);
    animation: seoulPulseInner 3s infinite;
}

.seoul-marker .seoul-dot {
    fill: #3B82F6;
    stroke: #ffffff;
    stroke-width: 2;
}

.seoul-marker .seoul-label {
    fill: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-anchor: middle;
    opacity: 0.9;
}

@keyframes seoulPulseOuter {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

@keyframes seoulPulseInner {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* 세계에 흩어진 점들 */
.scattered-dots.world-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.world-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px currentColor;
    z-index: 5;
}

/* 지역별 색상 */
.world-dot.asia { background-color: #3B82F6; }
.world-dot.africa { background-color: #F59E0B; }
.world-dot.america { background-color: #10B981; }
.world-dot.europe { background-color: #8B5CF6; }
.world-dot.oceania { background-color: #EC4899; }

/* 점이 수렴할 때 */
.world-dot.converging {
    opacity: 0.9;
}

.world-dot.converged {
    /* 서울 위치로 모임 (중앙 50%, 36%) */
    opacity: 1;
}

/* 수렴 텍스트 (서울 위치 아래) */
.convergence-text {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, 0);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
    z-index: 10;
}

.convergence-text.visible {
    opacity: 1;
}

.convergence-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.convergence-subtitle {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 지역별 범례 */
.region-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.asia { background-color: #3B82F6; }
.legend-dot.africa { background-color: #F59E0B; }
.legend-dot.america { background-color: #10B981; }
.legend-dot.europe { background-color: #8B5CF6; }
.legend-dot.oceania { background-color: #EC4899; }

/* 문서 카드 (어두운 배경용) */
#founding .document-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

#founding .document-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

#founding .document-title {
    color: #ffffff;
}

#founding .document-number,
#founding .document-year {
    color: rgba(255, 255, 255, 0.6);
}

#founding .document-details li {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#founding .document-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

#founding .document-btn {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3B82F6;
}

#founding .document-btn:hover {
    background-color: #3B82F6;
    color: #ffffff;
}

/* 반응형 */
@media (max-width: 768px) {
    .founding-visualization.world-map-style {
        height: 450px;
    }
    
    .world-dot {
        width: 10px;
        height: 10px;
    }
    
    .convergence-circle {
        width: 80px;
        height: 80px;
    }
    
    .convergence-title {
        font-size: 1.25rem;
    }
    
    .convergence-text {
        top: 50%;
    }
    
    .seoul-marker .seoul-label {
        font-size: 11px;
    }
}

/* 문서 카드 */
.document-card {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.document-card:hover {
    border-style: solid;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.document-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.document-icon {
    font-size: 32px;
}

.document-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.document-number {
    font-size: 12px;
    color: var(--text-light);
    font-family: monospace;
}

.document-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.document-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.document-preview {
    margin-bottom: 16px;
}

.document-placeholder {
    height: 120px;
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.document-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.document-details li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-light);
    position: relative;
    padding-left: 16px;
}

.document-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--border-color);
}

.document-details li:last-child {
    border-bottom: none;
}

.document-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.document-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-white);
    border-style: solid;
}

/* ========================================
   섹션 3: 공간역사
======================================== */
#space {
    background-color: var(--bg-white);
}

/* 이미지 비교 슬라이더 */
.comparison-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.comparison-slider {
    position: relative;
    height: 600px;
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.comparison-before {
    left: 0;
    width: 50%;
    z-index: 2;
}

.comparison-after {
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
}

.comparison-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.comparison-after .comparison-image-placeholder {
    background-color: var(--bg-dark);
}

.comparison-content {
    text-align: center;
    padding: 40px 60px;
    max-width: 500px;
}

.comparison-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 24px;
}

.comparison-label {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.comparison-year {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 24px;
}

.comparison-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 350px;
    margin: 0 auto;
}

.comparison-details li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    border-bottom: 1px dashed var(--border-light);
}

.comparison-details li:last-child {
    border-bottom: none;
}

.comparison-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--border-color);
}

.comparison-label-badge {
    position: absolute;
    top: 24px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    z-index: 10;
}

.before-badge {
    left: 24px;
    background-color: var(--color-asia);
    color: white;
}

.after-badge {
    right: 24px;
    background-color: var(--color-added);
    color: white;
}

/* 슬라이더 핸들 */
.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: ew-resize;
}

.handle-line {
    flex: 1;
    width: 4px;
    background-color: var(--text-primary);
}

.handle-circle {
    width: 48px;
    height: 48px;
    background-color: var(--bg-white);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comparison-instruction {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 공간 문서 카드 */
.space-doc-card {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.space-doc-card:hover {
    border-style: solid;
    transform: translateY(-4px);
}

.space-doc-card.interaction-card {
    background-color: var(--label-bg);
    border-color: var(--label-border);
}

.space-doc-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--border-color);
    margin-bottom: 8px;
}

.space-doc-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.space-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.space-doc-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-light);
    position: relative;
    padding-left: 12px;
}

.space-doc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--border-color);
}

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

/* ========================================
   섹션 4: 글로벌확장
======================================== */
.global-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.global-section .section-title,
.global-section .section-subtitle {
    color: #ffffff;
}

.global-section .interaction-label {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* 지구본 컨테이너 */
.globe-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.globe-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .globe-wrapper {
        width: 400px;
        height: 400px;
    }
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset -30px -30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(59, 130, 246, 0.3);
    animation: globeRotate 60s linear infinite;
}

@keyframes globeRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.globe-continents {
    position: absolute;
    inset: 10%;
    opacity: 0.4;
}

.continent {
    fill: rgba(255, 255, 255, 0.3);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
}

.globe-pins {
    position: absolute;
    inset: 0;
}

.globe-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.globe-pin::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}

.globe-pin:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 20;
}

.globe-pin.asia { background-color: var(--color-asia); color: var(--color-asia); }
.globe-pin.africa { background-color: var(--color-africa); color: var(--color-africa); }
.globe-pin.america { background-color: var(--color-america); color: var(--color-america); }
.globe-pin.europe { background-color: var(--color-europe); color: var(--color-europe); }

.globe-pin.new-pin {
    animation: pinPop 0.5s ease-out;
}

@keyframes pinPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.5); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.globe-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* 연도 표시 */
.current-year-display {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

.year-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.year-value {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

/* 통계 표시 */
.globe-stats {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 타임라인 슬라이더 */
.timeline-slider-container {
    max-width: 600px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.timeline-years {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.timeline-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.timeline-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 지역별 범례 */
.region-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.asia-dot { background-color: var(--color-asia); }
.africa-dot { background-color: var(--color-africa); }
.america-dot { background-color: var(--color-america); }
.europe-dot { background-color: var(--color-europe); }

/* 국가 툴팁 */
.country-tooltip {
    position: fixed;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.country-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-light);
}

.tooltip-country {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tooltip-region {
    font-size: 12px;
    padding: 4px 8px;
    background-color: var(--bg-light);
    border-radius: 10px;
    color: var(--text-secondary);
}

.tooltip-body {
    font-size: 13px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tooltip-label {
    color: var(--text-secondary);
}

.tooltip-value {
    font-weight: 600;
    color: var(--text-primary);
}

.tooltip-image-placeholder {
    height: 80px;
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 8px;
}

/* ========================================
   해외사무소 정보 섹션 (World Map)
======================================== */
.overseas-office-section {
    margin-top: 80px;
    padding-bottom: 40px;
}

.overseas-office-section .section-title {
    color: #ffffff;
}

.overseas-office-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* 전체 화면 세계지도 */
.world-map-fullscreen {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .world-map-fullscreen {
        height: 700px;
    }
}

.world-map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.continent-path {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.continent-path.asia-highlight {
    fill: rgba(59, 130, 246, 0.15);
    stroke: rgba(59, 130, 246, 0.3);
}

.korea-highlight-outer {
    fill: rgba(59, 130, 246, 0.2);
    animation: koreaGlow 3s infinite;
}

.korea-highlight-inner {
    fill: #3B82F6;
    stroke: #ffffff;
    stroke-width: 2;
}

.korea-label {
    fill: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    opacity: 0.8;
}

@keyframes koreaGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* 사무소 마커 컨테이너 */
.office-markers-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.office-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px currentColor;
}

.office-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: markerPulse 2s infinite;
}

.office-marker:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 20;
}

.office-marker:hover::before {
    opacity: 0.5;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* 지역별 마커 색상 */
.office-marker.asia { background-color: var(--color-asia); color: var(--color-asia); }
.office-marker.africa { background-color: var(--color-africa); color: var(--color-africa); }
.office-marker.america { background-color: var(--color-america); color: var(--color-america); }
.office-marker.europe { background-color: var(--color-europe); color: var(--color-europe); }

/* 마커 라벨 (호버 시 표시) */
.office-marker .marker-label {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.office-marker .marker-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.office-marker:hover .marker-label {
    opacity: 1;
    visibility: visible;
}

/* 지역 필터 버튼 */
.office-region-filter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
}

.region-filter-btn {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.region-filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.region-filter-btn.active {
    background-color: var(--color-asia);
    border-color: var(--color-asia);
    color: #ffffff;
}

/* 통계 오버레이 */
.office-stats-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 24px;
    z-index: 20;
}

.office-stat {
    text-align: center;
}

.office-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.office-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ========================================
   해외사무소 모달
======================================== */
.office-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.office-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.office-modal {
    background-color: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.office-modal-overlay.visible .office-modal {
    transform: translateY(0);
}

/* 모달 헤더 */
.office-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: var(--bg-light);
    border-bottom: 2px dashed var(--border-light);
}

.office-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.office-modal-region-badge {
    padding: 6px 12px;
    background-color: var(--color-asia);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

/* 지역별 배지 색상 */
.office-modal-region-badge.asia { background-color: var(--color-asia); }
.office-modal-region-badge.africa { background-color: var(--color-africa); }
.office-modal-region-badge.america { background-color: var(--color-america); }
.office-modal-region-badge.europe { background-color: var(--color-europe); }

.office-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.office-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.office-modal-close:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

/* 모달 바디 */
.office-modal-body {
    display: flex;
    flex-direction: column;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

@media (min-width: 768px) {
    .office-modal-body {
        flex-direction: row;
    }
}

/* 갤러리 영역 */
.office-modal-gallery {
    flex: 1;
    background-color: var(--bg-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.office-gallery-main {
    aspect-ratio: 4/3;
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.office-gallery-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.gallery-placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.gallery-placeholder-text {
    font-size: 14px;
}

.office-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.gallery-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

.gallery-indicators {
    display: flex;
    gap: 8px;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-indicator.active {
    background-color: var(--text-primary);
    transform: scale(1.2);
}

/* 정보 영역 */
.office-modal-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.office-info-section {
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 20px;
}

.office-info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.office-info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.office-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 관련 기록 목록 */
.office-records-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.office-record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.office-record-item:hover {
    background-color: var(--bg-dark);
}

.record-icon {
    font-size: 20px;
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.record-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.record-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 사무소 설명 */
.office-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   섹션 5: 조직성장
======================================== */
#organization {
    background-color: var(--bg-light);
}

/* 나이테 시각화 */
.ring-visualization-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.ring-year-counter {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    z-index: 10;
}

.ring-year-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.ring-year-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.ring-chart-wrapper {
    position: relative;
}

.ring-chart {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.ring-guide {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.ring-layer {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    opacity: 0.7;
    transition: all 0.5s ease;
}

.ring-layer.added {
    stroke: var(--color-added);
}

.ring-layer.removed {
    stroke: var(--color-removed);
}

.ring-layer.maintained {
    stroke: var(--color-maintained);
}

.ring-layer:hover {
    opacity: 1;
    stroke-width: 16;
}

.ring-core .core-circle {
    fill: var(--text-primary);
}

.ring-core .core-text {
    fill: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.ring-core .core-subtext {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    text-anchor: middle;
}

/* 나이테 범례 */
.ring-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.ring-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ring-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.ring-legend-dot.added {
    background-color: var(--color-added);
}

.ring-legend-dot.removed {
    background-color: var(--color-removed);
}

.ring-legend-dot.maintained {
    background-color: var(--color-maintained);
}

/* 조직 타임라인 */
.org-timeline-container {
    max-width: 600px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.org-timeline-years {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.org-timeline-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.org-timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.org-timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* 시대별 카드 */
.era-card {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.era-card:hover {
    border-style: solid;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.era-card.active {
    border-color: var(--text-primary);
    border-style: solid;
    background-color: var(--bg-light);
}

.era-decade {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.era-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.era-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* 조직 설명 */
.org-description-card {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.org-description-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.org-description-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.org-description-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    position: relative;
    padding-left: 20px;
}

.org-description-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-added);
}

.org-description-card li:last-child {
    border-bottom: none;
}

/* ========================================
   푸터
======================================== */
footer {
    background-color: var(--bg-white);
    border-top: 2px dashed var(--border-color);
}

.footer-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-copyright {
    color: var(--text-secondary);
}

/* ========================================
   모달
======================================== */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--text-primary);
    color: var(--bg-white);
    border-style: solid;
}

.modal-button {
    padding: 12px 24px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button:hover {
    background-color: var(--text-primary);
    color: var(--bg-white);
    border-style: solid;
}

/* 조직도 모달 */
.org-chart-container {
    padding: 20px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    min-height: 300px;
}

.org-chart-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.org-chart-node {
    padding: 12px 24px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.org-chart-node.root {
    background-color: var(--text-primary);
    color: var(--bg-white);
    font-size: 16px;
}

.org-chart-node.added {
    border-color: var(--color-added);
    background-color: rgba(16, 185, 129, 0.1);
}

.org-chart-node.removed {
    border-color: var(--color-removed);
    background-color: rgba(239, 68, 68, 0.1);
    text-decoration: line-through;
    opacity: 0.6;
}

.org-chart-level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ========================================
   반응형
======================================== */
@media (max-width: 768px) {
    .parallax-image-card {
        width: 120px;
        height: 100px;
    }
    
    .parallax-icon {
        font-size: 24px;
    }
    
    .founding-visualization {
        height: 400px;
    }
    
    .comparison-slider {
        height: 350px;
    }
    
    .comparison-content {
        padding: 16px;
    }
    
    .comparison-icon {
        font-size: 40px;
    }
    
    .comparison-label {
        font-size: 1rem;
    }
    
    .comparison-year {
        font-size: 1.5rem;
    }
    
    .comparison-details {
        display: none;
    }
    
    .globe-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .year-value,
    .ring-year-value {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .era-card {
        padding: 16px;
    }
    
    .era-decade {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .intro-main-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .parallax-layer {
        display: none;
    }
    
    .parallax-layer:nth-child(1),
    .parallax-layer:nth-child(4) {
        display: block;
    }
}

/* ========================================
   이미지 확대 모달 (Lightbox)
======================================== */
#image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}

#image-lightbox.active .lightbox-container {
    transform: scale(1) translateY(0);
}

/* 이미지 카드 (문서 스타일) */
.lightbox-image-wrapper {
    position: relative;
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    max-height: 70vh;
}

/* 문서 상단 접힌 효과 */
.lightbox-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bg-light) 50%, transparent 50%);
    border-left: 2px dashed var(--border-light);
    border-bottom: 2px dashed var(--border-light);
    border-radius: 0 8px 0 0;
}

.lightbox-image {
    width: 100%;
    height: auto;
    min-width: 300px;
    min-height: 400px;
    max-height: 60vh;
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.lightbox-image .placeholder-icon {
    font-size: 80px;
}

.lightbox-image .placeholder-label {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 이미지 정보 */
.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
}

.lightbox-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lightbox-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* 닫기 버튼 */
.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* 네비게이션 화살표 (좌/우 이동) */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

#image-lightbox.active .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

/* 이미지 카운터 */
.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* 키보드 힌트 */
.lightbox-hint {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.lightbox-hint span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lightbox-hint kbd {
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: inherit;
}

/* 반응형 */
@media (max-width: 768px) {
    .lightbox-image-wrapper {
        max-width: 85vw;
        padding: 16px;
    }
    
    .lightbox-image {
        min-width: 240px;
        min-height: 320px;
    }
    
    .lightbox-image .placeholder-icon {
        font-size: 60px;
    }
    
    .lightbox-image .placeholder-label {
        font-size: 16px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 12px;
    }
    
    .lightbox-next {
        right: 12px;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-hint {
        display: none;
    }
}

/* ========================================
   고급 문서 뷰어 모달 (Advanced Document Viewer)
======================================== */
#document-modal {
    transition: opacity 0.3s ease;
}

#document-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.adv-viewer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.adv-viewer-container {
    position: relative;
    width: 95vw;
    max-width: 1400px;
    height: 95vh;
    margin: 2.5vh auto;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: advViewerAppear 0.3s ease-out;
}

@keyframes advViewerAppear {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 헤더 */
.adv-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: var(--bg-light);
    border-bottom: 2px dashed var(--border-light);
    flex-shrink: 0;
}

.adv-viewer-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.adv-viewer-doc-badge {
    padding: 6px 14px;
    background-color: var(--text-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    flex-shrink: 0;
}

.adv-viewer-title-group {
    min-width: 0;
}

.adv-viewer-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-viewer-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.adv-viewer-divider {
    color: var(--border-color);
}

.adv-viewer-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 줌 컨트롤 */
.adv-viewer-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 24px;
}

.adv-viewer-zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.adv-viewer-zoom-btn:hover {
    background-color: var(--bg-light);
}

.adv-viewer-zoom-btn svg {
    width: 18px;
    height: 18px;
}

.adv-viewer-zoom-level {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: center;
}

.adv-viewer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.adv-viewer-close:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.adv-viewer-close svg {
    width: 20px;
    height: 20px;
}

/* 메인 바디 */
.adv-viewer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 메인 문서 영역 */
.adv-viewer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 페이지 네비게이션 */
.adv-viewer-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.adv-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.adv-page-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.adv-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adv-page-btn svg {
    width: 18px;
    height: 18px;
}

.adv-page-indicator {
    font-size: 14px;
    color: var(--text-secondary);
}

.adv-page-indicator span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* 문서 래퍼 */
.adv-viewer-document-wrapper {
    flex: 1;
    overflow: auto;
    padding: 32px;
    background-color: #4a4a4a;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.adv-viewer-document {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 700px;
    width: 100%;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

/* ========================================
   A4 문서 페이지 스타일 (공문서 느낌)
======================================== */
.doc-page {
    background-color: #fffef8;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 0 60px rgba(0,0,0,0.02);
    padding: 48px 56px;
    position: relative;
    min-height: 900px;
    font-family: 'Nanum Myeongjo', 'Batang', 'Times New Roman', serif;
    
    /* 종이 텍스처 효과 */
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* 문서 헤더 (로고/기관명) */
.doc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #333;
}

.doc-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-logo-placeholder {
    width: 60px;
    height: 60px;
    border: 3px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    color: #333;
    font-family: Arial, sans-serif;
}

.doc-org-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 2px;
}

.doc-header-info {
    text-align: right;
}

.doc-classification {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid #333;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.doc-number-stamp {
    font-size: 13px;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* 문서 제목 영역 */
.doc-title-area {
    margin-bottom: 24px;
    text-align: center;
}

.doc-title-label {
    display: inline-block;
    padding: 4px 24px;
    border: 1px solid #999;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: #666;
}

.doc-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* 문서 메타 정보 */
.doc-meta-area {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px 24px;
    background-color: rgba(0,0,0,0.02);
    border: 1px dashed #ccc;
}

.doc-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.doc-meta-label {
    color: #888;
    letter-spacing: 1px;
    min-width: 60px;
}

.doc-meta-value {
    color: #333;
    font-weight: 500;
}

/* 구분선 */
.doc-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 24px 0;
}

/* 문서 본문 */
.doc-body {
    min-height: 400px;
}

.doc-body-content {
    font-size: 15px;
    line-height: 2;
    color: #2a2a2a;
    text-align: justify;
}

.doc-body-content p {
    margin-bottom: 20px;
    text-indent: 1.5em;
}

.doc-body-content p:first-child {
    text-indent: 0;
}

.doc-body-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.doc-body-content ul, 
.doc-body-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.doc-body-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 문서 섹션 */
.doc-section {
    margin-bottom: 24px;
}

.doc-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.doc-section p {
    margin-bottom: 12px;
    text-indent: 1.5em;
}

.doc-section ul {
    margin: 12px 0;
    padding-left: 20px;
}

.doc-section li {
    margin-bottom: 6px;
    line-height: 1.8;
}

/* 문서 하단 */
.doc-page-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.doc-stamp-area {
    position: relative;
}

.doc-stamp {
    width: 80px;
    height: 80px;
    border: 3px solid #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    opacity: 0.8;
}

.doc-stamp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #c41e3a;
}

.doc-stamp-text {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

.doc-stamp-date {
    font-size: 11px;
    font-weight: 600;
}

.doc-page-number {
    font-size: 12px;
    color: #999;
    font-family: 'Courier New', monospace;
}

.doc-footer-org {
    font-size: 11px;
    color: #888;
    text-align: right;
    line-height: 1.5;
}

/* 스캔 문서 오버레이 효과 */
.doc-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: 
        linear-gradient(
            to right,
            rgba(0,0,0,0.03) 0%,
            transparent 2%,
            transparent 98%,
            rgba(0,0,0,0.03) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.1) 0%,
            transparent 5%,
            transparent 95%,
            rgba(0,0,0,0.05) 100%
        );
}

/* 페이지 그림자 (책처럼) */
.doc-page::before {
    content: '';
    position: absolute;
    top: 4px;
    right: -4px;
    bottom: -4px;
    width: 4px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.doc-page::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 4px;
    right: -4px;
    height: 4px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
}

/* 액션 바 */
.adv-viewer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-white);
    border-top: 2px dashed var(--border-light);
    flex-shrink: 0;
}

.adv-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-action-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.adv-action-btn svg {
    width: 18px;
    height: 18px;
}

/* 사이드바 */
.adv-viewer-sidebar {
    width: 320px;
    background-color: var(--bg-white);
    border-left: 2px dashed var(--border-light);
    overflow-y: auto;
    flex-shrink: 0;
}

.adv-sidebar-section {
    padding: 20px;
    border-bottom: 2px dashed var(--border-light);
}

.adv-sidebar-section:last-child {
    border-bottom: none;
}

.adv-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.adv-sidebar-content {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 문서 정보 리스트 */
.adv-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.adv-info-item:last-child {
    border-bottom: none;
}

.adv-info-label {
    color: var(--text-light);
    min-width: 60px;
}

.adv-info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* 문서 요약 */
.adv-sidebar-summary {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 키워드 태그 */
.adv-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adv-tag {
    padding: 6px 12px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.adv-tag:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
    .adv-viewer-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .adv-viewer-container {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    .adv-viewer-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .adv-viewer-header-left {
        flex-basis: 100%;
        order: 1;
    }
    
    .adv-viewer-header-right {
        flex-basis: 100%;
        order: 2;
        justify-content: space-between;
    }
    
    .adv-viewer-title {
        font-size: 16px;
    }
    
    .adv-viewer-doc-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .adv-viewer-zoom-controls {
        flex: 1;
        justify-content: center;
    }
    
    .adv-viewer-document-wrapper {
        padding: 16px;
        background-color: #3a3a3a;
    }
    
    .doc-page {
        padding: 24px 20px;
        min-height: auto;
    }
    
    .doc-page-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .doc-header-info {
        text-align: left;
    }
    
    .doc-main-title {
        font-size: 18px;
    }
    
    .doc-meta-area {
        flex-direction: column;
        gap: 8px;
    }
    
    .doc-page-footer {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .doc-footer-org {
        text-align: center;
    }
    
    .adv-viewer-actions {
        flex-wrap: wrap;
    }
    
    .adv-action-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ========================================
   공간역사 섹션 - 40:60 레이아웃
   (Leadership '연설과 비전' 섹션 스타일 참고)
======================================== */

/* Sticky 뷰어 컨테이너 */
.space-sticky-viewer {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
}

@media (max-width: 1024px) {
    .space-sticky-viewer {
        position: relative;
        top: 0;
        max-height: none;
    }
}

/* ========================================
   공간역사 - 스크롤 동기화 섹션 (Leadership 스타일)
======================================== */

/* 스크롤 아이템 (왼쪽 패널) */
.space-scroll-item {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
    opacity: 0.4;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.space-scroll-item.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .space-scroll-item {
        min-height: 70vh;
    }
}

/* 스크롤 아이템 내부 컨테이너 */
.space-scroll-item .scroll-item-inner {
    width: 100%;
}

/* 문서 타입 배지 */
.space-scroll-item .doc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.space-scroll-item.visible .doc-type-badge {
    background: var(--label-bg);
    border-color: var(--label-border);
    color: var(--label-text);
}

/* 섹션 제목 */
.space-scroll-item .scroll-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .space-scroll-item .scroll-section-title {
        font-size: 28px;
    }
}

/* 섹션 부제목 */
.space-scroll-item .scroll-section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* 섹션 콘텐츠 */
.space-scroll-item .scroll-section-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .space-scroll-item .scroll-section-content {
        font-size: 16px;
    }
}

/* 태블릿 프레임 (다크) */
.space-tablet-frame {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 28px;
    padding: 14px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.space-tablet-bezel {
    background-color: #1a1a1a;
    border-radius: 18px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.space-tablet-camera {
    width: 8px;
    height: 8px;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 1px solid #444;
    border-radius: 50%;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.space-tablet-screen {
    background: var(--bg-white);
    border-radius: 6px;
    width: 100%;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.space-tablet-home-button {
    width: 32px;
    height: 32px;
    border: 2px solid #444;
    border-radius: 50%;
    margin-top: 14px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 문서 뷰어 (태블릿 내부) */
.space-viewer-header {
    background-color: var(--bg-light);
    border-bottom: 2px dashed var(--border-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.space-viewer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.space-viewer-dot:nth-child(1) { background-color: #ff5f57; }
.space-viewer-dot:nth-child(2) { background-color: #ffbd2e; }
.space-viewer-dot:nth-child(3) { background-color: #28ca42; }

.space-viewer-content {
    background-color: var(--bg-white);
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* 문서 뷰어 플레이스홀더 */
.space-viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}

.space-viewer-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.space-viewer-placeholder .placeholder-text {
    font-size: 14px;
}

/* 문서 뷰어 활성 콘텐츠 */
.space-viewer-doc {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 문서 헤더 */
.viewer-doc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border-light);
    margin-bottom: 16px;
}

.viewer-doc-icon {
    font-size: 36px;
}

.viewer-doc-info {
    flex: 1;
}

.viewer-doc-number {
    font-size: 11px;
    color: var(--text-light);
    font-family: monospace;
    margin-bottom: 2px;
}

.viewer-doc-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.viewer-doc-year {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 페이지 콘텐츠 */
.viewer-doc-page {
    flex: 1;
    overflow-y: auto;
}

.page-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--label-text);
    background: var(--label-bg);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: inline-block;
}

.page-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-content p {
    margin-bottom: 10px;
}

/* 문서 내부 섹션 */
.doc-page-section {
    margin-bottom: 16px;
}

.doc-page-section h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-light);
}

/* 프로그레스 바 */
.progress-bar-container {
    margin-top: 8px;
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.progress-bar {
    height: 24px;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--label-border), #64B5F6);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 문서 테이블 */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}

.doc-table th,
.doc-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px dashed var(--border-light);
}

.doc-table th {
    background: var(--bg-light);
    color: var(--text-primary);
    font-weight: 600;
}

.doc-table td {
    color: var(--text-secondary);
}

.status-done {
    color: var(--color-added) !important;
    font-weight: 500;
}

.status-progress {
    color: var(--label-text) !important;
    font-weight: 500;
}

.status-pending {
    color: var(--text-light) !important;
}

/* 체크리스트 */
.doc-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.doc-checklist li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 12px;
}

.doc-checklist li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--border-color);
}

.doc-checklist li.checked::before {
    content: '✓';
    color: var(--color-added);
}

/* 예산 요약 */
.budget-summary {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.budget-item {
    flex: 1;
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.budget-item span {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.budget-item strong {
    font-size: 14px;
    color: var(--text-primary);
}

/* 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.info-item {
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.info-item span {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.info-item strong {
    font-size: 14px;
    color: var(--text-primary);
}

/* 인증서 스타일 */
.doc-certificate {
    background: linear-gradient(135deg, #fffef5, #fff9e6);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.certificate-header {
    margin-bottom: 16px;
}

.cert-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.certificate-header h6 {
    border: none;
    font-size: 16px;
    color: #8b7355;
}

.certificate-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.certificate-date {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.certificate-org {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 페이지 네비게이션 */
.viewer-doc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
}

.page-nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-nav-btn:hover:not(:disabled) {
    background: var(--label-bg);
    border-color: var(--label-border);
    color: var(--label-text);
}

.page-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* 모바일 태블릿 프레임 */
@media (max-width: 1024px) {
    .space-tablet-frame {
        border-radius: 20px;
        padding: 10px;
    }
    
    .space-tablet-bezel {
        border-radius: 14px;
        padding: 14px 10px;
    }
    
    .space-tablet-camera {
        width: 6px;
        height: 6px;
        margin-bottom: 10px;
    }
    
    .space-tablet-home-button {
        width: 24px;
        height: 24px;
        margin-top: 10px;
    }
    
    .space-tablet-screen {
        border-radius: 4px;
        height: 400px;
    }
}

/* ========================================
   조직성장 섹션 - 나이테 확장 및 상세영역
======================================== */

/* 나이테 컨테이너 100% 확장 */
.ring-visualization-container.ring-full-width {
    max-width: 100%;
}

.ring-full-width .ring-chart-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    /* 원형 프레임 */
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        transparent 85%,
        rgba(153, 153, 153, 0.08) 85%,
        rgba(153, 153, 153, 0.08) 100%
    );
    box-shadow: 
        inset 0 0 60px rgba(0, 0, 0, 0.03),
        0 0 0 3px rgba(153, 153, 153, 0.15);
    overflow: visible;
}

.ring-full-width .ring-chart {
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 연도 카운터 원형 프레임 대응 */
.ring-full-width .ring-year-counter {
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    text-align: center;
    z-index: 10;
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: 16px;
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 범례 원형 프레임 대응 */
.ring-full-width .ring-legend {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 24px;
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

/* 반응형 - 원형 프레임 */
@media (max-width: 768px) {
    .ring-full-width .ring-chart-wrapper {
        width: 360px;
        height: 360px;
    }
    
    .ring-full-width .ring-year-counter {
        right: auto;
        top: -70px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ring-full-width .ring-legend {
        bottom: -70px;
    }
}

@media (max-width: 480px) {
    .ring-full-width .ring-chart-wrapper {
        width: 300px;
        height: 300px;
    }
}

/* ========================================
   조직 전거 데이터 툴팁
======================================== */
.ring-authority-tooltip {
    position: absolute;
    /* 그래픽 영역 내부 중앙 하단에 고정 */
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    min-width: 300px;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

.ring-authority-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.authority-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--border-light);
}

.authority-dept-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.authority-status-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.authority-status-badge.added {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-added);
    border: 1px solid var(--color-added);
}

.authority-status-badge.maintained {
    background-color: rgba(107, 114, 128, 0.15);
    color: var(--color-maintained);
    border: 1px solid var(--color-maintained);
}

.authority-status-badge.removed {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--color-removed);
    border: 1px solid var(--color-removed);
}

.authority-tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.authority-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.authority-label {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    min-width: 60px;
}

.authority-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* ========================================
   연도별 상세내용 영역
======================================== */
.org-detail-section {
    margin-top: 48px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.org-detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--border-light);
}

@media (min-width: 768px) {
    .org-detail-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.org-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.org-detail-year {
    color: var(--label-text);
}

.org-detail-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.org-stat-badge {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

.org-stat-badge.added {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-added);
    border-color: var(--color-added);
}

.org-stat-badge.maintained {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--color-maintained);
    border-color: var(--color-maintained);
}

.org-detail-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1024px) {
    .org-detail-content {
        flex-direction: row;
    }
}

/* 좌측: 요약 설명 */
.org-detail-summary {
    flex: 1;
}

.org-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.org-summary-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 조직 전거 태그 */
.org-authority-tags {
    margin-top: 20px;
}

.authority-tags-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.authority-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.authority-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.authority-tag:hover {
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.authority-tag.added {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-added);
    border-color: var(--color-added);
}

.authority-tag.maintained {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--color-maintained);
    border-color: var(--color-maintained);
}

.authority-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* 우측: 조직도/업무분장표 이미지 */
.org-detail-images {
    flex: 1;
    min-width: 0;
}

.org-images-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.org-image-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.org-image-card {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.org-image-card:hover {
    border-style: solid;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.org-image-preview {
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    overflow: hidden;
}

.org-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-placeholder);
}

.image-placeholder-icon {
    font-size: 48px;
}

.image-placeholder-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.org-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.org-image-preview:hover .org-image-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 32px;
}

.overlay-text {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
}

.org-image-meta {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-meta-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.image-meta-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   조직도/업무분장표 원문 확대 모달
======================================== */
.org-image-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.org-image-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.org-image-modal {
    background-color: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.org-image-modal-overlay.visible .org-image-modal {
    transform: translateY(0) scale(1);
}

.org-image-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--bg-light);
    border-bottom: 2px dashed var(--border-light);
}

.org-image-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.org-image-modal-year {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 12px;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.org-image-modal-close {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.org-image-modal-close:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

.org-image-modal-body {
    flex: 1;
    overflow: auto;
    padding: 32px;
    background-color: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-image-modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    min-height: 500px;
    transition: transform 0.3s ease;
}

.org-modal-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.modal-image-icon {
    font-size: 64px;
}

.modal-image-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-image-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.org-image-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: var(--bg-light);
    border-top: 2px dashed var(--border-light);
}

.org-modal-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.org-modal-nav-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

.org-modal-zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

.zoom-level {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: center;
}

/* 반응형 */
@media (max-width: 768px) {
    .org-detail-section {
        padding: 20px;
    }
    
    .org-detail-title {
        font-size: 20px;
    }
    
    .org-image-cards {
        grid-template-columns: 1fr;
    }
    
    .org-image-modal {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .org-image-modal-content {
        min-width: auto;
        min-height: 300px;
    }
    
    .org-image-modal-footer {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
}
