@charset "UTF-8";
/* ═══════════════════════════════════════════
   레이아웃 — 헤더 / 유틸바 / GNB / 서브드롭다운 / 메가메뉴 / 푸터
   원본: prototype/design/index.html <style> 블록에서 분리
═══════════════════════════════════════════ */

/* 상단 헤더 래퍼 — 유틸바+GNB를 하나로 묶어 스크롤 다운 시 함께 숨김 */

#siteHeaderWrap {
  position: sticky; top: 0; z-index: 901;
  transition: transform 0.28s ease;
}

#siteHeaderWrap.header-hidden { transform: translateY(-100%); }

/* ═══════════════════════════════════════════
   TOP UTILITY BAR
═══════════════════════════════════════════ */

.util-bar {
  background: var(--tr-green);
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.util-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%;
  display: flex; justify-content: flex-end; align-items: center; gap: 20px;
}

.util-inner a { color: rgba(255,255,255,0.75); transition: color var(--t); }

.util-inner a:hover { color: var(--tr-white); }

.util-inner a.util-join { color: var(--tr-dark-gold); font-weight: 700; }

.util-sep { width: 1px; height: 11px; background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════
   GNB (메뉴구성도 기반)
═══════════════════════════════════════════ */

.gnb {
  background: var(--tr-white);
}

.gnb-top {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 76px; display: flex; align-items: center; gap: 36px;
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.logo-img { height: 26px; width: auto; display: block; }

.logo-div { width: 1px; height: 26px; background: var(--gray-line); }

.logo-label {
  font-size: 14px; font-weight: 500; color: #333;
  white-space: nowrap;
}

/* [2026-09-07] 모바일 헤더용 버튼 2개 + 사이드 드로어 + 메가메뉴 닫기.
   기본은 전부 숨김이고, 노출은 component.css 의 ≤860 구간이 맡는다. */

/* 햄버거는 아이콘만(테두리 없음), 검색은 원형 버튼 — 시안 B안과 같다 */
/* [2026-09-13] 터치 영역 44×44 (QA D25). 보이는 크기·위치는 그대로 두고 누르는 영역만 넓힌다 —
   테두리 없는 버튼은 크기를 키우고 음수 margin 으로 위치를 보정,
   원형 테두리 버튼은 ::after 를 바깥으로 펼친다. */
.gnb-hamburger {
  display: none; width: 44px; height: 44px;
  border: none; background: none;
  color: var(--tr-graphite); font-size: 18px;
  align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  margin-left: -11px; margin-right: -3px;   /* 아이콘 여백만큼 당겨 로고와의 간격을 맞춘다 */
}

.gnb-search-toggle {
  display: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gray-line); background: var(--tr-white);
  color: var(--tr-graphite); font-size: 15px;
  align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  position: relative;
}

.gnb-search-toggle::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }

.mega-menu-close {
  display: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gray-line); background: var(--tr-white);
  color: var(--tr-graphite); font-size: 14px;
  align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  position: relative;
}

.mega-menu-close::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }

.drawer-dim {
  position: fixed; inset: 0; background: rgba(33,34,35,0.45); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}

.drawer-dim.open { opacity: 1; pointer-events: auto; }

.side-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px;
  background: var(--tr-white); z-index: 1001;
  transform: translateX(-100%); transition: transform .26s ease;
  display: flex; flex-direction: column;
}

.side-drawer.open { transform: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--gray-line);
}

.drawer-title { font-size: 15px; font-weight: 900; }

.drawer-close {
  width: 44px; height: 44px; margin: -6px -6px -6px 0;   /* [2026-09-13] 32→44, 머리줄 높이·아이콘 위치 유지 */
  border: none; background: none;
  color: var(--tr-graphite); font-size: 15px; cursor: pointer;
}

.drawer-auth { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--gray-line); }

.drawer-auth a {
  flex: 1; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--gray-line);
}

.drawer-auth a.primary { background: var(--tr-orange); border-color: var(--tr-orange); color: #fff; }

/* 로그인 상태 — common.js 가 이 형태로 다시 그린다 */
.drawer-auth .drawer-user { flex: 1; display: flex; align-items: center; font-size: 13.5px; font-weight: 700; }

.drawer-nav { flex: 1; overflow-y: auto; padding: 6px 0; }

.drawer-nav > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid var(--gray-line);
}

.drawer-nav > a i { color: var(--gray-mid); font-size: 12px; }

/* [2026-09-15] 중메뉴 아코디언. 아이콘은 FA SVG 라 class 교체 대신 감싼 span 을 회전한다 */
.drawer-group { border-bottom: 1px solid var(--gray-line); }

.drawer-group-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 14.5px; font-weight: 600;
  border: none; background: none; color: inherit; font-family: inherit; text-align: left; cursor: pointer;
}

.drawer-caret { display: inline-flex; color: var(--gray-mid); font-size: 12px; transition: transform .2s; }
.drawer-group.open .drawer-caret { transform: rotate(180deg); }

.drawer-sub { display: none; padding: 0 0 8px; background: var(--gray-bg, #f7f7f8); }
.drawer-group.open .drawer-sub { display: block; }

.drawer-sub a { display: block; padding: 11px 16px 11px 28px; font-size: 13.5px; color: var(--tr-graphite); }

/* 대메뉴 — 스크롤과 무관하게 항상 상단 고정 */

.gnb-menu {
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  background: var(--tr-white);
  position: sticky; top: 0; z-index: 899;
}

.gnb-menu.gnb-menu-hidden { display: none; }

.gnb-menu-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: stretch;
}

.menu-cat-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 15px 22px 15px 0; margin-right: 10px;
  font-size: 14.5px; font-weight: 700; color: var(--tr-graphite);
  border-right: 1px solid var(--gray-line);
  position: relative; cursor: pointer;
}

.menu-cat-btn i { color: var(--tr-orange); }

.gnb-menu nav { display: flex; align-items: stretch; }

.gnb-menu nav > a, .gnb-menu nav .nav-has-sub > a {
  display: flex; align-items: center;
  padding: 15px 18px; font-size: 14.5px; font-weight: 500;
  color: var(--tr-graphite); position: relative;
  transition: color var(--t);
}

.gnb-menu nav > a::after, .gnb-menu nav .nav-has-sub > a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; background: var(--tr-orange);
  transform: scaleX(0); transition: transform var(--t);
}

.gnb-menu nav > a:hover, .gnb-menu nav .nav-has-sub > a:hover, .nav-has-sub:hover > a { color: var(--tr-orange); }

.gnb-menu nav > a:hover::after, .nav-has-sub:hover > a::after { transform: scaleX(1); }

.menu-event { color: var(--tr-orange) !important; font-weight: 700 !important; }

/* GNB 검색 */

.gnb-search-wrap {
  margin-left: auto; display: flex; align-items: center; padding: 0 0 0 16px;
}

.gnb-search-box {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-line); border-radius: 100px;
  background: var(--gray-bg); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  height: 36px;
}

.gnb-search-box:focus-within {
  border-color: var(--tr-orange); box-shadow: 0 0 0 3px rgba(214,64,0,0.1);
  background: #fff;
}

.gnb-search-input {
  border: none; background: transparent; outline: none;
  font-size: 13px; font-family: var(--sans); color: var(--tr-graphite);
  padding: 0 12px; width: 180px; transition: width .3s;
}

.gnb-search-input::placeholder { color: var(--gray-mid); }

.gnb-search-input:focus { width: 240px; }

.gnb-search-btn {
  width: 36px; height: 36px; border: none; background: none;
  color: var(--gray-mid); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  flex-shrink: 0; transition: color .2s;
}

.gnb-search-btn:hover { color: var(--tr-orange); }

/* 검색 결과 드롭다운 */

.gnb-search-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border: 1px solid var(--gray-line); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14); min-width: 360px; max-width: 440px;
  z-index: 300; overflow: hidden;
}

.gnb-search-dropdown.open { display: block; }

.gnb-search-dd-head {
  padding: 12px 18px; font-size: 12px; font-weight: 700; color: var(--gray-mid);
  border-bottom: 1px solid var(--gray-line); background: var(--gray-bg);
  display: flex; align-items: center; justify-content: space-between;
}

.gnb-search-dd-list { max-height: 360px; overflow-y: auto; }

.gnb-search-dd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid var(--gray-line);
  text-decoration: none;
}

.gnb-search-dd-item:last-child { border-bottom: none; }

.gnb-search-dd-item:hover { background: var(--tr-light-amber); }

.gnb-search-dd-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.gnb-search-dd-info { flex: 1; min-width: 0; }

.gnb-search-dd-cat { font-size: 11px; color: var(--tr-orange); font-weight: 700; margin-bottom: 2px; }

.gnb-search-dd-title { font-size: 13px; font-weight: 600; color: var(--tr-graphite); line-height: 1.4; }

.gnb-search-dd-title em { color: var(--tr-orange); font-style: normal; font-weight: 900; }

.gnb-search-dd-empty {
  padding: 28px 18px; text-align: center; color: var(--gray-mid); font-size: 13px;
}

.gnb-search-dd-more {
  padding: 10px 18px; text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--tr-orange); cursor: pointer; background: var(--gray-bg);
  border-top: 1px solid var(--gray-line); transition: background .15s;
}

.gnb-search-dd-more:hover { background: var(--tr-light-amber); }

.nav-myclassroom {
  display: flex; align-items: center; margin-left: auto; padding: 0 0 0 18px; flex-shrink: 0;
}

.btn-myclassroom {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tr-orange); color: #fff;
  padding: 9px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 700;
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
}

.btn-myclassroom:hover { background: #ee5a1a; transform: translateY(-1px); }

.btn-myclassroom i { font-size: 13px; }

/* 대메뉴 서브 드롭다운 (기업법무 교육) */

.nav-has-sub { position: relative; display: flex; align-items: stretch; }

.sub-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 176px;
  background: var(--tr-white); border: 1px solid var(--gray-line);
  box-shadow: var(--shadow); display: none; z-index: 950;
  padding: 8px 0; max-height: 420px; overflow-y: auto;
}

.nav-has-sub.open .sub-dropdown { display: block; }

.sub-dropdown a {
  display: block; padding: 9px 20px; font-size: 13px; font-weight: 400;
  color: var(--tr-graphite); transition: background var(--t), color var(--t);
  white-space: nowrap;
}

.sub-dropdown a:hover { background: var(--tr-light-amber); color: var(--tr-orange); font-weight: 500; }

.nav-has-sub > a i.sub-caret { font-size: 10px; margin-left: 6px; color: var(--gray-mid); transition: transform var(--t); }

.nav-has-sub.open > a i.sub-caret { transform: rotate(180deg); color: var(--tr-orange); }

.sub-dropdown-viewall {
  display: block; padding: 9px 20px; font-size: 12.5px; font-weight: 700;
  color: var(--tr-orange); border-bottom: 1px solid var(--gray-line); margin-bottom: 4px;
  white-space: nowrap;
}

.sub-dropdown-viewall:hover { background: var(--tr-light-amber); }

/* 카테고리 드롭다운 (형태별 | 카테고리별) */

.cat-dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--tr-white); border: 1px solid var(--gray-line);
  box-shadow: var(--shadow); display: none; z-index: 950;
  min-width: 460px;
}

.menu-cat-btn:hover .cat-dropdown, .cat-dropdown:hover { display: flex; }

.cat-col { padding: 18px 0; min-width: 150px; }

.cat-col + .cat-col { border-left: 1px solid var(--gray-line); }

.cat-col-title {
  padding: 0 20px 10px; font-size: 11px; font-weight: 700;
  color: var(--tr-orange); letter-spacing: 0.08em;
}

.cat-col a {
  display: block; padding: 8px 20px; font-size: 13px; font-weight: 400;
  color: var(--tr-graphite); transition: background var(--t), color var(--t);
}

.cat-col a:hover { background: var(--tr-light-amber); color: var(--tr-orange); font-weight: 500; }

.cat-col-scroll { max-height: 330px; overflow-y: auto; }

/* ══ 전체보기 메가메뉴 패널 ══ */

.mega-menu-panel {
  display: none; background: #fff; border-bottom: 3px solid var(--tr-orange);
  box-shadow: 0 12px 28px rgba(33,34,35,0.10);
  position: relative; z-index: 940;
}

.mega-menu-panel.open { display: block; }

.mega-menu-inner { max-width: 1440px; margin: 0 auto; padding: 28px 32px 26px; }

.mega-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }

.mega-menu-head-title { display: flex; align-items: center; gap: 14px; }

.mega-menu-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--tr-orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.mega-menu-head-title h2 { font-size: 21px; font-weight: 900; color: var(--tr-graphite); line-height: 1.3; }

.mega-menu-head-title p { font-size: 12.5px; color: var(--gray-mid); margin-top: 2px; }

.mega-menu-home-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-mid); transition: color .18s;
}

.mega-menu-home-link:hover { color: var(--tr-orange); }

.mega-menu-groups { display: flex; flex-direction: column; }

.mega-menu-group {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 15px 0; border-top: 1px solid var(--gray-line);
}

.mega-menu-group:last-child { border-bottom: 1px solid var(--gray-line); }

.mega-menu-group-label {
  flex-shrink: 0; width: 118px; font-size: 13.5px; font-weight: 800;
  color: var(--tr-graphite); padding-top: 6px;
}

.mega-menu-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }

.mega-chip {
  padding: 7px 16px; border: 1.5px solid var(--gray-line); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--tr-graphite);
  background: #fff; cursor: pointer; transition: all .18s; white-space: nowrap;
}

.mega-chip:hover { border-color: var(--tr-orange); color: var(--tr-orange); }

.mega-chip.active { background: var(--tr-green); border-color: var(--tr-green); color: #fff; font-weight: 700; }

.mega-menu-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; /* padding-top: 18px;border-top: 1px solid var(--gray-line);*/ flex-wrap: wrap;
}

.mega-menu-selected { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-height: 34px; }

.mega-selected-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 16px; border: 1.5px solid var(--gray-line); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--tr-graphite); background: var(--gray-bg);
}

.mega-selected-tag button {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: var(--gray-line); color: var(--tr-graphite);
  font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}

.mega-selected-tag button:hover { background: var(--tr-orange); color: #fff; }

.mega-menu-foot-btns { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.mega-menu-reset-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gray-mid); background: none; border: none; cursor: pointer;
  transition: color .18s;
}

.mega-menu-reset-btn:hover { color: var(--tr-graphite); }

.mega-menu-apply-btn {
  height: 46px; padding: 0 34px; border-radius: 7px; border: none;
  background: var(--tr-orange); color: #fff; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: background .18s;
}

.mega-menu-apply-btn:hover { background: #d95800; }

/* ═══════════════════════════════════════════
   간편상담 (비회원)
═══════════════════════════════════════════ */

.consult-band { background: var(--tr-graphite); padding: 26px 0; }

.consult-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.consult-title { color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }

.consult-title i { color: var(--tr-dark-gold); }

.consult-title small { display: block; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.5); }

.consult-form { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }

.consult-form input, .consult-form select {
  height: 42px; border: none; border-radius: 4px; padding: 0 14px;
  font-size: 13px; font-family: var(--sans); background: #fff; color: var(--tr-graphite);
  outline: none; min-width: 150px;
}

.consult-form select { min-width: 170px; color: var(--gray-mid); }

.consult-check { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.6); }

.consult-submit {
  height: 42px; padding: 0 26px; background: var(--tr-orange); color: #fff;
  font-size: 13.5px; font-weight: 700; border-radius: 4px; transition: background var(--t);
}

.consult-submit:hover { background: #ee5a1a; }

/* ═══════════════════════════════════════════
   FOOTER (카테고리/기업교육/고객센터/이벤트)
═══════════════════════════════════════════ */

footer { background: #123015; color: #fff; border-top: 1px solid rgba(255,255,255,0.18); }

.foot-links {
  max-width: 1280px; margin: 0 auto; padding: 44px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.fcol h4 { font-size: 13.5px; font-weight: 900; margin-bottom: 15px; color: var(--tr-white); }

.fcol ul li { margin-bottom: 9px; }

.fcol ul a { font-size: 12.5px; color: var(--tr-white); font-weight: 400; transition: color var(--t); }

.fcol ul a:hover { color: var(--tr-white); text-decoration: underline; }

/* [2026-09-10] 다운로드 링크(연간교육일정·사업자등록증·거래계좌 확인서) 뒤 아이콘.
   FontAwesome 이 SVG-with-JS 모드라 <i> 가 <svg> 로 바뀌지만 클래스는 남는다. */
.fcol ul a .fa-download { margin-left: 6px; font-size: 10.5px; opacity: 0.75; vertical-align: baseline; }

.foot-info {
  max-width: 1280px; margin: 0 auto; padding: 28px 32px 36px;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}

.foot-left .foot-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.foot-logo .logo-mark { width: 30px; height: 30px; }

.foot-logo .logo-mark i { font-size: 12px; }

.foot-logo b { font-size: 14px; font-weight: 900; }

.foot-left p { font-size: 11.5px; color: var(--tr-white); font-weight: 300; line-height: 1.8; }

.foot-right { text-align: right; }

.foot-tr-logo { height: 26px; width: auto; display: inline-block; }

.foot-cs { font-size: 22px; font-weight: 900; color: var(--tr-white); }

.foot-cs-sub { font-size: 11.5px; color: var(--tr-white); margin: 4px 0 14px; }

.foot-sns { display: flex; gap: 8px; justify-content: flex-end; }

.foot-sns a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tr-white); font-size: 13px;
  transition: border-color var(--t), color var(--t), background var(--t);
}

.foot-sns a:hover { border-color: var(--tr-white); color: var(--tr-white); background: rgba(255,255,255,0.12); }

.foot-legal {
  background: rgba(0,0,0,0.25); padding: 14px 0;
}

.foot-legal-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--tr-white);
}

.foot-legal-inner a { font-weight: 500; margin-right: 16px; }

.foot-legal-inner a:hover { color: var(--tr-white); text-decoration: underline; }

.foot-legal-inner a.privacy { color: var(--tr-white); font-weight: 700; }

.qm-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tr-orange); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background var(--t);
}

.qm-top:hover { background: #a83200; }

/* 스크롤 리빌 */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }

.reveal.visible { opacity: 1; transform: translateY(0); }
