/* ========================================
   KOICA Leadership Vision Archive
   와이어프레임 목업 스타일
======================================== */

/* 색상 변수 */
: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;
}

/* 기본 스타일 */
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; /* 목업 배너 높이 */
}

/* 스크롤바 숨김 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========================================
   목업 배너 (스티키)
======================================== */
#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;
}

/* ========================================
   플레이스홀더 이미지
======================================== */
.placeholder-image {
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    min-height: 150px;
    border-radius: 8px;
}

.placeholder-image-sm {
    min-height: 100px;
}

.placeholder-image-lg {
    min-height: 200px;
}

.placeholder-image-xl {
    min-height: 300px;
}

/* ========================================
   로딩 화면 (간소화)
======================================== */
#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;
}

.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);
}

.nav-home-link svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   맨 위로 버튼
======================================== */
#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-container {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    margin: 16px;
}

.section-title {
    color: var(--text-primary);
}

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

/* ========================================
   인트로 섹션 (스크롤 기반 타이틀 변환)
======================================== */
#intro {
    background-color: var(--bg-light);
    position: relative;
}

/* 스크롤 컨테이너 (200vh 높이) */
.intro-scroll-container {
    height: 200vh;
    position: relative;
}

/* Sticky 래퍼 */
.intro-sticky-wrapper {
    position: sticky;
    top: 44px; /* 목업 배너 높이 */
    height: calc(100vh - 44px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배경 몽타주 (역대 총재 이미지) */
.intro-montage-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.intro-montage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
    height: 100%;
}

.intro-montage-item {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-montage-item.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 인물 카드 스타일 */
.montage-person-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

/* 인물 실루엣 */
.person-silhouette {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.person-head {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--bg-dark), var(--border-color));
    border-radius: 50%;
    border: 3px dashed var(--border-color);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 얼굴 힌트 (눈, 코, 입 자리) */
.person-head::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    border-bottom: 2px dashed var(--text-light);
    opacity: 0.5;
}

.person-head::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 6px;
    border-bottom: 2px dashed var(--text-light);
    opacity: 0.4;
}

.person-shoulders {
    width: 120px;
    height: 50px;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-placeholder));
    border-radius: 60px 60px 0 0;
    border: 3px dashed var(--border-color);
    border-bottom: none;
    margin-top: -10px;
    position: relative;
}

/* 정장/의상 힌트 */
.person-shoulders::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid var(--border-color);
    opacity: 0.6;
}

/* 인물 정보 */
.person-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.person-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.person-year {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: 'Courier New', monospace;
}

/* 프레임 코너 장식 */
.person-frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--border-color);
    border-style: dashed;
    border-width: 0;
}

.corner-tl {
    top: 12px;
    left: 12px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.corner-tr {
    top: 12px;
    right: 12px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.corner-bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* 호버 효과 */
.intro-montage-item:hover .montage-person-card {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.intro-montage-item:hover .person-head {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.intro-montage-item:hover .person-frame-corner {
    border-color: var(--text-primary);
}

/* 레거시 플레이스홀더 (호환성) */
.montage-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.montage-icon {
    font-size: 48px;
    opacity: 0.4;
}

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

/* 오버레이 그라데이션 */
.intro-overlay {
    background: linear-gradient(to bottom, 
        rgba(245, 245, 245, 0.3) 0%, 
        rgba(245, 245, 245, 0.7) 50%, 
        rgba(245, 245, 245, 1) 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* 메인 콘텐츠 래퍼 */
.intro-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

/* ========================================
   단계 1: 메인 타이틀 (줌아웃 효과)
======================================== */
.intro-title-container {
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.intro-main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.4s ease;
}

.title-line-1 {
    font-size: 2rem;
    letter-spacing: 0.05em;
}

.title-line-2 {
    font-size: 4rem;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.title-koica {
    color: var(--text-primary);
    border-bottom: 4px dashed var(--border-color);
    padding-bottom: 4px;
}

.title-vision {
    color: var(--text-secondary);
}

.intro-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 1;
    transition: all 0.4s ease;
}

/* 줌아웃 상태 */
.intro-title-container.zoom-out {
    transform: scale(0.6);
    opacity: 0.3;
}

.intro-title-container.hidden {
    transform: scale(0.4);
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   단계 2: 오디오 파형 그래픽
======================================== */
.intro-waveform-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    padding: 0 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-waveform-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.intro-waveform-container.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.waveform-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0.7;
}

.waveform-visual {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.waveform-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100px;
}

.waveform-bar {
    width: 4px;
    background: linear-gradient(to top, var(--border-color), var(--text-secondary));
    border-radius: 2px;
    transition: height 0.15s ease;
    will-change: height;
}

/* 파형 애니메이션 */
.waveform-bar.animating {
    animation: waveformPulse 0.8s ease-in-out infinite;
}

@keyframes waveformPulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 파형 아래 캡션 */
.waveform-caption {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-style: italic;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.waveform-quote {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--border-color);
    line-height: 1;
}

.waveform-text {
    max-width: 500px;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

/* 파형 타임라인 */
.waveform-timeline {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.timeline-marker {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 16px;
    border: 2px dashed var(--border-light);
    border-radius: 20px;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-marker:hover,
.timeline-marker.active {
    background-color: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* ========================================
   단계 3: 총재 실루엣 & 영향력
======================================== */
.intro-silhouette-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-silhouette-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.silhouette-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.silhouette-figure {
    position: relative;
    width: 200px;
    height: 200px;
}

.silhouette-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-placeholder));
    border: 3px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.silhouette-icon {
    font-size: 56px;
}

.silhouette-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* 영향력 파동 효과 */
.silhouette-ripples {
    position: absolute;
    inset: -50px;
    pointer-events: none;
}

.ripple {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    opacity: 0;
    animation: rippleExpand 3s ease-out infinite;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 1s; }
.ripple-3 { animation-delay: 2s; }

@keyframes rippleExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 실루엣 캡션 */
.silhouette-caption {
    text-align: center;
}

.caption-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.caption-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* 영향력 키워드 */
.impact-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.impact-keyword {
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.impact-keyword.visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-keyword:hover {
    border-style: solid;
    background-color: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* ========================================
   스크롤 진행률 표시기
======================================== */
.intro-progress {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.intro-progress-bar {
    width: 200px;
    height: 4px;
    background-color: var(--border-light);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.intro-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.intro-progress-bar[data-progress="33"]::after { width: 33%; }
.intro-progress-bar[data-progress="66"]::after { width: 66%; }
.intro-progress-bar[data-progress="100"]::after { width: 100%; }

.intro-progress-stages {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.progress-stage {
    font-size: 11px;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.progress-stage.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   스크롤 힌트
======================================== */
.intro-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    transition: opacity 0.3s ease;
}

.scroll-hint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.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); }
}

.intro-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   인트로 반응형
======================================== */
@media (max-width: 1024px) {
    .title-line-1 {
        font-size: 1.5rem;
    }
    
    .title-line-2 {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 4px;
    }
    
    .intro-tagline {
        font-size: 1rem;
    }
    
    .intro-progress {
        bottom: 80px;
    }
    
    .intro-progress-bar {
        width: 150px;
    }
    
    .intro-progress-stages {
        gap: 16px;
    }
    
    .waveform-visual {
        padding: 24px 16px;
    }
    
    .waveform-bars {
        height: 60px;
    }
    
    .waveform-caption {
        font-size: 1rem;
    }
    
    .waveform-timeline {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .timeline-marker {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .silhouette-figure {
        width: 150px;
        height: 150px;
    }
    
    .silhouette-icon {
        font-size: 40px;
    }
    
    .caption-main {
        font-size: 1.25rem;
    }
    
    .impact-keywords {
        gap: 8px;
    }
    
    .impact-keyword {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .intro-scroll-container {
        height: 180vh;
    }
    
    .intro-progress {
        display: none;
    }
    
    .title-line-1 {
        font-size: 1.25rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
    }
    
    .waveform-bars {
        height: 50px;
        gap: 3px;
    }
    
    .waveform-bar {
        width: 3px;
    }
    
    .silhouette-figure {
        width: 120px;
        height: 120px;
    }
    
    .silhouette-ripples {
        inset: -30px;
    }
}

/* 레거시 스타일 (호환성) */
.intro-grid-item {
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.intro-title {
    color: var(--text-primary);
}

.intro-highlight {
    color: var(--text-secondary);
    border-bottom: 2px dashed var(--border-color);
}

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

.scroll-indicator {
    animation: bounce 1.5s infinite;
    color: var(--text-light);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========================================
   스크롤텔링 섹션
======================================== */
#scrolltelling {
    background-color: var(--bg-white);
}

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

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

.speech-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.speech-year {
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px dashed var(--border-color);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.speech-title {
    color: var(--text-primary);
}

.speech-subtitle {
    color: var(--text-light);
}

.speech-content {
    color: var(--text-secondary);
}

/* 태블릿 프레임 (다크) */
.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);
}

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

.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);
}

.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;
}

.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);
}

/* 문서 뷰어 (태블릿 내부) */
.document-viewer {
    background-color: var(--bg-white);
}

.document-viewer-header {
    background-color: var(--bg-light);
    border-bottom: 2px dashed var(--border-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

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

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

.document-viewer-content {
    background-color: var(--bg-white);
    padding: 20px;
    flex: 1; /* 남은 공간 채우기 */
    overflow-y: auto;
}

/* 문서 상세보기 버튼 */
.document-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.document-detail-btn:hover {
    background-color: var(--bg-dark);
    border-color: var(--text-secondary);
}

.document-detail-btn svg {
    width: 18px;
    height: 18px;
}

.highlight-text {
    transition: background-color 0.3s ease;
}

.highlight-text.active {
    background-color: var(--highlight);
    border-bottom: 2px solid var(--highlight-border);
    padding: 2px 4px;
}

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

/* ========================================
   시대별 카드 섹션 (Pinning + 가로 스크롤)
======================================== */
#periods {
    background-color: var(--bg-light);
}

.periods-section {
    position: relative;
    background-color: var(--bg-light);
}

.periods-pin-container {
    position: relative;
    height: 300vh; /* 스크롤 영역 확보 */
}

.periods-header {
    position: sticky;
    top: 80px;
    z-index: 10;
    padding: 30px 0 20px;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-light) 80%, transparent 100%);
}

.periods-slider-wrapper {
    position: sticky;
    top: 200px;
    height: calc(100vh - 260px);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: calc(50vw - 220px); /* 첫 카드를 중앙에 배치 */
}

.periods-slider {
    display: flex;
    gap: 40px;
    padding: 0 60px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform: translateX(0);
}

/* 진행 표시기 */
.periods-progress {
    position: sticky;
    top: calc(100vh - 60px);
    width: 200px;
    height: 4px;
    background-color: var(--border-light);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.periods-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--text-secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 네비게이션 도트 */
.periods-dots {
    position: sticky;
    top: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

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

.period-dot.active {
    background-color: var(--text-primary);
    border-style: solid;
    transform: scale(1.3);
}

.period-dot:hover:not(.active) {
    background-color: var(--bg-dark);
}

/* 스크롤 안내 */
.periods-scroll-hint {
    position: sticky;
    top: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    padding-bottom: 20px;
    animation: hintBounce 2s infinite;
}

@keyframes hintBounce {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

/* 시대별 컬러 테마 */
:root {
    --era-1990s: #4A5568;
    --era-1990s-light: #E2E8F0;
    --era-2000s: #2D3748;
    --era-2000s-light: #EDF2F7;
    --era-2010s: #1A365D;
    --era-2010s-light: #EBF8FF;
    --era-2020s: #234E52;
    --era-2020s-light: #E6FFFA;
}

/* 시대별 카드 (새 스타일) */
.period-card-new {
    flex-shrink: 0;
    width: 400px;
    height: 520px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.period-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--border-color);
    transition: background-color 0.3s ease;
}

/* 시대별 컬러 테마 적용 */
.period-card-new[data-era="1990s"]::before { background-color: var(--era-1990s); }
.period-card-new[data-era="2000s"]::before { background-color: var(--era-2000s); }
.period-card-new[data-era="2010s"]::before { background-color: var(--era-2010s); }
.period-card-new[data-era="2020s"]::before { background-color: var(--era-2020s); }

.period-card-new[data-era="1990s"] .period-decade-new { 
    background-color: var(--era-1990s-light); 
    color: var(--era-1990s);
    border-color: var(--era-1990s);
}
.period-card-new[data-era="2000s"] .period-decade-new { 
    background-color: var(--era-2000s-light); 
    color: var(--era-2000s);
    border-color: var(--era-2000s);
}
.period-card-new[data-era="2010s"] .period-decade-new { 
    background-color: var(--era-2010s-light); 
    color: var(--era-2010s);
    border-color: var(--era-2010s);
}
.period-card-new[data-era="2020s"] .period-decade-new { 
    background-color: var(--era-2020s-light); 
    color: var(--era-2020s);
    border-color: var(--era-2020s);
}

.period-card-new:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-style: solid;
}

.period-card-new.active {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-style: solid;
    border-color: var(--text-primary);
}

.period-decade-new {
    display: inline-block;
    padding: 8px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.period-title-new {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.period-description-new {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.period-highlights-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.period-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.period-highlight-dot-new {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    flex-shrink: 0;
}

/* Hover 썸네일 영역 */
.period-thumbnail-container {
    position: relative;
    margin-top: auto;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
}

.period-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 100%;
    transition: all 0.4s ease;
}

.period-thumbnail {
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-light);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.period-thumbnail-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.period-thumbnail-label {
    font-size: 10px;
    line-height: 1.2;
}

/* Hover 시 썸네일 확대 효과 */
.period-card-new:hover .period-thumbnail-grid {
    transform: scale(1.02);
}

.period-card-new:hover .period-thumbnail {
    border-style: solid;
    background-color: var(--bg-dark);
}

.period-thumbnail:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-white) !important;
    border-color: var(--text-primary) !important;
}

/* 확대된 프리뷰 오버레이 */
.period-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.period-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.period-preview-content {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.period-preview-overlay.active .period-preview-content {
    transform: scale(1);
}

/* 반응형 */
@media (max-width: 1024px) {
    .periods-pin-container {
        height: auto;
        padding: 60px 0;
    }
    
    .periods-header {
        position: relative;
        top: 0;
        padding: 20px 0;
        background: transparent;
    }
    
    .periods-slider-wrapper {
        position: relative;
        top: 0;
        height: auto;
        overflow-x: auto;
        padding: 20px 0;
        padding-left: 20px;
    }
    
    .periods-slider {
        padding: 0 20px 0 0;
        gap: 20px;
    }
    
    .period-card-new {
        width: 320px;
        height: 480px;
        padding: 24px;
    }
    
    .periods-progress,
    .periods-dots,
    .periods-scroll-hint {
        position: relative;
        top: 0;
    }
    
    .periods-scroll-hint {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .period-card-new {
        width: 280px;
        height: 440px;
        padding: 20px;
    }
    
    .period-title-new {
        font-size: 20px;
    }
    
    .period-thumbnail-container {
        height: 100px;
    }
    
    .period-thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

.period-card {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
}

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

.period-card:active {
    transform: translateY(-2px);
}

.period-decade {
    display: inline-block;
    padding: 6px 16px;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background-color: var(--bg-light);
}

.period-title {
    color: var(--text-primary);
}

.period-description {
    color: var(--text-secondary);
}

.period-highlight-dot {
    width: 8px;
    height: 8px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    background-color: var(--bg-white);
}

.period-highlight-text {
    color: var(--text-secondary);
}

.card-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.period-card:hover .card-image {
    opacity: 1;
}

/* ========================================
   플로우차트 섹션 (비전의 실현 과정)
======================================== */
#flowchart {
    background-color: var(--bg-white);
}

.flowchart-grid {
    background-image: 
        linear-gradient(to right, var(--border-light) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

/* 4단계 범례 */
.flow-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.flow-legend-item:hover {
    border-style: solid;
    background-color: var(--bg-white);
}

.flow-legend-icon {
    font-size: 20px;
}

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

.flow-legend-arrow {
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
}

/* 플로우 다이어그램 */
.flow-diagram {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: visible;
}

.flow-diagram:hover {
    border-style: solid;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.flow-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.flow-year-badge {
    background-color: var(--text-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* 노드 컨테이너 */
.flow-nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 20px 0;
}

/* 개별 노드 */
.flow-node {
    flex: 1;
    max-width: 200px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.flow-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-style: solid;
}

.flow-node.active {
    border-color: var(--text-primary);
    border-style: solid;
    background-color: var(--bg-light);
    transform: scale(1.05);
    z-index: 10;
}

.flow-node.highlighted {
    animation: nodeHighlight 1.2s ease forwards;
}

@keyframes nodeHighlight {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    30% { 
        transform: scale(1.08); 
        background-color: var(--highlight);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    }
    60% {
        transform: scale(1.12);
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
    }
    100% { 
        transform: scale(1.05); 
        background-color: var(--bg-light);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

/* 노드 타입별 색상 */
.flow-node-speech { border-color: #3B82F6; }
.flow-node-speech.active, .flow-node-speech:hover { background-color: #EFF6FF; }
.flow-node-speech .flow-node-icon { background-color: #DBEAFE; }

.flow-node-policy { border-color: #8B5CF6; }
.flow-node-policy.active, .flow-node-policy:hover { background-color: #F5F3FF; }
.flow-node-policy .flow-node-icon { background-color: #EDE9FE; }

.flow-node-project { border-color: #F59E0B; }
.flow-node-project.active, .flow-node-project:hover { background-color: #FFFBEB; }
.flow-node-project .flow-node-icon { background-color: #FEF3C7; }

.flow-node-outcome { border-color: #10B981; }
.flow-node-outcome.active, .flow-node-outcome:hover { background-color: #ECFDF5; }
.flow-node-outcome .flow-node-icon { background-color: #D1FAE5; }

.flow-node-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
}

.flow-node-content {
    text-align: center;
}

.flow-node-year {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.flow-node-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.flow-node-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Speech 노드 펄스 효과 */
.flow-node-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #3B82F6;
    border-radius: 12px;
    animation: pulse 2s infinite;
    pointer-events: none;
}

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

/* 연결선 */
.flow-connector {
    width: 80px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
}

.flow-connector-svg {
    width: 100%;
    height: 100%;
}

.flow-connector-path {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    transition: all 0.3s ease;
}

.flow-connector-arrow {
    fill: var(--border-color);
    opacity: 0;
    transition: all 0.3s ease;
}

/* 연결선 애니메이션 */
.flow-connector.animated .flow-connector-path {
    stroke: var(--text-primary);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.5s ease-out forwards;
}

.flow-connector.animated .flow-connector-arrow {
    fill: var(--text-primary);
    animation: showArrow 0.6s ease forwards 1.2s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes showArrow {
    0% { opacity: 0; transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 팝업 */
.flow-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 750px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 팝업 배경 오버레이 */
.flow-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.flow-popup-content {
    background-color: var(--bg-white);
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
}

.flow-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.flow-popup-close:hover {
    background: var(--bg-light);
    border-style: solid;
    color: var(--text-primary);
}

.flow-popup-image {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.flow-popup-image .placeholder-image {
    height: 280px !important;
    font-size: 18px;
}

.flow-popup-info h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.flow-popup-info p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.flow-popup-stats {
    display: flex;
    gap: 32px;
}

.flow-popup-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 28px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 안내 문구 */
.flow-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background-color: var(--label-bg);
    border: 2px dashed var(--label-border);
    border-radius: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--label-text);
}

.flow-instruction-icon {
    font-size: 20px;
    animation: pointUp 1s infinite;
}

@keyframes pointUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 반응형 */
@media (max-width: 768px) {
    .flow-nodes {
        flex-direction: column;
        gap: 0;
    }
    
    .flow-node {
        max-width: 100%;
        width: 100%;
    }
    
    .flow-connector {
        width: 40px;
        height: 60px;
        transform: rotate(90deg);
    }
    
    .flow-popup {
        width: 95%;
        max-width: none;
    }
    
    .flow-popup-content {
        padding: 24px;
    }
    
    .flow-popup-image .placeholder-image {
        height: 180px !important;
    }
    
    .flow-popup-info h4 {
        font-size: 20px;
    }
    
    .flow-popup-info p {
        font-size: 14px;
    }
    
    .flow-legend-arrow {
        display: none;
    }
    
    .flow-popup-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* ========================================
   갤러리/명언 섹션 (슬라이더)
======================================== */
.quote-section {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

/* 거대한 따옴표 배경 */
.quote-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.quote-bg-mark {
    position: absolute;
    font-family: Georgia, serif;
    font-size: 400px;
    line-height: 1;
    color: var(--border-light);
    opacity: 0.3;
    user-select: none;
}

.quote-bg-mark-left {
    top: 10%;
    left: 5%;
    transform: rotate(-10deg);
}

.quote-bg-mark-right {
    bottom: 10%;
    right: 5%;
    transform: rotate(170deg);
}

/* 슬라이더 컨테이너 */
.quote-slider-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.quote-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 개별 슬라이드 */
.quote-slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.quote-slide.active {
    opacity: 1;
    transform: scale(1);
}

.quote-card {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 활성 슬라이드 카드 - 파란색 강조 */
.quote-slide.active .quote-card {
    border: 3px solid #1a4480;
    box-shadow: 0 20px 60px rgba(26, 68, 128, 0.15);
}

.quote-card:hover {
    border-style: solid;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ========================================
   명언 카드 몽타주 영역 (노벨상 스타일)
======================================== */

/* 카드 상단 헤더 (카테고리 라벨) */
.quote-card-header {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border-light);
}

.quote-category-label {
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.quote-slide.active .quote-category-label {
    background: linear-gradient(135deg, #1a4480 0%, #2563eb 100%);
    border-style: solid;
    border-color: #1a4480;
    color: white;
}

/* 인물 섹션 (정보 + 일러스트) */
.quote-person-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

/* 인물 정보 영역 */
.quote-person-info {
    text-align: center;
    margin-bottom: 20px;
}

.quote-person-affiliation {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.quote-slide.active .quote-person-affiliation {
    color: #1a4480;
}

.quote-person-name-en {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
}

.quote-person-year {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.quote-person-contribution {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-slide.active .quote-person-contribution {
    color: var(--text-primary);
}

/* 인물 일러스트 (상반신) */
.quote-person-illustration {
    position: relative;
    width: 200px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.quote-person-bust {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-person-head {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 50%, #b0b0b0 100%);
    border-radius: 50%;
    border: 3px dashed var(--border-color);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.quote-slide.active .quote-person-head {
    background: linear-gradient(145deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
    border-style: solid;
    border-color: #1a4480;
}

/* 얼굴 힌트 - 눈 */
.quote-person-head::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    border-bottom: 2px dashed var(--text-light);
    opacity: 0.4;
}

/* 얼굴 힌트 - 입 */
.quote-person-head::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 6px;
    border-bottom: 2px dashed var(--text-light);
    opacity: 0.3;
}

.quote-person-shoulders {
    width: 140px;
    height: 70px;
    background: linear-gradient(180deg, #d0d0d0 0%, #b0b0b0 50%, #909090 100%);
    border-radius: 70px 70px 0 0;
    border: 3px dashed var(--border-color);
    border-bottom: none;
    margin-top: -12px;
    position: relative;
    z-index: 1;
}

.quote-slide.active .quote-person-shoulders {
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 50%, #3b82f6 100%);
    border-style: solid;
    border-color: #1a4480;
}

/* 정장/옷깃 힌트 */
.quote-person-shoulders::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid rgba(0,0,0,0.15);
}

/* 넥타이 힌트 */
.quote-person-shoulders::after {
    content: '';
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 30px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

/* 상세보기 버튼 */
.quote-detail-btn {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 32px;
    height: 32px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-slide.active .quote-detail-btn {
    background-color: #1a4480;
    border-style: solid;
    border-color: #1a4480;
    color: white;
}

.quote-detail-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 명언 콘텐츠 영역 */
.quote-content {
    width: 100%;
    position: relative;
    padding-top: 24px;
    border-top: 2px dashed var(--border-light);
}

/* 따옴표 장식 */
.quote-mark {
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 1;
    color: var(--border-color);
    opacity: 0.4;
    position: absolute;
    top: 10px;
    left: 20px;
}

.quote-slide.active .quote-mark {
    color: #1a4480;
    opacity: 0.3;
}

/* 명언 텍스트 */
.quote-text-main {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding: 0 20px;
    padding-left: 40px;
    position: relative;
    z-index: 1;
}

.quote-slide.active .quote-text-main {
    color: #1a4480;
}

.quote-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quote-meta-divider {
    width: 4px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 50%;
}

/* 원문 보기 버튼 */
.quote-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-source-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quote-source-btn svg {
    width: 20px;
    height: 20px;
}

/* 네비게이션 */
.quote-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

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

.quote-nav-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-white);
    transform: scale(1.1);
}

.quote-nav-btn:active {
    transform: scale(0.95);
}

/* 도트 인디케이터 */
.quote-dots-container {
    display: flex;
    gap: 12px;
}

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

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

.quote-dot.active {
    width: 36px;
    border-radius: 6px;
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

/* 슬라이드 카운터 */
.quote-counter {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.quote-counter #quote-current {
    font-weight: 600;
    color: var(--text-primary);
}

/* 반응형 */
@media (max-width: 768px) {
    .quote-bg-mark {
        font-size: 200px;
    }
    
    .quote-bg-mark-left {
        top: 5%;
        left: 0;
    }
    
    .quote-bg-mark-right {
        bottom: 5%;
        right: 0;
    }
    
    .quote-card {
        padding: 28px 20px;
    }
    
    /* 카드 헤더 */
    .quote-card-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .quote-category-label {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    /* 인물 정보 */
    .quote-person-affiliation {
        font-size: 16px;
    }
    
    .quote-person-name-en {
        font-size: 14px;
    }
    
    .quote-person-year {
        font-size: 12px;
    }
    
    .quote-person-contribution {
        font-size: 13px;
        padding: 0 10px;
    }
    
    /* 인물 일러스트 */
    .quote-person-illustration {
        width: 160px;
        height: 140px;
    }
    
    .quote-person-head {
        width: 60px;
        height: 60px;
    }
    
    .quote-person-shoulders {
        width: 110px;
        height: 55px;
        margin-top: -10px;
    }
    
    .quote-detail-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
        bottom: 5px;
        right: 15px;
    }
    
    /* 명언 콘텐츠 */
    .quote-content {
        padding-top: 16px;
    }
    
    .quote-mark {
        font-size: 40px;
        top: 8px;
        left: 10px;
    }
    
    .quote-text-main {
        font-size: 16px;
        padding: 0 10px;
        padding-left: 30px;
        margin-bottom: 16px;
    }
    
    .quote-meta {
        padding: 6px 14px;
        font-size: 12px;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .quote-source-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .quote-navigation {
        gap: 20px;
    }
    
    .quote-nav-btn {
        width: 48px;
        height: 48px;
    }
    
    .quote-nav-btn svg {
        width: 24px;
        height: 24px;
    }
}

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

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

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

/* ========================================
   모달
======================================== */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    animation: modalAppear 0.3s ease-out;
}

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

.modal-close {
    color: var(--text-light);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

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

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

.modal-description {
    color: var(--text-secondary);
}

.modal-year {
    color: var(--text-light);
    font-size: 12px;
    border: 1px dashed var(--border-color);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.modal-type {
    color: var(--text-light);
}

.modal-button {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-button:hover {
    background-color: var(--bg-light);
}

#flowchart-modal,
#document-modal {
    transition: opacity 0.3s ease;
}

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

/* ========================================
   전체화면 문서 상세보기 모달
======================================== */
#document-fullscreen-modal {
    transition: opacity 0.3s ease;
}

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

.fullscreen-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

.fullscreen-modal-content {
    background-color: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    width: 90vw;
    max-width: 1000px;
    height: 90vh;
    max-height: 90vh;
    overflow-y: auto;
    animation: fullscreenModalAppear 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes fullscreenModalAppear {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fullscreen-modal-header {
    padding: 24px 28px;
    border-bottom: 2px dashed var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.fullscreen-modal-body {
    padding: 28px;
    flex: 1;
    overflow-y: auto;
}

.fullscreen-modal-footer {
    padding: 20px 28px;
    border-top: 2px dashed var(--border-light);
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.fullscreen-doc-number {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.fullscreen-doc-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fullscreen-doc-meta {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.fullscreen-doc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fullscreen-doc-image {
    background-color: var(--bg-placeholder);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.fullscreen-doc-content {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.fullscreen-doc-content mark {
    background-color: var(--highlight);
    padding: 2px 6px;
    border-radius: 4px;
}

.fullscreen-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.fullscreen-close-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.fullscreen-close-btn svg {
    width: 24px;
    height: 24px;
}

/* 전체화면 모달 반응형 */
@media (max-width: 768px) {
    .fullscreen-modal-content {
        width: 95vw;
        height: 95vh;
        border-radius: 12px;
    }
    
    .fullscreen-modal-header {
        padding: 16px 20px;
    }
    
    .fullscreen-modal-body {
        padding: 20px;
    }
    
    .fullscreen-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .fullscreen-doc-title {
        font-size: 22px;
    }
    
    .fullscreen-doc-image {
        height: 180px;
    }
    
    .fullscreen-doc-content {
        font-size: 15px;
    }
}

/* ========================================
   유틸리티
======================================== */
.touch-pan-x {
    touch-action: pan-x;
}

/* ========================================
   고급 문서 뷰어 모달
======================================== */
#advanced-document-viewer {
    transition: opacity 0.3s ease;
}

#advanced-document-viewer.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 .highlight-text {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 55%,
        rgba(255, 235, 59, 0.5) 55%,
        rgba(255, 235, 59, 0.5) 90%,
        transparent 90%
    );
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
    color: #1a1a1a;
}

.doc-body-content .highlight-text.active {
    background: rgba(255, 235, 59, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 235, 59, 0.3);
    animation: highlightGlow 2s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% { 
        box-shadow: 0 0 0 4px rgba(255, 235, 59, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(255, 235, 59, 0.1);
    }
}

/* 문서 하단 */
.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 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.adv-sidebar-title svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* 문서 정보 리스트 */
.adv-doc-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adv-doc-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

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

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

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

.adv-keyword-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-keyword-tag:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

/* 관련 문서 */
.adv-related-docs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.adv-related-doc-item:hover {
    border-color: var(--text-primary);
    transform: translateX(4px);
}

.adv-related-doc-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    font-size: 20px;
    flex-shrink: 0;
}

.adv-related-doc-info {
    min-width: 0;
    flex: 1;
}

.adv-related-doc-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-related-doc-meta {
    font-size: 11px;
    color: var(--text-light);
}

/* 모바일 반응형 */
@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;
    }
    
    .adv-viewer-document {
        max-width: 100%;
    }
    
    .doc-page {
        padding: 24px 20px;
        min-height: auto;
        font-size: 14px;
    }
    
    .doc-page-header {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    
    .doc-logo-area {
        flex-direction: column;
    }
    
    .doc-logo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 11px;
    }
    
    .doc-org-name {
        font-size: 14px;
    }
    
    .doc-header-info {
        text-align: center;
    }
    
    .doc-main-title {
        font-size: 18px;
    }
    
    .doc-meta-area {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .doc-meta-row {
        font-size: 12px;
    }
    
    .doc-body-content {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .doc-body-content p {
        text-indent: 1em;
        margin-bottom: 16px;
    }
    
    .doc-page-footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
    
    .doc-stamp {
        width: 60px;
        height: 60px;
    }
    
    .doc-stamp-text {
        font-size: 11px;
    }
    
    .doc-stamp-date {
        font-size: 9px;
    }
    
    .doc-footer-org {
        text-align: center;
        font-size: 10px;
    }
    
    .adv-viewer-actions {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .adv-action-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .adv-action-btn span {
        display: block;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    #navigation {
        top: 60px;
    }
    
    #mockup-banner span {
        font-size: 11px;
    }
    
    .interaction-label {
        font-size: 12px;
        padding: 10px 14px;
    }
}
