main {
  background-color: var(--wh);
}

.pc-img,
.mo-img {
  object-fit: cover;
}

.title {
  display: flex;
  flex-direction: column;
  padding: var(--page-pt) var(--page-px) var(--page-pb);
}

.title-text {
  line-height: 1.3;
  padding-bottom: 20px;
}

.title p {
  font-size: var(--fs-body);
}

.tab {
  padding: 10px var(--page-px);
  border-bottom: 1px solid var(--g-200);
  position: sticky;
  top: 70px; /* header height(70) + border */
  z-index: 90; /* header(100) 아래, 다른 컨텐츠 위 */
  background-color: var(--wh);
}

.tab-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.tab-scroll a {
  cursor: grab;
}

.tab-scroll:active,
.tab-scroll:active a {
  cursor: grabbing;
}

.tab-scroll::-webkit-scrollbar {
  display: none;
}

.tab-list {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  min-width: max-content;
  width: max-content;
}

.tab-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    span {
      color: var(--bl);
      font-weight: 500;
    }
  }
}

.tab-item a {
  height: 100%;
  /* padding: 0 0 10px; */
}

.tab-item a span {
  font-size: var(--fs-body);
  /* font-weight: 600; */
  color: var(--g-600);
}

.tab-hover-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition:
    left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 탭 앵커: sticky 헤더·탭 아래로 섹션 제목 */
.program-list .program-list__list {
  scroll-margin-top: 120px;
}

.program-list__list {
  display: flex;
  padding: 60px var(--page-px);
}

.program-list__list > p {
  display: flex;
  line-height: 1.2;
}

.program-list__section-title {
  display: flex;
  position: sticky;
  top: 150px; /* header(70) + border(1) + sticky tab height */
  flex: 1 1;
  align-self: flex-start;
  z-index: 2;
}

.program-list__item {
  display: flex;
  flex: 1;
  width: auto;
  flex-direction: column;
  gap: 60px;
  align-items: flex-start;
}

.program-list__item a {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.program-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.program-list__item a button {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.program-list__item a button > span {
  display: flex;
  padding-top: 2px;
}

.program-list__item a button img {
  width: 32px;
}

/* [수정] .program-sticky-title / .program-list__section-title--hidden
   — HTML에 해당 요소 없음, JS도 early-return으로 동작 안 함 → 제거 */

.program-list__item a > .time {
  display: flex;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--g-200);
}

@media (max-width: 1024px) {
  .tab-hover-line {
    display: none;
  }

  /* Tab - 모바일 패딩만 조정 (가로 스크롤은 공통) */
  .tab {
    top: 55px; /* header height(54) + border */
    padding: 10px var(--page-px);
  }

  .tab-list {
    gap: 20px;
  }

  /* Program list */
  .program-list {
    padding: 0;
  }

  .program-list__list {
    flex-direction: column;
    padding: 40px var(--page-px) 60px;
    gap: 20px;
  }

  .program-list .program-list__list {
    scroll-margin-top: calc(94px + 40px);
  }

  .program-list__section-title {
    position: static;
    font-size: var(--fs-subtitle);
    flex-basis: auto;
    width: 100%;
    /* padding-bottom: 24px; */
    /* border-bottom: 1px solid var(--g-200); */
  }

  .program-list__item {
    flex-direction: column;
    gap: 40px;
  }

  .program-list__item a {
    gap: 15px;
  }

  .program-list__item a button {
    gap: 6px;
  }

  .program-list__item a button span {
    font-size: var(--fs-body);
  }

  .program-list__item a button img {
    width: 24px;
  }

  .program-list__item a p {
    font-size: var(--fs-detail);
  }

  .program-list__item a > .time {
    font-size: var(--fs-detail);
    padding-top: 16px;
  }
}
