* { 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; }

/* ───── 모바일 햄버거 메뉴 ───── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #cdd8e8;
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 102px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a2e4a;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 999;
    padding: 12px 0 40px;
  }
  nav.mobile-open { display: block; }
  nav::-webkit-scrollbar { display: none; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li > a { padding: 14px 24px; font-size: 15px; border-radius: 0; border-bottom: 1px solid #2c4a6e; }
  nav ul li > a:hover, nav ul li > a.active { background: #2c4a6e; }
  .dropdown {
    display: block !important;
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    background: #0f1e30;
    padding: 0;
    min-width: unset;
  }
  .dropdown li a { padding: 11px 36px; font-size: 13px; color: #9ab0cc; border-bottom: 1px solid #1a2e4a; }
  .dropdown li:last-child a { border-bottom: none; }
  .dropdown li a:hover { background: #2c4a6e; color: #fff; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner nav { justify-self: unset; }
  .header-inner .header-util { display: none; }
}
