@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/pretendard-semibold.woff2") format("woff2");
}

/* Shared header metrics matched to the Geosang Marketing Center. */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e8edf4;
  box-shadow: 0 2px 16px rgba(15, 23, 42, .04);
}
.nav-wrap .nav-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1340px;
  height: 88px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}
.nav-wrap .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  margin-right: 0 !important;
  color: #0b1b3f;
  white-space: nowrap;
}
.nav-wrap .nav-logo > img { width: 42px; height: 42px; object-fit: contain; }
.nav-wrap .nav-logo > span {
  color: #0b1b3f !important;
  font-family: "Noto Sans KR", Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}
.nav-wrap .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  justify-self: center;
}
.nav-wrap .nav-link {
  padding: 7px 6px !important;
  border-radius: 7px;
  color: #334155;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 25.2px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  white-space: nowrap;
}
.nav-wrap .nav-link:hover,
.nav-wrap .nav-link[aria-current="page"] { color: #2563eb; background: #eff6ff; }
.nav-wrap .nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-left: 0 !important;
}
.nav-wrap .btn-nav-main,
.nav-wrap .btn-nav-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-wrap .btn-nav-main {
  padding: 9px 12px !important;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 18px !important;
  font-weight: 700;
}
.nav-wrap .btn-nav-main:hover { background: #1d4ed8; }
.nav-wrap .btn-nav-sub {
  padding: 8px 11px !important;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  color: #374151;
  font-size: 17px !important;
}
.nav-wrap .btn-nav-sub:hover { border-color: #2563eb; color: #2563eb; }

/* Header links must not inherit document-level underline styles. */
.nav-wrap .nav-logo,
.nav-wrap .nav-logo:link,
.nav-wrap .nav-logo:visited,
.nav-wrap .nav-logo:hover,
.nav-wrap .nav-logo:active,
.nav-wrap .nav-link,
.nav-wrap .nav-link:link,
.nav-wrap .nav-link:visited,
.nav-wrap .nav-link:hover,
.nav-wrap .nav-link:active,
.nav-wrap .btn-nav-sub,
.nav-wrap .btn-nav-sub:link,
.nav-wrap .btn-nav-sub:visited,
.nav-wrap .btn-nav-sub:hover,
.nav-wrap .btn-nav-sub:active,
.nav-wrap .mobile-nav a,
.nav-wrap .mobile-nav a:link,
.nav-wrap .mobile-nav a:visited,
.nav-wrap .mobile-nav a:hover,
.nav-wrap .mobile-nav a:active {
  text-decoration: none !important;
}
.nav-wrap a:focus-visible,
.nav-wrap button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 3px;
}
.nav-wrap .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}
.nav-wrap .hamburger span { display: block; width: 23px; height: 2px; margin: 0; background: #1e293b; border-radius: 2px; }
.nav-wrap .mobile-nav[hidden] { display: none !important; }
.blog-page .mobile-nav:not([hidden]) { display: flex; }
.nav-wrap .mobile-nav {
  flex-direction: column;
  position: fixed;
  inset: 88px 0 0;
  background: #fff;
  border-top: 1px solid #e8edf4;
  padding: 16px 20px 32px;
  gap: 2px;
  z-index: 999;
  overflow-y: auto;
}
.nav-wrap .mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 21.6px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
}
.nav-wrap .mobile-nav .mob-cta {
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.nav-wrap .mobile-nav .mob-login {
  margin-top: 8px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  text-align: center;
}
.nav-wrap .mobile-nav a[aria-current="page"] { color: #2563eb; background: #eff6ff; border-radius: 8px; }

/* DC runtime renders its mobile menu immediately after the fixed nav. */
.nav-wrap + .mobile-nav,
.nav:not(.nav-wrap) + .mobile-nav {
  top: 88px !important;
}
.nav-wrap + .mobile-nav a,
.nav:not(.nav-wrap) + .mobile-nav a {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 21.6px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
}
.nav-wrap + .mobile-nav a:focus-visible,
.nav:not(.nav-wrap) + .mobile-nav a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 3px;
}

/* The standalone AI Homepage course uses legacy class names; keep its header aligned too. */
.nav:not(.nav-wrap) .nav-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  height: 88px !important;
}
.nav:not(.nav-wrap) .brand { justify-self: start; }
.nav:not(.nav-wrap) .nav-links { margin-left: 0 !important; justify-self: center; gap: 24px !important; }
.nav:not(.nav-wrap) .nav-actions { display: flex; align-items: center; justify-self: end; }
.nav:not(.nav-wrap) .brand strong { font-size: 26px !important; font-weight: 800 !important; }
.nav:not(.nav-wrap) .nav-links a {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 25.2px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
}
.nav:not(.nav-wrap) .nav-links a.btn { font-size: 18px !important; font-weight: 700 !important; }
.nav:not(.nav-wrap) .nav-links a.btn-login { font-size: 17px !important; }
.nav:not(.nav-wrap) .mobile-nav { top: 88px !important; }
.nav:not(.nav-wrap) .mobile-nav a {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 21.6px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
}
.nav:not(.nav-wrap) a,
.nav:not(.nav-wrap) a:link,
.nav:not(.nav-wrap) a:visited,
.nav:not(.nav-wrap) a:hover,
.nav:not(.nav-wrap) a:active { text-decoration: none !important; }
.nav:not(.nav-wrap) a:focus-visible,
.nav:not(.nav-wrap) button:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; }

/* Match the reference site's compact desktop range without changing page typography. */
@media (min-width: 921px) and (max-width: 1500px) {
  .nav-wrap .nav-inner,
  .nav:not(.nav-wrap) .nav-inner { column-gap: 12px; }
  .nav-wrap .nav-links,
  .nav:not(.nav-wrap) .nav-links { gap: 13px !important; }
  .nav-wrap .nav-link,
  .nav:not(.nav-wrap) .nav-links a { font-size: 14.4px !important; }
  .nav:not(.nav-wrap) .nav-links,
  .nav:not(.nav-wrap) .nav-actions { display: flex !important; }
  .nav:not(.nav-wrap) .nav-toggle { display: none !important; }
}

/* The reference site switches to its mobile header at 920px. */
@media (max-width: 920px) {
  .nav-wrap .nav-inner { display: flex; }
  .nav-wrap .nav-links,
  .nav-wrap .nav-cta-group { display: none !important; }
  .nav-wrap .hamburger { display: flex !important; }
  .nav-toggle { display: block !important; }
  .nav:not(.nav-wrap) .nav-inner { display: flex !important; }
  .nav:not(.nav-wrap) .nav-links,
  .nav:not(.nav-wrap) .nav-actions { display: none !important; }
  .nav:not(.nav-wrap) .nav-toggle { display: block !important; }
}

@media (max-width: 600px) {
  .nav-wrap .nav-inner { width: 100%; max-width: 1340px; height: 88px; padding-inline: 16px; display: flex; }
  .nav-wrap .nav-logo { margin-right: 0 !important; }
  .nav-wrap .nav-logo > img { width: 38px; height: 38px; }
  .nav-wrap .nav-logo > span { font-size: 20px !important; }
  .nav-wrap .mobile-nav { top: 88px; }
  #gs-nav + .mobile-nav + div { height: 88px !important; }
  .nav:not(.nav-wrap) .nav-inner { width: 100%; max-width: 1340px; height: 88px !important; padding-inline: 16px; }
  .nav:not(.nav-wrap) .brand strong { font-size: 20px !important; }
}

/* DC pages use a dedicated spacer immediately after the fixed navigation. */
#gs-nav + .mobile-nav + div { height: 88px !important; }
