/* book detail */
#book-info {
  padding: 40px 0;
  border-bottom: 1px solid var(--line_01);
}
#book-info .section {
  display: flex;
  gap: 40px;
}
#book-info .section .book-info_img {
  border: 0;
  overflow: hidden;
  flex: 1 1 0;
  border-radius: 5px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
  position: relative;
}
#book-info .section .book-info_img > img {
  width: 100%;
}
#book-info .section .book-info_img .button {
  position: absolute;
  background-color: var(--main-600);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line_01);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  right: 20px;
  bottom: 30px;
  transition: 0.2s ease-in-out;
}
#book-info .section .book-info_img:hover .button {
  transform: translateY(-5px);
  box-shadow: 0px 14px 10px 0px rgba(0, 0, 0, 0.25);
}
#book-info .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 690px;
  padding-top: 80px;
}

#book-info .content header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

#book-info .content header .tag {
  border-radius: 5px;
  background: var(--light_bg);
  padding: 5px 15px;
}

#book-info .content header h2 {
  color: var(--txt_900);
  font-size: 32px;
  font-weight: 700;
}

#book-info .content header dl {
  color: var(--txt_900);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  gap: 10px;
}

#book-info .content header dt {
  font-weight: 700;
}

#book-info .content .btn-list {
  display: flex;
}

#book-info .content .btn-list > * {
  width: 20%;
  border: 1px solid var(--line_01);
}

#book-info .content .btn-list a {
  display: flex;
  flex-direction: column;
  word-break: keep-all;
  gap: 10px;
  padding: 10px 30px;
  background-color: #ffffff;
  border: 0;
  border-radius: 0;
  line-height: 1.2;

  color: var(--txt_900);
  text-align: center;
  font-size: 16px;
  font-weight: 400;

  transition: 0.2s ease-in-out;
  text-decoration: none;
}
#book-info .content .btn-list a:not(:last-child) {
  border-right: 1px solid var(--line_01);
}
#book-info .content .btn-list a:hover {
  background-color: var(--light-bg02);
  color: var(--main-600);
}

/* book-detail */
#book-detail {
  padding-top: 50px;
  padding-bottom: 80px;
}
#book-detail .box {
  border: 1px solid var(--line_01);
  background: #fff;
}

#book-detail .section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

#book-detail ol.unit-list {
  display: flex;
  width: 328px;
  padding: 10px;
  flex-direction: column;
  gap: 4px;

  counter-reset: list-counter;
}
#book-detail ol.unit-list li {
  counter-increment: list-counter;
  padding: 10px;
  display: flex;
  cursor: pointer;

  gap: 10px;
  border-radius: 10px;
  background: #f9f9f9;

  color: var(--text-off);
  font-size: 20px;
  font-weight: 500;
  word-break: keep-all;

  transition: 0.2s ease-in-out;
}

#book-detail ol.unit-list li::before {
  content: counter(list-counter) " ";
  width: 30px;
  height: 30px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #d9d9d9;
  color: var(--text-off);
  font-size: 12px;
  font-weight: 500;

  transition: 0.2s ease-in-out;
}

#book-detail ol.unit-list.start_zero {
  counter-reset: list-counter -1;
}

#book-detail ol.unit-list li.active {
  border-radius: 10px;
  color: #ffffff;
  background: var(--main-500);
}

#book-detail ol.unit-list li.active::before {
  color: var(--text-off);
  background-color: #ffffff;
}

#book-detail .content {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#book-detail .category_content {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 10px 30px;
  flex-wrap: wrap;
}
#book-detail .category_content > * {
  padding: 12px 0px;
}

/* checkbox */
#book-detail *:has(> input[type="chekbox"], > label) {
  display: flex;
  align-items: center;
  gap: 10px;
}

#book-detail input[type="checkbox"] + label {
  color: var(--txt_900);
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 10px;
}
#book-detail input[type="checkbox"] {
  width: 24px;
  height: 24px;
  position: relative;
  box-sizing: border-box;
  background-clip: content-box;
  appearance: none;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #ebebeb;
  transition: 0.1s ease-in-out;

  flex-shrink: 0;
}

#book-detail input[type="checkbox"]::before {
  content: "";
  position: absolute;
  display: inline-block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image: url("/images/book/icon/icon_check.png");
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: 0.1s ease-in-out;
}
#book-detail input[type="checkbox"]:checked {
  background-color: var(--main-500);
  border-color: var(--main-500);
}
#book-detail input[type="checkbox"]:checked:before {
  opacity: 1;
}
/* checkbox end */

#book-detail .file-box header {
  display: flex;
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-bottom: 1px solid var(--line_01);
}

#book-detail button.download {
  border-radius: 5px;
  border: 1px solid var(--line_light);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 8px;
  /* 16px */
  gap: 10px;
  color: var(--text-off);
  font-size: 20px;
  font-weight: 500;
}
#book-detail .file-list {
  display: flex;
  flex-direction: column;
  padding: 15px 30px;
}

#book-detail .file-list > li {
  width: 100%;
  display: flex;
  padding: 12px 0px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

#book-detail .file-list > li {
  border-bottom: 1px solid var(--line_01);
}

#book-detail .file-list > li > *:not(:has(> label)) {
  flex-shrink: 0;
}

#book-detail .file-list .file-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-image: url("/images/book/icon/file_icons.png");
  background-repeat: no-repeat;
  background-position-y: center;
  --icon-size: 24px;
  flex-shrink: 0;
}
#book-detail .file-list .file-icon.mp3 {
  background-position-x: 0;
}
#book-detail .file-list .file-icon.hwp {
  background-position-x: calc(var(--icon-size) * -1);
}
#book-detail .file-list .file-icon.mp4 {
  background-position-x: calc(var(--icon-size) * -2);
}
#book-detail .file-list .file-icon.jpg {
  background-position-x: calc(var(--icon-size) * -3);
}
#book-detail .file-list .file-icon.pdf {
  background-position-x: calc(var(--icon-size) * -4);
}
#book-detail .file-list .file-icon.zip {
  background-position-x: calc(var(--icon-size) * -5);
}
