:root {
  --layout-footer-height: 3.6rem;
  --layout-side-width: 21.4rem;
  --layout-header-height: 7.8rem;

  --daldal-violet: #7855FF;
  --daldal-violet-1: #F6F4FF;
}

.daldal-read-main {}

#read-main {
  width: 100%;
}

/* 메인 컨테이너: 사이드 + 콘텐츠 2열 그리드 */
.main__wrapper {
  position: relative;
  display: grid;
  grid-template-columns: var(--layout-side-width) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: left 8.4rem bottom -6.2rem, 0 0;
  background-size:
    contain,
    cover;
  background-image:
  url("../_images/main/12_bg_wave.svg"),
  url("../_images/main/12_bg_pattern_stripe.svg");
}


/* 왼쪽 사이드 */
.main__side {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem;
  border-radius: 0 4rem 4rem 0;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 2px 0 16px 0 rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(29px);
}

.main__side-top {}

.main__side .logo {
  width: 100%;
  height: 3.4rem; 
  object-fit: contain;
  margin: 2.2rem auto 2rem;
  text-align: center;
}

.main__side .badge-wrap { 
  display: flex;
  align-items: center;
  height: 6.2rem;
  gap: 0.8rem;
  margin: 1rem 0;
}

/* 전체 카드 컨테이너 */
.profile-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr); 
  column-gap: 0.4rem; // 0.8rem;
}

.profile-card__avatar-wrap {
  position: relative;
  max-width: 5rem;
  height: 6.2rem;
}

/* 왼쪽 아바타 */
.profile-card__avatar {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
}

.profile-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 아바타 위 아이템/칭호 배지 (필요할 때만) */
.profile-card__avatar-badge {
  position: absolute;
  right: -0.3rem;
  bottom: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
}

.profile-card__avatar-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-card__body {
  display: flex;
  flex-direction: column;
}

/* 상단 "획득한 칭호 이름" */
.profile-card__label {
  color: var(--daldal-violet);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.6px;
}

.profile-card__title {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-width: 0; /* flex 아이템이 축소될 수 있도록 */
  width: 100%; /* 부모 너비에 맞춤 */
}

.profile-card__title > a {
  display: block; /* 또는 display: inline-block */
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__nickname {
  flex: 1; /* 남은 공간을 모두 차지 */
  min-width: 0; /* 축소 가능하도록 */
  display: block;
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 800;
  color: #323232;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.8px;
}

.profile-card__level {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
  background-image: url("../_images/icon_level_back.png");
  background-position: center 0.28rem;
  background-size: 1.753rem 1.902rem;
  background-repeat: no-repeat;
  margin-top: -0.28rem;
}

/* 초코칩 */
.profile-card__chip {
  display: flex;
  max-width: 12.1rem;
  min-width: 10rem;
  margin-top: 0.4rem;
  padding: 0.4rem 1rem 0.25rem 2.8rem;
  height: 2.2rem;
  line-height: 1.7rem;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem;
  background: #fff url("../_images/icon_chocochip.svg") no-repeat left center;
  border-radius: 5rem;
  border: 1px solid #EEEAFF;
}

.profile-card__chip-text {
  color:  #5A371E;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.24px;
}

.profile-card__chip-count {
  color: #666;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.24px;
}

/* 학습 현황  */
.main__side-middle {
  overflow: hidden;
  background: #fff url('../_images/bg_side_middle.svg') no-repeat center top;
  background-size: 100% 4.3rem;
  border-radius: 1.6rem;
  min-height: 23rem;  
  margin-top: 1.2rem;
}

.stats-monthly__header .text-link {
  display: block;
  color: #fff;
  padding: 1rem 1.2rem 1.6rem 1.3rem;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.7px;
  background: url('../_images/icon_more_arrow.svg')  no-repeat right 1rem top 0.8rem;
  background-size: 2rem 2rem;
  margin: 0.2rem 0;
}

.status-weekly {
  padding: 0.6rem 1.2rem 1.5rem 1.2rem;
  background:#fff;
}

.status-weekly .title {
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
  font-weight: 800; 
  letter-spacing: -0.65px;
  color: var(--daldal-violet);
}

.status-weekly .info-text {
  color: #666; 
  font-size: 1.2rem;
  line-height: 1.2rem;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin-top: 0.4rem;
}

.status-weekly .info-count {
  font-weight: 800;
  margin: 0 0.2rem;
  font-size: 1.2rem;
  color: #222;
  letter-spacing: -0.6px;
}

.status-weekly .status-weekly-item + .status-weekly-item {
  border-top: 1px dashed #EEE;
  padding: 1.2rem 0;
}

.status-weekly-item  {
  position: relative;
}


.status-weekly .icon {
  position: absolute;
  top: 1.2rem;
  right: 0;
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.status-weekly .icon-certificate {
  background-image: url("../_images/icon_certificate.svg");
}
.status-weekly .icon-crown {
  background-image: url("../_images/icon_crown.svg");
}


.status-monthly__footer {
  background-color: #E8E2FF;
  padding: 1.6rem 1.1rem 2.2rem;
}

/* 차트 컨테이너 */
.vertical-chart-wrapper {
  width: 100%;
  min-height: 6.4rem;
  margin-top: 1rem;
  position: relative;
  margin-bottom: 1.2rem;
}

/* 차트 영역 */
.vertical-chart-wrapper .chart {
  width: 100%;
  height: 9.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 1.4rem;
  position: relative;
  padding-bottom: 1.8rem; 
}

/* 막대 그룹 */
.vertical-chart-wrapper .bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

/* 막대 컨테이너 */
.vertical-chart-wrapper .bar-container {
  width: 100%;
  max-width: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: calc(100% - 1.8rem);
}

/* 배경 막대 (회색) */
  .vertical-chart-wrapper .bar-bg {
  width: 100%;
  height: 100%;
  background: #E5E5E5;
  border-radius: 99rem;
  position: absolute;
  bottom: 0;
}

/* 진행 막대 (보라색) */
.vertical-chart-wrapper .bar-fill {
  width: 100%;
  background: #7855FF;
  border-radius: 99rem;
  position: relative;
  z-index: 1;
  height: 0;
  transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 레이블 (1주, 2주...) */
.vertical-chart-wrapper .bar-label {
  position: absolute;
  bottom: -1.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 1.7rem;
  color: #444;
  line-height: 1.2rem;
  letter-spacing: -0.5px;
}

/* progress bar */
.progress-horizontal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.progress-horizontal .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.progress-horizontal .progress-label {
  font-size: 1.2rem;
  font-weight: 800;
  color: #222; 
  letter-spacing: -0.02em;
}

.progress-horizontal .progress-label .sub {
  position: relative;
  color: #666;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: -0.55px;
  padding-left: 0.4rem;
  margin-left: 0.2rem;
}

.progress-horizontal .progress-label .sub:before {
  content: "";
  position: absolute;
  left: -0.1rem;
  margin-top: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1rem;
  background: #CCC5E8;
}   

.progress-horizontal .progress-value {
  display: flex;
  align-items: flex-start;
  color: #222;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4rem;
}

  .progress-horizontal .unit {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0.2rem;
  }

/* 캡슐형 진행바 컨테이너 */
.progress-horizontal .progress-bar {
  width: 100%;
  height: 0.8rem;
  position: relative;
}

/* 배경 막대 (흰색 반투명) */
.progress-horizontal .progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 99rem;
}

/* 진행바 채움 */
.progress-horizontal .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--daldal-violet);
  border-radius: 99rem;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  z-index: 1;
  overflow: hidden;
}

/* 대각선 패턴 */
.progress-horizontal .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 0.5rem, rgba(255, 255, 255, 0.1) -1.5rem, rgba(255, 255, 255, 0.1) 0.9rem);
  border-radius: 99rem;
}

.main__side-bottom {
  display: flex;
  gap: 1.3rem;
  width: 100%;
  margin-top: 2.4rem;
}

.menu__link-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.menu__link-wrap:nth-child(1) {
  border-right: 1px solid #EEEAFF;
  padding-right: 1.1rem;
}

.menu__link-wrap .menu-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #444;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.65px;
}

.menu-link .icon {
  display: flex;
  align-items: center;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  object-fit: contain;
}

.menu-link .icon-report {
  background-image: url('../_images/icon_report.svg');
}
.menu-link .icon-portfolio {
  background-image: url('../_images/icon_portfolio.svg');
}
.menu-link .icon-recharge {
  background-image: url('../_images/icon_recharge_v2.svg');
}
.menu-link .icon-books {
  background-image: url('../_images/icon_note_v2.svg');
}

/* 오른쪽 메인 콘텐츠 */
.main__container {
  height: 100%;
  grid-column: 2;
}

.main__contents {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4.2rem;
  padding: 0 4rem 3.7rem 4rem;
  height: calc(100% - 7.8rem);
}

.main__contents .heading-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.main__contents .heading-wrap  {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main__contents .heading {
  color: #222;
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -1.1px;
}

.main__contents .sub-heading {
  position: relative;
  color: #444;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  padding-left: 1rem;
  letter-spacing: -0.8px;
}

.sub-heading:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%; 
  transform: translateY(-50%);
  width: 1px;
  height: 1.6rem;
  background: rgba(0, 0, 0, 0.10);
}

.main__contents .btn-more {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #444;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: -0.7px;
  margin-left: auto;
}

.main__contents .btn-more > span {
  display: inline-block;
  margin: 0.2rem 0;
}

.btn-more:after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  background: url('../_images/icon_btn_more.svg') no-repeat 0 center;
}


/* 상단 탭/아이콘 헤더 */
.main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7.8rem; 
  padding: 1.7rem 4rem;
}

/* 상단 */
.contents-top {
  
}

/* 오늘의 추천 글 */
.recommended-articles {
  display: flex;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.recommended-article-card {
  position: relative;
  width: 35.2rem;
  height: 26rem;
  flex-shrink: 0;
  aspect-ratio: 88/65;
  border-radius: 2.2rem;
  border: 0.22rem solid rgba(0, 0, 0, 0.6);
  background-color: #fff;
  background: lightgray 50% / cover no-repeat, #FFF;
  box-shadow: 0.66rem 0.66rem 1.1rem 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.recommended-article-card:hover {
  transform: translateY(-0.4rem);
}

.recommended-article-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.recommended-article-card__content {
  position: absolute;
  top: 2.4rem;
  left: 2.4rem;
  z-index: 5;
}

.recommended-article-card__category {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(120, 85, 255, 0.60);
  border-radius: 4.4rem;
  color: #fff;
  height: 3rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 0.2rem;
}

.recommended-article-card__category.bg-purple {
  background: rgba(120, 85, 255, 0.60);
}

.recommended-article-card__title {
  color: #FFF;
  font-size: 2.8rem;
  font-weight: 800;
  padding-right: 3rem;
  width: fit-content;
  line-height: 1.34;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.recommended-article-card__title.text-brown {
  color: #5A371E;
}


.recommended-article-card .status-graph {
  position: absolute;
  bottom: 1.9rem;
  left: 1.9rem;
  width: 5.5rem !important;
  height: 5.5rem !important;
  z-index: 3;

}

.status-graph:before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  width: 1.1rem;
  height: 1.2rem;
  z-index: 4; 
  background-image: url("../_images/icon_deco.svg");
  background-repeat: no-repeat;
}

.recommended-article-card .status-graph .graph-donut {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50% !important;
  width: 5rem !important;
  height: 5rem !important;
  background: #fff;
  opacity: 0.9;
}

.recommended-article-card .graph-donut .circle-graph.pre,
.recommended-article-card .graph-donut .circle-graph.before {
  background: #fff !important;
  border-radius: 50%;
}

.recommended-article-card .graph-donut + .circle-graph.complete {
  background: #EEEAFF !important;
  border-radius: 50%;
}

.recommended-article-card .graph-donut .circle-graph CANVAS {
  position: absolute;
  width: 5.5rem !important;
  height: 5.5rem !important;
}

.recommended-article-card .easyPieChart {
  margin-left: -0.2rem;
  margin-top: -0.3rem;
  width: 5.5rem !important;
  height: 5.5rem !important;
}

.recommended-article-card .status-graph .status-text {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #7855FF;
  text-align: center;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -1px;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.recommended-article-card .status-graph .status-text.before {
  color: #5A371E !important;
}


/* 하단 */
.contents-bottom {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 4rem;
  margin-bottom: 4rem;
}
.contents-bottom:before {
  content: "";
  position: absolute;
  display: block;
  top: -79px;
  right: 0;
  width: 25.7rem;
  height: 12rem;
  background-repeat: no-repeat;
  background-image: url("../_images/main/img_main_gif.png");
  background-size: auto 100%;
}


.learning-status-wrap {
  flex-shrink: 0;
}

.learning-status-list {
  display: flex;
  flex-shrink: 0;
  border-radius: 4rem;
  height: 3.2rem;
  background: rgba(255, 255, 255, 0.60);
  gap: 1.2rem;
  padding: 0.6rem 1.6rem 0.5rem;
}


.learning-status-list .learning-status-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.learning-status-item  {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: #666;
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04375rem;
}

.learning-status-item:before {
  content: "";
  display: block;
  width: 0.8rem; 
  height: 0.6rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('../_images/icon_learning_off.svg');
  margin-bottom: 0.2rem;
  background-position: center center; 
}

.learning-status-item.is-active {
  color: var(--daldal-violet);
}
.learning-status-item.is-active:before {
  background-image: url('../_images/icon_learning_on.svg');
}

.learning-status-item .icon {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: -0.2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.learning-status-item .icon-question {
  background-image: url('../_images/icon_learning_question.svg');
}

.connected-mode {
  flex-shrink: 0;
  margin-left: 1.8rem;
  display: inline-flex;
  padding: 0.4rem 0.6rem;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  border-radius: 99rem;
  color: #fff;
  background: #B7A3FF;
  backdrop-filter: blur(5px);
}

.connected-mode-info strong {
  font-weight: 800;
}

.connected-mode-info:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #fff;
  margin-right: 0.4rem;
}

.connected-info-list {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.connected-info-list dl {
  display: flex;
  gap: 0.2rem;
}

.connected-info-list dl:before {
  content: "|";
  color: rgba(255, 255, 255, 0.40);
  margin: 0 0.4rem;
}

.connected-info-list dt {
  font-weight: 700;
}

.connected-info-list dd {
  font-weight: 400;
}


.connected-mode .terminated {
  display: inline-block;
  border:1px solid #fff;
  border-radius: 99rem;
  padding: 0.1rem 0.8rem;
  font-size: 1.2rem;
  height: 2.4rem;
  line-height: 2.2rem;
  box-sizing: border-box;
}

.connected-mode .logout  {
  display: inline-block;
  width: 100%; 
  height: 100%;
  background: transparent;
  border: none;
  color: #fff;
}

.header-btn-group {
  display: flex;
  align-items: center;
  gap: 1.2rem; 
  margin-left: 1.6rem;
}

.header-btn-group a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
}

/* 툴팁 스타일 */
.has-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #666;
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 50;
  pointer-events: none;
}

/* 말풍선 꼬리 (위쪽에 위치) */
.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.8rem solid transparent;
  border-bottom-color: #ffffff;
}

/* 호버 시 툴팁 표시 */
.has-tooltip:hover .tooltip {
  opacity: 1;
  visibility: visible;
}


/* 공통 하단 section  */
.contents-bottom .section {
  min-width: 0;
}

.contents-bottom .section:nth-child(1) {
  flex: 0 0 33.8rem;
}

.contents-bottom .section:nth-child(2) {
  flex: 0 0 41.9rem;
}

.contents-bottom .section:nth-child(3) {
  margin-left: 0.9rem;
}

.contents-bottom .section__content{
  margin-top: 1.6rem;
}

/* 공통 카드 스타일  */
.section-card {
  display: grid;
  grid-template-columns: 18.5rem minmax(0, 1fr); /* 썸네일 + 내용 */
  column-gap: 2rem;
}

.section-card__thumbnail-wrap {
  width: 100%;
  height: 18.8rem;
  border-radius: 1.6rem;
  overflow: hidden;
  background: #F6F4FF;
}

.section-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0; /* 추가: flex 아이템이 축소될 수 있도록 */
  overflow: hidden;
}


.section-card__label-wrap {
  position: relative;
  display: flex;
  width: 100%; 
  background-image:  url('../_images/bg_title_label.svg');
  background-repeat: no-repeat;
  background-size: auto 100%;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.4rem;
}

.section-card__label-wrap >.section-card__label {
  display: flex;
  align-items: center;
  margin-top: 0.4rem;
}

.section-card__label-wrap >.section-card__label:before {
  display: inline-block;
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.2rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("../_images/icon_pencil_24.svg");
}


.section-card__label{
  color: #7855FF;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.7px;
  margin: 0.2rem 0;
}


.section-card__title {
  color: #444;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.9px;
  margin-bottom: 0.4rem;

  word-break: keep-all; 
  overflow-wrap: break-word;

  /* 3줄 말줄임표 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-card__title.line-2 {
  -webkit-line-clamp: 2;
}

.section-card__meta  {
    color: #666;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.7px;
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
  }

/* 공통 버튼 스타일  */
.section-card__actions {
  margin-top: auto;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.6rem;
}

.section-card__actions .btn-outline {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #5A371E;
  padding: 0.3rem 1.6rem 0.3rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  border-radius: 5rem;
  border: 1px solid rgba(90, 55, 30, 0.50);
  background: #FFF;
} 

.btn-outline .icon {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.icon.icon-play {
  background-image: url('../_images/icon_play.svg');
}

.icon.icon-pencil  {
    background-image: url('../_images/icon_pencil.svg');
}

.icon.icon-ebook  {
  background-image: url('../_images/icon_ebook.svg');
}

/* 별점 스타일 */
.section-card__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  color: #666;
}

.section-card__stars {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
}

.section-card__stars .star {
  display: inline-block;
  width: 1.4rem;
  height: 1.3rem;
}

/* 공통 태그 스타일 */
.section-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.section-card__tag {
  display: block;
  border-radius: 0.4rem;
  background: rgba(238, 238, 238, 0.60);
  color: #AAA;
  padding: 0.2rem 0.6rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3rem;
  letter-spacing: -0.36px;
}


/* 이벤트 배너 */
.event-banner {
  position: relative;
  width: 26.6rem;
  height: 18.8rem;
  margin-top: 5.1rem;
  border-radius: 2rem;
  overflow: hidden;
}

.event-banner__wrapper {
  width: 100%;
  height: 100%;
}


.event-banner__item {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1.6rem;
  overflow: hidden;
  outline: none;
}

.event-banner__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* 내비게이션 (인디케이터 + 버튼) */
.event-banner__nav {
  position: absolute;
  bottom: 1.2rem;
  right: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
}

.event-banner__nav-prev,
.event-banner__nav-next {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.event-banner__nav-prev:hover,
.event-banner__nav-next:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-banner__nav-prev img {
  width: 1.2rem;
  height: 1.2rem;
  transform: rotate(180deg);
}

.event-banner__nav-next img {
  width: 1.2rem;
  height: 1.2rem;
}

/* 페이지 인디케이터 (숫자) */
.event-banner__page {
  color: #fff;
  height: 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2.2rem;
  padding: 0 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5.5rem;
}

.event-banner__page .current {
  font-weight: 800;
}

/* 달달 도서관 슬라이더 */
.library-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.library-slider__inner {
  width: 100%;
  height: 100%;
}

.library-slider__item {
  width: 20.2rem;
  height: 18.8rem;
  /* border-radius: 1.6rem; */
  overflow: hidden;
  outline: none;
}

.library-slider__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library-slider__item:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--item-bg-color);
  opacity: 0.15;
  z-index: -1;
}

.library-slider__item .book {
  overflow: hidden;
  width: 109px;
  height: 150px;
  overflow: hidden;
  border-radius: 0.4rem;
  border-width: 1px;
  border-style: solid;
  border-color: var(--book-border-color);
  background-color: #eeee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  margin: 1.6rem auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}


.library-slider__item img {
  width: 100%;
  height: 100%;
  border-radius: 0.4rem;
  object-fit: cover;
  object-position: center center;
  image-rendering: -webkit-optimize-contrast;
}

/* 슬라이더 버튼 */
.library-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  background-repeat: no-repeat;
  background-image: url('../_images/img_libaray_slider_btn.svg');
  background-size: 2.4rem auto;
  background-position: center center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0; 
  text-indent: -9999px;
}


.library-slider__btn--prev {
  left: 0;
}

.library-slider__btn--next {
  right: 0;
  margin-top: -1.9rem;
  transform: rotate(180deg);
  transform-origin: center center
}


/* 인디케이터 (dots) */
.library-slider__dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  z-index: 10;
  width: 100%;
  height: 20px;
}

.library-slider__dots .slick-dots {
  display: flex;
  bottom: 1rem;
  gap: 0.3rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.library-slider__dots  .slick-dots li button:before{
  content: none;
}

.library-slider__dots .slick-dots li {
  width: 0.4rem;
  height: 0.4rem;
  margin: 0;
}

.library-slider__dots .slick-dots li button {
  width: 100%;
  display: inline-block; 
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #AAA;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: all 0.2s;
}

.library-slider__dots .slick-dots li.slick-active {
  width: 1.2rem;
  border-radius: 99rem;
}
.library-slider__dots .slick-dots li.slick-active button {
  background: #666 !important;
  border-radius: 99rem;
}

/* 더 읽을만한 글 (rollup-list) */
.main__wrapper .rollup-list-wrap {
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 21.4rem;
  width: calc(100% - 21.4rem);
  height: 100%;
  padding: 0 4rem 4rem;
  background-color: #d2cdf3;
  overflow-y: scroll;
  transition: all 0.3s ease;
  z-index: 10;
}

.main__wrapper .rollup-list-wrap.show {
  opacity: 1;
  top: 0%;
  transition: all 0.3s ease;
}

.main__wrapper .rollup-list-wrap .rollup-list {
  width: 100%;
  max-width: 101rem;
  margin-top: 8.5rem;
  padding-left: 0.1rem;
}

.main__wrapper .rollup-list-wrap .rollup-list::after {
  content: "";
  display: block;
  clear: both;
}

.main__wrapper .rollup-list-wrap h1 {
  width: 100%;
  max-width: 100rem; 
  font-family: 'littlePrince', sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: #5A371E;
  line-height: 100%;
  padding: 4rem 0 1.6rem;
  position: fixed;
  background-color: #d2cdf3;
  z-index: 20;
}

.main__wrapper .rollup-list-wrap h1 a {
  float: right;
}

.main__wrapper .rollup-list-wrap h1::after {
  content: "";
  display: block;
  clear: both;
}

.main__wrapper .rollup-list-wrap .rollup-list .card {
  width: 18.6rem !important;
  height: 13.6rem !important;
  margin: 0 1.5rem 2rem 0;
}

.main__wrapper .rollup-list-wrap .rollup-list .card h2 {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: #5A371E;
  line-height: 1.3em;
}

.main__wrapper .rollup-list-wrap .rollup-list .card h3 {
  display: none;
}

.main__wrapper .rollup-list-wrap .rollup-list .card p {
  position: absolute;
  bottom: 1.6rem;
  left: 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 2.6rem;
  padding: 0 0.7rem;
  border-radius: 1.3rem;
  z-index: 9;
}

.main__wrapper .rollup-list-wrap .rollup-list .card p.ing {
  background-color: rgba(90, 55, 30, 0.6);
}

.main__wrapper .rollup-list-wrap .rollup-list .card p.complete {
  background-color: rgba(120, 85, 255, 0.6);
}

.main__wrapper .rollup-list-wrap .rollup-info-txt {
  color: #5A371E;
  font-size: 1.4rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

