/* ===== CSS Variables (Design System) ===== */
:root {
  --font-sans: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 15%);
  --primary: hsl(213, 70%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 15%, 95%);
  --secondary-foreground: hsl(215, 25%, 15%);
  --muted: hsl(210, 15%, 95%);
  --muted-foreground: hsl(215, 10%, 45%);
  --accent: hsl(145, 55%, 38%);
  --accent-foreground: hsl(0, 0%, 100%);
  --warning: hsl(25, 85%, 55%);
  --warning-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(210, 15%, 88%);
  --input: hsl(210, 15%, 88%);
  --ring: hsl(213, 70%, 40%);
  --radius: 0.625rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* ===== Utility ===== */
.desktop-only { display: none !important; }
.mobile-only { display: flex !important; }
.hide-mobile { display: none; }
@media (min-width: 768px) {
  .desktop-only { display: flex !important; }
  .mobile-only { display: none !important; }
  .hide-mobile { display: inline; }
}

/* ===== Animations ===== */
.anim-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.anim-target.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
}
.logo-btn {
  display: flex; align-items: center;
  transition: opacity 0.2s;
  position: relative;
}
.logo-btn:hover { opacity: 0.8; }

/* Header logo images */
.header-logo {
  height: 32px; width: auto;
  transition: opacity 0.3s ease;
}
.header-logo-white {
  opacity: 1;
  position: relative;
}
.header-logo-dark {
  opacity: 0;
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
}

/* On scroll: hide white logo, show dark logo */
.site-header.scrolled .header-logo-white {
  opacity: 0;
}
.site-header.scrolled .header-logo-dark {
  opacity: 1;
}

/* Footer logo image */
.footer-logo-img {
  height: 28px; width: auto;
}

.desktop-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .desktop-nav { display: flex; } }

.nav-link {
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}
.nav-link:hover { color: #fff; }
.site-header.scrolled .nav-link { color: var(--muted-foreground); }
.site-header.scrolled .nav-link:hover { background: var(--secondary); color: var(--foreground); }

.nav-cta {
  margin-left: 0.75rem; padding: 0.375rem 1rem;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: hsl(213, 70%, 35%); }

.mobile-toggle {
  padding: 0.5rem; border-radius: 0.375rem;
  color: var(--primary-foreground);
  transition: color 0.3s;
}
.site-header.scrolled .mobile-toggle { color: var(--foreground); }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-nav {
  display: none; overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.mobile-nav.open { display: block; }
.mobile-nav-link {
  display: block; width: 100%; text-align: left;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: var(--foreground); border-radius: 0.375rem;
  transition: background 0.2s;
}
.mobile-nav-link:hover { background: var(--secondary); }
.mobile-nav-cta {
  display: block; width: calc(100% - 2rem); margin: 0.5rem 1rem 1rem;
  padding: 0.625rem; text-align: center;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
}

/* ===== HERO ===== */
.hero-section {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: hsl(215, 25%, 12%);
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: hsla(215, 25%, 12%, 0.6);
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 64rem; margin: 0 auto;
  padding: 5rem 1rem 3rem; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.hero-badge svg { color: var(--primary-foreground); flex-shrink: 0; }
.hero-badge span { font-size: 0.875rem; font-weight: 500; color: var(--primary-foreground); }

.hero-title {
  font-size: 1.875rem; font-weight: 700;
  line-height: 1.2; color: var(--primary-foreground);
  margin-bottom: 1.5rem; text-wrap: balance;
}
.hero-highlight { color: hsl(145, 55%, 50%); }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-desc {
  max-width: 42rem; margin: 0 auto 2.5rem;
  font-size: 1rem; line-height: 1.75;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) { .hero-desc { font-size: 1.125rem; } }

.hero-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 48rem; margin: 4rem auto 0;
}
.stat-value {
  font-size: 1.5rem; font-weight: 700; color: var(--primary-foreground);
}
.stat-unit { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.5); margin-left: 0.125rem; }
.stat-label { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
@media (min-width: 768px) {
  .stat-value { font-size: 2.25rem; }
  .stat-unit { font-size: 1.125rem; }
  .stat-label { font-size: 0.875rem; }
}

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
}
.scroll-indicator button {
  color: rgba(255,255,255,0.3);
  animation: bounce-y 2s infinite;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; border-radius: var(--radius); transition: all 0.2s;
  padding: 0.625rem 1.5rem; font-size: 0.875rem;
  white-space: nowrap;
}
.btn-hero-primary {
  background: hsl(145, 55%, 38%); color: #fff;
  padding: 0.75rem 2rem; font-size: 1rem;
}
.btn-hero-primary:hover { background: hsl(145, 55%, 32%); }
.btn-hero-outline {
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--primary-foreground);
  padding: 0.75rem 2rem; font-size: 1rem;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.08); }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: hsl(213, 70%, 35%); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { background: hsl(145, 55%, 32%); }
.btn-warning { background: var(--warning); color: var(--warning-foreground); }
.btn-warning:hover { background: hsl(25, 85%, 48%); }
.btn-outline { border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.btn-outline:hover { background: var(--secondary); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== SECTIONS ===== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--primary); margin-bottom: 0.5rem;
}
.section-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--foreground); margin-bottom: 1rem;
  text-wrap: balance;
}
@media (min-width: 768px) { .section-title { font-size: 1.875rem; } }
.section-desc {
  max-width: 56rem; margin: 0 auto;
  color: var(--muted-foreground); line-height: 1.75;
}

/* ===== OVERVIEW ===== */
.overview-section { background: var(--background); padding: 5rem 0; }
.overview-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .overview-grid { grid-template-columns: repeat(3, 1fr); } }

.overview-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 2rem;
  transition: box-shadow 0.3s;
}
.overview-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); }
.overview-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}
.icon-primary { background: hsl(213, 70%, 40%, 0.1); color: var(--primary); }
.icon-accent { background: hsl(145, 55%, 38%, 0.1); color: var(--accent); }
.icon-warning { background: hsl(25, 85%, 55%, 0.1); color: var(--warning); }
.overview-card-title { font-size: 1.125rem; font-weight: 700; color: var(--card-foreground); margin-bottom: 0.5rem; }
.overview-card-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ===== PROGRAMS ===== */
.programs-section { background: var(--secondary); padding: 5rem 0; }
.programs-list { display: flex; flex-direction: column; gap: 1.5rem; }

.program-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.program-header {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem; cursor: pointer;
  transition: background 0.2s;
}
.program-header:hover { background: hsl(210, 15%, 95%, 0.5); }
@media (min-width: 768px) {
  .program-header { align-items: center; gap: 1.5rem; }
}

.program-icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.5rem; flex-shrink: 0;
}
.icon-primary-bg { background: hsl(213, 70%, 40%, 0.1); color: var(--primary); }
.icon-accent-bg { background: hsl(145, 55%, 38%, 0.1); color: var(--accent); }
.icon-warning-bg { background: hsl(25, 85%, 55%, 0.1); color: var(--warning); }

.program-info { flex: 1; min-width: 0; }
.program-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.program-title { font-size: 1.125rem; font-weight: 700; color: var(--card-foreground); }
.program-subtitle { font-size: 0.875rem; color: var(--muted-foreground); }

.program-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.chevron-icon {
  color: var(--muted-foreground);
  transition: transform 0.2s;
}
.program-card.open .chevron-icon { transform: rotate(90deg); }

.program-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.program-card.open .program-body { max-height: 2000px; }

.program-body > * {
  padding-left: 1.5rem; padding-right: 1.5rem;
}
.program-body > *:last-child { padding-bottom: 1.5rem; }
.program-desc {
  font-size: 0.875rem; line-height: 1.75;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem; margin-bottom: 1.5rem;
}
.program-phases { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.phase-title { font-size: 0.875rem; font-weight: 700; color: var(--card-foreground); margin-bottom: 0.5rem; }
.phase-items { display: flex; flex-direction: column; gap: 0.375rem; }
.phase-items li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.check-icon { flex-shrink: 0; margin-top: 0.125rem; color: var(--accent); }

.kpi-box {
  background: var(--secondary); border-radius: 0.5rem;
  padding: 1rem; margin-bottom: 1.5rem;
}
.kpi-title {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-foreground); margin-bottom: 0.75rem;
}
.kpi-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}
.kpi-item span { font-size: 0.875rem; color: var(--card-foreground); }
.kpi-item strong { font-size: 0.875rem; font-weight: 700; color: var(--primary); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500;
  border: 1px solid;
}
.badge-primary { background: hsl(213,70%,40%,0.1); color: var(--primary); border-color: hsl(213,70%,40%,0.2); }
.badge-accent { background: hsl(145,55%,38%,0.1); color: var(--accent); border-color: hsl(145,55%,38%,0.2); }
.badge-warning { background: hsl(25,85%,55%,0.1); color: var(--warning); border-color: hsl(25,85%,55%,0.2); }
.badge-primary-sm, .badge-accent-sm, .badge-warning-sm, .badge-destructive-sm {
  display: inline-flex; align-items: center;
  padding: 0.0625rem 0.375rem; border-radius: 9999px;
  font-size: 0.625rem; font-weight: 500; border: 1px solid;
}
.badge-primary-sm { background: hsl(213,70%,40%,0.1); color: var(--primary); border-color: hsl(213,70%,40%,0.2); }
.badge-accent-sm { background: hsl(145,55%,38%,0.1); color: var(--accent); border-color: hsl(145,55%,38%,0.2); }
.badge-warning-sm { background: hsl(25,85%,55%,0.1); color: var(--warning); border-color: hsl(25,85%,55%,0.2); }
.badge-destructive-sm { background: hsl(0,84%,60%,0.1); color: var(--destructive); border-color: hsl(0,84%,60%,0.2); }

/* ===== TIMELINE / ROADMAP ===== */
.timeline-section { background: var(--secondary); padding: 5rem 0; }

/* Timeline Tabs */
.tl-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.tl-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: all 0.2s; cursor: pointer;
}
.tl-tab:hover { border-color: var(--primary); color: var(--foreground); }
.tl-tab.active {
  background: var(--primary); color: var(--primary-foreground);
  border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tl-tab.active .tl-tab-badge { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.3); }
.tl-tab-badge {
  display: inline-flex; padding: 0.0625rem 0.375rem; border-radius: 9999px;
  font-size: 0.625rem; font-weight: 700; border: 1px solid;
}
.tl-tab-text { white-space: nowrap; }

@media (max-width: 640px) {
  .tl-tabs { gap: 0.375rem; }
  .tl-tab { padding: 0.5rem 0.75rem; font-size: 0.75rem; flex: 1; justify-content: center; }
  .tl-tab-text { font-size: 0.7rem; }
}

/* Timeline Content */
.tl-content { display: none; }
.tl-content.active { display: block; }

/* ===== Step Flow (Compact Chip Design) ===== */
.step-flow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.375rem;
  padding: 2rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.step-chip {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: 100px; padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.step-chip:hover {
  border-color: var(--sc, var(--primary));
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.chip-num {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--sc, var(--primary)); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  margin-bottom: 0.5rem;
}
.chip-title {
  font-size: 0.75rem; font-weight: 700; line-height: 1.3;
  color: var(--card-foreground);
  margin-bottom: 0.375rem;
  min-height: 2rem; display: flex; align-items: center;
}
.chip-period {
  font-size: 0.625rem; font-weight: 600;
  color: var(--sc, var(--primary));
  background: color-mix(in srgb, var(--sc, var(--primary)) 8%, transparent);
  padding: 0.125rem 0.5rem; border-radius: 9999px;
}
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); flex-shrink: 0;
}

@media (max-width: 640px) {
  .step-flow { gap: 0.25rem; padding: 1.25rem 0.75rem; }
  .step-chip { width: 72px; padding: 0.625rem 0.25rem; }
  .chip-num { width: 1.5rem; height: 1.5rem; font-size: 0.625rem; margin-bottom: 0.375rem; }
  .chip-title { font-size: 0.5625rem; min-height: 1.5rem; }
  .chip-period { font-size: 0.5rem; padding: 0.0625rem 0.375rem; }
  .step-arrow svg { width: 10px; height: 10px; }
}

/* Effect Grid */
.effect-grid {
  margin-top: 1.5rem; padding: 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem;
}
.effect-heading {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem; font-weight: 700;
  color: var(--card-foreground); margin-bottom: 1.25rem;
}
.effect-heading svg { color: var(--accent); }
.effect-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media (min-width: 768px) { .effect-cards { grid-template-columns: repeat(4, 1fr); } }
.effect-cards.kpi-four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .effect-cards.kpi-four { grid-template-columns: repeat(4, 1fr); } }

.effect-card {
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: 0.5rem; padding: 1rem;
  text-align: center;
}
.effect-card h5 {
  font-size: 0.8125rem; font-weight: 700;
  color: var(--card-foreground); margin-bottom: 0.25rem;
}
.effect-card p {
  font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.5;
}

/* KPI Card */
.kpi-card .kpi-number {
  display: block; font-size: 1.5rem; font-weight: 900;
  color: var(--accent); margin-bottom: 0.25rem;
}
.kpi-card .kpi-number small {
  font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground);
}

/* VR Content Grid */
.vr-content-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.vr-tag {
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  background: hsl(25, 85%, 55%, 0.08); border: 1px solid hsl(25, 85%, 55%, 0.2);
  font-size: 0.75rem; font-weight: 500; color: var(--warning);
}

/* ===== NOTICE / RESOURCES ===== */
.notice-section { background: var(--background); padding: 5rem 0; }

.tabs { width: 100%; }
.tab-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: 24rem; margin: 0 auto 2rem;
  background: var(--muted); border-radius: var(--radius);
  padding: 0.25rem;
}
.tab-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--card); color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.table-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.table-header {
  display: grid !important; gap: 1rem; padding: 0.75rem 1.5rem;
  align-items: center;
  background: hsl(210, 15%, 95%, 0.5);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--muted-foreground);
  grid-template-columns: 3rem 1fr 5rem 7rem;
}
#tab-resources .table-header { grid-template-columns: 3rem 1fr 3.5rem 4rem 7rem; }

/* Column alignment — shared by header & data rows */
.col-num { text-align: center; }
.col-date { text-align: center; }
.col-cat, .col-type { text-align: center; }
.col-size { text-align: center; }

.table-body { }
.table-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: hsl(210, 15%, 95%, 0.3); }
.table-row.pinned { background: hsl(213, 70%, 40%, 0.02); }

/* Desktop: grid rows must match header columns exactly */
@media (min-width: 768px) {
  .table-row {
    display: grid; gap: 1rem; align-items: center;
    grid-template-columns: 3rem 1fr 5rem 7rem;
  }
  #tab-resources .table-row {
    grid-template-columns: 3rem 1fr 3.5rem 4rem 7rem;
  }
  /* Override desktop-only display:flex for grid children */
  .table-row > .desktop-only {
    display: block !important;
  }
  .col-num { font-size: 0.875rem; color: var(--muted-foreground); }
}

.row-title-wrap { display: flex; align-items: center; gap: 0.5rem; }
.row-title {
  font-size: 0.875rem; line-height: 1.6;
  color: var(--card-foreground);
  transition: color 0.15s;
}
.table-row:hover .row-title { color: var(--primary); }
.pinned-title { font-weight: 600; }
.row-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.meta-date { font-size: 0.75rem; color: var(--muted-foreground); }
.pin-icon { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.file-icon { color: var(--muted-foreground); flex-shrink: 0; }
.col-size { font-size: 0.875rem; color: var(--muted-foreground); }

.table-pagination {
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
}
.page-btn {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: all 0.15s;
}
.page-btn:hover { background: var(--secondary); }
.page-btn.active {
  background: var(--primary); color: var(--primary-foreground);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--foreground);
  border-top: 1px solid var(--border);
  color: var(--primary-foreground);
}
.site-footer .container { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-logo {
  display: flex; align-items: center;
  margin-bottom: 1rem;
}
.footer-logo .footer-logo-img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.5); }

.footer-heading { font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; }
.footer-list { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
}
.footer-list a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-list a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal-content {
  background: var(--card); border-radius: 0.75rem;
  width: 100%; max-width: 32rem; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.modal-header { padding: 1.5rem 1.5rem 0; }
.modal-title { font-size: 1.125rem; font-weight: 700; color: var(--foreground); }
.modal-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.modal-body { padding: 1rem 1.5rem; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.5rem; }
.required { color: var(--destructive); }
.form-input, .form-select {
  width: 100%; padding: 0.625rem 0.75rem;
  background: var(--card); border: 1px solid var(--input);
  border-radius: var(--radius); font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(213, 70%, 40%, 0.15);
}
.form-input::placeholder { color: var(--muted-foreground); }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-row .form-group { margin-bottom: 0; }

.file-upload {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 1.5rem 1rem; cursor: pointer;
  border: 2px dashed var(--border); border-radius: 0.5rem;
  background: var(--card); font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: border-color 0.2s, background 0.2s;
}
.file-upload:hover { border-color: hsl(213, 70%, 40%, 0.4); background: var(--secondary); }
.file-preview {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; background: var(--secondary);
  border: 1px solid var(--border); border-radius: 0.5rem;
}
.file-preview svg { color: var(--primary); flex-shrink: 0; }
.file-preview span { flex: 1; font-size: 0.875rem; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove {
  width: 1.5rem; height: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.125rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
}
.file-remove:hover { background: var(--muted); color: var(--foreground); }
.form-hint { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.form-info-box {
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: 0.5rem; padding: 1rem;
  font-size: 0.875rem; line-height: 1.75;
  color: var(--muted-foreground);
}
.form-info-sub { font-size: 0.75rem; margin-top: 0.25rem; }

.success-content {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 3rem 1.5rem; text-align: center;
}
.success-icon {
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: hsl(145, 55%, 38%, 0.1);
}
.success-icon svg { color: var(--accent); }
.success-title { font-size: 1.125rem; font-weight: 700; color: var(--foreground); }
.success-desc { font-size: 0.875rem; color: var(--muted-foreground); }

/* ===== NOTICE DETAIL MODAL ===== */
.notice-detail-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.notice-detail-meta {
  display: flex; align-items: center; gap: 0.75rem;
}
.nd-date {
  font-size: 0.8125rem; color: var(--muted-foreground);
}
.nd-close {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--radius);
  color: var(--muted-foreground); transition: all 0.15s;
}
.nd-close:hover { background: var(--secondary); color: var(--foreground); }

.notice-detail-body {
  padding: 1.5rem;
}
.nd-title {
  font-size: 1.125rem; font-weight: 700; color: var(--foreground);
  line-height: 1.5; margin-bottom: 1.25rem;
}
.nd-content {
  font-size: 0.9375rem; color: var(--foreground);
  line-height: 1.85; white-space: pre-wrap;
  word-break: break-word;
  min-height: 3rem;
}
.nd-content:empty::before {
  content: '내용이 없습니다.';
  color: var(--muted-foreground);
  font-style: italic;
}
.nd-attachment {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.nd-attachment a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  color: var(--primary); transition: all 0.2s;
}
.nd-attachment a:hover {
  background: hsl(213, 70%, 40%, 0.08);
  border-color: hsl(213, 70%, 40%, 0.3);
}
