@charset "utf-8";

/* ========================================
   Layout
======================================== */
body {
  background: #ffffff;
}

.l_inner {
  width: 92%;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .l_inner {
    width: 100%;
    max-width: 1000px;
  }
}

/* ========================================
   CTA
======================================== */
:root {
  --cta-height: 56px;
  --gap: 16px;
}

.c_bottom_cta {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--cta-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff6b00;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  z-index: 1300;
}

.c_floating_kakao {
  position: fixed;
  right: 16px;
  bottom: calc(var(--cta-height) + var(--floating-gap));
  padding: 10px 14px;
  border-radius: 999px;
  background: #fee500;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1200;
}

.c_top_btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #111;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
}

.c_top_btn:hover {
  transform: translateY(-1px);
}

.c_top_btn:active {
  transform: scale(0.96);
}

.c_top_btn.is_show {
  opacity: 1;
  visibility: visible;
}


/* ========================================
   Header
======================================== */
.l_header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
}

.l_header__top {
  border-bottom: 0;
}

.l_header__top .l_inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding-bottom: 16px;
}

.l_header__logo {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.l_header__logo img {
  height: 40px;
  width: auto;
}

.l_header__util_list {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* 기본 상태 (연한 색) */
.l_header__top_left a,
.l_header__util_list a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* hover (데스크탑만) */
@media (hover: hover) and (pointer: fine) {
  .l_header__top_left a:hover,
  .l_header__util_list a:hover {
    color: var(--color-text);
    text-decoration: underline;
  }
}

/* 현재 페이지 (active) */
.l_header__top_left a.is_active,
.l_header__util_list a.is_active {
  color: var(--color-text);  
  font-weight: var(--font-weight-b);
}

/* 모바일에서는 원격지원 숨김 */
.l_header__top_left {
  display: none;
}

.l_header__top_center {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  flex: 1 1 auto;
}

.l_header__top_right {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

/* ========================================
   Mobile Navigation
======================================== */
.l_nav_mobile {
  display: block;
  border-top: 1px solid var(--color-line);
}

/* 데스크탑 sticky 메뉴는 모바일에서 숨김 */
.l_nav_desktop_wrap {
  display: none;
}

.l_nav_row {
  border-bottom: 1px solid var(--color-line);
}

.l_nav_row:last-child {
  border-bottom: 0;
}

.l_nav_row__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.l_nav_row__list--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 모바일 2줄 메뉴 */
.l_nav_row__item {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 8px 0;
  text-align: center;
  font-size: var(--font-h5);
  font-weight: var(--font-weight-m);
  line-height: 1.2;
  word-break: keep-all;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
}

/* 모바일 터치 반응 */
.l_nav_row__item:active {
  color: var(--color-primary);
}

/* 현재 페이지 */
.l_nav_row__item.is_active {
  color: var(--color-primary);
  font-weight: var(--font-weight-b);
}

/* hover 가능한 기기에서만 hover 적용 */
@media (hover: hover) and (pointer: fine) {
  .l_nav_row__item:hover {
    color: var(--color-primary);
  }
}

/* ========================================
   Desktop
   같은 min-width:1000px 조건을 한 곳에 통합
======================================== */
@media (min-width: 1000px) {
  /* ---------- Header ---------- */
  .l_header__top .l_inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0;
    min-height: 82px;
    padding-bottom: 12px;
  }

  /* 데스크탑에서 원격지원 표시 */
  .l_header__top_left {
    display: flex;
    align-items: end;
    justify-self: start;
    position: relative;
  }

  .l_header__top_center {
    display: block;
    justify-self: center;
    flex: none;
  }

  .l_header__top_right {
    display: flex;
    align-items: end;
    justify-self: end;
    flex: none;
    position: relative;
    right:-6px;
  }

  .l_header__logo img {
    height: 47px;
    padding-bottom: 3px;
  }

  .l_header__util_list {
    gap: 20px;
  }

  .l_header__util_list a,
  .l_header__util_link {
    font-size: var(--font-md);
    line-height: 1.2;
  }

  /* ---------- Navigation ---------- */
  .l_nav_mobile {
    display: none;
  }

  .l_nav_desktop_wrap {
    display: block;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    transition: box-shadow 0.25s ease;
  }

  .l_nav_desktop_wrap.is_sticky {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  .l_nav_desktop .l_inner {
    width: 100%;
    max-width: 1094px;
    padding-right: 16px;
  }

  .l_nav_desktop__list {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  .l_nav_desktop__list > li {
    flex: 1 1 0;
    min-width: 0;
  }

  /* 데스크탑 메뉴 */
  .l_nav_desktop__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 0 8px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-align: center;
    font-size: var(--font-lg);
    font-weight: var(--font-weight-m);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .l_nav_desktop__item::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0px;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .l_nav_desktop__item.is_active {
    color: var(--color-primary);
    font-weight: var(--font-weight-b);
  }
}

@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .l_nav_desktop__item:hover span {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }

  .l_nav_desktop__item:hover {
    color: var(--color-primary);
  }

  .l_nav_desktop__item:hover::after,
  .l_nav_desktop__item.is_active::after {
    transform: scaleX(1);
  }
}

.c_btn_kakao { 
  margin-top:40px; 
  border-radius:0; 
  background:var(--color-yellow); 
  color:#111111; 
  font-size:var(--font-h4);  
  font-weight:var(--font-weight-b); 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  width:100%; 
  min-height:46px;
  padding:0 20px; 
}

.c_btn__arrow { 
  margin-left:6px; 
  font-size:32px; 
  line-height:1; 
  font-weight:
   var(--font-weight-m); 
  }

/* 랜딩(program)만 제거 */
body.program .c_btn_kakao,
body.enroll-recommend .c_btn_kakao {
  margin-top: 0;
}


/* ========================================
   Footer
======================================== */

footer {
  margin-top: 0px;
}

.l_footer {
  background: #4a4a4a;
  padding: 30px 0;
}

.l_footer__policy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0px;
  font-size: var(--font-body-lg);
  font-weight: 600;
  line-height: 1.3;
}

.l_footer__policy a + a::before {
  content: "|";
  margin: 0 8px;
  color: #ccc;
}

.l_footer__policy a {
  color: #ffffff;
  text-decoration: none;
}

.l_footer__policy a:hover {
  opacity: 0.8;
}

.l_footer__policy a.is_accent {
  color: var(--color-yellow);
}

.l_footer__policy span {
  color: rgba(255, 255, 255, 0.35);
}

.l_footer .l_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.l_footer__info {
  text-align: center;
  font-size: var(--font-sm);
  line-height: 1.5;
  color: #e8e8e8;
}

.l_footer__copyright {
  text-align: center;
  font-size: var(--font-md);
  line-height: 1.5;
  color: #e8e8e8;
}
