:root {
  --orange: #FF7A00;  
  --orange-dark: #E66700;
}

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

/* ---------- Header ---------- */
  header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 48px; background: var(--orange); color: #fff;
  }

/* 로고 + 인사말 */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#welcomeMsg {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

  .logo-box {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Nunito'; font-size: 26px; font-weight: 800;
  }

  .logo-box img {
    width: 42px; height: 42px; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
  }

/* 네비게이션 */
  nav {
    display: flex; align-items: center; gap: 24px; position: relative;
  }
  nav a {
    font-weight: 600; position: relative; transition: .2s;
  }

  nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    height: 2px; width: 0; background: #fff; transition: .2s;
  }
  nav a:hover::after { width: 100% }


/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333 !important;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f7f7f7;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  header {
    padding: 18px 28px;
  }

  nav a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 24px;
  }

  .logo-box {
    font-size: 22px;
  }

  .logo-box img {
    width: 34px;
    height: 34px;
  }

  nav a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
header {
  padding: 10px 12px;
  flex-wrap: nowrap;
  align-items: center;
}

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #welcomeMsg {
    font-size: 13px;
    margin-top: 4px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  nav a {
    margin-left: 8px;
    font-size: 11.5px;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }


.logo-box {
  font-size: 18px;
  gap: 6px;
  white-space: nowrap; /* ✅ 줄바꿈 방지 */
  flex-shrink: 0; /* ✅ 너무 좁아져도 글씨 안 깨지게 */
}

.logo-box img {
  width: 26px;
  height: 26px;
}
}


