/* 굿러닝 공통 헤더 — AI도구 메인필드 시안 그대로 */
html { margin: 0 !important; padding: 0 !important; }
body.gl-ch-on,
body.gl-ch-on.hide-top-header,
body.gl_mp_v2_body,
body.gl_mp_v2_body.hide-top-header {
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
}
body.gl-ch-on > hr,
body.gl_mp_v2_body > hr { display: none !important; }
body.gl-ch-on .headerContainer,
body.gl-ch-on .mobileMenuOverlay,
body.gl-ch-on .mobileMenu,
body.gl-ch-on #hd,
body.gl-ch-on #hd_wrapper,
body.gl-ch-on #hd_wr,
body.gl-ch-on #hd_menu,
body.gl-ch-on #tnb,
body.gl-ch-on #hd_login_msg,
body.gl-ch-on #side_menu,
body.gl-login-page .edu-gl-header,
body.gl-register-page .edu-gl-header,
body.gl-leave-page .edu-gl-header,
body.gl_mp_v2_body .headerContainer,
body.gl_mp_v2_body .mobileMenuOverlay,
body.gl_mp_v2_body .mobileMenu,
body.gl_mp_v2_body #hd,
body.gl_mp_v2_body #hd_wrapper,
body.gl_mp_v2_body #tnb,
body.gl_mp_v2_body #hd_login_msg {
  display: none !important;
}

.edu-gl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e8e9ed;
  background: #fff;
  color: #171923;
  font-family: "Noto Sans KR", Pretendard, "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.edu-gl-header * { box-sizing: border-box; }
.edu-gl-header a { text-decoration: none; color: inherit; }

.edu-gl-header__utility {
  height: 28px;
  border-bottom: 1px solid #dedfe4;
  background: #f6f6f8;
}
.edu-gl-header__utility-inner {
  display: flex;
  width: min(1230px, calc(100% - 40px));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0;
}
.edu-gl-header__popular {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: min(320px, 46vw);
  color: #252737;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}
.edu-gl-header__popular:hover { color: #252737; }
.edu-gl-header__popular i { color: #ff7a00; flex-shrink: 0; }
.edu-gl-header__popular-view {
  display: block;
  overflow: hidden;
  height: 14px;
  min-width: 0;
  flex: 1;
}
.edu-gl-header__popular-track {
  display: block;
  will-change: transform;
}
.edu-gl-header__popular-track.is-moving {
  transition: transform .45s cubic-bezier(.22, .82, .28, 1);
}
.edu-gl-header__popular-row {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 14px;
  min-width: 0;
}
.edu-gl-header__popular-row strong { color: #5935de; font-weight: 900; flex-shrink: 0; }
.edu-gl-header__popular-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.edu-gl-header__popular-row b { margin-left: 1px; color: #f23b48; font-size: 10px; flex-shrink: 0; }
.edu-gl-header__utility-links { display: flex; align-items: center; height: 100%; }
.edu-gl-header__utility-links a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 11px;
  color: #6c6f79 !important;
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1;
}
.edu-gl-header__utility-links a + a:before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 10px;
  margin-top: -5px;
  background: #d7d8dd;
  content: "";
}

.edu-gl-header__main {
  display: grid;
  width: min(1230px, calc(100% - 40px));
  height: 72px;
  grid-template-columns: 295px minmax(360px, 640px) minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
}
.edu-gl-header__logo {
  display: flex;
  width: 300px;
  height: 44px;
  align-items: center;
}
.edu-gl-header__logo img {
  display: block;
  width: 296px !important;
  max-width: 100%;
  height: 42px !important;
  object-fit: contain;
  object-position: left center;
  border: 0;
}

.edu-gl-header__search-form {
  display: block;
  width: 100%;
  height: 43px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.edu-gl-header label.edu-gl-header__search {
  margin: 0 !important;
  font-weight: inherit;
}
.edu-gl-header__search {
  display: flex !important;
  width: 100%;
  height: 43px !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 24px;
  background: #f3f4f7 !important;
  box-shadow: none !important;
  transition: border-color .18s ease, background .18s ease;
}
.edu-gl-header__search:focus-within {
  border-color: #8b6df0 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(107, 76, 230, .1) !important;
}
.edu-gl-header__search i {
  flex: 0 0 auto;
  color: #8a8e99;
  font-size: 14px;
}
.edu-gl-header__search input,
.edu-gl-header__search input[type="search"],
.edu-gl-header__search input[type="text"] {
  display: block;
  flex: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #252737 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  appearance: none;
  -webkit-appearance: none;
}
.edu-gl-header__search input[type="search"]::-webkit-search-decoration,
.edu-gl-header__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.edu-gl-header__search input::placeholder { color: #9296a1; }

.edu-gl-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.edu-gl-header__actions > a {
  display: inline-flex !important;
  height: 42px !important;
  min-height: 42px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 11px;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1 !important;
  white-space: nowrap;
  text-decoration: none !important;
  box-sizing: border-box;
  vertical-align: middle;
}
.edu-gl-header__icon-btn,
.edu-gl-header__actions > a.edu-gl-header__icon-btn {
  display: inline-flex !important;
  position: relative;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dfe1e7 !important;
  border-radius: 11px;
  background: #fff !important;
  color: #282b35 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.edu-gl-header__cart {
  display: none !important;
  color: #171923 !important;
}
.edu-gl-header.is-logged .edu-gl-header__cart { display: inline-flex !important; }
.edu-gl-header__cart i {
  color: #6c5bd4;
  font-size: 16px;
  line-height: 1;
}
.edu-gl-header__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #6b46e5;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.edu-gl-header__cart-count[hidden] { display: none !important; }
.edu-gl-header__start {
  min-width: 90px;
  background: #6c4ce6 !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(108, 76, 230, .25);
}
.edu-gl-header__login,
.edu-gl-header__user {
  min-width: 77px;
  border: 1px solid #cfd3dc !important;
  background: #fff !important;
  color: #282b35 !important;
}
.edu-gl-header.is-logged .edu-gl-header__start,
.edu-gl-header.is-logged .edu-gl-header__login { display: none !important; }

.edu-gl-header__notify { position: relative; }
.edu-gl-header__bell i { font-size: 16px; color: #4a5160; }
.edu-gl-header__bell.is-open,
.edu-gl-header__more.is-open { border-color: #c5b6f3 !important; background: #f7f4ff !important; }

.edu-gl-header__account { position: relative; }
.edu-gl-header__more {
  flex-direction: column;
  gap: 4px;
}
.edu-gl-header__more span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #4a5160;
}
.edu-gl-header__account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 31;
  width: min(260px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 32, 48, .16);
}
.edu-gl-header__account-profile {
  display: flex !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px !important;
  border-bottom: 1px solid #eef0f4;
  background: #f8fafc;
  color: inherit !important;
  text-decoration: none !important;
  white-space: normal !important;
}
.edu-gl-header__account-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8edf5;
  color: #6c5bd4;
  display: grid;
  place-items: center;
}
.edu-gl-header__account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-gl-header__account-text { min-width: 0; flex: 1; text-align: left; }
.edu-gl-header__account-text strong,
.edu-gl-header__account-text small { display: block; }
.edu-gl-header__account-text strong { font-size: 13px; font-weight: 800; line-height: 1.35; }
.edu-gl-header__account-text strong em {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(108, 76, 230, .1);
  color: #6c35e8;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
}
.edu-gl-header__account-text small { margin-top: 3px; color: #6b7684; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edu-gl-header__account-menu { padding: 6px 0 8px; }
.edu-gl-header__account-menu a {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 16px !important;
  border-radius: 0;
  color: #2d3340 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: left;
  white-space: nowrap;
}
.edu-gl-header__account-menu a:hover { background: #f5f6fb; color: #6c35e8 !important; }
.edu-gl-header__account-logout {
  margin-top: 4px;
  border-top: 1px solid #eef0f4;
  color: #c03434 !important;
  font-weight: 800 !important;
}
.edu-gl-header__account-logout:hover { background: #fff5f5; color: #c03434 !important; }
.edu-gl-header__bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.edu-gl-header__notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 32, 48, .16);
}
.edu-gl-header__notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
}
.edu-gl-header__notify-head strong { font-size: 13px; }
.edu-gl-header__notify-head button {
  border: 0;
  background: transparent;
  color: #176bc1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.edu-gl-header__notify-list { max-height: 360px; overflow-y: auto; }
.edu-gl-header__notify-panel .notify-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f3f7;
  color: inherit;
  text-decoration: none;
}
.edu-gl-header__notify-panel .notify-item:last-child { border-bottom: 0; }
.edu-gl-header__notify-panel .notify-item.unread { background: #f5f9ff; }
.edu-gl-header__notify-panel .notify-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: #eef4ff;
  color: #176bc1;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.edu-gl-header__notify-panel .notify-body { min-width: 0; flex: 1; }
.edu-gl-header__notify-panel .notify-body strong,
.edu-gl-header__notify-panel .notify-body small,
.edu-gl-header__notify-panel .notify-body em { display: block; }
.edu-gl-header__notify-panel .notify-body strong { font-size: 12px; line-height: 1.4; }
.edu-gl-header__notify-panel .notify-body small { margin-top: 3px; color: #6b7684; font-size: 11px; line-height: 1.45; }
.edu-gl-header__notify-panel .notify-body em { margin-top: 4px; color: #99a5b3; font-size: 10px; font-style: normal; }
.edu-gl-header__notify-panel .notify-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #176bc1;
}
.edu-gl-header__notify-panel .notify-empty {
  padding: 28px 16px;
  text-align: center;
  color: #6b7684;
}
.edu-gl-header__notify-panel .notify-empty i { display: block; margin-bottom: 8px; color: #176bc1; font-size: 18px; }
.edu-gl-header__notify-more {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid #eef0f4;
  background: #f8fafc;
  color: #176bc1 !important;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.edu-gl-header__nav-wrap {
  height: 46px;
  border-top: 1px solid #e5e6ea;
  background: #fff;
}
.edu-gl-header__nav-inner {
  position: relative;
  display: flex;
  width: min(1230px, calc(100% - 40px));
  height: 100%;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}
.edu-gl-header__menu {
  display: flex;
  width: 64px;
  height: 30px !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  background: #6c4ce6 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(108, 76, 230, .22);
  cursor: pointer;
  appearance: none;
}
.edu-gl-header__menu .fa-bars { font-size: 16px; }
.edu-gl-header__menu .fa-caret-down { font-size: 12px; transition: transform .18s ease; }
.edu-gl-header__menu[aria-expanded="true"] .fa-caret-down { transform: rotate(180deg); }
.edu-gl-header__nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 7px;
  margin-left: 20px;
}
.edu-gl-header__nav a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 14px;
  color: #343740 !important;
  font-size: 13px !important;
  font-weight: 700;
}
.edu-gl-header__nav a:hover,
.edu-gl-header__nav a.is-active { color: #6c35e8 !important; }
.edu-gl-header__nav a.is-active:after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: #6c35e8;
  content: "";
}

.edu-gl-mega {
  position: absolute;
  z-index: 40;
  top: 46px;
  left: 0;
  display: none;
  width: 560px;
  min-height: 430px;
  grid-template-columns: 240px 320px;
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(18, 33, 68, .17);
}
.edu-gl-mega.is-open { display: grid; }
.edu-gl-mega__categories { padding: 10px 0; border-right: 1px solid #e5e9ef; background: #fff; }
.edu-gl-mega__categories button {
  display: grid;
  width: 100%;
  height: 40px;
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 6px;
  padding: 0 17px;
  border: 0;
  background: #fff;
  color: #2d3340;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.edu-gl-mega__categories button > i:first-child { width: 20px; color: #687386; text-align: center; font-size: 14px; }
.edu-gl-mega__categories button > i:last-child { color: #8e98a8; text-align: right; }
.edu-gl-mega__categories button.is-active,
.edu-gl-mega__categories button:hover { background: #f1edff; color: #6c35e8; }
.edu-gl-mega__categories button.is-active > i { color: #6c35e8; }
.edu-gl-mega__panel { padding: 22px 24px; background: #fff; }
.edu-gl-mega__panel h2 { margin: 0 0 17px; color: #262c37; font-size: 14px; font-weight: 900; }
.edu-gl-mega__tools { display: flex; flex-direction: column; gap: 5px; }
.edu-gl-mega__tool {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  border-radius: 8px;
  color: #3f4653;
  font-size: 13px;
  font-weight: 600;
}
.edu-gl-mega__tool:hover { background: #f7f8fb; color: #5b38d1; }
.edu-gl-mega__tool-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.edu-gl-mega__tool-icon--green { background: #19a974; }
.edu-gl-mega__tool-icon--blue { background: #3b82f6; }
.edu-gl-mega__tool-icon--orange { background: #dc7654; }
.edu-gl-mega__tool-icon--purple { background: #6d4bd1; }
.edu-gl-mega__tool-icon--pink { background: #d84b9b; }

@media (max-width: 1050px) {
  .edu-gl-header__main { grid-template-columns: 220px minmax(260px, 1fr) auto; gap: 16px; }
  .edu-gl-header__logo { width: 220px; }
  .edu-gl-header__logo img { width: 216px; }
  .edu-gl-header__actions { gap: 6px; }
  .edu-gl-header__start { min-width: 78px; }
  .edu-gl-header__login { min-width: 66px; }
}
@media (max-width: 760px) {
  .edu-gl-header__utility { display: none; }
  .edu-gl-header__main {
    width: calc(100% - 24px);
    height: auto;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
  }
  .edu-gl-header__logo { width: 190px; height: 36px; }
  .edu-gl-header__logo img { width: 188px; height: 34px; }
  .edu-gl-header__search { grid-column: 1 / -1; grid-row: 2; height: 42px !important; }
  .edu-gl-header__start { display: none !important; }
  .edu-gl-header__actions > a { height: 38px !important; }
  .edu-gl-header__icon-btn { width: 38px !important; min-width: 38px !important; height: 38px !important; }
  .edu-gl-header__nav-wrap { height: auto; min-height: 45px; }
  .edu-gl-header__nav-inner { width: calc(100% - 24px); padding: 7px 0; }
  .edu-gl-header__menu { flex: 0 0 58px; }
  .edu-gl-header__nav { overflow-x: auto; gap: 0; margin-left: 10px; }
  .edu-gl-header__nav a { height: 38px; padding: 0 10px; white-space: nowrap; }
  .edu-gl-header__nav a.is-active:after { display: none; }
  .edu-gl-header__login { display: none !important; }
  .edu-gl-mega {
    top: 45px; right: 0; left: 0; width: auto; max-height: 70vh;
    grid-template-columns: 1fr; overflow-y: auto; border-top: 1px solid #e1e5ec; border-radius: 12px;
  }
  .edu-gl-mega__categories { border-right: 0; }
  .edu-gl-mega__panel { border-top: 1px solid #e5e9ef; }
}
@media (max-width: 420px) {
  .edu-gl-header__logo { width: 164px; }
  .edu-gl-header__logo img { width: 162px; }
  .edu-gl-header__actions { gap: 4px; }
}

.edu-gl-soon {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 31, 47, .5);
}
.edu-gl-soon[hidden] { display: none !important; }
body.edu-gl-soon-open { overflow: hidden; }
.edu-gl-soon__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(9, 24, 43, .28);
  text-align: center;
}
.edu-gl-soon__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f9;
  color: #66768a;
  cursor: pointer;
}
.edu-gl-soon__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f3eefe;
  color: #6c35e8;
  font-size: 22px;
}
.edu-gl-soon__dialog h2 {
  margin: 0;
  color: #1d2430;
  font-size: 18px;
  font-weight: 800;
}
.edu-gl-soon__dialog p {
  margin: 8px 0 18px;
  color: #66768a;
  font-size: 13px;
  line-height: 1.6;
}
.edu-gl-soon__ok {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #6c35e8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
