/* =========================================
   CORE ACADEMY — COMMON HEADER & FOOTER
   ========================================= */

/* 1. HEADER (.leeko-header — 기존 Lee & Ko 스타일 유지) */
.leeko-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  z-index: 120;
  color: #fff;
  transition: top 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.leeko-header.is-hidden {
  top: -88px;
}

.leeko-header.leeko-header--opengnb,
.leeko-header.leeko-header--opensearch {
  top: 0;
}

.leeko-header.active {
  background: #fff;
  color: #121619;
  border-bottom: 1px solid #e5e7eb;
}

.leeko-header__bar {
  position: relative;
  height: 100%;
  width: 94%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leeko-header__btn {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.leeko-header__btn::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
#gnbOpenBtn::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}
#searchOpenBtn::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
}
.leeko-header__btn:hover { opacity: 0.7; }

.leeko-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.leeko-header__logo img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.leeko-header__logo span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.leeko-header.active .leeko-header__logo img {
  filter: none;
}

@media screen and (max-width: 768px) {
  .leeko-header {
    height: 64px;
  }
  .leeko-header.is-hidden {
    top: -64px;
  }
  .leeko-header__bar {
    align-items: center;
  }
  .leeko-header__btn {
    width: 40px;
    height: 40px;
  }
  .leeko-header__btn::before {
    width: 20px;
    height: 20px;
  }
  .leeko-header__logo {
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 7px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1;
  }
  .leeko-header__logo img {
    height: 20px;
  }
  .leeko-header__logo span {
    transform: translateY(1px);
  }
}

/* 좌측 슬라이드 드로어 GNB */
.leeko-header__gnb-bg,
.leeko-header__search-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 140;
}

.leeko-header--opengnb .leeko-header__gnb-bg,
.leeko-header--opensearch .leeko-header__search-bg {
  opacity: 1;
  visibility: visible;
}

.leeko-header__gnb-inner {
  position: fixed;
  top: 0; bottom: 0;
  left: -618px;
  width: min(618px, 100vw);
  background: #fff;
  color: #121619;
  z-index: 150;
  padding: 44px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.leeko-header--opengnb .leeko-header__gnb-inner {
  left: 0;
}

.leeko-header__gnb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leeko-header__gnb-select {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.leeko-header__gnb-select button {
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
}
.leeko-header__gnb-select button.active,
.leeko-header__gnb-select button:hover {
  color: #e74e25;
}

.leeko-header__close {
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #121619;
  cursor: pointer;
}

.leeko-header__gnb-list {
  padding: 40px 0;
  margin: auto 0;
}

.leeko-header__gnb-item + .leeko-header__gnb-item {
  margin-top: 24px;
}

.leeko-header__gnb-item > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  color: #334155;
  cursor: pointer;
  transition: color 0.25s ease;
}

.leeko-header__gnb-item:hover > strong,
.leeko-header__gnb-item--active > strong {
  color: #e74e25;
}

.leeko-header__gnb-item ul {
  display: none;
}

.leeko-header__gnb-item--active ul {
  display: none;
}

.leeko-header__gnb-item ul li + li {
  margin-top: 14px;
}

.leeko-header__gnb-item ul li a {
  font-size: 17px;
  color: #475569;
  transition: color 0.2s;
}
.leeko-header__gnb-item ul li a:hover { color: #e74e25; }

.leeko-header__gnb-util {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}
.leeko-header__gnb-util a.highlight { color: #e74e25; }

/* 상단 슬라이드 다운 검색창 */
.leeko-header__search-inner {
  position: fixed;
  top: -280px;
  left: 0; right: 0;
  background: #fff;
  color: #121619;
  z-index: 150;
  padding: 54px 0 44px;
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.leeko-header--opensearch .leeko-header__search-inner {
  top: 0;
}

.leeko-search-box {
  width: 92%;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.leeko-search-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #697078;
  padding-bottom: 8px;
}

.leeko-search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.15rem;
  font-family: inherit;
  padding: 8px 4px;
}

.leeko-search-form button {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px 10px;
}

.leeko-search-close {
  position: absolute;
  top: -28px;
  right: 0;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

/* 2. FOOTER (#footer) */
#footer {
  width: 100%;
  position: relative;
  background-color: #050505;
  color: #fff;
}

#footer .m { display: none; }

#footer #scrTop {
  width: 100%;
  border-top: 1px solid #DFDFDF;
}

#footer #scrTop a {
  display: block;
  width: 100%;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  text-align: center;
  color: #050505;
}

#footer #scrTop:hover a {
  text-decoration: underline;
}

#footer .footer_inner {
  position: relative;
}

#footer .footer_inner .ftLogo {
  filter: brightness(0) invert(1);
  width: 105px;
  height: auto;
  opacity: 0.85;
  position: absolute;
  top: 24px;
  left: 100px;
}

#footer .footer_inner li a:hover {
  text-decoration-line: underline;
}

#footer .footer_inner .top_menu {
  padding: 0 100px;
  display: flex;
}

#footer .footer_inner .top_menu > li {
  font-size: 16px;
  padding: 156px 0 50px;
}

#footer .footer_inner .top_menu > li > ul > li {
  display: flex;
  margin-bottom: 15px;
}

#footer .footer_inner .top_menu > li > ul > li:last-child {
  margin-bottom: 0;
}

#footer .footer_inner .top_menu > li span {
  width: 108px;
  flex-shrink: 0;
}

#footer .footer_inner .top_menu > li .txts {
  opacity: 0.5;
}

#footer .footer_inner .top_menu > li:nth-child(1) {
  padding-right: 83px;
}

#footer .footer_inner .top_menu > li:nth-child(2) {
  padding-left: 50px;
  width: calc(70% - 300px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .footer_inner .top_menu > li:nth-child(2) > ul > li span {
  width: 120px;
}

#footer .footer_inner .top_menu > li:nth-child(2) > ul > li .txts:nth-child(2) {
  padding-right: 20px;
}

#footer .footer_inner .top_menu > li:nth-child(2) > ul > li .txts:not(:nth-child(2)) {
  padding: 0 20px;
  position: relative;
}

#footer .footer_inner .top_menu > li:nth-child(2) > ul > li .txts:not(:nth-child(2))::after {
  position: absolute;
  content: '';
  width: 1px;
  height: 10px;
  background: #fff;
  opacity: 0.34;
  top: 5px;
  left: 0;
}

#footer .footer_inner .top_menu > li:nth-child(3) {
  padding-left: 50px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

#footer .footer_inner .top_menu > li:nth-child(3) .ftLogo2 {
  position: absolute;
  left: -95px;
  top: 34px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 3;
}

#footer .footer_inner .top_menu > li:nth-child(3) .ftLogo2 img {
  width: 28px;
  filter: brightness(0) invert(1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#footer .footer_inner .top_menu > li .callnum {
  font-size: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#footer .footer_inner .top_menu > li .callnum a {
  display: inline-block;
}

#footer .footer_inner .top_menu > li .callnum a:hover {
  text-decoration-line: none;
}

#footer .footer_inner .bot_menu {
  display: flex;
  align-items: center;
  padding: 25px 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .footer_inner .bot_menu.m {
  display: none;
}

#footer .footer_inner .bot_menu li {
  opacity: 0.7;
  font-size: 16px;
}

#footer .footer_inner .bot_menu li:nth-child(1) {
  padding-right: 115px;
}

#footer .footer_inner .bot_menu li.flex {
  display: flex;
  align-items: center;
}

#footer .footer_inner .bot_menu li.flex a:nth-child(1) {
  padding-right: 20px;
  position: relative;
}

#footer .footer_inner .bot_menu li.flex a:nth-child(1)::after {
  position: absolute;
  content: '';
  top: 5px;
  right: 0;
  width: 1px;
  height: 10px;
  background: #fff;
  opacity: 0.34;
}

#footer .footer_inner .bot_menu li.flex a:nth-child(2) {
  padding-left: 20px;
}

#footer .footer_inner .bot_menu li:nth-child(2) {
  text-align: center;
  width: calc(70% - 300px);
}

#footer .footer_inner .bot_menu li:nth-child(3) {
  text-align: right;
  width: calc(30% - 120px);
}

@media screen and (max-width: 1280px) {
  #footer .pc { display: none !important; }
  #footer .m { display: block; }
  #footer {
    height: auto;
    padding-bottom: 66px;
  }
  #footer .footer_inner .ftLogo {
    width: 105px;
    height: auto;
    top: 24px;
    left: auto;
    right: 20px;
  }
  #footer .footer_inner .top_menu {
    padding: 0;
    flex-direction: column;
  }
  #footer .footer_inner .top_menu > li {
    padding: 40px 20px 30px;
  }
  #footer .footer_inner .top_menu > li:nth-child(1) {
    padding-right: 140px;
  }
  #footer .footer_inner .top_menu > li:nth-child(2) {
    display: none;
  }
  #footer .footer_inner .top_menu > li:nth-child(3) {
    padding: 30px 20px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  #footer .footer_inner .top_menu > li .callnum {
    margin-bottom: 15px;
    font-size: 18px;
  }
  #footer .footer_inner .top_menu > li > ul > li {
    margin-bottom: 10px;
  }
  #footer .footer_inner .top_menu > li:nth-child(1) > ul > li {
    flex-direction: column;
  }
  #footer .footer_inner .top_menu > li:nth-child(1) > ul > li span {
    margin-bottom: 8px;
  }
  #footer .footer_inner .top_menu > li:nth-child(3) .ftLogo2 {
    width: 43px;
    height: 43px;
    left: auto;
    top: 20px;
    right: 20px;
  }
  #footer .footer_inner .bot_menu.m {
    display: block;
    padding: 20px;
  }
  #footer .footer_inner .bot_menu {
    padding: 0 20px;
    flex-direction: column;
  }
  #footer .footer_inner .bot_menu li:nth-child(1) {
    padding-right: 0;
  }
  #footer .footer_inner .bot_menu li:nth-child(2) {
    width: 100%;
    text-align: left;
  }
  #footer .footer_inner .bot_menu li:nth-child(3) {
    width: 100%;
  }
  #footer .footer_inner .bot_menu li.flex a {
    position: relative;
    font-size: 12px;
  }
  #footer .footer_inner .bot_menu li.flex a:nth-child(1) {
    padding-right: 9px;
  }
  #footer .footer_inner .bot_menu li.flex a:nth-child(2) {
    padding-left: 9px;
    padding-right: 9px;
  }
  #footer .footer_inner .bot_menu li.flex a:nth-child(3) {
    padding-left: 9px;
  }
  #footer .footer_inner .bot_menu li.flex a:nth-child(3)::after {
    position: absolute;
    content: '';
    top: 5px;
    left: 0;
    width: 1px;
    height: 10px;
    background: #fff;
    opacity: 0.34;
  }
  #footer .footer_inner .bot_menu li > p {
    font-size: 12px;
    margin-bottom: 15px;
  }
}
