* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Malgun Gothic', '맑은 고딕', sans-serif; color: #333; background: #f5f5f5; min-height: 100vh; display: flex; flex-direction: column; }
.site-body { flex: 1; }
#footer { position: static; }
a { text-decoration: none; color: inherit; }

/* ───── 상단 바 ───── */
#top-bar {
  background: #111e30;
  height: 32px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 101;
}
#top-bar .top-bar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
#top-bar a, #top-bar span { font-size: 12px; color: #8aa4c0; padding: 0 6px; white-space: nowrap; }
#top-bar a:hover { color: #fff; }
#top-bar .divider { color: #2c4a6e; padding: 0; }
.lang-switch { display: none; }
.lang-switch a { padding: 2px 8px; font-size: 11px; color: #8aa4c0; border-right: 1px solid #2c4a6e; }
.lang-switch a:last-child { border-right: none; }
.lang-switch a:hover { background: #2c4a6e; color: #fff; }
.lang-switch a.active { background: #2c4a6e; color: #fff; font-weight: bold; }

/* ───── 헤더 ───── */
#header {
  background: #1a2e4a;
  color: #fff;
  position: sticky;
  top: 32px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  height: 70px;
}
.header-inner nav { justify-self: center; }
.header-inner .header-util { justify-self: end; }
.logo { font-size: 24px; font-weight: bold; letter-spacing: 2px; color: #fff; }
.logo span { color: #4db8ff; }

nav ul { display: flex; list-style: none; gap: 8px; }
nav ul li { position: relative; }
nav ul li > a { display: block; padding: 10px 16px; font-size: 14px; color: #cdd8e8; border-radius: 4px; transition: background 0.2s, color 0.2s; }
nav ul li > a:hover, nav ul li > a.active { background: #2c4a6e; color: #fff; }
nav ul li:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 150px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
}
.dropdown li a { display: block; padding: 10px 16px; font-size: 13px; color: #333; border-bottom: 1px solid #f0f0f0; }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #f0f6ff; color: #1a2e4a; }
.header-util { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.header-util a { font-size: 13px; color: #cdd8e8; padding: 6px 8px; border-radius: 4px; transition: background 0.2s; white-space: nowrap; }
.header-util a:hover { background: #2c4a6e; }

/* ───── 푸터 ───── */
#footer {
  background: #1a2e4a;
  color: #8aa4c0;
  padding: 40px 20px;
  font-size: 13px;
  line-height: 1.8;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; }
.footer-logo { font-size: 20px; font-weight: bold; color: #fff; margin-bottom: 12px; }
.footer-info { flex: 1; min-width: 280px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-links ul { list-style: none; }
.footer-links ul li a { color: #8aa4c0; font-size: 13px; }
.footer-links ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid #2c4a6e;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #6a8aaa;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #6a8aaa; }
.footer-bottom-links a:hover { color: #fff; }

@media (max-width: 600px) { nav { display: none; } }
