﻿:root {
  --font-family-base: 'Noto Sans KR', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --color-text: #333;
  --color-heading: #003366;
  --color-border: #eee;
  --color-surface: #fff;
  --color-footer-bg: #222;
  --color-footer-border: #333;
  --color-footer-text: #aaa;
  --color-footer-muted: #666;
  --header-height: 80px;
  --content-max-width: 1100px;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  padding-top: var(--header-height);
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background: var(--color-surface);
  padding: 0 50px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo img {
  height: 70px;
  width: auto;
  vertical-align: middle;
}

nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #fff;
  padding: 9px 8px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1f4f84;
  border-radius: 2px;
}

.mobile-menu-toggle span + span {
  margin-top: 6px;
}

nav a.menu-item {
  color: #444;
  margin-left: 40px;
  font-weight: 500;
  font-size: 16px;
  height: var(--header-height);
  line-height: var(--header-height);
  display: inline-block;
  transition: 0.3s;
}

nav a.menu-item:hover,
nav a.menu-item.active {
  color: var(--color-heading);
  font-weight: 700;
}

.dropdown {
  position: relative;
  display: inline-block;
  height: var(--header-height);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-surface);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-heading);
  z-index: 2000;
  border-radius: 0 0 5px 5px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #555;
  padding: 15px 20px;
  display: block;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: var(--color-heading);
  font-weight: 700;
}

.mobile-nav-panel {
  display: none;
}

section {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

h2 {
  color: var(--color-heading);
}

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 50px 20px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--color-footer-border);
}

.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.site-footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.site-footer-copy {
  line-height: 1.8;
}

.site-footer-copyright {
  font-size: 12px;
  color: var(--color-footer-muted);
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav-panel {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #dce6f1;
    box-shadow: 0 12px 24px rgba(12, 35, 61, 0.14);
    z-index: 999;
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-nav-link {
    display: block;
    padding: 14px 20px;
    color: #23486d;
    font-size: 15px;
    font-weight: 600;
    border-top: 1px solid #eef3f8;
  }

  .mobile-nav-link:first-child {
    border-top: 0;
  }

  body.mobile-menu-open .mobile-nav-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
