/* ======= 공통 헤더 스타일 ======= */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 헤더 최상단 줄 */
header .top {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 중앙 영역 (예: 로고 자리) */
header .center {
  font-size: 24px;
  font-weight: bold;
  color: #0d6efd;
}

/* 좌측 우측 링크 */
header a{
  margin-left: 16px;
  text-decoration: none;
  color: var(--dark-color);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

header span{
    margin-left: 16px;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

header a:hover {
  color: var(--primary-color);
}

header a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

header a:hover::after {
  width: 100%;
}

header a.active {
  color: var(--primary-color);
}

header a.active::after {
  width: 100%;
  background-color: var(--primary-color);
}