@charset "UTF-8";
/* ---------------------------------------------------------------------------
 * rem($px)
 * - px → rem 변환 (기준: 16px = 1rem)
 * - 사용 예: fn.rem(32) → 2rem
 * ------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
 * dim($level, $base: #000)
 * - 배경/오버레이 등 dim 처리용 alpha 값 생성
 * - $level: 투명도 (0~100), math.clamp로 범위 보정
 * - $base: 색상 (기본: #000)
 * 사용 예:
 *   dim(60)       → rgba(#000, 0.6)
 *   dim(12, #fff) → rgba(#fff, 0.12)
 * ------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
 * full-height (모바일 뷰포트 높이 보정)
 *
 * - iOS/안드 주소창·툴바 변화에도 화면 높이(래퍼 min-height) 안정화
 * - 100vh 기본 → 100dvh 우선 → 미지원 시 --vh로 대체
 * - 최상위 래퍼에 @include full-height;
 * --------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
 * 브레이크포인트
 *
 * - 사용 예시:
 *   @include mq($min: 768px) {
 *     .container {
 *       width: 100%;
 *     }
 *   }
 *   @include mq($max: 768px) {
 *     .container {
 *       width: 100%;
 *     }
 *   }
 *   @include mq($min: 768px, $max: 1024px) {
 *     .container {
 *       width: 100%;
 *     }
 *   }
 * --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
 * hoverable-only / common-mouse-event
 * - hoverable-only: 마우스/트랙패드 등 호버 가능한 장치에서만 스타일 적용
 * - common-mouse-event: hover, focus-visible, active에서 동일 스타일 적용
 *   (호버 가능한 장치면 hover + focus/active 적용, 아닌 장치는 focus/active만)
 * - 사용 예:
 *   @include common-mouse-event {
 *     outline: 1px solid #000;
 *   }
 * ------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
 * background 믹스인
 * - 역할: 배경 색상, 이미지, 반복, 위치, 크기를 한 번에 설정
 * - 기본값:
 *     $url: 'none' (이미지 없음)
 *     $color: color.white(ffffff)
 *     $repeat: no-repeat
 *     $position: center
 *     $size: contain
 * - 사용 시 주의:
 *     배경 이미지는 www/assets/img/ → URL /assets/img/ 기준 상대 경로
 *     예: "ills/temp.png" → /assets/img/ills/temp.png
 * - 사용 예시:
 *     @use '../abstracts/mixins' as mx;
 *     .example {
 *       @include mx.background("ills/temp.png");
 *       @include mx.background("none", color.gray(5d5d5d));
 *     }
 * ------------------------------------------------------------------------- */
/* input search 초기화 */
.curriculum-popular {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
}
@media (min-width: 481px) {
  .curriculum-popular {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}
@media (max-width: 480px) {
  .curriculum-popular {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}
.curriculum-popular {
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
  gap: 0.5rem;
}
.curriculum-popular__header {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}
.curriculum-popular__header-main {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
  min-width: 0;
}
.curriculum-popular__top {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  font-family: "Pretendard Std", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  color: #183a9e;
  letter-spacing: -0.02em;
  width: fit-content;
  height: 1.5rem;
  padding: 0 0.5rem;
  background: #e8f4ff;
  border-radius: 1.25rem;
}
.curriculum-popular__title {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  font-family: "Pretendard Std", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.6;
  color: #111;
  letter-spacing: -0.02em;
  gap: 0.25rem;
}
.curriculum-popular__title .ic {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  color: #f9e000;
}
.curriculum-popular__title .point-color {
  color: #183a9e;
}
@media (max-width: 480px) {
  .curriculum-popular__title {
    font-size: 1.125rem;
  }
}
.curriculum-popular__card {
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 3rem;
}
@media (max-width: 480px) {
  .curriculum-popular__card {
    border-radius: 1rem;
  }
}
.curriculum-popular__viewport {
  position: relative;
  height: 3rem;
  overflow: hidden;
}
@media (max-width: 480px) {
  .curriculum-popular__viewport {
    height: 2.5rem;
  }
}
.curriculum-popular__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.curriculum-popular__item.is-hidden {
  display: none;
}
.curriculum-popular__link, .curriculum-popular__row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1.25rem;
  background: #fff;
}
@media (max-width: 480px) {
  .curriculum-popular__link, .curriculum-popular__row {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
.curriculum-popular__link {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
@media (any-hover: hover) and (any-pointer: fine) {
  .curriculum-popular__link:hover .curriculum-popular__name,
  .curriculum-popular__link:hover .curriculum-popular__detail {
    color: #183a9e;
  }
}
.curriculum-popular__rank {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  font-family: "Pretendard Std", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  color: #606e85;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid #f2f2f2;
  border-radius: 0.25rem;
}
.curriculum-popular__change {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.curriculum-popular__change .ic {
  display: block;
  width: 100%;
  height: 100%;
}
.curriculum-popular__change--up {
  color: #f00;
}
.curriculum-popular__change--down {
  color: #183a9e;
}
.curriculum-popular__change--same {
  color: #e2e2e2;
}
.curriculum-popular__name {
  font-family: "Pretendard Std", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 16px;
  color: #43444b;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  transition: color 0.3s ease-in-out;
}
@media (max-width: 480px) {
  .curriculum-popular__name {
    font-size: 0.875rem;
  }
}
.curriculum-popular__detail {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  font-family: "Pretendard Std", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  color: #adb4c0;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  gap: 0.25rem;
  transition: color 0.3s ease-in-out;
}
.curriculum-popular__detail .ic {
  width: 0.75rem;
  height: 0.75rem;
  color: inherit;
}
.curriculum-popular__date {
  font-family: "Pretendard Std", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  color: #abb3bf;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.curriculum-toolbar {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  position: sticky;
  top: calc(var(--curriculum-toolbar-top, 0px) + 1.5rem);
  z-index: 10;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  background: #fff;
}
.curriculum-toolbar::after {
  position: absolute;
  right: 3rem;
  bottom: 0;
  left: 3rem;
  height: 1px;
  pointer-events: none;
  content: "";
  background: #dfdfdf;
}
@media (max-width: 480px) {
  .curriculum-toolbar::after {
    right: 1.5rem;
    left: 1.5rem;
  }
}

@media (min-width: 481px) {
  .curriculum-search {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}
@media (max-width: 480px) {
  .curriculum-search {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}
.curriculum-search__form {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 0.5rem;
  height: 3rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: #fff;
  border: 2px solid #183a9e;
  border-radius: 3rem;
}
.curriculum-search__btn {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
}
.curriculum-search__btn svg {
  display: block;
  width: 100%;
  height: 100%;
}
.curriculum-search__input {
  font-family: "Pretendard Std", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #111;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
          appearance: none;
  outline: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.curriculum-search__input::placeholder {
  color: #aaa;
}

.curriculum-cats {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: flex-start;
}
@media (min-width: 481px) {
  .curriculum-cats {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}
@media (max-width: 480px) {
  .curriculum-cats {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}
.curriculum-cats {
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  touch-action: pan-x;
  cursor: grab;
  scroll-padding-inline: 3rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .curriculum-cats {
    scroll-padding-inline: 1.5rem;
  }
}
.curriculum-cats[data-curriculum-cats-dragging] {
  scroll-behavior: auto;
  cursor: grabbing;
  -webkit-user-select: none;
          user-select: none;
}
.curriculum-cats[data-curriculum-cats-dragging] button {
  pointer-events: none;
}
.curriculum-cats::-webkit-scrollbar {
  display: none;
}
.curriculum-cats__tab {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  font-family: "Pretendard Std", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #717171;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  height: 2rem;
  padding: 1px 1rem 0;
  background: #f3f3f3;
  border-radius: 2rem;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  -webkit-user-drag: none;
}
.curriculum-cats__tab[aria-selected=true] {
  font-weight: 600;
  color: #fff;
  background: #1252a1;
}

.curriculum-list {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 3rem;
}

.curriculum-item {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.875rem;
  padding: 0.875rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  transition: box-shadow 0.15s;
}
@media (any-hover: hover) and (any-pointer: fine) {
  .curriculum-item:hover {
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
  }
}
.curriculum-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.curriculum-item-img {
  flex-shrink: 0;
  width: 6.875rem;
  height: 5.625rem;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 0.5rem;
}
.curriculum-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.curriculum-item-img-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e8f8;
}
.curriculum-item-body {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  gap: 0.375rem;
  min-width: 0;
}
.curriculum-item-name {
  font-family: "KLLE Noto", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}
.curriculum-item-tags {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
}
.curriculum-item-btn {
  width: 100%;
  padding: 0.5rem 0;
  margin-top: auto;
  font-family: "Pretendard Std", sans-serif;
  font-size: 0.875rem;
  color: #333;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  transition: background 0.15s;
}
@media (any-hover: hover) and (any-pointer: fine) {
  .curriculum-item-btn:hover {
    background: #f5f5f5;
  }
}

.curriculum-tag {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  color: #183a9e;
  background: #f0f4ff;
  border-radius: 1.25rem;
}

.curriculum-empty {
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: #aaa;
  text-align: center;
}
