/* 클래스 목록 화면 개편 (오픈/마스터 클래스, 정회원 아카데미, 정회원 콘텐츠)
   .class__inner.list_v2 범위에만 적용.
   상단 배너는 다른 화면에서도 .page_hero 로 함께 사용 (색상은 .page_hero--* 로 구분) */

/* 제목 배너 (메인 하단 입회테스트 배너 .test_banner 와 같은 스타일) */
.list_v2 .list_hero,
.page_hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(640px 340px at 80% 26%, rgba(28, 100, 242, .20), transparent 72%), #15161a;
  border: 1px solid #23252b;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 28px;
}
/* 오른쪽 점무늬 */
.list_v2 .list_hero::before,
.page_hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1.3px, transparent 1.4px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 92%);
  mask-image: linear-gradient(90deg, transparent 40%, #000 92%);
}
/* 오른쪽 MENSA 글자 */
.list_v2 .list_hero::after,
.page_hero::after {
  content: "MENSA";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 54px;
  font-weight: 800;
  color: rgba(243, 239, 218, .92);
  pointer-events: none;
}
.list_v2 .list_hero .tit,
.list_v2 .list_hero .sub_tit,
.page_hero .tit,
.page_hero .sub_tit {
  position: relative;
  z-index: 1;
}
.list_v2 .list_hero .tit,
.page_hero .tit {
  color: #fff;
  font-size: 30px;
}
.list_v2 .list_hero .sub_tit,
.page_hero .sub_tit {
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 0;
}

/* .page_hero 색상 변형: 화면마다 빛 색을 다르게 */
.page_hero--program {
  background: radial-gradient(640px 340px at 80% 26%, rgba(139, 92, 246, .30), transparent 72%), #17151f;
  border-color: #27232f;
}
.page_hero--customer {
  background: radial-gradient(640px 340px at 80% 26%, rgba(20, 184, 166, .26), transparent 72%), #121a1a;
  border-color: #1f2a2a;
}
/* 오픈 클래스 목록: 주황 빛 (같은 뷰를 쓰는 마스터 클래스는 기본 파란 빛) */
.list_v2 .list_hero.list_hero--open {
  background: radial-gradient(640px 340px at 80% 26%, rgba(245, 158, 11, .24), transparent 72%), #1a1712;
  border-color: #2b261d;
}
/* 1023px 이하에서는 긴 제목과 겹치지 않도록 오른쪽 MENSA 글자 숨김 */
@media screen and (max-width: 1023px) {
  .list_v2 .list_hero::after,
  .page_hero::after {
    display: none;
  }
}
/* 배너 다음의 검은 가로줄 제거 (프로그램 목록 .top_area) */
.page_hero + .top_area {
  border-top: none;
}
/* 고객지원 제목(.custom__inner .tit)의 아래 여백은 배너 밖으로 */
.custom__inner .page_hero {
  margin-bottom: 32px;
}
.custom__inner .page_hero .tit {
  margin-bottom: 0;
  line-height: 140%;
}

/* 로그인·회원가입: 좌우 분할 (왼쪽 브랜드 영역 + 오른쪽 폼)
   모바일은 꽉 찬 브랜드 영역 위로 폼이 시트처럼 겹쳐 올라옴 */
.auth_main {
  background: #f5f6f8;
}
.auth_split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  margin: 56px auto 96px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(21, 22, 26, .07);
}
.auth_brand {
  position: relative;
  overflow: hidden;
  padding: 48px 44px;
  color: #fff;
  background: radial-gradient(520px 320px at 85% 15%, rgba(28, 100, 242, .30), transparent 72%), #15161a;
}
/* 점무늬 (상단 배너 .page_hero 와 같은 무늬) */
.auth_brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1.3px, transparent 1.4px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(160deg, transparent 35%, #000 95%);
  mask-image: linear-gradient(160deg, transparent 35%, #000 95%);
}
/* 오른쪽 위 흐린 MENSA 글자 */
.auth_brand::after {
  content: "MENSA";
  position: absolute;
  top: 30px;
  right: 24px;
  font-size: 40px;
  font-weight: 800;
  color: rgba(243, 239, 218, .10);
  pointer-events: none;
}
.auth_brand > * {
  position: relative;
  z-index: 1;
}
.auth_brand_eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
}
.auth_brand_tit {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  line-height: 135%;
  color: #fff;
}
.auth_brand_desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 165%;
  color: rgba(255, 255, 255, .66);
  word-break: keep-all;
}
.auth_brand_list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.auth_brand_list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.auth_brand_list b {
  font-size: 14px;
  color: #fff;
}
.auth_brand_list span {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.auth_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px 32px;
}
.auth_form .auth_title {
  font-size: 26px;
  font-weight: 700;
  line-height: 140%;
  color: #15161a;
  text-align: center;
}
.auth_form .auth_sub {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}
.auth_form .login_inner {
  max-width: none;
  padding: 28px 0 0;
}
.auth_form .login_inner .join_labels {
  margin-bottom: 20px;
}
.auth_form .auth_switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef0f3;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}
.auth_form .auth_switch a {
  margin-left: 6px;
  color: #0039ff;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  /* layout2.css 의 .main 위쪽 여백(30px) 제거 */
  .main.auth_main {
    padding-top: 0;
    background: #fff;
  }
  .auth_split {
    grid-template-columns: 1fr;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  /* 태블릿 폭에서도 내용은 440px 까지만 */
  .auth_brand,
  .auth_form {
    padding-left: max(20px, calc(50% - 220px));
    padding-right: max(20px, calc(50% - 220px));
  }
  .auth_brand {
    padding-top: 32px;
    padding-bottom: 60px;
    background: radial-gradient(360px 240px at 90% 0%, rgba(28, 100, 242, .38), transparent 72%), #15161a;
  }
  .auth_brand::after {
    top: 22px;
    right: 16px;
    font-size: 30px;
  }
  .auth_brand_eyebrow {
    font-size: 11px;
  }
  .auth_brand_tit {
    margin-top: 10px;
    font-size: 25px;
    line-height: 132%;
  }
  .auth_brand_desc {
    margin-top: 12px;
    font-size: 13px;
    line-height: 160%;
  }
  /* 강의 종류는 가로 알약으로 */
  .auth_brand_list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
  }
  .auth_brand_list li {
    flex-direction: row;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
  }
  .auth_brand_list b {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
  }
  .auth_brand_list span {
    display: none;
  }
  /* 폼은 브랜드 영역 위로 겹쳐 올라오는 시트 */
  .auth_form {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    padding-top: 30px;
    padding-bottom: 28px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -6px 20px rgba(21, 22, 26, .08);
  }
  .auth_form .auth_title {
    font-size: 22px;
  }
  .auth_form .auth_sub {
    font-size: 13px;
  }
  /* style.css 의 모바일 .login_inner 여백(40px 20px 160px) 덮어쓰기 */
  .auth_form .login_inner {
    padding: 24px 0 0;
  }
  .auth_form .auth_switch {
    margin-top: 20px;
  }
}

/* 모바일 간격 줄이기: 회원가입(교수자) 약관 동의까지 '가입하기' 버튼이 한 화면에 보이도록 */
@media screen and (max-width: 768px) {
  /* 위쪽 브랜드 영역 높이를 줄임 */
  .auth_brand {
    padding-top: 22px;
    padding-bottom: 42px;
  }
  .auth_brand::after {
    top: 16px;
  }
  .auth_brand_tit {
    margin-top: 6px;
    font-size: 22px;
  }
  /* 모바일에서는 큰 문구를 한 줄로 */
  .auth_brand_tit br {
    display: none;
  }
  .auth_brand_desc {
    margin-top: 8px;
  }
  .auth_brand_list {
    margin-top: 12px;
  }
  .auth_form {
    padding-top: 20px;
  }
  .auth_form .login_inner {
    padding-top: 16px;
  }
  .auth_form .login_inner .join_labels {
    margin-bottom: 14px;
  }
  /* 회원가입(교수자) 약관 동의 항목 간격을 줄여 '가입하기' 버튼이 한 화면에 보이게 */
  .auth_form .agree_box .all_agree,
  .auth_form .agree_box .agree_item {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .auth_form .agree_box .check-A label h3 {
    font-size: 14px;
    line-height: 145%;
  }
  .auth_form .agree_box .join_btn {
    margin-top: 12px;
  }
  .auth_form .auth_switch {
    margin-top: 16px;
    padding-top: 14px;
  }
}
/* 세로가 짧은 휴대폰(브라우저 도구막대 포함 화면 높이 720px 이하)에서는 강의 종류 알약도 숨겨 '가입하기'까지 한 화면에 */
@media screen and (max-width: 768px) and (max-height: 720px) {
  .auth_brand_list {
    display: none;
  }
}

/* 회원가입(교수자) 약관 동의 (PC·모바일 공통): 체크박스 크게·줄 전체 터치, 전체 동의 강조 */
.auth_form .agree_box .check-A input + em {
  width: 26px;
  height: 26px;
}
.auth_form .agree_box .check-A label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  cursor: pointer;
}
/* 전체 동의는 눈에 띄게: 연한 파랑 바탕, 굵은 글씨, 선택하면 파란 테두리 */
.auth_form .agree_box .all_agree {
  padding: 14px 16px;
  background: #f3f6ff;
  border-color: #c9d6ff;
  border-radius: 10px;
}
.auth_form .agree_box .all_agree:has(#agreeAll:checked) {
  background: #eaf0ff;
  border-color: #003cff;
}
.auth_form .agree_box .all_agree label h3 {
  font-size: 16px;
  font-weight: 700;
  color: #15161a;
}
/* 모바일: 브랜드 영역 조금 높게, 전체 동의 여백·글자 조금 작게 */
@media screen and (max-width: 768px) {
  .auth_brand {
    padding-top: 28px;
    padding-bottom: 50px;
  }
  .auth_brand::after {
    top: 22px;
  }
  .auth_brand_tit {
    margin-top: 8px;
  }
  .auth_form .agree_box .all_agree {
    padding: 11px 14px;
  }
  .auth_form .agree_box .all_agree label h3 {
    font-size: 15px;
  }
}
/* 세로가 짧은 휴대폰(720px 이하): 브랜드 영역은 유지하고 폼 쪽 간격을 조금 더 줄여 '가입하기'까지 한 화면에 */
@media screen and (max-width: 768px) and (max-height: 720px) {
  .auth_brand {
    padding-top: 24px;
    padding-bottom: 44px;
  }
  .auth_form {
    padding-top: 16px;
  }
  .auth_form .auth_title {
    font-size: 20px;
  }
  .auth_form .auth_sub {
    margin-top: 4px;
  }
  .auth_form .login_inner {
    padding-top: 12px;
  }
  .auth_form .login_inner .join_labels {
    margin-bottom: 10px;
  }
  .auth_form .agree_box .all_agree {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .auth_form .agree_box .agree_item {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .auth_form .agree_box .join_btn {
    margin-top: 10px;
  }
}

/* 교수자 가입 신청 화면 (.auth_split--creator): 왼쪽에 신청 절차 3단계 */
.auth_split--creator .auth_form {
  justify-content: flex-start;
}
.auth_steps b {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth_steps b em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1c64f2;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.auth_split--creator .auth_form .login_inner .ip_box:last-of-type {
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
  .auth_steps b em {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .auth_steps b {
    gap: 6px;
  }
}

/* 로그인 화면 교수자 탭: 아이디·비밀번호 로그인 폼 */
.creator_login .creator_login_opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.creator_login .creator_login_opts label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  cursor: pointer;
  color: #4b5262;
}
.creator_login .creator_login_opts a {
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.creator_login .creator_login_err {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecee;
  color: #b42318;
  font-size: 14px;
  line-height: 150%;
}
.creator_login .btn[disabled] {
  opacity: .6;
  cursor: default;
}

/* 로그인 화면 교수자: 아이디·비밀번호 찾기 (같은 화면에서 처리) */
.creator_find_tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 10px;
  background: #f2f4f8;
}
.creator_find_tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.creator_find_tabs button.active {
  background: #fff;
  color: #15161a;
  box-shadow: 0 1px 3px rgba(21, 22, 26, .12);
}
.creator_find_note {
  margin: -4px 0 14px;
  color: #6b7280;
  font-size: 13px;
}
.creator_find_msg {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 150%;
}
.creator_find_msg.is_ok {
  background: #ecfdf3;
  color: #067647;
}
.creator_find_msg.is_err {
  background: #fdecee;
  color: #b42318;
}
.creator_find_form .btn[disabled] {
  opacity: .6;
  cursor: default;
}
.creator_find_back {
  display: block;
  margin: 14px auto 0;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: #4b5262;
  font-size: 14px;
  cursor: pointer;
}
.creator_find_back:hover {
  color: #15161a;
  text-decoration: underline;
}

/* 검은 가로줄·회색 구분선 제거 */
.list_v2 .class_list_header {
  border-top: none;
  padding: 0 0 20px;
  gap: 14px;
}
.list_v2 .class_list_header .gray_line {
  display: none;
}

/* 카테고리·난이도 라벨: 같은 폭으로 맞춰 알약 시작 위치 통일 */
.list_v2 .category_row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.list_v2 .category_row .filter-toolbar__label {
  font-size: 18px;
}
.list_v2 .category_row .filter-toolbar__label,
.list_v2 .filter_area .filter-toolbar__label {
  min-width: 72px;
  flex-shrink: 0;
}

/* 대분류: 알약 버튼 */
.list_v2 .category_list {
  gap: 8px;
  flex-wrap: wrap;
}
.list_v2 .category_list .input_txt-B input + em {
  height: 38px;
  line-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #4b5262;
  font-size: 15px;
  font-weight: 600;
}
.list_v2 .category_list .input_txt-B input:hover + em {
  color: #15161a;
}
/* 선택된 대분류는 상단 배너와 같은 짙은 색 */
.list_v2 .category_list .input_txt-B input:checked + em {
  background: #15161a;
  color: #fff;
}
.list_v2 .category_wrap .sub_area {
  margin-top: 10px;
}

/* 난이도: 체크박스 대신 테두리 알약 */
.list_v2 .filter-toolbar__checkboxes .check-A input + em {
  display: none;
}
.list_v2 .filter-toolbar__checkboxes .check-A span {
  display: inline-block;
  height: 34px;
  line-height: 32px;
  padding: 0 14px;
  border: 1px solid #d9dde5;
  border-radius: 999px;
  color: #4b5262;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.list_v2 .filter-toolbar__checkboxes .check-A input:checked + em + span {
  border-color: #1a3a8f;
  background: #eef2fb;
  color: #1a3a8f;
  font-weight: 700;
}

/* 카드: 제목 → 강사·가격 → 분류·태그 순서 */
.list_v2 .class_list li a {
  border-radius: 14px;
  transition: transform 0.2s ease;
}
.list_v2 .class_list li a:hover {
  transform: translateY(-4px);
}
.list_v2 .class_list .img_box {
  border-radius: 12px;
  overflow: hidden;
}
.list_v2 .class_list .txt_box {
  gap: 8px;
}
.list_v2 .class_list .txt_box h3 {
  order: 1;
}
/* 교수자 · 가격: 같은 줄, 가격은 오른쪽 끝 (가운데 점 없음) */
.list_v2 .class_list .txt_box .txt_bott {
  order: 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.list_v2 .class_list .txt_box .txt_bott p:not(.price) {
  flex: 1;
  min-width: 0;
}
.list_v2 .class_list .txt_box .txt_bott .price {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  color: #15161a;
  font-weight: 700;
}
.list_v2 .class_list .txt_box .txt_top {
  order: 3;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.list_v2 .class_list .txt_box .txt_top .category {
  font-size: 13px;
}
.list_v2 .class_list .txt_box .btn_join {
  order: 4;
}

@media screen and (max-width: 768px) {
  .list_v2 .list_hero,
  .page_hero {
    padding: 30px;
    margin-bottom: 20px;
  }
  .list_v2 .list_hero::after,
  .page_hero::after {
    display: none;
  }
  .list_v2 .list_hero .tit,
  .page_hero .tit {
    font-size: 24px;
  }
  /* 모바일 카테고리 알약: 글자 조금 작게, 안쪽 여백·알약 사이 간격 좁게 */
  .list_v2 .category_list {
    gap: 6px;
  }
  .list_v2 .category_list .input_txt-B input + em {
    height: 32px;
    line-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }
  /* 카테고리 이름의 괄호 부분, 예: (Online Classes) 는 더 작게 */
  .list_v2 .cat_paren {
    font-size: 11px;
  }
  /* 좁은 2열 카드: 강사·가격은 두 줄로 쌓음 */
  .list_v2 .class_list .txt_box .txt_bott {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .list_v2 .class_list .txt_box .txt_bott .price {
    margin-left: 0;
    text-align: left;
  }
  /* 썸네일 배지를 조금 줄여 썸네일 내용을 덜 가림 (기본 12px / 8px 12px) */
  .list_v2 .class_list .img_box .new_badge {
    font-size: 11px;
    padding: 5px 9px;
  }
  .list_v2 .class_list .img_box .new_badge_accepting,
  .list_v2 .class_list .img_box .new_badge_waiting,
  .list_v2 .class_list .img_box .new_badge_closed {
    top: 8px;
    right: 8px;
  }
}

/* 모바일: 카테고리(대면 강의 등)는 항상 한 줄 (넘치면 말줄임) */
@media screen and (max-width: 768px) {
    .list_v2 .class_list .txt_box .txt_top .category {
        display: block;
        width: 100%;
        overflow: hidden;
        font-size: 12px;
        letter-spacing: -0.02em;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}
@media screen and (max-width: 389px) {
    .list_v2 .class_list .txt_box .txt_top .category {
        font-size: 11px;
        letter-spacing: -0.05em;
    }
}
