/* chaptercontent.css */
@font-face {
    font-family: 'NanumSquareRound';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

body {
    font-family: 'NanumSquareRound';
    /* line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; */
}

.basic-class {
    /* background:#E6EAFF; */
    padding: 20px;
    background-color: #E6EAFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: -10;
}

.basic-class h1 {
    font-size: 64px;
    color: #333;
    margin-bottom: 10px;
    margin-top: 100px;
    text-align: center;
    font-weight: 800;
    line-height: 60px;
    letter-spacing: -0.04em;
}

.basic-class p {
    font-size: 30px;
    color: #333;
    text-align: center;
}

.course-info {
    display: flex;
    width: 1060px;
    height: 255px;
    align-items: center;
    justify-content: space-around;
    background: #4958A5;
    color: white;
    padding-top: 40px;
    border-radius: 10px;
    margin-top: 40px;
    top: 200px;
}

.info-item {
    position: relative;
    text-align: center;
    /* padding: 0 20px; 양쪽 패딩 추가 */
}

/* 구분선 추가 */
/* .info-item + .info-item {
    border-left: 3px solid white;
    padding-left: 10px; 
    padding-right: 10px;
} */

.info-item p{
    font-size: 30px;
    color: #F6F6F6;
}

.info-item img {
    width: 96px;
    height: 96px;
}

.about, .bookmark, .chapter-grid {
    max-width: 1200px;
    padding: 40px 10px 10px 10px;
    margin: 40px auto;
}

.about img{
    width: 28px;
    height: 28px;
}

.about h2{
    padding-left: 10px;
    color: #151515;
    font-size: 37px;
    font-weight: 700;
    line-height: 35px;
}

.about P{
    width: 1165px;
    /*height: 111px;*/
    font-family: 'Pretendard';
    font-size: 22px;
    font-weight: 500;
    line-height: 37px;
    letter-spacing: -0.03em;
    text-align: left;
    padding-top: 10px;
    padding-left: 10px;
}

.bookmark h3 {
    color: #333;
    margin-bottom: 10px;
}

.bookmark img{
    width: 16px;
    height: 20px;
    font-weight: 700;
}

.bookmark button {
    width: 376px;
    height: 82px;
    background: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    cursor: pointer;
    color: #151515;
    font-size: 20px;
    font-weight: 700;
    line-height: 35px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.chapter {
    width: 360px;
    height: 652px;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 25px;
}

.chapter:hover {
    transform: scale(1.03);
}

.chapter-img {
    width: 100%;
    height: 240px; /* 카드의 상단 이미지 영역 높이를 설정 */
}

.chapter-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.chapter-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    padding: 20px;
}

.chapter h3 {
    text-align: left;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #777777;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.chapter h4 {
    margin-bottom: 10px; /* h4와 ul 사이의 여백 */
    padding: 10px;
    font-size: 30px;
    line-height: 4px;
    font-weight: 800;
    color: #323232;
    padding-left: 20px;
}

.chapter ul {
    margin-top: 0; /* ul의 상단 여백 제거 */
    padding: 0; /* 패딩 제거 */
    overflow: auto;
}


.chapter ul::-webkit-scrollbar {
    width: 5px;
}
.chapter ul::-webkit-scrollbar-track {
    background-color: #ccc;
}
.chapter ul::-webkit-scrollbar-thumb { 
    background-color: #0B0B61;
}
.chapter ul::-webkit-scrollbar-button {
    display: none;
}


.chapter li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.chapter li:hover {
    background-color: #f0f0f0;
}

.check-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F4F4F4;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.check-button.study-complete {
    background: #4D46D5;
}

.check-button.study-complete::after {
    content: '✓';
    color: white;
    font-size: 16px;
}

.check-button.study-ing {
    background: #A9BCF5;
}

.check-button.study-ing::after {
    content: '';
    color: white;
    font-size: 16px;
}

.check-button.study-locked {
    background: white;
}

.check-button.study-locked::after {
    content: '🔒';
    color: white;
    font-size: 16px;
}

.locked {
    position: relative;
}
/* .locked::after {} 는 coursegrid.css에서 중복 */


@media screen and (max-width: 767px) {
  
    /* body 패딩과 기본 폰트 크기 조정 */
    body {
      font-size: 16px;
    }
  
    /* basic-class 레이아웃 변경 */
    .basic-class {
      padding: 10px;
    }
  
    .basic-class h1 {
      font-size: 40px;
      margin-top: 50px;
      line-height: 48px;
    }
  
    .basic-class p {
      font-size: 20px;
    }
  
    /* course-info 레이아웃 수정 */
    .course-info {
      flex-direction: grid; /* 세로로 정렬 */
      width: 100%;
      height: auto;
      padding: 20px;
    }
  
    .info-item {
      margin-bottom: 0px;
    }
  
    .info-item img {
      width: 24px;
      height: 24px;
    }
  
    .info-item p {
      font-size: 14px;
    }
  
    /* about 섹션 조정 */
    .about h2 {
      font-size: 30px;
      line-height: 32px;
    }
  
    .about p {
      font-size: 18px;
      line-height: 30px;
      width: 100%;
      margin-bottom: 100px;
    }
  
    /* bookmark 버튼 크기 조정 */
    .bookmark button {
      width: 100%;
      height: auto;
      font-size: 18px;
      padding: 15px;
    }
  
    /* chapter-grid 1열로 조정 */
    .chapter-grid {
      grid-template-columns: 1fr; /* 1열 레이아웃 */
      gap: 20px;
    }
  
    .chapter {
      width: 100%;
      height: auto;
    }
  
    /*
    .chapter-img {
      height: 180px;
    }
	  
    .chapter h3 {
      font-size: 16px;
      margin-top: 10px;
      padding-bottom: 3px;
	  padding-left: 20px;
    }
  
    .chapter h4 {
      font-size: 24px;
      padding: 5px;
	  padding-left: 20px;
    }
  
    .chapter ul li {
      font-size: 16px;
    }
  
    .check-button {
      width: 20px;
      height: 20px;
    }
    */
    
  }
  
  
  /*  */
  /* 날개 바 */
  /*  */
  .wing-ClassList {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 100; /* 상단에 메뉴가 위치하도록 설정 */
}

.wing-ClassList.collapsed {
    transform: translateX(-280px);
}

.wing-title {
    padding: 10px 20px;
    height: 130px;
    background: #526AE5;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wing-title .img{
  width: 40px;
position: absolute;
left: 15.62%;
right: 82.29%;
top: 1.28%;
bottom: 96.82%;
}

.wing-title-bold {
    font-weight: bold;
    font-size: 20px;
}

.wing-title-text {
    font-size: 16px;
    margin-top: 12px;
}

/* 접기 버튼 스타일링 */
.btn-close {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 300px;
    top: 27px;
    background: #FFFFFF;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.17);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}

.btn-close::before {
    content: '';
    position: absolute;
    left: 35.1%;
    right: 37.6%;
    top: 26.77%;
    bottom: 26.77%;
    background: #151515;
    width: 24px;
    height: 24px;
    margin: auto;
}

.wing-list {
    padding: 10px 0;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.wing-list-class-title {
    padding: 15px 20px;
    display: flex;
    flex-direction: column; /* 세로 방향으로 변경 */
    cursor: pointer;
    border-bottom: 1px solid #eee;
    position: relative;
}

.wing-list-class-title span{
	position: absolute;
	font-family: 'Pretendard';
	font-style: normal;
	font-weight: 800;
	font-size: 20px;
	color: #151515;
	margin-left: 40px;
}

.wing-list-class-title img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.wing-list-class-menu {
    display: none;
    padding-left: 20px;
}

.wing-list-class-menu.active {
    display: block;
}

.wing-list-class-title.collapsed {
	grid-template-columns: 1;
}

.wing-list-class-menu div {
    padding: 12px 20px;
    cursor: pointer;
}

.wing-list-class-menu div:hover {
    background: #f0f0f0;
}

.wing-home {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
}

.wing-home img {
    width: 24px;
    height: 24px;
}

/* 접기/펼치기 버튼 토글 */
.listbtn_close {
    display: inline-block;
}

.listbtn_open {
    display: none;
}

.wing-list-class-title.collapsed .listbtn_close {
    display: none;
}

.wing-list-class-title.collapsed .listbtn_open {
    display: inline-block;
}