/* ===================================
   Style.css - 메인 스타일시트
   - BEM (Block__Element--Modifier) 방식
   - Desktop First 반응형
   - Counpia SNACK Design System v1.0
   =================================== */

/* -----------------------------------
   공통 변수 (Design Tokens)
   ----------------------------------- */
   :root {
    /* Brand Colors */
    --brand-900: #031919;
    --brand-800: #074e44;
    --brand-700: #005a54;
    --brand-600: #1fae9a;
    --brand-500: #07fad8;
    --brand-400: #4ae079;
    --brand-300: #4dfa83;
    --brand-200: #96fff4;
    --brand-100: #c1fffb;
    --brand-50:  #f8fffe;
  
    /* Neutral Colors */
    --neutral-900: #1e1e1e;
    --neutral-800: #2e2e2e;
    --neutral-700: #3e3e3e;
    --neutral-500: #4e4e4e;
    --neutral-400: #6e6e6e;
    --neutral-300: #9e9e9e;
    --neutral-200: #cecece;
    --neutral-100: #eeeeee;
    --neutral-50:  #f2f2f2;
  
    /* Semantic Colors */
    --color-success: #22cb58;
    --color-error: #e14942;
    --color-error-light: #ff5e5d;
    --color-warning: #e1a325;
    --color-warning-light: #ffbc4f;
  
    /* Font */
    --font-base: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
  
    /* Layout */
    --content-main-width: 1320px;
    --content-max-width: 1200px;
    --content-padding: 0 48px;
  
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 50px;
    --space-2xl: 80px;
    --space-3xl: 100px;
    --space-section: 120px;
  
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 999px;
  }
  
  /* -----------------------------------
     기본 타이포그래피
     ----------------------------------- */
  body {
    font-family: var(--font-base);
    font-size: 20px;
    color: var(--neutral-900);
    background-color: #ffffff;
    line-height: 150%;
    letter-spacing: -0.04em;
  }
  
  /* -----------------------------------
     레이아웃
     ----------------------------------- */
  .inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--content-padding);
  }
  
  /* -----------------------------------
     Header (GNB - Full Light)
     ----------------------------------- */
  .header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 100;
    transition: box-shadow 200ms ease, background-color 200ms ease;
  }
  .header.fixed {
    position: fixed;
  }
  
  .header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  
  /* --- 다크 모드 헤더
       .darkmode  : JS 로드 전 초기 다크 상태 (pre-JS fallback)
       .is-dark   : 스크롤 위치 기반 JS 동적 전환
       ---------------------------------------------------------------- */
  .header.darkmode,
  .header.is-dark {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .header.is-dark.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  }
  
  .header.darkmode .header__logo-svg,
  .header.is-dark .header__logo-svg {
    filter: brightness(0) invert(1);
  }
  
  .header.darkmode .gnb__link,
  .header.is-dark .gnb__link {
    color: rgba(255, 255, 255, 0.85);
  }
  
  .header.darkmode .gnb__link:hover,
  .header.darkmode .gnb__link:focus-visible,
  .header.is-dark .gnb__link:hover,
  .header.is-dark .gnb__link:focus-visible {
    color: #ffffff;
  }
  
  .header.darkmode .gnb__link--active,
  .header.is-dark .gnb__link--active {
    color: #ffffff;
  }
  /*
  .header.darkmode .gnb__link--active::after,
  .header.is-dark .gnb__link--active::after {
    background-color: var(--brand-300);
  }
  */
  
  .header.darkmode .header__login,
  .header.is-dark .header__login {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
  }
  
  .header.darkmode .header__login:hover,
  .header.darkmode .header__login:focus-visible,
  .header.is-dark .header__login:hover,
  .header.is-dark .header__login:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
  }
  
  .header.darkmode .header__toggle-bar,
  .header.is-dark .header__toggle-bar {
    background-color: #ffffff;
  }

  .header.darkmode .header__user-name,
  .header.is-dark .header__user-name {
    color: #ffffff;
  }

  .header.darkmode .header__logout,
  .header.is-dark .header__logout {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
  }

  .header.darkmode .header__logout:hover,
  .header.darkmode .header__logout:focus-visible,
  .header.is-dark .header__logout:hover,
  .header.is-dark .header__logout:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
  }
  
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 64px 20px;
  }
  
  /* 로고 */
  .header__logo {
    margin: 0;
    font-size: 0;
    line-height: 1;
  }
  
  .header__logo-link {
    display: inline-flex;
    align-items: center;
    color: #0e0e0e;
    text-decoration: none;
    line-height: 1;
  }
  
  .header__logo-svg {
    display: block;
    height: 24px;
    transition: filter 200ms ease;
  }
  
  /* 우측 영역 (네비 + 액션) */
  .header__right {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  /* GNB 메뉴 */
  .gnb {
    display: block;
  }
  
  .gnb__list {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .gnb__item {
    position: relative;
  }
  
  .gnb__link {
    display: inline-block;
    position: relative;
    padding: 6px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--neutral-900);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: color 150ms ease;
  }
  /*
  .gnb__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background-color: var(--brand-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
  }
  
  .gnb__link:hover,
  .gnb__link:focus-visible {
    color: var(--brand-700);
  }
  */
  .gnb__link--active {
    font-weight: 700;
  }
  
  /*
  .gnb__link--active::after {
    transform: scaleX(1);
  }
  */
  
  /* 우측 액션 */
  .header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .header__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 1px solid var(--neutral-900);
    border-radius: 100px;
    background-color: transparent;
    color: var(--neutral-900);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  
  .header__login:hover,
  .header__login:focus-visible {
    background-color: var(--neutral-900);
    color: #ffffff;
  }

  /* 로그인 상태 (이름 + 로그아웃) — darkmode/is-dark 변형은 상단 다크 모드 블록 참고 */
  .header__user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .header__user-name {
    color: var(--neutral-900);
    font-size: 14px;
    transition: color 180ms ease;
  }

  .header__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1.5px solid var(--neutral-900);
    border-radius: 8px;
    background: none;
    color: var(--neutral-900);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .header__logout:hover,
  .header__logout:focus-visible {
    background-color: var(--neutral-900);
    color: #ffffff;
  }
  
  /* 햄버거 버튼 (모바일 전용) */
  .header__toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: transparent;
    border: 0;
    cursor: pointer;
  }
  
  .header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--neutral-900);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
  }
  
  .header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  
  .header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* -----------------------------------
     Footer
     ----------------------------------- */
  .footer {
    display: block;
    background-color: var(--brand-900);
    color: var(--neutral-200);
    padding: 100px 48px 70px;
    font-size: 18px;
  }
  
  .footer__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
  }
  
  /* ① 링크 + 네비게이션 */
  .footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
  }
  
  .footer__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer__links-item {
    position: relative;
    font-size: 20px;
  }
  
  .footer__links-item + .footer__links-item::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 1px;
    height: 14px;
    background-color: var(--neutral-700);
    transform: translateY(-50%);
  }
  
  .footer__link {
    color: var(--neutral-200);
    text-decoration: none;
    line-height: 1;
    transition: color 150ms ease;
  }
  
  .footer__link--strong {
    color: #ffffff;
    font-weight: 600;
  }
  
  .footer__link:hover,
  .footer__link:focus-visible {
    color: var(--brand-300);
  }
  
  .footer__nav-list {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer__nav-item {
    font-size: 20px;
    font-weight: 600;
  }
  
  .footer__nav-link {
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    transition: color 150ms ease;
  }
  
  .footer__nav-link:hover,
  .footer__nav-link:focus-visible {
    color: var(--brand-300);
  }
  
  .footer__divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /* ② 연락처 + Family Site */
  .footer__middle-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    padding: 30px 0 36px;
  
  }
  
  .footer__middle {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
  }
  
  .footer__contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 235px;
  }
  
  .footer__contact-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
  }
  
  .footer__contact-list {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    row-gap: 4px;
    margin: 0;
    font-size: 18px;
    font-weight: 300;
  }
  
  .footer__contact-label {
    color: #ffffff;
    font-weight: 400;
    line-height: 30px;
  }
  
  .footer__contact-value {
    color: var(--neutral-200);
    margin: 0;
    line-height: 30px;
  }
  
  /* Family Site */
  .footer__family {
    position: relative;
    align-self: flex-end;
  }
  
  .footer__family-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 250px;
    height: 54px;
    padding: 0 20px;
    background-color: #fff;
    color: var(--neutral-900);
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
  }
  
  .footer__family-btn:hover,
  .footer__family-btn:focus-visible,
  .footer__family.is-open .footer__family-btn {
    border-color: var(--brand-400);
    color: var(--brand-700);
  }
  
  .footer__family-label {
    letter-spacing: 0;
  }
  
  .footer__family-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 200ms ease;
  }
  
  .footer__family.is-open .footer__family-icon {
    transform: rotate(180deg);
  }
  
  .footer__family-list {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: 250px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background-color: #0a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
    z-index: 10;
  }
  
  .footer__family.is-open .footer__family-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .footer__family-link {
    display: block;
    padding: 10px 12px;
    color: var(--neutral-200);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 4px;
    transition: background-color 150ms ease, color 150ms ease;
  }
  
  .footer__family-link:hover,
  .footer__family-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--brand-300);
  }
  
  /* ③ 사업자 정보 */
  
  .footer__business-text {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 200;
    font-size: 18px;
    line-height: 30px;
    color: var(--neutral-200);
    letter-spacing: -0.04em;
  }
  
  .footer__business-company {
    color: #ffffff;
    font-weight: 700;
    margin-right: 4px;
  }
  
  .footer__business-sep {
    display: inline-block;
    color: var(--neutral-700);
    font-weight: 200;
  }
  
  .footer__business-item {
    color: var(--neutral-200);
  }
  
  .footer__business-link {
    color: var(--neutral-200);
    text-decoration: none;
    transition: color 150ms ease;
  }
  
  .footer__business-link:hover,
  .footer__business-link:focus-visible {
    color: var(--brand-300);
  }
  
  /* ④ 브랜드 바 */
  .footer__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 36px;
  }
  
  .footer__brand-left {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    flex-wrap: wrap;
  
  }
  
  .footer__logo {
    display: block;
    img {
      width: clamp(320px, 58vw, 600px);
      filter: brightness(0) invert(1);
    }
  }
  /*
  .footer__logo-svg {
    display: block;
    width: 211px;
    height: 26px;
    color: inherit;
  }
  */
  
  .footer__tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.04em;
    transform: translateY(-10px);
  }
  
  .footer__tagline-light {
    color: var(--neutral-200);
    font-weight: 300;
  }
  
  .footer__tagline-dot {
    color: var(--neutral-500);
  }
  
  .footer__tagline-bold {
    color: #eeeeee;
    font-weight: 700;
  }
  
  .footer__copyright {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--neutral-400);
    letter-spacing: 0;
  }
  
  /* -----------------------------------
     Atoms - Overline (Pill Badge)
     - Light(default) / Dark(modifier) 2종
     - 자식: __icon (11x11), __text
     - border는 brand 그라데이션 (padding-box/border-box 이중 레이어)
     ----------------------------------- */
  .overline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(90deg, rgba(74, 224, 121, 0.3), rgba(158, 158, 158, 0.3)) border-box;
    backdrop-filter: blur(20px);
    color: var(--neutral-500);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
  }
  .overline:hover,
  .overline:focus-visible {
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(90deg, var(--brand-400), var(--brand-300)) border-box;
  }
  .overline--dark {
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    color: #ffffff;
  }
  .overline--dark.overline--lightDark {
    background: rgba(242, 255, 246, 0.10);
  }
  
  .overline--dark::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(74, 224, 121, 0.3), rgba(158, 158, 158, 0.3)) border-box;;
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  
  .overline--dark:hover,
  .overline--dark:focus-visible {
    background: #0D0E0D;
  }
  
  .overline--dark:hover::before,
  .overline--dark:focus-visible::before {
    background: linear-gradient(90deg, var(--brand-400), var(--brand-300));
  }
  
  .overline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
  
  .overline__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .overline__text {
    display: inline-block;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  
  /* Overline 반응형 */
  @media (max-width: 768px) {
    .overline {
      padding: 10px 14px;
      font-size: 13px;
    }
  }
  
  @media (max-width: 480px) {
    .overline {
      padding: 10px 14px;
      font-size: 12px;
    }
  }
  
  .btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 64px;
    height: 64px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 9999px;
    background: var(--bk_ffffff, #FFF);
    box-shadow: 2px 2px 12px 0 rgba(0, 0, 0, 0.15);
  }
  @media (max-width: 768px) {
    .btn-top {
      display: flex;
    }
  }
  
  /* -----------------------------------
     Main Content
     ----------------------------------- */
  
  
  /* ===================================
     반응형 - Desktop First (max-width)
     =================================== */
  
  /* Tablet: 1060px 이하 */
  @media (max-width: 1060px) {
    :root {
      --content-padding: 0 20px;
      --space-section: 64px;
    }
  }
  
  /* Header - Tablet */
  @media (max-width: 1200px) {
    .header__logo-svg {
      width: auto;
      height: clamp(18px, 2vw, 24px);
    }
    .header__inner {
      padding: 20px 24px 16px;
      gap: 24px;
    }
  
    .gnb__list {
      gap: 32px;
    }
  
    .gnb__link {
      font-size: 16px;
    }
  
    .header__login {
      padding: 12px 22px;
      font-size: 16px;
    }
  }
  
  /* Footer - Tablet */
  @media (max-width: 1060px) {
    .footer {
      padding: 64px 20px 40px;
    }
  
    .footer__top {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .footer__middle-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
    }
  
    .footer__nav-list {
      gap: 28px;
      flex-wrap: wrap;
    }
  
    .footer__middle {
      flex-direction: column;
      align-items: stretch;
      gap: 28px;
    }
  
    .footer__family {
      align-self: flex-start;
    }
  
    .footer__brand {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
    }
  }
  
  /* Header - Mobile */
  @media (max-width: 1024px) {
    .header__inner {
      padding: 12px 20px;
      gap: 12px;
      position: relative;
    }
  
    .header__right {
      gap: 8px;
    }
  
    .header__toggle {
      display: inline-flex;
      order: 3;
      height: 36px;
    }
  
    .header__nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: #ffffff;
      border-top: 1px solid var(--neutral-100);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
      max-height: 0;
      overflow: hidden;
      transition: max-height 240ms ease;
    }
  
    .header.is-open .header__nav {
      max-height: 520px;
    }
  
    .gnb__list {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 8px 20px 16px;
    }
  
    .gnb__item {
      border-bottom: 1px solid var(--neutral-100);
    }
  
    .gnb__item:last-child {
      border-bottom: 0;
    }
  
    .gnb__link {
      display: block;
      padding: 24px 16px;
      font-size: 18px;
    }
  
    .gnb__link::after {
      display: none;
    }
  
    .gnb__link--active {
      color: var(--brand-700);
    }
  
    .header__actions {
      order: 2;
    }
  
    .header__login {
      padding: 8px 18px;
      font-size: 14px;
    }
  
    .footer {
      padding: 48px 20px 32px;
      font-size: 15px;
    }
  
    .footer__links {
      gap: 20px;
      flex-wrap: wrap;
    }
  
    .footer__links-item {
      font-size: 16px;
    }
  
    .footer__links-item + .footer__links-item::before {
      left: -10px;
    }
  
    .footer__nav-list {
      gap: 18px 24px;
    }
  
    .footer__nav-item {
      font-size: 16px;
    }
  
    .footer__contact-title {
      font-size: 18px;
    }
  
    .footer__contact-list,
    .footer__business-text {
      font-size: 15px;
      line-height: 26px;
    }
  
    .footer__contact-label,
    .footer__contact-value {
      line-height: 26px;
    }
  
    .footer__business-sep {
      margin: 0 6px;
    }
  
    .footer__family-btn,
    .footer__family-list {
      width: 100%;
    }
  
    .footer__tagline {
      font-size: 16px;
      flex-wrap: wrap;
    }
  
    .footer__logo img {
      width: 320px;
    }
  
    .footer__logo-svg {
      width: 170px;
      height: 22px;
    }
  
    .footer__copyright {
      font-size: 12px;
    }
  }
  
  /* Header - Mobile Dark Mode */
  @media (max-width: 1024px) {
    .header.darkmode .header__nav,
    .header.is-dark .header__nav {
      background-color: rgba(10, 10, 10, 0.95);
      border-top-color: rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
  
    .header.darkmode .gnb__item,
    .header.is-dark .gnb__item {
      border-bottom-color: rgba(255, 255, 255, 0.08);
    }
  }
  
  /* Header - Small Mobile */
  @media (max-width: 480px) {
    .header__inner {
      padding: 12px 16px;
    }
  
    .header__login {
      padding: 8px 14px;
      font-size: 13px;
    }
  
    .header__toggle {
      width: 36px;
      height: 36px;
    }
  }
  
  /* Small Mobile: 480px 이하 */
  @media (max-width: 480px) {
    .footer__nav-list {
      gap: 14px 20px;
    }
  
    .footer__nav-item {
      font-size: 15px;
    }
  
    .footer__links-item {
      font-size: 15px;
    }
  
    .footer__contact {
      min-width: 0;
    }
  }
  
  /* ===================================
     Sub Layout (공통 서브페이지 레이아웃)
     - 2가지 변형:
       1) Hero + Contents
       2) Hero + LNB + Content
     - 헤더(.header.fixed) 아래 배치, max-width 1200px 컨텐츠 영역
     =================================== */
  .sub-layout {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    padding-top: 90px;
    background: #ffffff;
  }
  
  /* Hero 블록 */
  .sub-layout__hero {
    width: 100%;
    padding: 48px;
    background: var(--neutral-50);
  }
  .sub-layout__hero.p82 {
    padding: 82px 48px;
  }
  
  .sub-layout__hero-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
  }
  
  /* Dark variant - 결과 페이지 등 */
  .sub-layout__hero--dark {
    background: linear-gradient(77.76deg, #031919 18.82%, #0f7f7f 81.18%);
    color: #ffffff;
  }
  
  /* Body */
  .sub-layout__body {
    flex: 1 0 auto;
    width: 100%;
    padding: 72px 48px 120px;
    &.body16 {
      padding-top: 16px;
    }
    &.body40 {
      padding-top: 40px;
    }
    &.body50 {
      padding-top: 50px;
    }
    &.gray {
      background-color: #FAFAFA;
    }
  }
  .sub-layout__body.row--top {
    padding-top: 16px;
  } 
  
  .sub-layout__body-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
  }
  
  /* Variant 1: 단일 콘텐츠 */
  .sub-layout__contents {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .sub-layout__contents.gap72 {
    gap: clamp(40px, 7vw, 72px);
  }
  
  .sub-layout__lnb {
    flex-shrink: 0;
    width: 285px;
    position: sticky;
    top: 110px;
  }
  
  .sub-layout__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 72px;
  }
  
  /* -----------------------------------
     Sub Layout 반응형
     ----------------------------------- */
  @media (max-width: 1200px) {
    .sub-layout {
      padding-top: 78px;
    }
    .sub-layout__hero, .sub-layout__hero.p82 {
      padding: clamp(32px, 4vw, 48px);
    }
    .sub-layout__body {
      padding: clamp(64px, 6vw, 72px) clamp(32px, 4vw, 48px) clamp(100px, 10vw, 120px);
    }
  
    .sub-layout__lnb {
      width: 200px;
    }
  }
  
  @media (max-width: 1060px) {
    .sub-layout__lnb {
      display: none;
    }
  }
  
  @media (max-width: 1024px) {
    .sub-layout {
      padding-top: 60px;
    }
  }
  
  @media (max-width: 768px) {
    .sub-layout__hero, .sub-layout__hero.p82 {
      padding: 32px 16px;
    }
  
    .sub-layout__hero-inner,
    .sub-layout__body-inner {
      padding: 0 20px;
    }
  
    .sub-layout__body {
      padding: 48px 0 80px;
    }
    .sub-layout__body.row--top {
      padding-top: 0;
    }
  
    .sub-layout__contents,
    .sub-layout__content {
      gap: 0;
    }
    
  }
  
  /* ===================================
     Login Page
     - Full-height, 2-column (visual + form)
     - No header/footer, focused UX
     =================================== */
  .login-page {
    background: 
      url(../image/login_bg_left.png) no-repeat calc(50% - 600px) 130%,
      url(../image/login_bg_right.png) no-repeat right bottom,
      #f4f4f4;
    min-height: 100vh;
    overflow-x: hidden;
  
  }
  
  .login {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    overflow: hidden;
  }
  
  .login__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1020px;
  }
  
  /* -----------------------------------
     Decorative ambient blobs
     ----------------------------------- */
  .login__deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
  }
  
  .login__deco--a {
    top: -120px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(7, 250, 216, 0.25), rgba(7, 250, 216, 0) 70%);
  }
  
  .login__deco--b {
    bottom: -160px;
    left: 20%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(74, 224, 121, 0.22), rgba(74, 224, 121, 0) 70%);
  }
  
  .login__deco--c {
    bottom: -140px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(150, 255, 244, 0.35), rgba(150, 255, 244, 0) 70%);
  }
  
  /* -----------------------------------
     Left: Visual / Copy
     ----------------------------------- */
  .login__visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    max-width: 520px;
  }
  
  .login__visual-brand img {
    height: 20px;
  }
  
  .login__visual-title {
    margin: 0;
    padding-bottom: 4px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .login__visual-title-line {
    display: block;
  }
  
  .login__visual-sub {
    margin: 0;
    padding-bottom: 24px;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
  }
  
  .login__feats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .login__feat {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .login__feat-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 0;
  }
  
  .login__feat-icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .login__feat-text {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
  }
  
  /* -----------------------------------
     Right: Login Form Card
     ----------------------------------- */
  .login-form {
    overflow: hidden;
    padding: 48px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 102, 102, 0.06);
  }
  
  .login-form__head {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  
  .login-form__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .login-form__desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--neutral-700);
  }
  
  .login-form__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 17px;
  }
  
  /* -----------------------------------
     Login Field / Input
     ----------------------------------- */
  .login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
  }
  
  .login-field__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .login-field__input {
    display: block;
    width: 100%;
  }
  
  .login-input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 21px;
    background: #ffffff;
    border: 1px solid #cecece;
    border-radius: 8px;
    color: var(--neutral-900);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
  
  .login-input::placeholder {
    color: #9e9e9e;
  }
  
  .login-input:hover {
    border-color: var(--neutral-300);
  }
  
  .login-input:focus,
  .login-input:focus-visible {
    outline: none;
    border-color: var(--neutral-900);
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.08);
  }
  
  /* -----------------------------------
     Login Options (Save ID + Find links)
     ----------------------------------- */
  .login-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 20px;
  }
  
  .login-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
  }
  
  .login-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .login-check__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 1px solid var(--neutral-300);
    border-radius: 4px;
    transition: background 150ms ease, border-color 150ms ease;
  }
  
  .login-check__icon {
    opacity: 0;
    transition: opacity 120ms ease;
  }
  
  .login-check__input:checked ~ .login-check__box {
    background: var(--neutral-900);
    border-color: var(--neutral-900);
  }
  
  .login-check__input:checked ~ .login-check__box .login-check__icon {
    opacity: 1;
  }
  
  .login-check__input:focus-visible ~ .login-check__box {
    box-shadow: 0 0 0 3px rgba(7, 250, 216, 0.4);
  }
  
  .login-check__text {
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .login-form__find {
    display: inline-flex;
    align-items: center;
    gap: 20px;
  }
  
  .login-form__find-link {
    padding: 2px;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    text-decoration: none;
    cursor: pointer;
    transition: color 150ms ease;
  }
  
  .login-form__find-link:hover,
  .login-form__find-link:focus-visible {
    color: var(--neutral-900);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  /* -----------------------------------
     Login Button
     ----------------------------------- */
  .login-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0 6px;
    background: var(--neutral-900);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 120ms ease;
  }
  
  .login-form__submit:hover {
    background: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }
  
  .login-form__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 250, 216, 0.6);
  }
  
  .login-form__submit:active {
    transform: scale(0.99);
  }
  
  /* -----------------------------------
     Divider
     ----------------------------------- */
  .login-form__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
  }
  
  .login-form__divider::before,
  .login-form__divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #cecece;
  }
  
  .login-form__divider-text {
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #9e9e9e;
  }
  
  /* -----------------------------------
     Kakao SSO
     ----------------------------------- */
  .login-form__sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 120ms ease;
  }
  
  .login-form__sso--kakao {
    background: #fee500;
    border-color: #fee500;
    color: var(--neutral-900);
  }
  
  .login-form__sso--kakao:hover {
    background: #fdd835;
    border-color: #fdd835;
    box-shadow: 0 6px 16px rgba(254, 229, 0, 0.28);
  }
  
  .login-form__sso--kakao:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 229, 0, 0.6);
  }
  
  .login-form__sso--kakao:active {
    transform: scale(0.99);
  }
  
  .login-form__sso-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 0;
  }
  
  .login-form__sso-icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  /* -----------------------------------
     Signup link
     ----------------------------------- */
  .login-form__signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
    margin: 0;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    text-align: center;
  }
  
  .login-form__signup-link {
    font-weight: 700;
    color: var(--neutral-900);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 150ms ease;
  }
  
  .login-form__signup-link:hover {
    color: var(--brand-700);
  }
  
  /* -----------------------------------
     Login Slider (로그인 ↔ 찾기 전환)
     ----------------------------------- */
  .login-form__slider {
    display: flex;
    width: 200%;
    transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .login-form__slider.is-find {
    transform: translateX(-50%);
  }
  
  .login-form__panel {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  
  .login-form__panel--find {
    opacity: 0;
    transition: opacity 300ms ease 120ms;
  }
  
  .login-form__slider.is-find .login-form__panel--find {
    opacity: 1;
  }
  
  .login-form__slider.is-find .login-form__panel--login {
    opacity: 0;
    transition: opacity 200ms ease;
  }
  
  /* -----------------------------------
     Find Tabs (아이디/비밀번호 찾기 탭)
     ----------------------------------- */
  .find-tabs {
    display: flex;
    border-bottom: 1px solid #cecece;
    padding-top: 4px;
  }
  
  .find-tabs__btn {
    flex: 1 0 0;
    padding: 0 24px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-400);
    text-align: center;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease;
  }
  
  .find-tabs__btn.is-active {
    font-weight: 700;
    color: var(--neutral-900);
    border-bottom-color: var(--neutral-900);
  }
  
  .find-tabs__panel[hidden] {
    display: none;
  }
  
  /* -----------------------------------
     Find Form
     ----------------------------------- */
  .find-form__title {
    margin: 0;
    padding-top: 20px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .find-form__desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--neutral-700);
  }
  
  .find-form__body {
    display: flex;
    flex-direction: column;
  }
  
  .find-form__field-last {
    padding-bottom: 20px;
  }
  
  .find-form__back {
    padding-top: 17px;
  }
  
  .find-form__back-link {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    cursor: pointer;
    transition: color 150ms ease;
  }
  
  .find-form__back-link:hover,
  .find-form__back-link:focus-visible {
    color: var(--neutral-900);
  }
  
  /* -----------------------------------
     Login 반응형
     ----------------------------------- */
  @media (max-width: 1200px) {
    .login-page {
      background-size: 60%, 60%;
    }
    .login {
      padding: 60px 24px;
    }
  
    .login__inner {
      grid-template-columns: minmax(0, 1fr) 440px;
      gap: 48px;
    }
  
    .login__visual-title {
      font-size: 44px;
    }
  }
  
  @media (max-width: 960px) {
    .login {
      padding: 40px 20px;
    }
  
    .login__inner {
      grid-template-columns: 1fr;
      gap: 40px;
      max-width: 480px;
      padding-top: 20px;
    }
  
    .login__visual {
      align-items: center;
      text-align: center;
      max-width: none;
    }
  
    .login__visual-title {
      font-size: 36px;
    }
    .login__visual-title-line {
      display: inline-block;
    }
  
    .login__visual-sub {
      display: none;
      padding-bottom: 16px;
      font-size: 17px;
    }
  
    .login__feats {
      display: none;
      align-items: flex-start;
    }
  
    .login__feat-text {
      font-size: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .login-form {
      padding: 32px 24px;
    }
  
    .login-form__title {
      font-size: 22px;
    }
  
    .login-form__desc {
      font-size: 15px;
    }
  
    .login-form__options {
      flex-wrap: wrap;
      gap: 10px;
    }
  
    .login__visual-title {
      font-size: 30px;
    }
  
    .login__visual-sub {
      font-size: 16px;
    }
  
    .find-form__title {
      font-size: 22px;
    }
  
    .find-form__desc {
      font-size: 15px;
    }
  }
  
  /* ===================================
     강의 탐색 페이지 (Course)
     =================================== */
  
  /* -----------------------------------
     Search Hero
     ----------------------------------- */
  .search-hero {
    position: relative;
    width: 100%;
    padding: 60px 48px;
    background:
    url('../image/course/hero_img1.png') no-repeat 0% bottom,
    url('../image/course/hero_img2.png') no-repeat 85% top,
    linear-gradient(77.76deg, #031919 18.82%, #0f7f7f 81.18%)
    ;
    overflow: hidden;
  }
  
  .search-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .search-hero__deco {
    position: absolute;
    border-radius: 50%;
  }
  
  .search-hero__deco--1 {
    top: -40%;
    right: -10%;
    width: 500px;
    height: 546px;
    background: radial-gradient(circle, rgba(7, 250, 216, 0.08) 0%, rgba(7, 250, 216, 0) 70%);
  }
  
  .search-hero__deco--2 {
    top: -24%;
    left: -5%;
    width: 400px;
    height: 437px;
    background: radial-gradient(circle, rgba(77, 250, 131, 0.06) 0%, rgba(77, 250, 131, 0) 70%);
  }
  
  .search-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
  }
  
  .search-hero__title {
    margin: 0;
    padding-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: #eeeeee;
    text-align: center;
  }
  
  .search-hero__title-line {
    display: block;
  }
  
  .search-hero__title-accent {
    color: var(--brand-300);
    font-style: normal;
  }
  
  .search-hero__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 60px;
    padding: 0 8px 0 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  }
  
  .search-hero__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
    outline: none;
  }
  
  .search-hero__input::placeholder {
    color: var(--neutral-300);
  }
  
  .search-hero__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 70px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background-color: var(--brand-700);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 150ms ease;
    img {
      filter: invert(1) brightness(1);
    }
  }
  
  .search-hero__btn:hover {
    background-color: var(--brand-800);
  }
  
  .search-hero__btn img {
    display: block;
    width: 22px;
    height: 22px;
  }
  
  /* -----------------------------------
     Course Body (3-column layout)
     ----------------------------------- */
  .course-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: var(--content-max-width);
    margin: 0 auto;
  }
  
  /* -----------------------------------
     Course LNB (Left Navigation)
     ----------------------------------- */
  .course-lnb {
    flex-shrink: 0;
    width: 285px;
    position: sticky;
    top: 110px;
    padding: 12px 0;
  }
  
  .course-cat__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .course-cat__link {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 4px 0;
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: var(--neutral-900);
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: color 150ms ease;
  }
  
  .course-cat__link:hover,
  .course-cat__item--has-sub.is-open > .course-cat__link {
    color: var(--brand-700);
  }
  
  .course-cat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  
  .course-cat__icon img {
    display: block;
    width: 22px;
    height: 22px;
  }
  
  .course-cat__name {
    line-height: 1;
  }
  
  /* 하위 카테고리 (2depth) - 기본 숨김, 1depth 클릭 시 노출 */
  .course-cat__sub {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .course-cat__sub[hidden] {
    display: none;
  }
  
  .course-cat__sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-800);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 150ms ease, font-weight 150ms ease;
  }
  
  .course-cat__sub-link:hover {
    background-color: var(--neutral-50);
  }
  
  .course-cat__sub-link--active {
    background-color: var(--neutral-50);
    font-weight: 600;
  }
  
  .course-cat__sub-arrow {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  /* 퀵필터 태그 (3depth) - 기본 숨김, 2depth 클릭 시 노출 */
  .course-qf {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 6px 16px;
  }
  
  .course-qf[hidden] {
    display: none;
  }
  
  .course-qf__pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease;
  }
  
  .course-qf__pill:hover {
    border-color: var(--neutral-400);
  }
  
  .course-qf__pill--active {
    border-color: var(--brand-700);
    color: var(--brand-700);
  }
  
  .course-qf__reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--brand-700);
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 150ms ease;
  }
  
  /* pill이 하나라도 선택되면 초기화 버튼 활성화 */
  .course-qf:has(.course-qf__pill--active) .course-qf__reset {
    opacity: 1;
  }
  
  .course-qf__reset:hover {
    opacity: 1;
  }
  
  .course-qf__reset img {
    display: block;
    width: 16px;
    height: 16px;
  }
  
  /* -----------------------------------
     Course List (Center)
     ----------------------------------- */
  .course-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .course-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }
  
  .course-list__count {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .course-list__count strong {
    color: var(--brand-600);
    font-weight: 700;
  }
  
  .course-list__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    cursor: pointer;
    transition: color 150ms ease;
  }
  
  .course-list__sort:hover {
    color: var(--neutral-900);
  }
  
  .course-list__sort img {
    display: block;
    width: 16px;
    height: 16px;
  }
  
  .course-list__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* -----------------------------------
     Course Card
     ----------------------------------- */
  .course-card {
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 150ms ease;
  }
  
  .course-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .course-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 128px;
  }
  
  .course-card__info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 16px 0 16px 16px;
    overflow: hidden;
  }
  
  .course-card__thumb {
    flex-shrink: 0;
    width: 171px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .course-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .course-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .course-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .course-card__tags {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .course-card__tag {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 4px 6px;
    background: var(--neutral-50);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-700);
  }
  
  .course-card__tag--time {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  
  .course-card__tag--time img {
    display: block;
    width: 14px;
    height: 14px;
  }
  
  .course-card__actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    padding: 0 16px;
  }
  
  .course-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, opacity 150ms ease;
  }
  
  .course-card__btn--add {
    background: var(--neutral-900);
    color: #ffffff;
  }
  
  .course-card__btn--add:hover {
    background: #000000;
  }
  
  .course-card__btn--done {
    background: var(--neutral-200);
    color: #ffffff;
    cursor: default;
  }
  
  .course-card__btn--more {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-900);
  }
  
  .course-card__btn--more:hover {
    background: var(--neutral-50);
  }
  
  /* 카드 펼침 상태 */
  .course-card__detail {
    padding: 12px 16px 16px;
    background: var(--neutral-50);
    border-top: 1px solid #dedede;
  }
  
  .course-card__detail-list {
    margin: 0;
  }
  
  .course-card__detail-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  
  .course-card__detail-label {
    flex-shrink: 0;
    width: 84px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    list-style: disc inside;
  }
  
  .course-card__detail-label::before {
    content: "• ";
    margin-right: 4px;
  }
  
  .course-card__detail-value {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: #333333;
  }
  
  /* -----------------------------------
     Course Pager
     ----------------------------------- */
  .course-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
  }
  
  .course-pager__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--neutral-400);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
  }
  
  .course-pager__btn:hover {
    background: var(--neutral-50);
    color: var(--neutral-900);
  }
  
  .course-pager__btn--active {
    background: var(--neutral-900);
    color: #ffffff;
  }
  
  .course-pager__btn--active:hover {
    background: var(--neutral-900);
    color: #ffffff;
  }
  
  .course-pager__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: var(--neutral-400);
  }
  
  /* -----------------------------------
     Course Cart (Floating FAB + Panel)
     ----------------------------------- */
  .course-cart {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    width: 314px;
    pointer-events: none;
  }
  
  .course-cart__inner,
  .course-cart__fab {
    pointer-events: auto;
  }
  
  .course-cart__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
  }
  
  .course-cart__inner[hidden] {
    display: none;
  }
  
  .course-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 20px;
    background: #f2f2f2;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
  }
  
  /* 데스크톱: 아이콘/힌트/caret 숨김 (X만 표시) */
  .course-cart__header-icon,
  .course-cart__header-hint,
  .course-cart__header-toggle-caret {
    display: none;
  }
  
  .course-cart__header-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--neutral-900);
    font-weight: 700;
    line-height: 1;
  }
  
  .course-cart__header-title {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  
  .course-cart__header-count {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  
  .course-cart__header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--neutral-900);
    opacity: 0.85;
    transition: opacity 150ms ease, transform 200ms ease;
  }
  
  .course-cart__header:hover .course-cart__header-toggle {
    opacity: 1;
  }
  
  .course-cart__header-toggle svg {
    display: block;
  }
  
  .course-cart__body {
    display: flex;
    flex-direction: column;
  }
  
  /* 프로그레스 */
  .course-cart__progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--neutral-100);
  }
  
  .course-cart__progress-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .course-cart__progress-bar {
    flex: 1 1 auto;
    height: 6px;
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    overflow: hidden;
  }
  
  .course-cart__progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
    transition: width 300ms ease;
  }
  
  .course-cart__progress-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--brand-700);
  }
  
  .course-cart__progress-label strong {
    font-weight: 700;
  }
  
  .course-cart__progress-hint {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
  }
  
  .course-cart__progress-hint strong {
    font-weight: 700;
  }
  
  /* 아이템 목록 */
  .course-cart__items {
    padding: 20px 16px 16px;
    background: #ffffff;
    overflow: hidden;
  }
  
  .course-cart__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* 5개 초과 시 내부 스크롤: 아이템 60px * 5 + gap 12px * 4 = 348px */
    max-height: 348px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-200) transparent;
  }
  
  .course-cart__list::-webkit-scrollbar {
    width: 4px;
  }
  
  .course-cart__list::-webkit-scrollbar-thumb {
    background: var(--neutral-200);
    border-radius: 4px;
  }
  
  .course-cart__list::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .course-cart__item {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .course-cart__item-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .course-cart__item-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .course-cart__item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .course-cart__item-cat {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-700);
  }
  
  .course-cart__item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .course-cart__item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background-color 150ms ease;
  }
  
  .course-cart__item-remove:hover {
    background: var(--neutral-50);
  }
  
  .course-cart__item-remove img {
    display: block;
    width: 14px;
    height: 14px;
  }
  
  /* 하단 CTA */
  .course-cart__footer {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid var(--neutral-100);
  }
  
  .course-cart__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--neutral-900);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease;
  }
  
  .course-cart__cta:hover {
    background: #000000;
  }
  
  /* FAB: 장바구니 토글 버튼 */
  .course-cart__fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--neutral-900);
    color: #ffffff;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
    align-self: flex-end;
  }
  
  .course-cart__fab:hover {
    background: #000000;
    transform: translateY(-1px);
  }
  
  .course-cart__fab-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
  
  .course-cart__fab-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--brand-300);
    color: var(--neutral-800);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  
  /* -----------------------------------
     Course 반응형
     ----------------------------------- */
  
  /* Tablet: 1200px 이하 */
  @media (max-width: 1200px) {
    .search-hero {
      padding: 48px 32px;
    }
  
    .search-hero__title {
      font-size: 24px;
    }
  
    .course-body {
      gap: 32px;
      padding: 0 32px;
    }
  
    .course-lnb {
      width: 240px;
    }
  
    .course-cart {
      width: 300px;
      right: 24px;
      bottom: 24px;
    }
  }
  
  /* Tablet: 1060px 이하 - LNB 숨김, 카트 유지 */
  @media (max-width: 1060px) {
    .course-lnb {
      display: none;
    }
  
    .course-body {
      gap: 24px;
      padding: 0 20px;
    }
  
    .course-card__thumb {
      width: 140px;
      height: 80px;
    }
  
    .course-card__title {
      font-size: 18px;
    }
  }
  
  /* Mobile: 768px 이하 - 카트 하단 고정 */
  @media (max-width: 768px) {
    .search-hero {
      padding: 32px 20px;
      background: #031919;
    }
  
    .search-hero__title {
      display: none;
    }
  
    .search-hero__bar {
      padding-left: 42px;
      height: 44px;
      border-radius: 8px;
      background: #516060 url('../image/course/icon-search-w.svg') no-repeat 16px center;
      background-size: 18px;
    }
  
    .search-hero__input {
      font-size: 16px;
      color: #fff;
    }
    .search-hero__input::placeholder {
      color: #fff;
    }
    .search-hero__btn {
      display: none;
    }
  
    .course-body {
      flex-direction: column;
      padding: 0 20px;
    }
  
    /* -----------------------------------
       Mobile: Course LNB (가로 스크롤 4단)
       ----------------------------------- */
    .course-lnb {
      display: block;
      position: relative;
      width: 100%;
      margin: 0 -20px;
      width: calc(100% + 40px);
      background: #ffffff;
      top: 0;
      padding: 0;
    }
  
    .course-cat {
      display: flex;
      flex-direction: column;
    }
  
    .course-cat__list {
      display: flex;
      flex-direction: row;
      gap: 0;
      padding: 0 20px;
      border-bottom: 1px solid var(--neutral-100);
      overflow-x: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .course-cat__list::-webkit-scrollbar { display: none; }
  
    .course-cat__item {
      flex-shrink: 0;
      border-bottom: 0;
    }
  
    /* 1depth: 텍스트 탭으로 전환, 아이콘 제거 */
    .course-cat__link {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 13px 12px 14px;
      background: transparent;
      border: 0;
      font-size: 13px;
      font-weight: 500;
      line-height: 1;
      letter-spacing: -0.04em;
      color: var(--neutral-400);
      white-space: nowrap;
      cursor: pointer;
    }
  
    .course-cat__icon {
      display: none;
    }
  
    .course-cat__link--active,
    .course-cat__item--has-sub.is-open .course-cat__link {
      font-weight: 700;
      color: var(--neutral-900);
    }
  
    .course-cat__link--active::after,
    .course-cat__item--has-sub.is-open .course-cat__link::after {
      content: "";
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 0;
      height: 2px;
      background: var(--neutral-900);
      border-radius: 1px;
    }
  
    /* 2depth: 열린 1depth의 sub만 LNB 하단에 absolute 로 깔림 */
    
  
    .course-cat__sub {
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    .course-cat__item--has-sub.is-open > .course-cat__sub:not([hidden]) {
      position: absolute;
      top: 45px;
      left: 0;
      right: 0;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      row-gap: 0;
      column-gap: 5px;
      padding: 0 20px;
      background: #fafafa;
      border-bottom: 1px solid var(--neutral-100);
      overflow: visible;
      z-index: 1;
    }
  
    .course-cat__sub-item {
      flex-shrink: 0;
    }
  
    .course-cat__sub-link {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 11px 10px 12px;
      background: transparent;
      border: 0;
      font-size: 12px;
      font-weight: 500;
      line-height: 1;
      letter-spacing: -0.04em;
      color: var(--neutral-400);
      white-space: nowrap;
      cursor: pointer;
    }
  
    .course-cat__sub-arrow {
      display: none;
    }
  
    .course-cat__sub-link--active,
    .course-cat__sub-link[aria-expanded="true"] {
      font-weight: 700;
      color: var(--neutral-900);
    }
  
    /* 3depth chips: 열린 2depth의 qf 만 sub 바로 아래에 absolute (sub 기준 top:100%) */
    .course-cat__sub-link[aria-expanded="true"] + .course-qf:not([hidden]) {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 8px;
      padding: 10px 20px 12px;
      overflow-x: auto;
      overflow-y: hidden;
      -ms-overflow-style: none;
      scrollbar-width: none;
      z-index: 2;
      background: #ffffff;
      border-bottom: 1px solid var(--neutral-100);
    }
    .course-cat__sub-link[aria-expanded="true"] + .course-qf:not([hidden])::-webkit-scrollbar { display: none; }
  
    .course-qf__pill {
      flex-shrink: 0;
      padding: 8px 13px 9px;
      background: #ffffff;
      border: 1px solid var(--neutral-200);
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 400;
      line-height: 1;
      letter-spacing: -0.04em;
      color: var(--neutral-500);
      white-space: nowrap;
      cursor: pointer;
    }
  
    .course-qf__pill--active {
      border-color: var(--brand-700);
      color: var(--brand-700);
    }
  
    .course-qf__reset {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 8px 13px 9px;
      background: #ffffff;
      border: 1px solid var(--neutral-200);
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 400;
      line-height: 1;
      letter-spacing: -0.04em;
      color: var(--neutral-400);
      white-space: nowrap;
      cursor: pointer;
    }
  
    .course-qf__reset img {
      width: 12px;
      height: 12px;
    }
  
    /* LNB 높이 확보 (열린 depth에 따라 확장, 2depth wrap 고려) */
    .course-lnb { min-height: 45px; }
    .course-lnb:has(.course-cat__item--has-sub.is-open) { min-height: 100px; }
    .course-lnb:has(.course-cat__sub-link[aria-expanded="true"]) { min-height: 180px; }
  
    /* -----------------------------------
       Mobile: Course Cart (바텀 도킹 + 토글)
       ----------------------------------- */
    .course-cart {
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      max-width: none;
      gap: 0;
      align-items: stretch;
      pointer-events: none;
    }
  
    .course-cart__fab {
      display: none;
    }
  
    .course-cart__inner,
    .course-cart__inner[hidden] {
      display: flex;
      flex-direction: column;
      width: 100%;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      pointer-events: auto;
    }
  
    .course-cart__header {
      gap: 20px;
      padding: 20px 24px;
      background: #f2f2f2;
    }
  
    .course-cart__header-icon {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      background: var(--neutral-900);
      color: #ffffff;
      border-radius: var(--radius-full);
    }
  
    .course-cart__header-icon-bag {
      display: block;
      width: 15px;
      height: 15px;
    }
  
    .course-cart__header-badge {
      position: absolute;
      top: -6px;
      right: -6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 4px;
      background: var(--brand-300);
      color: var(--neutral-800);
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.04em;
    }
  
    .course-cart__header-text {
      flex: 1 1 auto;
      flex-wrap: wrap;
      row-gap: 4px;
      column-gap: 4px;
      align-items: center;
    }
  
    .course-cart__header-title {
      font-size: 15px;
      color: var(--neutral-800);
    }
  
    .course-cart__header-count {
      font-size: 15px;
      font-weight: 700;
      color: var(--brand-700);
    }
  
    .course-cart__header-hint {
      flex-basis: 100%;
      font-size: 13px;
      font-weight: 400;
      line-height: 1;
      letter-spacing: -0.04em;
      color: var(--neutral-500);
    }
  
    .course-cart__header-toggle-x {
      display: none;
    }
  
    .course-cart__header-toggle-caret {
      display: block;
      transform: rotate(180deg);
      transition: transform 200ms ease;
    }
  
    .course-cart__header-toggle {
      width: 24px;
      height: 24px;
    }
  
    /* 접힌 상태: body 숨김 */
    .course-cart__body {
      max-height: 60vh;
      overflow: hidden;
      background: #ffffff;
      transition: max-height 240ms ease;
    }
  
    .course-cart:not(.is-expanded) .course-cart__body {
      max-height: 0;
    }
  
    .course-cart.is-expanded .course-cart__header-toggle-caret {
      transform: rotate(0deg);
    }
  
    /* 펼친 상태: 리스트 내부 스크롤 */
    .course-cart.is-expanded .course-cart__list {
      max-height: calc(60vh - 120px);
    }
  
    .course-cart__progress {
      display: none; /* 모바일 헤더의 hint가 대체 */
    }
  
    .course-cart__items {
      padding: 20px 24px 4px;
    }
  
    .course-cart__item-thumb {
      width: 50px;
      height: 50px;
    }
  
    .course-cart__item-title {
      font-size: 15px;
    }
  
    .course-cart__footer {
      padding: 24px 20px 32px;
      border-top: 1px solid var(--neutral-100);
    }
  
    .course-cart__cta {
      height: 52px;
      font-size: 16px;
    }
  
    .course-card__main {
      flex-direction: column;
      height: auto;
    }
  
    .course-card__info {
      padding: 16px;
      width: 100%;
    }
  
    .course-card__actions {
      flex-direction: row;
      padding: 0 16px 16px;
      width: 100%;
    }
  
    .course-card__btn {
      flex: 1 1 auto;
      width: auto;
    }
  
    .course-card__thumb {
      width: 120px;
      height: 68px;
    }
  
    .course-card__title {
      font-size: 16px;
    }
  
    .course-list__count {
      font-size: 16px;
    }
  }
  
  /* Small Mobile: 480px 이하 */
  @media (max-width: 480px) {
    .search-hero__title {
      font-size: 18px;
    }
  
    .course-card__thumb {
      width: 100px;
      height: 56px;
    }
  
    .course-card__tags {
      flex-wrap: wrap;
      gap: 4px;
    }
  
    .course-pager__btn {
      width: 34px;
      height: 34px;
      font-size: 13px;
    }
  }
  
  /* ===================================
     Common Modal (공통 모달/팝업)
     - front.js의 openModal/closeModal 헬퍼와 함께 사용
     - 구조:
       <div class="modal" id="..." hidden>
         <div class="modal__dim" data-modal-close></div>
         <div class="modal__panel" role="dialog">
           <span class="modal__icon modal__icon--success"><svg/></span>
           <h2 class="modal__title">...</h2>
           <p class="modal__desc">...</p>
           <div class="modal__actions">
             <button class="modal__btn modal__btn--primary">확인</button>
           </div>
         </div>
       </div>
     =================================== */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .modal[hidden] {
    display: none;
  }
  
  .modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
  }
  
  .modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: modalPop 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  
  @keyframes modalPop {
    from { transform: translateY(8px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
  
  .modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    line-height: 0;
  }
  
  .modal__icon--success {
    background: #005a54;
    border: 1px solid #f8fffe;
    color: #ffffff;
  }
  
  .modal__icon--warning {
    background: #fffaf0;
    border: 1px solid #ffbc4f;
    color: #e1a325;
  }
  
  .modal__icon--danger {
    background: #fff4f4;
    border: 1px solid #ff5e5d;
    color: #e14942;
  }
  
  .modal__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: #1e1e1e;
    text-align: center;
  }
  
  .modal__desc {
    margin: 0;
    padding-bottom: 20px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.04em;
    color: #6e6e6e;
    text-align: center;
  }
  
  .modal__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  
  .modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 54px;
    padding: 0 32px;
    border: 1px solid #cecece;
    background: #ffffff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #1e1e1e;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  .modal__btn.w227 {
    width: 227px;
  }
  
  .modal__btn:hover {
    border-color: #1e1e1e;
    background: #f8f8f8;
  }
  
  .modal__btn--primary {
    background: #1e1e1e;
    border-color: #1e1e1e;
    color: #ffffff;
  }
  
  .modal__btn--primary:hover {
    background: #2e2e2e;
    border-color: #2e2e2e;
    color: #ffffff;
  }
  
  @media (max-width: 480px) {
    .modal__panel { padding: 28px 20px; }
    .modal__title { font-size: 22px; }
    .modal__desc { font-size: 14px; }
    .modal__btn { min-width: 100px; height: 48px; font-size: 16px; padding: 0 20px; }
  }
  
  /* 모달 노출 시 body 스크롤 잠금 */
  body.is-modal-open {
    overflow: hidden;
  }
  
  /* ===================================
     Join Page (회원가입)
     - Step1 약관 동의 → Step2 회원 정보 입력
     - 단일 카드 (480px) 중앙 배치, header/footer 없음
     =================================== */
  .join-page {
    background:
      url(../image/login_bg_left.png) no-repeat calc(50% - 600px) 130%,
      url(../image/login_bg_right.png) no-repeat right bottom,
      #f4f4f4;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  .join {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
  }
  
  /* 카드 컨테이너 */
  .join-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 102, 102, 0.06);
  }
  
  .join-form__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 7px;
    font-family: 'Sandoll Gaehwa', 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: #0e0e0e;
    text-decoration: none;
  }
  .join-form__brand img {
    display: block;
    height: 18px;
  }
  
  /* -----------------------------------
     Panel 전환
     ----------------------------------- */
  .join-form__panel {
    display: none;
    flex-direction: column;
    gap: 7px;
  }
  .join-form__panel.is-active {
    display: flex;
    animation: joinPanelIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes joinPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .join-form__head {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 16px;
  }
  
  .join-form__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .join-form__desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: var(--neutral-700);
  }
  
  .join-form__body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  /* -----------------------------------
     Field
     ----------------------------------- */
  .join-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
  }
  
  .join-field__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  
  .join-field__input {
    display: block;
    width: 100%;
  }
  
  .join-field__input--readonly .join-input {
    background: #fafafa;
    color: var(--neutral-500);
    cursor: default;
  }
  
  .join-field__row {
    display: flex;
    gap: 7px;
  }
  .join-field__row .join-field__input {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .join-field__btn {
    flex-shrink: 0;
    width: 110px;
    height: 54px;
    padding: 0 6px;
    background: #ffffff;
    color: var(--neutral-900);
    border: 1px solid var(--neutral-900);
    border-radius: 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
  }
  .join-field__btn:hover,
  .join-field__btn:focus-visible {
    outline: none;
    background: var(--neutral-900);
    color: #ffffff;
  }
  .join-field__btn:disabled {
    border-color: var(--neutral-200);
    color: var(--neutral-300);
    background: #ffffff;
    cursor: not-allowed;
  }
  .join-field__btn.is-done {
    border-color: var(--brand-700);
    background: var(--brand-700);
    color: #ffffff;
  }
  
  .join-field-row {
    display: flex;
    gap: 7px;
  }
  .join-field-row .join-field {
    flex: 1 1 0;
    min-width: 0;
  }
  
  .join-field__help {
    margin: 0;
    padding-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.04em;
    color: var(--color-error);
  }
  .join-field__help--ok {
    color: var(--brand-700);
  }
  
  /* -----------------------------------
     Input
     ----------------------------------- */
  .join-input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 21px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    color: var(--neutral-900);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
  .join-input::placeholder {
    color: var(--neutral-300);
  }
  .join-input:hover:not(:read-only) {
    border-color: var(--neutral-300);
  }
  .join-input:focus,
  .join-input:focus-visible {
    outline: none;
    border-color: var(--neutral-900);
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.08);
  }
  .join-input.is-error {
    border-color: var(--color-error);
  }
  .join-input.is-error:focus,
  .join-input.is-error:focus-visible {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(225, 73, 66, 0.12);
  }
  .join-input.is-ok {
    border-color: var(--brand-600);
  }
  
  /* -----------------------------------
     Select
     ----------------------------------- */
  .join-select {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 45px 0 21px;
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5l5 5 5-5' stroke='%239e9e9e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 18px center;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    color: var(--neutral-900);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.04em;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
  .join-select:focus,
  .join-select:focus-visible {
    outline: none;
    border-color: var(--neutral-900);
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.08);
  }
  .join-select:has(option[value=""]:checked) {
    color: var(--neutral-300);
  }
  .join-select.is-error {
    border-color: var(--color-error);
  }
  
  /* -----------------------------------
     Terms (약관 박스)
     ----------------------------------- */
  .join-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px 16px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
  }
  
  .join-terms__all {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .join-terms__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .join-terms__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .join-terms__view {
    padding: 2px;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-300);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 150ms ease;
  }
  .join-terms__view:hover,
  .join-terms__view:focus-visible {
    outline: none;
    color: var(--neutral-700);
  }
  
  .join-terms__req {
    margin-left: 2px;
    color: var(--color-error);
  }
  .join-terms__opt {
    margin-left: 2px;
    color: var(--neutral-300);
  }
  
  /* -----------------------------------
     Check (체크박스)
     ----------------------------------- */
  .join-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
  }
  
  .join-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .join-check__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 1px solid var(--neutral-300);
    border-radius: 4px;
    transition: background 150ms ease, border-color 150ms ease;
  }
  
  .join-check__icon {
    opacity: 0;
    transition: opacity 120ms ease;
  }
  
  .join-check__input:checked ~ .join-check__box {
    background: var(--neutral-900);
    border-color: var(--neutral-900);
  }
  .join-check__input:checked ~ .join-check__box .join-check__icon {
    opacity: 1;
  }
  .join-check__input:focus-visible ~ .join-check__box {
    box-shadow: 0 0 0 3px rgba(7, 250, 216, 0.4);
  }
  
  .join-check__text {
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
  }
  .join-check__text--strong {
    font-weight: 600;
  }
  
  /* -----------------------------------
     Submit / Login link
     ----------------------------------- */
  .join-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin-top: 24px;
    padding: 0 6px;
    background: var(--neutral-900);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 120ms ease;
  }
  .join-form__submit:hover {
    background: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }
  .join-form__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 250, 216, 0.6);
  }
  .join-form__submit:active {
    transform: scale(0.99);
  }
  .join-form__submit:disabled {
    background: var(--neutral-200);
    color: var(--neutral-400);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }
  
  .join-form__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
    margin: 0;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--neutral-500);
    text-align: center;
  }
  
  .join-form__login-link {
    font-weight: 700;
    color: var(--neutral-900);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 150ms ease;
  }
  .join-form__login-link:hover {
    color: var(--brand-700);
  }
  
  /* -----------------------------------
     Join 반응형
     ----------------------------------- */
  @media (max-width: 1200px) {
    .join-page {
      background-size: 60%, 60%;
    }
  }
  
  @media (max-width: 768px) {
    .join {
      padding: 40px 20px;
    }
    .join-form {
      padding: 36px 24px;
    }
    .join-form__title {
      font-size: 22px;
    }
    .join-form__desc {
      font-size: 15px;
    }
    .join-form__brand img {
      height: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .join {
      padding: 24px 16px;
    }
    .join-form {
      padding: 28px 20px;
    }
    .join-field-row {
      flex-direction: column;
      gap: 0;
    }
    .join-field__row {
      flex-wrap: wrap;
    }
    .join-field__btn {
      width: 100%;
    }
    .join-terms {
      padding: 16px 14px;
    }
    .join-terms__view {
      font-size: 13px;
    }
  }
  