/* 메인과 모든 과정 페이지가 함께 사용하는 헤더 스타일. */
@font-face {
  font-family: TechupHeader;
  src: url('../../assets/techup-sans-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: TechupHeader;
  src: url('../../assets/techup-sans-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.site-header {
  position: relative;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1008px, calc(100% - 48px));
  height: 78px;
  margin-inline: auto;
  padding: 0;
  background: #000;
  color: #ebebf0;
  font: 400 16px/1.6 TechupHeader, Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
}
.site-header, .site-header * { box-sizing: border-box; }
.site-header * { font-family: inherit; color: inherit; }
.site-header a { color: inherit; font-weight: inherit; text-decoration: none; cursor: pointer; }
.site-header a:hover { color: inherit; text-decoration: none; }
.site-header a:focus-visible, .site-header button:focus-visible {
  outline: 2px solid #80bfff;
  outline-offset: 5px;
}
.site-header .brand { display: block; flex-shrink: 0; width: 112px; }
.site-header .brand img { display: block; width: 112px; max-width: 100%; height: 44px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 14px; color: #c8c9cc; }
.site-header .menu-root { position: relative; }
.site-header .nav-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #c8c9cc;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.site-header .chevron { flex-shrink: 0; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.site-header .nav-trigger[aria-expanded="true"] .chevron { transform: rotate(225deg); margin-top: 3px; }
.site-header .header-menu-toggle { display: none; }
.site-header .header-recruitment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 39px;
  height: 19px;
  padding: 0 5px;
  border-radius: 4px;
  background: #ff3333;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.site-header .header-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  min-width: 96px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ff3333;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.site-header .header-apply:hover { background: #e9292f; color: #fff; cursor: pointer; }
.site-header .nav-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 60;
  width: max-content;
  min-width: 260px;
  max-width: calc(100vw - 40px);
  padding: 10px 8px;
  border: 1px solid #2a2a2e;
  border-radius: 16px;
  background: #161618;
  color: #c8c9cc;
  box-shadow: 0 10px 30px #0005;
}
.site-header [hidden] { display: none !important; }
.site-header .nav-popup a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 22px; white-space: nowrap; }
.site-header .nav-popup .nav-course-label { min-width: 0; }
.site-header .nav-popup a .header-recruitment { background: #000; }
.site-header .nav-popup a:is(
  [href="fullstack.html"],
  [href="frontend.html"],
  [href="backend.html"],
  [href="product-design.html"],
  [href="product-management.html"]
) .header-recruitment { background: #ff3333; }
.site-header .nav-popup a:hover, .site-header .nav-popup a:focus { background: #25282d; }
@media (max-width: 900px) {
  .site-header { gap: 12px; }
  .site-header .header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    width: 40px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }
  .site-header .header-menu-toggle > span { display: none; }
  .site-header nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #34383d;
    border-radius: 12px;
    background: #16191e;
    box-shadow: 0 10px 30px #0008;
  }
  .site-header[data-menu-open="true"] nav { display: flex; }
  .site-header .nav-trigger { justify-content: flex-start; gap: 8px; width: 100%; padding: 12px; font-size: 16px; }
  .site-header .nav-trigger .header-recruitment { margin-left: auto; }
  .site-header .nav-popup { position: static; width: 100%; min-width: 0; max-width: none; transform: none; padding: 0 0 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .site-header .nav-popup a { white-space: normal; word-break: keep-all; }
}
@media (max-width: 700px) {
  .site-header { width: calc(100% - 40px); gap: 8px; }
  .site-header .brand, .site-header .brand img { width: 96px; }
}

/* Infrastructure navigation is currently inactive. */
.site-header .nav-trigger:disabled,
.site-header a[aria-disabled="true"]:not(.header-apply) { cursor: default; }
.site-header .nav-trigger:disabled { opacity: 1; }

/* Apply button hover lift. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-header .header-apply {
    transition: translate 180ms ease-out, background-color 180ms ease-out;
  }
  .site-header .header-apply:hover {
    translate: 0 -3px;
  }
}
