/**
 * style.css - 메인 스타일시트
 * 이서영 총영사 공식 웹사이트
 * 디자인 컨셉: 외교관/국방부 - 존엄하고 격조있는 디자인
 * 색상: 네이비 블루, 골드, 화이트
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors - Navy Blue */
    --color-navy-900: #0D1B2A;
    --color-navy-800: #1B2838;
    --color-navy-700: #1B365D;
    --color-navy-600: #234E70;
    --color-navy-500: #2C5F8A;
    --color-navy-400: #4A7BA7;
    --color-navy-300: #6B98C4;
    --color-navy-200: #A8C5E2;
    --color-navy-100: #D4E4F4;

    /* Accent Colors - Gold */
    --color-gold-900: #704214;
    --color-gold-800: #8B6914;
    --color-gold-700: #A67C00;
    --color-gold-600: #C9A227;
    --color-gold-500: #D4AF37;
    --color-gold-400: #E5C158;
    --color-gold-300: #F0D77A;
    --color-gold-200: #F7E8A8;
    --color-gold-100: #FDF5D6;

    /* Korean Flag Colors */
    --color-taegeuk-red: #C60C30;
    --color-taegeuk-blue: #003478;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-gray-50: #FAFBFC;
    --color-gray-100: #F4F5F7;
    --color-gray-200: #E8EAED;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Semantic Colors */
    --color-primary: var(--color-navy-700);
    --color-primary-dark: var(--color-navy-900);
    --color-primary-light: var(--color-navy-400);
    --color-accent: var(--color-gold-500);
    --color-accent-dark: var(--color-gold-700);
    --color-accent-light: var(--color-gold-300);

    /* Background Colors */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-50);
    --bg-tertiary: var(--color-gray-100);
    --bg-dark: var(--color-navy-900);
    --bg-card: var(--color-white);
    --bg-overlay: rgba(13, 27, 42, 0.95);

    /* Text Colors */
    --text-primary: var(--color-gray-900);
    --text-secondary: var(--color-gray-600);
    --text-tertiary: var(--color-gray-500);
    --text-inverse: var(--color-white);
    --text-accent: var(--color-gold-600);
    --text-link: var(--color-navy-600);

    /* Border Colors */
    --border-color: var(--color-gray-200);
    --border-color-dark: var(--color-gray-300);
    --border-accent: var(--color-gold-400);

    /* Gradients */
    --gradient-navy: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-navy-900) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold-400) 0%, var(--color-gold-600) 100%);
    --gradient-prestige: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 50%, var(--color-navy-800) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(13, 27, 42, 0) 0%, rgba(13, 27, 42, 0.8) 100%);

    /* Typography */
    --font-family-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-serif: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
    --font-family-display: 'Pretendard', var(--font-family-primary);

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 4px 14px 0 rgba(201, 162, 39, 0.3);
    --shadow-navy: 0 4px 14px 0 rgba(27, 54, 93, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 700ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* Layout */
    --header-height: 64px;
    --nav-width: 280px;
    --container-max: 1200px;
    --content-max: 800px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Links */
a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-navy-200);
    color: var(--color-navy-900);
}

/* ============================================
   App Shell Layout
   ============================================ */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-primary);
    position: relative;
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 540px;
        box-shadow: var(--shadow-2xl);
    }
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    height: var(--header-height);
    background: var(--gradient-prestige);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    border-bottom: 3px solid var(--color-gold-500);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold-400) 20%, var(--color-gold-500) 50%, var(--color-gold-400) 80%, transparent 100%);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    letter-spacing: var(--letter-spacing-wide);
}

.header-subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-gold-400);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
}

/* Header Buttons */
.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-gold-400);
}

.header-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   Status Bar (iOS Style)
   ============================================ */
.status-bar {
    height: env(safe-area-inset-top, 0);
    background: var(--color-navy-900);
}

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0));
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
    background: var(--bg-secondary);
}

/* ============================================
   Navigation Drawer
   ============================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100%;
    background: var(--color-white);
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
}

.drawer.active {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    padding: var(--spacing-xl);
    background: var(--gradient-prestige);
    border-bottom: 3px solid var(--color-gold-500);
    position: relative;
}

.drawer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.drawer-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.drawer-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-gold-500);
    object-fit: cover;
    background: var(--color-navy-600);
    box-shadow: var(--shadow-gold);
}

.drawer-profile-info h3 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.drawer-profile-info p {
    font-size: var(--font-size-sm);
    color: var(--color-gold-400);
    letter-spacing: var(--letter-spacing-wide);
}

/* Drawer Navigation */
.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md) 0;
}

.drawer-nav-section {
    margin-bottom: var(--spacing-lg);
}

.drawer-nav-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-sm);
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.drawer-nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--color-primary);
    border-left-color: var(--color-gold-500);
}

.drawer-nav-item.active {
    background: var(--color-navy-100);
    color: var(--color-navy-700);
    border-left-color: var(--color-gold-500);
    font-weight: var(--font-weight-semibold);
}

.drawer-nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.drawer-nav-item:hover svg,
.drawer-nav-item.active svg {
    color: var(--color-navy-600);
}

/* Drawer Footer */
.drawer-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.drawer-footer-text {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-align: center;
}

/* ============================================
   Bottom Navigation
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    height: calc(70px + env(safe-area-inset-bottom, 0));
    background: var(--color-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: var(--spacing-sm);
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: var(--z-fixed);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    min-width: 64px;
    position: relative;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-gold-500);
    border-radius: var(--radius-full);
    transition: width var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--color-navy-700);
}

.bottom-nav-item.active::before {
    width: 24px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.section-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-tight);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    letter-spacing: var(--letter-spacing-wide);
    margin-top: var(--spacing-md);
}

/* ============================================
   Hero Section (Home Page)
   ============================================ */
.hero {
    position: relative;
    background: var(--gradient-prestige);
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23C9A227' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Profile Avatar */
.hero-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-xl);
}

.hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    border: 5px solid var(--color-gold-500);
    object-fit: cover;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(201, 162, 39, 0.4);
    background: var(--color-navy-600);
}

.hero-avatar-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-navy-900);
    box-shadow: var(--shadow-lg);
}

.hero-avatar-badge svg {
    width: 24px;
    height: 24px;
    color: var(--color-navy-900);
}

/* Hero Text */
.hero-name {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-wide);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: var(--font-size-lg);
    color: var(--color-gold-400);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    letter-spacing: var(--letter-spacing-wide);
}

.hero-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-navy-200);
    letter-spacing: var(--letter-spacing-wider);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(201, 162, 39, 0.3);
}

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

.hero-stat-value {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gold-400);
    display: block;
}

.hero-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-navy-200);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    margin-top: var(--spacing-xs);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.card-content {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.card-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Featured Card */
.card-featured {
    border-left: 4px solid var(--color-gold-500);
}

.card-featured .card-header {
    background: linear-gradient(135deg, var(--color-navy-100) 0%, var(--color-gray-100) 100%);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-navy);
    color: var(--color-white);
    border-color: var(--color-navy-700);
}

.btn-primary:hover {
    background: var(--color-navy-600);
    border-color: var(--color-gold-500);
    box-shadow: var(--shadow-navy);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy-700);
    border-color: var(--color-navy-300);
}

.btn-secondary:hover {
    background: var(--color-navy-100);
    border-color: var(--color-navy-500);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--color-navy-900);
    border-color: var(--color-gold-600);
}

.btn-gold:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-base);
}

/* ============================================
   Timeline (Blog/News)
   ============================================ */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-gold-400), var(--color-navy-300));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--spacing-xl) + 4px);
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--color-gold-500);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-white);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    margin-bottom: var(--spacing-sm);
}

.timeline-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Decorations & Ornaments
   ============================================ */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-400), transparent);
}

.ornament-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gold-500);
}

/* Star decoration */
.star-decoration {
    display: inline-flex;
    gap: var(--spacing-xs);
}

.star-decoration svg {
    width: 16px;
    height: 16px;
    color: var(--color-gold-500);
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-gold {
    background: var(--color-gold-100);
    color: var(--color-gold-800);
    border: 1px solid var(--color-gold-300);
}

.badge-navy {
    background: var(--color-navy-100);
    color: var(--color-navy-800);
    border: 1px solid var(--color-navy-300);
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* ============================================
   Lists
   ============================================ */
.list-decorated {
    list-style: none;
}

.list-decorated li {
    position: relative;
    padding-left: var(--spacing-lg);
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.list-decorated li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-gold-500);
    border-radius: 2px;
    transform: translateY(-50%) rotate(45deg);
}

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy-800);
    background: var(--bg-tertiary);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

td {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--bg-secondary);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
    margin-bottom: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    text-align: left;
    font-weight: var(--font-weight-medium);
    color: var(--color-navy-800);
    background: transparent;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question-text {
    flex: 1;
    padding-right: var(--spacing-md);
}

.faq-icon {
    color: var(--color-gold-500);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
}

/* ============================================
   Search Overlay
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + env(safe-area-inset-top, 0));
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.search-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: calc(var(--spacing-lg) + 24px);
    font-size: var(--font-size-base);
    background: var(--color-white);
    border: 2px solid var(--color-navy-300);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-gold-500);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.search-input-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-close {
    color: var(--color-white);
    padding: var(--spacing-sm);
}

.search-results {
    flex: 1;
    overflow-y: auto;
}

/* ============================================
   Floating Action Button
   ============================================ */
.fab {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0));
    right: var(--spacing-lg);
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-900);
    box-shadow: var(--shadow-xl), var(--shadow-gold);
    z-index: var(--z-sticky);
    transition: all var(--transition-fast);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl), 0 8px 25px rgba(201, 162, 39, 0.4);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Award/Medal Display
   ============================================ */
.medal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.medal-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.medal-item:hover {
    border-color: var(--color-gold-400);
    box-shadow: var(--shadow-gold);
}

.medal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

.medal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-navy-900);
}

.medal-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy-800);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.medal-desc {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* ============================================
   Flag Banner
   ============================================ */
.flag-banner {
    display: flex;
    height: 4px;
    margin: var(--spacing-lg) 0;
}

.flag-banner-red {
    flex: 1;
    background: var(--color-taegeuk-red);
}

.flag-banner-blue {
    flex: 1;
    background: var(--color-taegeuk-blue);
}

/* ============================================
   Emblem/Seal Display
   ============================================ */
.emblem-container {
    display: flex;
    justify-content: center;
    margin: var(--spacing-xl) 0;
}

.emblem {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(201, 162, 39, 0.3);
    position: relative;
}

.emblem::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--color-gold-400);
    border-radius: var(--radius-full);
}

.emblem svg {
    width: 40px;
    height: 40px;
    color: var(--color-navy-900);
}

/* ============================================
   Rank Display
   ============================================ */
.rank-stars {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.rank-star {
    width: 24px;
    height: 24px;
    color: var(--color-gold-500);
}

/* ============================================
   Quote Block
   ============================================ */
.quote-block {
    position: relative;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-navy-100) 0%, var(--color-gray-100) 100%);
    border-left: 4px solid var(--color-gold-500);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    font-family: var(--font-family-serif);
    font-size: var(--font-size-5xl);
    color: var(--color-gold-300);
    line-height: 1;
}

.quote-text {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-navy-700);
    line-height: var(--line-height-relaxed);
    padding-left: var(--spacing-xl);
}

.quote-author {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-xl);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ============================================
   Profile Info List
   ============================================ */
.profile-info-list {
    list-style: none;
}

.profile-info-item {
    display: flex;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-info-label {
    width: 100px;
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy-700);
}

.profile-info-value {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--text-accent); }
.text-navy { color: var(--color-navy-700); }
.text-gold { color: var(--color-gold-600); }
.text-white { color: var(--color-white); }

.bg-white { background: var(--color-white); }
.bg-navy { background: var(--color-navy-900); }
.bg-gold { background: var(--color-gold-500); }

.font-serif { font-family: var(--font-family-serif); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ============================================
   Animation Classes
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: fadeIn 0.5s ease 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: fadeIn 0.5s ease 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: fadeIn 0.5s ease 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: fadeIn 0.5s ease 0.4s forwards; }
.stagger-children.visible > *:nth-child(5) { animation: fadeIn 0.5s ease 0.5s forwards; }

/* Shine effect for gold elements */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shine-effect {
    background: linear-gradient(
        90deg,
        var(--color-gold-500) 0%,
        var(--color-gold-300) 50%,
        var(--color-gold-500) 100%
    );
    background-size: 200% 100%;
    animation: shine 3s ease-in-out infinite;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .bottom-nav,
    .drawer,
    .drawer-overlay,
    .fab,
    .search-overlay {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .hero {
        background: #1B365D !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   Page Hero Section
   ============================================ */
.page-hero {
    background: var(--gradient-prestige);
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-wide);
}

.page-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-gold-400);
    letter-spacing: var(--letter-spacing-wider);
}

/* ============================================
   Hero Diplomat Section
   ============================================ */
.hero-diplomat {
    background: var(--gradient-prestige);
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
    position: relative;
}

.hero-diplomat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23C9A227' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-title-en {
    font-size: var(--font-size-lg);
    color: var(--color-gold-400);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-wide);
}

.hero-subtitle-en {
    font-size: var(--font-size-xs);
    color: var(--color-navy-300);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
}

/* ============================================
   Profile Frame
   ============================================ */
.profile-frame {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.profile-frame-sm {
    margin-bottom: var(--spacing-md);
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    border: 5px solid var(--color-gold-500);
    object-fit: cover;
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(201, 162, 39, 0.3);
}

.profile-frame-sm .profile-img {
    width: 100px;
    height: 100px;
    border-width: 3px;
}

.profile-placeholder {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    border: 5px solid var(--color-gold-500);
    background: var(--color-navy-600);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-400);
    box-shadow: var(--shadow-2xl);
}

.profile-frame-sm .profile-placeholder {
    width: 100px;
    height: 100px;
    border-width: 3px;
}

.profile-seal {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-navy-900);
}

/* ============================================
   Rank Stars
   ============================================ */
.rank-stars {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.rank-stars .star {
    font-size: var(--font-size-xl);
    color: var(--color-gold-500);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rank-stars-sm .star {
    font-size: var(--font-size-base);
}

/* ============================================
   Card Prestige
   ============================================ */
.card-prestige {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
}

.card-prestige::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Text Body & List Prestige
   ============================================ */
.text-body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-loose);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.text-greeting {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-lg);
}

.list-prestige {
    list-style: none;
    padding: 0;
}

.list-prestige li {
    position: relative;
    padding-left: var(--spacing-lg);
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
}

.list-prestige li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--color-gold-500);
    border-radius: 2px;
    transform: rotate(45deg);
}

.list-goals li {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

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

/* ============================================
   Timeline (Enhanced)
   ============================================ */
.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--spacing-xl) + 4px);
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--color-gold-500);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-md);
}

.timeline-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-xs);
}

.timeline-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   Medal Grid (Enhanced)
   ============================================ */
.medal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 480px) {
    .medal-grid:not(.medal-grid-2) {
        grid-template-columns: repeat(3, 1fr);
    }
    .medal-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.medal-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.medal-item:hover {
    border-color: var(--color-gold-400);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.medal-item-compact {
    padding: var(--spacing-lg);
}

.medal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.medal-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--color-navy-900);
}

.medal-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: var(--color-navy-900);
}

.medal-korea {
    background: linear-gradient(135deg, var(--color-taegeuk-red) 0%, var(--color-taegeuk-blue) 100%);
    color: var(--color-white);
}

.medal-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-xs);
}

.medal-name-en {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--spacing-sm);
}

.medal-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.medal-from {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--spacing-xs);
}

.medal-highlight {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-navy-100) 0%, var(--color-gray-100) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.medal-highlight-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-900);
    box-shadow: var(--shadow-gold);
}

.medal-highlight-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
}

.medal-highlight-text strong {
    color: var(--color-navy-800);
    display: block;
    margin-bottom: var(--spacing-xs);
}

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

/* ============================================
   Flag Banner (Enhanced)
   ============================================ */
.flag-banner {
    display: flex;
    height: 6px;
    margin: 0;
}

.flag-stripe {
    flex: 1;
}

.flag-stripe-red {
    background: var(--color-taegeuk-red);
}

.flag-stripe-white {
    background: var(--color-white);
}

.flag-stripe-blue {
    background: var(--color-taegeuk-blue);
}

/* ============================================
   Section Emblem
   ============================================ */
.section-emblem {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-navy);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-400);
    box-shadow: var(--shadow-navy);
}

.section-emblem-alert {
    background: linear-gradient(135deg, var(--color-taegeuk-red), #FF6B6B);
}

.section-emblem-gold {
    background: var(--gradient-gold);
    color: var(--color-navy-900);
}

.section-date {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-gold-600);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Info Box
   ============================================ */
.info-box {
    background: var(--bg-tertiary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-gold-500);
}

.info-box-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Quote Block (Enhanced)
   ============================================ */
.quote-block {
    position: relative;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-navy-100) 0%, var(--color-gray-100) 100%);
    border-left: 4px solid var(--color-gold-500);
    border-radius: var(--radius-lg);
}

.quote-icon {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    color: var(--color-gold-300);
    opacity: 0.5;
}

.quote-text {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-navy-700);
    line-height: var(--line-height-relaxed);
    margin: 0;
    padding-left: var(--spacing-2xl);
}

.quote-author {
    display: block;
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-2xl);
    font-size: var(--font-size-sm);
    font-style: normal;
    color: var(--text-secondary);
}

.quote-block-sm .quote-text {
    font-size: var(--font-size-base);
    padding-left: 0;
}

.quote-block-sm .quote-author {
    padding-left: 0;
}

/* ============================================
   Signature Block
   ============================================ */
.signature-block {
    text-align: right;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.signature-name {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-xs);
}

.signature-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ============================================
   Vision Grid
   ============================================ */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 480px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

.vision-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.vision-item:hover {
    border-color: var(--color-gold-400);
    box-shadow: var(--shadow-md);
}

.vision-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-navy);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-400);
}

.vision-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-xs);
}

.vision-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ============================================
   Leader Card
   ============================================ */
.leader-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-gold-500);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
    .leader-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.leader-profile {
    position: relative;
    flex-shrink: 0;
}

.leader-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid var(--color-gold-500);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.leader-placeholder {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid var(--color-gold-500);
    background: var(--color-navy-600);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-400);
}

.leader-info {
    flex: 1;
}

.leader-position {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-gold-600);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    background: var(--color-gold-100);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.leader-name {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-xs);
}

.leader-name-en {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.leader-bio {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Department Grid & Cards
   ============================================ */
.dept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dept-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.dept-card:hover {
    border-color: var(--color-navy-300);
    box-shadow: var(--shadow-md);
}

.dept-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.dept-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-navy);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-400);
    flex-shrink: 0;
}

.dept-icon-protect {
    background: linear-gradient(135deg, var(--color-taegeuk-red), #E74C3C);
    color: var(--color-white);
}

.dept-icon-economy {
    background: linear-gradient(135deg, var(--color-gold-600), var(--color-gold-400));
    color: var(--color-navy-900);
}

.dept-icon-culture {
    background: linear-gradient(135deg, var(--color-taegeuk-blue), #3498DB);
    color: var(--color-white);
}

.dept-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin: 0;
}

.dept-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin: 0;
}

.dept-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept-services li {
    position: relative;
    padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.dept-services li:last-child {
    border-bottom: none;
}

.dept-services li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-gold-500);
    font-weight: var(--font-weight-bold);
}

/* ============================================
   Org Chart
   ============================================ */
.org-chart {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.org-leader {
    margin-bottom: var(--spacing-md);
}

.org-box {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy-800);
    min-width: 100px;
}

.org-box-leader {
    background: var(--gradient-navy);
    border-color: var(--color-gold-500);
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.org-box-leader .org-position {
    font-size: var(--font-size-xs);
    color: var(--color-gold-400);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.org-box-leader .org-name {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.org-line {
    width: 2px;
    height: 30px;
    background: var(--border-color);
    margin: 0 auto var(--spacing-md);
}

.org-departments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* ============================================
   News List
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.news-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.news-item:hover {
    border-color: var(--color-navy-300);
    box-shadow: var(--shadow-md);
}

.news-date {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--gradient-navy);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.news-day {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.news-month {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-gold-400);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-top: var(--spacing-xs);
}

.news-year {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-navy-300);
    margin-top: var(--spacing-xs);
}

.news-content {
    flex: 1;
}

.news-title {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy-800);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.news-link {
    color: inherit;
    text-decoration: none;
}

.news-link:hover .news-title {
    color: var(--color-navy-600);
}

.news-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.news-thumbnail {
    margin-bottom: var(--spacing-md);
}

.news-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.news-author {
    font-weight: var(--font-weight-medium);
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-navy-600);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.news-read-more:hover {
    color: var(--color-gold-600);
}

/* ============================================
   Button Prestige
   ============================================ */
.btn-prestige {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    background: var(--gradient-navy);
    color: var(--color-white);
    border: 2px solid var(--color-navy-700);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-prestige:hover {
    background: var(--color-navy-600);
    border-color: var(--color-gold-500);
    box-shadow: var(--shadow-navy);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-prestige-secondary {
    background: transparent;
    color: var(--color-navy-700);
    border-color: var(--color-navy-300);
}

.btn-prestige-secondary:hover {
    background: var(--color-navy-100);
    border-color: var(--color-navy-500);
    color: var(--color-navy-800);
}

/* ============================================
   Contact Grid (Location Page)
   ============================================ */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row-highlight {
    background: var(--color-taegeuk-red);
    background: linear-gradient(135deg, rgba(198, 12, 48, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    margin: 0 calc(-1 * var(--spacing-xl));
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    border-bottom: none;
}

.contact-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 140px;
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-navy-700);
}

.contact-label svg {
    color: var(--color-gold-600);
    flex-shrink: 0;
}

.contact-value {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   FAQ List Enhancements
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-navy-300);
}

.faq-item.active {
    border-color: var(--color-gold-400);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    text-align: left;
    font-weight: var(--font-weight-medium);
    color: var(--color-navy-800);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-icon {
    color: var(--color-gold-500);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
}
