
/*Header*/
.site-header {
    background: #fff;
}

.header-logo {
    font-size: 2rem;
}

.nav-link {
    display: block;
    padding: 0px 8px 22px 8px;
}

.header-nav .nav-link.active,
.header-nav .nav-link.dropdown-toggle.active {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #000 !important;
    z-index: 1;
}

.header-nav .nav-link.active::after,
.header-nav .nav-link.dropdown-toggle.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    top:20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 6px;
    background-color: #00FFF2;
    z-index: -1;
}

/*Footer*/
.site-footer {
    background: #fff;
    font-size: 14px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-info div {
    margin-bottom: 4px;
    line-height: 1.5;
}

/*Header Dropdown*/
.custom-dropdown {
    background: #000;
    border: none;
    min-width: 220px;
    padding: 0;
}


.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: calc(100% + 0px); /* 박스를 원하는 만큼 띄움 */
    margin-top: 0;
    border-radius: 0px !important;
}

.nav-item.dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0px;      /* gap 크기만큼 위로 확장 */
    left: 0;
    width: 100%;
    height: 16px;    /* gap 높이 */
    background: transparent;
}

.custom-dropdown .dropdown-item {
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
}

.custom-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown .dropdown-item:hover {
    background: #111;
    color: #00FFF2;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}


/*드랍다운 */

/* 메뉴 */
.theme-dropdown {
    position: relative;
    display: inline-block;
}

.theme-toggle {
    color: #000;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px; /* 텍스트와 아이콘 사이 간격 */
}

.theme-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease; /* 회전 애니메이션 */
}

.theme-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);   /* 토글 아래 16px 간격 */
    left: -5px;
    min-width: 140px;
    background: #fff;
    font-size: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.theme-toggle {
    pointer-events: none; /* 클릭 자체를 막음 */
}

.theme-dropdown:hover .theme-menu {
    display: block;
}

.theme-dropdown:hover .theme-icon {
    transform: rotate(180deg);
}

.theme-menu::before {
    content: "";
    position: absolute;
    top: -16px;   /* 메뉴 위쪽으로 확장 */
    left: 0;
    width: 100%;
    height: 16px; /* gap 높이 */
    background: transparent;
}

.theme-menu a {
    display: block;
    padding: 6px 12px;
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.theme-menu a:hover {
    background: #f8f9fa;
}


/*carosel*/
.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%; /* 원형 */
    margin: 0px 12px 24px 0px;
    background-color: #ccc;
}

.carousel-indicators .active {
    background-color: white; /* 활성화 시 검은색 */
}

.carousel-item img {
    pointer-events: none;  /* 클릭/드래그 이벤트 막음 */
    user-select: none;     /* 드래그 선택 방지 */
}

.note-img {
    width: 466px;
    height: 300px;
    object-fit: cover; /* 비율 맞추면서 잘림 */
    display: block;
}

#bookCarousel-m .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 이미지가 꽉 차게 */
}

#noteCarousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #00e0d6; /* 민트색 테두리 */
    background-color: transparent; /* 내부는 비워둠 */
    margin: 0 4px 12px 4px;
}

#noteCarousel .carousel-indicators .active {
    background-color: #00e0d6; /* 민트 채움 */
}


#noteCarousel2 .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #00e0d6; /* 민트색 테두리 */
    background-color: transparent; /* 내부는 비워둠 */
    margin: 0 4px 12px 4px;
}

#noteCarousel2 .carousel-indicators .active {
    background-color: #00e0d6; /* 민트 채움 */
}

/*대화상자*/
.custom-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    display: none;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.booklist-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 900px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-slide {
    min-width: 900px; /* 고정폭 */
    flex-shrink: 0;
}

.carousel-btn {
    background: none;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}


.book-genre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;   /* 원 크기 */
    height: 60px;  /* 원 크기 */
    border: 1px solid #fff;
    border-radius: 50%; /* 완전 원형 */
    font-size: 14px;    /* 글자 크기 */
    color: #fff;
    text-align: center;
}


/*pagenation*/
.border-bottom-black-line{
    border-bottom: 1px solid var(--lp-basic-black);

}
.custom-pagination {
    display: flex;
    justify-content: center;
    gap: 12px; /* 버튼 간격 */
    padding-left: 0; /* ← 이거 추가 */
    margin-left: 0;  /* 혹시 남은 여백까지 제거 */
}

.custom-pagination li {
    list-style: none;
}

.custom-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-pagination .active a {
    background-color: #000;
    color: #fff;
}

.book-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;   /* 고정 크기 */
    height: 36px;  /* 고정 크기 */
    border: 1px solid #fff;
    border-radius: 50%; /* 완전 동그라미 */
    font-size: 12px !important;
    color: #fff;
    font-weight: 300;
    text-align: center;
}

.book-item {
    border-bottom: 1px solid #fff; /* 아래 흰색 라인 */
}


.bookshelf-section {
    width: 100%;
    height: 200px;
}

.bookshelf-section .divider {
    width: 40px;
    height: 2px;
    background-color: #fff; /* 흰색 라인 */
}

.book-card {
    max-width: 800px;
    margin: 40px auto;
}


.book-cover img {
    width: 280px;   /* 표지 고정 크기 */
    height: 280px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block;
}

.book-list-cover {
    flex-shrink: 0; /* 🔸이미지가 줄어들지 않게 고정 */
}

.book-list-cover img {
    width: 215px;   /* 표지 고정 크기 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.book-info .c-gray-1 {
    color: #666; /* 저자명 회색 */
}

.book-info a {
    text-decoration: none;
    transition: 0.2s;
}

.book-info a:hover {
    color: #000;
}

.book-card-vertical {
    width: 200px;         /* 카드 고정 폭 */
}

.book-card-vertical .book-cover img {
    width: 200px;          /* 부모 크기에 맞춤 */
    height: auto;
    display: block;
}

.book-card-vertical .book-info {
    margin-top: 2px;
}

.book-card-vertical .c-gray-1 {
    color: #666;
}

.highlight-text.pc::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 5px;
    background-color: #00FFF2;
    z-index: -1;
}

.header-nav .nav-link.active::after, .header-nav .nav-link.dropdown-toggle.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 5px;
    background-color: #00FFF2;
    z-index: -1;
}



.book-title {
    color: #000;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.book-author {
    font-size: 16px;
    color: #000;
    margin-top: 12px;
    margin-bottom: 20px;
}

.book-option {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-top: 4px;
    margin-bottom: 0px;
}

.divider {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.divider-black {
    border-top: 1px solid #000;
    margin: 20px 0;
}

.info-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--lp-basic-black);
}

.btn-link {
    display: inline-block;
    border: 1px solid #000;
    padding: 4px 12px;
    font-size: 14px;
    color: var(--lp-basic-black);
    text-decoration: none;
    margin-right: 8px;
}

.btn-link:hover {
    background: var(--lp-basic-black);
    color: var(--lp-basic-white);
}

.author-section {
    width: 265px;
    margin: 0;
    color: var(--lp-basic-black);
}

.book-text-card {
    width: 230px;
    height: 300px;
    border: 1px solid #ccc;
    background: #fff;
}

.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.border-black{
    border: 1px solid var(--lp-basic-black);
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid var(--lp-basic-black);
}

.book-detail .nav-tabs {
    border-bottom: 1px solid #ddd;
}

.book-detail .nav-link {
    color: #333;
    font-size: 0.9rem;
    padding: 24px 16px 4px 0px;
}

.book-detail .nav-link.active {
    font-weight: 600;
    border: none;
    border-bottom: 2px solid #000;
    background: none;
}

.book-section {
    font-size: 0.9rem;
    line-height: 1.6;
}

.book-section h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.book-section a {
    font-size: 0.8rem;
    text-decoration: none;
}

.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;  /* 최대 4줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* 최대 4줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left !important;
    display: flex;
    align-items: center;      /* ✅ 세로 가운데 정렬 */
    justify-content: left;  /* ✅ 가로 가운데 정렬 (필요 시) */
    min-height: 56px;
}

.book-section {
    scroll-margin-top: 100px; /* 🔸 헤더 높이에 맞게 조정 (예: 80~120px) */
}

/*Layout*/
.layout-border-top {
    border-top: 1px solid var(--lp-basic-black);
}

/*Layout*/
.layout-border-top-white {
    border-top: 1px solid var(--lp-basic-white);
}

.layout-border-right-white {
    border-right: 1px solid var(--lp-basic-white);
}

.layout-border-right {
    border-right: 1px solid var(--lp-basic-black);
}

.layout-border-bottom {
    border-bottom: 1px solid var(--lp-basic-black);
}

.layout-border-bottom-gray {
    border-bottom: 1px solid var(--lp-gray-2);
}

.layout-border-left {
    border-left: 1px solid var(--lp-basic-black);
}


.font-serif {
    font-family: 'Nanum Myeongjo', serif !important;
}

.font-serif * {
    font-family: 'Nanum Myeongjo', serif !important;
}

/*Floating*/
.floating-btn {
    position: fixed;
    bottom: 48px;   /* 화면 하단 여백 */
    right: 104px;    /* 화면 오른쪽 여백 */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* 아이콘 크기 */
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}



.floating-btn:hover {
    transform: scale(1.1);
}

.highlight-text {
    position: relative;
    display: inline-block;   /* 글자 크기에 맞게 */
    font-weight: 700;
    color: #000;
    z-index: 1;
}

.highlight-text::after {
    content: "";
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;              /* 글자 폭의 70% */
    height: 5px;             /* 글자 높이의 20% */
    background-color: #00FFF2;
    z-index: -1;
}

.highlight-text.notice-check::after {
    content: "";
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;              /* 글자 폭의 70% */
    height: 5px;             /* 글자 높이의 20% */
    background-color: #00FFF2;
    z-index: -1;
}

.shadow {
    box-shadow: 0 .3rem .6rem -0.2rem rgba(0, 0, 0, 0.6) !important;
}



/* 모든 헤더 공통 고정 */
header.container-fluid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* 콘텐츠보다 위 */
    background-color: #fff; /* 배경 불투명하게 */
}

body {
    padding-top: 92px; /* 헤더 높이만큼 여백 추가 (모바일은 아래에서 따로 조정) */
}

/*검색바*/

/* 오버레이 기본 숨김 */
.search-overlay {
    display: none;  /* 처음에는 안보임 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,1);
    z-index: 2000;

    justify-content: center;
    align-items: center;
}

/* 중앙 박스 */
.search-box {
    width: 90%;
    max-width: 400px;
}

/* 인풋 */
/* 기본 input 스타일 */
.search-box input {
    width: 100%;
    font-size: 18px;
    padding: 12px 16px;
    border:2px solid #000;      /* 검정 아웃라인 */
    border-radius: 6px;
    background-color: #fff;
    text-align: center;
    color: #222;

    outline: none;               /* 파란 포커스 라인 제거 */
    box-shadow: none;            /* 부트스트랩 shadow 제거 */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 포커스 시 */
.search-box input:focus {
    border-color: #000;          /* 검정 유지 */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);  /* 은은한 아웃라인 효과 */
}

/* placeholder */
.search-box input::placeholder {
    color: #888;
    opacity: 1;                  /* 투명도 제거 (일부 브라우저 대비) */
}

[data-href] {
    cursor: pointer;
}

[data-drag] {
    cursor: pointer;
}

/* 볼드 별도 클래스 정의 */
.bold-hover:hover {
    font-weight: 700 !important;
}

.carousel-indicators.mint {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators.mint li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: transparent;
    border: 1px solid #00FFF2; /* 민트색 테두리 */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* 🔹 활성 상태 (채워진 원) */
.carousel-indicators.mint li.active {
    background-color: #00FFF2; /* 민트색 채움 */
    border-color: #00FFF2;
    opacity: 1;
}


.nav .nav-item:hover .nav-link {
    font-weight: 700; /* 볼드체 */
}

.img-bottom-banner-frame {
    height: 600px;
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

/* ✅ 이미지 정중앙 정렬 + 비율 유지하며 꽉 채우기 */
.img-bottom-banner-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 비율 유지하며 프레임 채움 */
    transform: translate(-50%, -50%); /* 중앙 정렬 */
    display: block;
}

.quill-content-wrapper {
    word-break: break-word;
}

.quill-content-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto; /* 이미지 중앙정렬 + 여백 */
}

.quill-content-wrapper p {
    line-height: 30px;
    letter-spacing: -0.05em; /* 자간 -5% */
    margin-bottom: 0px !important;
}

.quill-content-wrapper.text-left,
.quill-content-wrapper.text-left * {
    font-family: 'Nanum Myeongjo', serif !important;
    color: #000 !important;
    font-size: 16px !important;
    line-height: 30px !important;
    font-weight: 400 !important;
}

.quill-content-wrapper .ql-align-justify {
    text-align: justify;
}

.quill-review-wrapper {
    word-break: break-word;
}

.quill-review-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto; /* 이미지 중앙정렬 + 여백 */
}

.quill-review-wrapper p {
    font-size: 16px;
    line-height: 30px;
    letter-spacing: -0.05em; /* 자간 -5% */
    margin-bottom: 0px !important;
    color: #000 !important;
}

.quill-review-wrapper .ql-align-center {
    text-align: center;
}

.quill-review-wrapper .ql-align-justify {
    text-align: justify;
}

.quill-notice-wrapper {
    word-break: break-word;
}

.quill-notice-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto; /* 이미지 중앙정렬 + 여백 */
}

.quill-notice-wrapper p {
    font-size: 16px;
    line-height: 30px;
    letter-spacing: -0.05em; /* 자간 -5% */
    margin-bottom: 0px !important;
    color: #000 !important;
}

.quill-notice-wrapper .ql-align-justify {
    text-align: justify;
}


.quill-book-wrapper {
    word-break: break-word;
}

.quill-book-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto; /* 이미지 중앙정렬 + 여백 */
}

.quill-book-wrapper p {
    font-size: 16px;
    line-height: 30px;
    letter-spacing: -0.05em; /* 자간 -5% */
    margin-bottom: 0px !important;
    color: #000 !important;
}

.quill-book-wrapper .ql-align-justify {
    text-align: justify;
}

.banner-img-frame-m {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.banner-img-frame-m img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.form-control:focus{
    color: var(--basic-black) !important;
}

.book-text-card {
    background-color: #fff;      /* 기본 흰색 */
    color: #000;                 /* 기본 글자색 검정 */
    border: 1px solid #000;
    transition: all 0.3s ease;   /* 부드러운 전환 */
}

/* 🔹 호버 시 반전 */
.book-text-card:hover {
    background-color: #000; !important;      /* 배경 → 검정 */
    color: #fff;                 /* 글자 → 흰색 */
    border-color: #000;
}

/* 내부 텍스트 색상 반전 */
.book-text-card:hover .c-basic-black,
.book-text-card:hover .text-dark,
.book-text-card:hover .font-weight-300,
.book-text-card:hover .font-weight-500 {
    color: #fff !important;
}

/* hr 구분선도 흰색으로 */
.book-text-card:hover hr {
    border-top: 1px solid #fff !important;
}

/* “more” 아이콘 화살표 색 반전 */
.book-text-card:hover img {
    filter: invert(1);
    transition: filter 0.3s ease;
}

/*연재 상단 캐러셀*/

.serial-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.serial-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.serial-carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 200px;
}


.serial-carousel-item.active {
    display: block;
    opacity: 1;
}

/* 컨트롤 버튼 위치 */
.serial-carousel-control-prev,
.serial-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5%;
    cursor: pointer;
    z-index: 10;
}

.serial-carousel-control-prev {
    left: 20px;
}

.serial-carousel-control-next {
    right: 20px;
}

/* 아이콘 색상 반전 */
.serial-carousel-control-prev-icon,
.serial-carousel-control-next-icon {
    filter: invert(1);
}

.serial-divider {
    position: absolute;
    left: 50%;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: white;
    transform: translateX(-50%);
}

.image-gradient-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-gradient-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    vertical-align: middle; /* 🔹 inline-block 간격 제거 */
}

/* 🔹 그라데이션 오버레이 */
.image-gradient-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.header-nav .mobile.nav-link.active::after, .header-nav .nav-link.dropdown-toggle.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 5px;
    background-color: #00FFF2;
    z-index: -1;
}

.header-nav .nav-link.dropdown-toggle.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 5px;
    background-color: #00FFF2;
    z-index: -1;
}

.book-card-vertical {
    text-align: center;
}


.book-info {
    text-align: left;
    margin-top: 8px;
}

/* 연재 호버시 강조 */
.serial-carousel-inner .col-6 {
    transition: all 0.3s ease; /* 부드럽게 색상 전환 */
}

.serial-carousel-inner .col-6:hover {
    background-color: #fff !important; /* 흰색 배경 */
    color: #000 !important; /* 기본 글자색 흑색 */
}

.serial-carousel-inner .col-6:hover .text-white,
.serial-carousel-inner .col-6:hover .c-basic-white {
    color: #000 !important;
}

.serial-carousel-inner .col-6:hover .book-genre {
    color: #000 !important;
    border: 1px solid #000;
}

.serial-carousel-inner .col-6:hover .font-weight-600 {
    color: #000 !important;
}



/* 컨테이너: 넘침/미세 최적화 */
.hover-zoom {
    overflow: hidden;            /* 확대 시 테두리 밖으로 새는 것 방지 */
    will-change: transform;      /* 렌더링 최적화 */
}

/* 이미지/텍스트에만 아주 미세하게 확대 적용 */
.note-img,
.zoom-text {
    transition: transform 0.25s ease; /* 빠릿하지만 부드럽게 */
    transform-origin: center center;   /* 중심 기준 확대 */
}

/* 호버 시 '정말 조금'만 확대 (1.012 ~ 1.02 사이 추천) */
.hover-zoom:hover .note-img,
.hover-zoom:hover .zoom-text {
    transform: scale(1.015);    /* 필요하면 1.012로 더 줄여도 됨 */
}



.book-item:hover {
    background-color: #ffffff !important;  /* 배경 흰색으로 전환 */
    color: #000000 !important;              /* 전체 텍스트 검정으로 전환 */
}

.book-item:hover .book-category {
    border-color: #000000 !important;       /* 보더 색 반전 */
    color: #000000 !important;
}

.book-item:hover .c-basic-white {
    color: #000000 !important;              /* 작가명도 검정색으로 전환 */
}

.pre-line {
    white-space: pre-line; /* 개행(\n) 문자 유지 */
}

.carousel-indicators.series {
    position: absolute;
    right: 0;
    bottom: -15px;
    left: 0;
    z-index: 15;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;

}

.carousel-indicators.series li {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin: 0px 4px 0px 4px;
    background-color: #ccc;
}


.carousel-indicators.bottom-banner li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0px 6px 24px 6px;
    border: 1px solid white;
    background-color: transparent !important;
    transition: opacity .6s ease;
    opacity: 1;
}

.carousel-indicators.bottom-banner .active {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0px 6px 24px 6px;
    border: 1px solid white;
    color: white !important;
    background-color: white !important;
}

.review-flex {
    display: flex;
    justify-content: space-between; /* 좌·우 끝에 배치 */
    align-items: center; /* 세로 가운데 정렬 */
    gap: 16px; /* 요소 간 간격 */
}

.review-flex .left,
.review-flex .center,
.review-flex .right {
    flex: 1; /* 3등분 */
    min-width: 0; /* 내용 길어도 깨지지 않게 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {

    .theme-menu a {
        display: block;
        padding: 6px 12px;
        font-size: 12px;
        color: #000;
        text-decoration: none;
    }

    .carousel-track-wrapper-m {
        overflow: hidden;
        height: auto; /* 첫 슬라이드 높이에 맞춰 자동 조정 */
        position: relative;
    }

    .carousel-track-m {
        transition: transform 0.4s ease;
        will-change: transform;
    }

    .nav-tabs.notice{
        width: 100% !important;
    }

    .floating-btn {
        position: fixed;
        bottom: 8px;   /* 화면 하단 여백 */
        right: 8px;    /* 화면 오른쪽 여백 */
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px; /* 아이콘 크기 */
        text-decoration: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
        z-index: 1000;
    }

    .category-circle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 56px;       /* 지름 */
        height: 56px;
        border: 1px solid #fff;
        border-radius: 50%; /* 완전한 원 */
        color: #fff;
        font-size: 16px;
        font-weight: 500;

        /* 🔸 원 자체의 그림자 (box-shadow) */
        box-shadow:
                0 0 8px rgba(0, 0, 0, 0.4),
                0 0 16px rgba(0, 0, 0, 0.2);
    }

    /* 🔹 원 텍스트용 흰 그림자 효과 */
    .category-circle-shadow {
        text-shadow:
                0 0 8px rgba(0, 0, 0, 0.6),
                0 0 16px rgba(0, 0, 0, 0.4);
    }

    /* 🔹 제목·작가용 그림자 — 살짝 더 깊게 */
    .text-shadow-deep {
        text-shadow:
                0 0 8px rgba(0, 0, 0, 0.65),
                0 0 16px rgba(0, 0, 0, 0.45);
    }

    .main-card-frame{
        width: 400px;
        height: 200px;
    }
    .square-img {
        width: 100%;        /* 부모 기준으로 꽉 차기 */
        aspect-ratio: 1/1;  /* 정사각형 */
        object-fit: cover;  /* 꽉 채우기 (비율 유지, 넘치는 부분 잘림) */
        display: block;
    }
    .carousel-indicators li{
        width: 8px;
        height: 8px;
        margin: 0px 4px;
    }


    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 1); /* ✅ 흰색 + 70% 투명도 */

        z-index: 1050;
        display: none; /* ← 처음에는 안보이게 */
        flex-direction: column;
    }

    .theme-toggle {
        color: #000;
        font-size: 12px;
        text-decoration: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0px; /* 텍스트와 아이콘 사이 간격 */
    }

    .book-card-vertical{
        width: 160px;
    }

    .book-card-vertical .book-cover img{
        width: 160px;
    }
    .book-cover {
        display: flex;
        justify-content: center;
        align-items: center; /* end → center */
        height: 280px;
    }

    .book-cover img {
        max-height: 100%;
        width: auto;
        display: block;
        object-fit: cover;
    }
    .book-text-card {
        width: 160px;
        height: 200px;
        background: #fff;
    }

    .author-section{
        width: 100%;
    }

    .book-card {
        margin: 0;      /* auto 제거 */
        max-width: 100%; /* 고정 폭 제한 풀기 */
    }

    #bookTabs-m {
        flex-direction: row !important;  /* 세로 → 가로 */
        justify-content: space-between;
        align-items: center;
    }

    #bookTabs-m .nav-item {
        text-align: center;
    }

    #bookTabs-m .nav-link {
        display: inline-block;
        width: auto;
        padding: 8px 0;
        text-align: center;
        border: none;
    }

    .nav-tabs{
        width: 180px !important;
    }

    body {
        padding-top: 56px; /* 헤더 높이만큼 여백 추가 (모바일은 아래에서 따로 조정) */
    }


    .nav-link {
        display: block;
        padding: 0px 8px 4px 8px;
    }

    .highlight-text::after{
        top:45%;
    }


    /* 🔹 호버 시 반전 */
    .book-text-card:hover {
        background-color: #fff; !important;      /* 배경 → 검정 */
        color: #000;                 /* 글자 → 흰색 */
        border-color: #fff;
    }

    /* 내부 텍스트 색상 반전 */
    .book-text-card:hover .c-basic-black,
    .book-text-card:hover .text-dark,
    .book-text-card:hover .font-weight-300,
    .book-text-card:hover .font-weight-500 {
        color: #000 !important;
    }

    /* hr 구분선도 흰색으로 */
    .book-text-card:hover hr {
        border-top: 1px solid #000 !important;
    }

    /* “more” 아이콘 화살표 색 반전 */
    .book-text-card:hover img {
        filter: invert(1);
        transition: filter 0.3s ease;
    }


    .highlight-text.book-mobile::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120%;
        height: 5px;
        background-color: #00FFF2;
        z-index: -1;
    }

    .carousel-indicators.bottom-banner li {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0px 4px 12px 4px;
        border: 1px solid white;
        background-color: transparent !important;
        transition: opacity .6s ease;
        opacity: 1;
    }

    .carousel-indicators.bottom-banner .active {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0px 4px 12px 4px;
        border: 1px solid white;
        color: white !important;
        background-color: white !important;
    }

    .clamp-review-text {
        display: -webkit-box;          /* 반드시 필요 */
        -webkit-box-orient: vertical;  /* 세로 방향으로 박스 정렬 */
        -webkit-line-clamp: 2;         /* 표시할 최대 줄 수 */
        overflow: hidden;              /* 넘치는 텍스트 숨김 */
        text-overflow: ellipsis;       /* 말줄임표 (...) */
    }



    .custom-pagination {
        display: flex;
        justify-content: center;
        gap: 12px; /* 버튼 간격 */
        padding-left: 0; /* ← 이거 추가 */
        margin-left: 0;  /* 혹시 남은 여백까지 제거 */
    }

    .custom-pagination li {
        list-style: none;
    }

    .custom-pagination a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 1px solid #000;
        border-radius: 50%;
        font-size: 16px;
        font-weight: 400;
        color: #000;
        line-height: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
    }


    .book-genre {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;   /* 원 크기 */
        height: 48px;  /* 원 크기 */
        border: 1px solid #fff;
        border-radius: 50%; /* 완전 원형 */
        font-size: 16px;    /* 글자 크기 */
        color: #fff;
        text-align: center;
    }
    .theme-menu {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: -12px;
        min-width: 140px;
        background: #fff;
        font-size: 12px;
        border: 1px solid #eee;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .theme-menu.field {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: -5px;
        min-width: 140px;
        background: #fff;
        font-size: 12px;
        border: 1px solid #eee;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .book-title {
        color: #000;
        font-size: 24px !important;
        font-weight: 500;
        text-align: center;
    }

    .book-author {
        font-size: 14px;
        color: #000;
        margin-top: 6px;
        text-align: center;
        margin-bottom: 20px;
    }

    .book-option {
        font-size: 14px;
        font-weight: 400;
        color: #000;
        margin-top: 4px;
        margin-bottom: 0px;
    }

    .info-label{
        font-size: 14px;
        font-weight: 400;
    }

    /* ================================
       📱 Book 상세 페이지 (모바일 전용)
    ================================ */

    .book-section-m {
        margin-bottom: 24px;
    }

    .book-section-m .content-area-m {
        font-size: 14px;
        line-height: 1.7;
        color: #333;
        position: relative;
        z-index: 1;
    }

    /* ✅ 10줄 제한용 */
    .book-section-m .clamp-book-text-m {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 10;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    /* 더보기 버튼 */
    .book-section-m .toggle-btn-book-m {
        display: inline-block;
        margin-top: 8px;
        font-weight: 500;
        cursor: pointer;
    }

    .book-section-m .toggle-btn-book-m img {
        width: 12px;
        vertical-align: middle;
        padding-bottom: 2px;
    }


}

/*애매한 사이즈*/
@media (min-width: 768px) and (max-width: 1500px) {
    .header-nav ul li{
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

}
