@charset "UTF-8";
/* =========================================================================
   2026 부울경 웰컴청년 일자리박람회 — 디자인 시스템 (프로토타입)
   순수 HTML/CSS/JS. 추후 PHP include 이식 용이 구조.
   ========================================================================= */

/* ------------------------- 1. 디자인 토큰 ------------------------- */
:root {
  /* Brand */
  --brand:        #1D4ED8;   /* 신뢰의 블루 */
  --brand-dark:   #14329B;
  --brand-600:    #2563EB;
  --brand-light:  #E9F0FF;
  --brand-tint:   #F4F8FF;

  /* Accent — JOB "GO!" 에너지 */
  --accent:       #FF5B2E;
  --accent-dark:  #E8410F;
  --accent-2:     #12B886;   /* 원주 자연 / 신선함 */
  --accent-2-dark:#0CA678;

  /* Neutral */
  --ink:          #16192A;
  --gray-900:     #1F2430;
  --gray-700:     #454C5C;
  --gray-500:     #6B7385;
  --gray-400:     #99A0B0;
  --gray-300:     #C9CFDC;
  --gray-200:     #E4E8F0;
  --gray-100:     #F1F4F9;
  --gray-50:      #F7F9FC;
  --white:        #FFFFFF;

  /* Semantic */
  --line:         var(--gray-200);
  --bg:           var(--white);
  --bg-soft:      var(--gray-50);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 3px rgba(22,25,42,.06), 0 1px 2px rgba(22,25,42,.04);
  --sh-md: 0 6px 20px rgba(22,25,42,.08);
  --sh-lg: 0 18px 48px rgba(22,25,42,.12);
  --sh-brand: 0 10px 30px rgba(29,78,216,.28);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------- 2. 리셋 ------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
               "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
:focus-visible { outline: 3px solid rgba(29,78,216,.45); outline-offset: 2px; border-radius: 4px; }

/* ------------------------- 3. 레이아웃 유틸 ------------------------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--brand-tint); }
.center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.hidden { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand); text-transform: uppercase;
  background: var(--brand-light); padding: 6px 14px; border-radius: var(--r-pill);
}
.section-head { margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-title .hl { color: var(--brand); }
.section-desc { margin-top: 12px; color: var(--gray-500); font-size: 17px; max-width: 640px; }
.section-head.center .section-desc { margin-inline: auto; }

/* ------------------------- 4. 버튼 ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(255,91,46,.32); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-light); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.28); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { height: 58px; padding: 0 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ==========================================================================
   5. 헤더 / 내비게이션
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--sh-md); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* Logo */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; transition: opacity .15s; }
a.brand:hover { opacity: .82; }
.brand-year {
  flex-shrink: 0; line-height: 1; padding: 6px 11px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: #fff;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-dark) 100%);
  box-shadow: 0 4px 14px rgba(29,78,216,.25);
}
.brand-logo {
  line-height: 1; white-space: nowrap;
  font-size: 20px; font-weight: 900; letter-spacing: -.04em; color: var(--gray-900);
}
.brand-logo em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(100deg, var(--brand-600) 0%, var(--brand-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-logo i {
  display: inline-block; width: 6px; height: 6px; margin-left: 4px;
  border-radius: 50%; background: var(--accent); vertical-align: baseline;
}

/* Desktop nav */
.gnb { display: flex; align-items: stretch; height: var(--header-h); }
.gnb > li { position: relative; display: flex; align-items: center; }
.gnb > li > a {
  display: flex; align-items: center; height: 100%; padding: 0 20px;
  font-weight: 700; font-size: 16.5px; color: var(--gray-900); position: relative;
}
.gnb > li > a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 20px; height: 3px;
  background: var(--brand); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.gnb > li:hover > a, .gnb > li.is-active > a { color: var(--brand); }
.gnb > li:hover > a::after, .gnb > li.is-active > a::after { transform: scaleX(1); }
/* Submenu */
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease);
}
/* 메인메뉴 ↔ 서브메뉴 사이 빈 공간을 덮는 투명 브릿지.
   pseudo 요소는 li 의 생성 콘텐츠이므로, 이 영역에 마우스가 있어도 li:hover 가 유지된다.
   1) li::after  : 메인메뉴 항목 폭만큼의 세로 통로
   2) .submenu::before : 서브메뉴가 메인메뉴보다 넓을 때 대각선 이동까지 커버 */
.gnb > li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  pointer-events: none;
}
.gnb > li:hover::after, .gnb > li:focus-within::after { pointer-events: auto; }
.submenu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.gnb > li:hover .submenu,
.gnb > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.submenu li a {
  display: block; padding: 11px 16px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; color: var(--gray-700); white-space: nowrap;
  transition: background .15s, color .15s;
}
.submenu li a:hover { background: var(--brand-light); color: var(--brand); }

/* Header utils */
.header-utils { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gray-700); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--gray-100); color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; }

/* Hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 22px; height: 2.4px; border-radius: 2px;
  background: var(--gray-900); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; transform: translate(-50%,-50%); }
.nav-toggle span::before { transform: translate(-50%,-8px); }
.nav-toggle span::after  { transform: translate(-50%, 8px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translate(-50%,0) rotate(45deg); background: var(--gray-900); }
body.nav-open .nav-toggle span::after  { transform: translate(-50%,0) rotate(-45deg); background: var(--gray-900); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 auto; width: min(88vw, 400px);
  background: #fff; z-index: 99; transform: translateX(100%);
  transition: transform .3s var(--ease); overflow-y: auto; box-shadow: var(--sh-lg);
  padding: 18px 18px 40px;
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav .m-group { border-bottom: 1px solid var(--line); }
.mobile-nav .m-top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 17px 8px; font-weight: 800; font-size: 17px;
}
.mobile-nav .m-top svg { width: 20px; height: 20px; transition: transform .25s; color: var(--gray-400); }
.mobile-nav .m-group.open .m-top svg { transform: rotate(180deg); color: var(--brand); }
.mobile-nav .m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.mobile-nav .m-group.open .m-sub { max-height: 400px; }
.mobile-nav .m-sub a { display: block; padding: 12px 20px; color: var(--gray-600); font-weight: 600; }
.mobile-nav .m-sub a:hover { color: var(--brand); }
.mobile-nav .m-cta { margin-top: 22px; display: grid; gap: 10px; }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(22,25,42,.4); z-index: 98;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* ==========================================================================
   6. 페이지 공통 (서브 페이지 헤더)
   ========================================================================== */
.page-hero {
  position: relative; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 62px 0; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(27,68,196,.78) 0%, rgba(20,50,155,.72) 52%, rgba(14,37,120,.82) 100%),
    url("../assets/img/page-bg.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1B44C4 0%, var(--brand-dark) 55%, #0E2578 100%);
}
.page-hero::before {
  content: ""; position: absolute; top: -60%; right: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,91,46,.35), transparent 62%); pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; bottom: -50%; left: -8%; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(18,184,134,.28), transparent 62%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 17px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 15px; height: 15px; opacity: .7; }

/* Sub-tab (소메뉴 탭) */
.subtabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 40; }
.subtabs .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subtabs .container::-webkit-scrollbar { display: none; }
.subtabs a {
  padding: 18px 20px; font-weight: 700; color: var(--gray-500); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.subtabs a:hover { color: var(--brand); }
.subtabs a.is-active { color: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   7. 카드 / 그리드 공통
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }

/* ==========================================================================
   8. 푸터
   ========================================================================== */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding-top: 56px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-logo { color: #fff; }
.footer-brand .brand-logo em { background: none; -webkit-text-fill-color: currentColor; color: #9DB9FF; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--gray-400); line-height: 1.7; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--gray-400); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-policy { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 22px 0; font-size: 14px; }
.footer-policy a { color: var(--gray-300); font-weight: 600; }
.footer-policy a:hover { color: #fff; }
.footer-policy a.em { color: #fff; }
.footer-bottom { padding: 20px 0 40px; font-size: 13.5px; color: var(--gray-500); line-height: 1.9; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .biz { color: var(--gray-400); }

/* ==========================================================================
   9. 게시판 / 폼 / 기타 컴포넌트 — pages.css 에서 확장
   ========================================================================== */

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------- 10. 반응형 ------------------------- */
@media (max-width: 1080px) {
  .gnb, .header-utils .btn { display: none; }
  .nav-toggle { display: block; }
  .header-utils .icon-btn.util-search { display: none; }
}
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-top { flex-direction: column; gap: 32px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .btn { height: 50px; }
  .site-header .brand-year { display: none; }
  .site-header .brand-logo { font-size: 18px; }
}
