body {
    font-size: 14px;
    line-height: 1.35;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a.btn {
    text-decoration: none !important;
}

.bg-gray-100 {
    background-color: var(--bs-gray-100);
}

.bg-gray-200 {
    background-color: var(--bs-gray-200);
}

.fullColumn {
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius-sm);
    width: 50px;
    height: 45px;
    color: var(--bs-navbar-color);
    border: 0 !important;
}

.navbar .btn-icon {
    color: var(--bs-body-color);
}

.btn-icon svg {
    fill: currentColor;
    width: auto;
    max-width: 100%;
    height: 27px;
}

.btn-icon svg path {
    fill: currentColor;
}

.btn-icon.active {
    background: var(--bs-gray-400);
}

.btn-icon:hover {
    background: var(--bs-gray-300);
}

.grid-view .truncate, .grid-view .truncate > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.list-view .truncate, .list-view .truncate > a {
    word-break: break-word;
}

.list-view.row {
    flex-direction: column !important;
}

.list-view.row > * {
    width: 100%;
    flex: 100%;
}

.list-view.row .list-group-item {
    flex-direction: row;
    align-items: start;
    column-gap: 20px;
    padding: 20px;
}

.list-view.row .list-group-item .image-container img {
    position: static;
    transform: none;
    object-fit: contain;
    height: 100%;
}

.list-view.row .list-group-item .image-container {
    margin-bottom: 0;
    height: 203px;
    width: 150px;
    min-width: 150px;
    padding-bottom: 0 !important;
    background-color: transparent;
}

.list-view.row .list-group-item .image-blur {
    display: none;
}

@media (max-width: 767px) {
    .list-view.row .list-group-item .image-container {
        height: 176px;
        width: 130px;
        min-width: 130px;
    }
}

@media (max-width: 576px) {
    .list-view.row .list-group-item .image-container {
        height: 136px;
        width: 100px;
        min-width: 100px;
    }
}

/*navbar*/

.navbar {
    --bs-navbar-padding-x: 3rem;
    --bs-navbar-padding-y: 0.8rem;
    --bs-navbar-brand-margin-end: 2.5rem;
    --bs-nav-link-font-size: 1rem;
    background-color: var(--bs-gray-200);
}

.nav-item {
    border-radius: var(--bs-border-radius-sm);
}

.nav-link {
    white-space: nowrap;
}

.nav-item:not(.active):hover {
    background-color: var(--bs-gray-300);
}

.nav-item.active {
    background-color: var(--bs-gray-400);
}

@media (max-width: 1024px) {
    .navbar {
        --bs-navbar-padding-x: 0.5rem;
    }
}

.navbar-brand svg {
    width: 38px;
    height: 38px;
}

.navbar-brand svg path {
    fill: var(--bs-primary) !important;
}

.navbar-header {
    height: 60px;
}

.navbar-default .navbar-brand img {
    display: inline-block;
    vertical-align: middle;
    padding-right: 15px;
}

.navbar-nav.nav {
    margin: 5px 0;
}

.navbar-nav.nav > li {
    position: relative;
}

.navbar-nav.nav > li:first-child:after,
.navbar-nav.nav > li:hover:after,
.navbar-nav.nav > li.active:after {
    display: none;
}

.navbar-nav.nav > li > a {
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0);
}

.navbar-nav.nav > li > a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-nav.nav > li.active > a {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.navbar-right {
    margin: 5px 0;
    text-align: right;
}

.section {
    margin: 80px 0;
}

@media (max-width: 767px) {
    .section {
        margin: 60px 0;
    }
}

.book.img-thumbnail {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    border-radius: 0;
}

.book.img-thumbnail h4 {
    margin-bottom: 10px;
    margin-top: 10px;
    /*text-transform: uppercase;*/
}

.grid-view .book-item {
    height: 100%;
}

.grid-view .book-item .thumbnail {
    height: 100%;
}

.grid-view .book-details {
    max-width: 100%;
    text-align: center;
}

.grid-view .book-description {
    display: none;
}

.list-view .book-description [align="center"] {
    text-align: start !important;
}

.book-item .inside {
    border: 1px solid var(--bs-border-color);
    padding: 20px;
    height: 300px;
    border-radius: var(--bs-border-radius-lg);
}

#booksView.list-view .book-item .inside {
    display: flex;
    align-items: center;
}


.items-list .book-item .list-group-item .image-container {
    padding-bottom: calc(130% + 30px);
}

.book-item .book-title {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
}

.book-item .book-title:last-child {
    margin-bottom: 0;
}

.book-item .book-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    opacity: 0.5;
}

.book-item .book-title a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.book-description {
    display: -webkit-box;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 6; /* rows number */
    -webkit-box-orient: vertical;
    line-height: 1.5;
    max-height: calc(1.5em * 6); /* line-height * rows number */
}

@media (max-width: 767px) {
    .book-description {
        -webkit-line-clamp: 4;
        max-height: calc(1.5em * 4);
    }
}

.items-list .list-group-item {
    position: relative;
}

.items-list .list-group-item .list-group-item-heading {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
    width: 100%;
}

.items-list .list-group-item .list-group-item-heading:last-child {
    margin-bottom: 0;
}

.items-list .list-group-item .list-group-item-heading-small {
    margin: 0;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    opacity: 0.5;
}

@media (max-width: 767px) {
    .items-list .list-group-item .list-group-item-heading {
        font-size: 16px;
    }
    .items-list .list-group-item .list-group-item-heading-small {
        font-size: 14px;
    }
}


/*footer*/

.footer {
    margin-top: 30px;
    width: 100%;
    height: 40px;
    background-color: #f5f5f5;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
}

.modal-content {
    border-radius: 0;
    text-align: center;
}

/*new*/

.hover-shadow {
    transition: all 0.3s ease-in-out;
    border-radius: var(--bs-border-radius-lg);
    /*box-shadow: 0 4px 4px rgba(0, 0, 0, 0.06);*/
}

.hover-shadow:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.card {
    --bs-card-border-color: var(--bs-border-color);
    --bs-card-border-radius: var(--bs-border-radius-lg);
    --bs-card-spacer-y: 1.85rem;
    --bs-card-spacer-x: 2rem;
    --bs-card-bg: var(--bs-gray-100);
    overflow: hidden;
    text-align: center;
}

.card-max-300 {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.card-body {
    position: relative;
}

.card-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 100%;
    background-color: var(--bs-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 1px solid var(--bs-border-color);
    transition: all .2s ease-in;
}

[data-bs-theme="dark"] .card-icon {
    border: none;
    border-top: 1px solid var(--bs-border-color);
}

.card-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.card-body:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    z-index: 0;
}

.card-icon svg {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    color: currentColor;
}

.card-title {
    font-weight: 400;
}

.card:hover {
    --bs-card-bg: var(--bs-body-bg);
    /*text-align: center;*/
}

.card:hover .card-icon {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.card:hover .card-icon-wrapper:before {
    opacity: 0;
}

/*.card:hover .card-icon-wrapper {*/
/*	justify-content: center;*/
/*}*/

.card-body {
    text-decoration: none !important;
}

.input-group .form-control.max-50 {
    max-width: 50px;
}

/*pageIndex*/

body.pageIndex .left-column, body.pageIndex section .row {
    width: 100%;
}

body.pageIndex .left-column + * {
    display: none;
}

.left-column .thumbnail {
    height: 100%;
}

.left-column .items-list .thumbnail {
    min-height: 100px;
}

.items-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    border: 1px solid var(--bs-border-color);
    margin: 0;
    border-radius: var(--bs-border-radius-lg);
    height: 100%;
    overflow: hidden;
}

.index-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
}

.index-list > .item {
    width: auto;
}

.index-list .thumbnail {
    width: 50px;
    height: 50px !important;
}

.index-list.index-list-years {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.index-list.index-list-years .thumbnail {
    width: 80px;
    height: 80px !important;
}

@media (max-width: 767px) {
    .index-list {
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }
    .index-list .thumbnail {
        width: 40px;
        height: 40px !important;
    }

    .index-list.index-list-years {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .index-list.index-list-years .thumbnail {
        width: 70px;
        height: 70px !important;
    }
}

.index-list .list-group-item .list-group-item-heading {
    font-size: 18px;
    padding: 5px;
    font-weight: 500;
    margin: 0;
}

.index-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    border-radius: var(--bs-border-radius-sm);
    height: 100%;
    overflow: hidden;
    background-color: var(--bs-gray-200);
    transition: background-color .1s ease-in;
}

.index-list .list-group-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.33);
}

.index-list .list-group-item.activeLetter {
    background-color: var(--bs-primary);
    color: #fff;
}

.items-list .list-group-item {
    padding: 0 15px 23px;
}

.items-list .list-group-item .badge {
    --bs-badge-font-size: 16px;
    --bs-badge-font-weight: 500;
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: var(--bs-gray-500);
    z-index: 3;
}

.items-list .list-group-item .badge:empty {
    display: none;
}

.items-list .list-group-item .image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: scale-down;
    width: 100%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.items-list .list-group-item .image-container {
    display: block;
    position: relative;
    margin-bottom: 20px;
    height: 0;
    overflow: hidden;
    width: calc(100% + 30px);
    padding-bottom: calc(100% + 30px);
    background-color: var(--bs-gray-100);
}

.items-list .list-group-item .image-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: blur(100px);
}

/*.items-list .list-group-item .image-container img,*/
.items-list .list-group-item .image-blur {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/*.items-list .list-group-item .image-container.loaded img,*/
.items-list .list-group-item .image-container.loaded .image-blur {
    opacity: 0.75;
}

.filter-row {
    padding: 10px;
    background-color: var(--bs-gray-200);
    border-radius: var(--bs-border-radius-lg);
}

.search-filter-row {
    padding-top: 10px;
    padding-bottom: 10px;
}

.search-filter-row input {
    max-width: 100%;
    width: 400px;
}

@media (max-width: 767px) {
    .search-filter-row input {
        width: calc(100% - 30px);
    }
}

.search-filter-row svg {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    color: var(--bs-gray-500);
}

/*book page*/

.pageBook .section > .container:first-child {
    display: none;
}

.pageBook .title h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
}

.pageBook .title h4, .pageBook .title h5 {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--bs-gray-400);
}

.pageBook .title a {
    text-decoration: none;
    color: var(--bs-gray-600);
}

.pageBook .title a:hover {
    color: var(--bs-link-hover-color);
    text-decoration: underline;
}

.pageBook .book-details {
    display: grid;
    gap: 5px;
    column-gap: 15px;
    grid-template-columns: auto 1fr;
}

.pageBook .book-details a:hover {
    text-decoration: underline;
}

.pageBook .book-details b {
    font-weight: 600;
}

.pageBook .book-details span, .pageBook .book-details span a:not(:hover) {
    color: var(--bs-gray-600);
}

.pageBook .list-group-item p {
    margin: 0;
}

.pageBook .list-group-item h5 {
    font-size: 18px;
    font-weight: 500;
}

.book-items {
    position: relative;
    cursor: default;
    margin: 0;
    display: grid;
    break-inside: avoid;
}

.main-book-wrap {
    position: relative;
}

.book-cover {
    position: relative;
    cursor: zoom-in;
}

.book-cover .book-image {
    line-height: 0;
    position: relative;
    border-radius: 2px 6px 6px 2px;
    box-shadow: 24px 28px 40px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.book-image img {
    grid-row: 1 / -1;
    grid-column: 1;
    width: 100%;
    border-radius: 2px 6px 6px 2px;
}


.book-effect {
    position: absolute;
    width: 20px;
    height: 100%;
    margin-left: 8%;
    top: 0;
    border-left: 2px solid #00000010;
    background-image: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.5s ease;
    z-index: 5;
}

.tab-info {
    --_br: 10px;
    --tab-info-bg: var(--bs-gray-200);
    display: grid;
    gap: var(--_br);
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    max-width: 100%;
    position: relative;
    margin: -10px 0 0 0;
}

.tab-top:after {
    --_size: var(--_br);
    content: "";
    position: absolute;
    width: var(--_size);
    aspect-ratio: 1;
    background-image: radial-gradient(
            circle at 100% 100%,
            transparent var(--_size),
            var(--_corner-color, var(--bs-body-bg)) calc(var(--_size) + 1px)
    );
    rotate: -90deg;
}

.tab-top {
    padding: 0;
    background: var(--tab-info-bg);
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    border-radius: var(--_br) var(--_br) 0 0;
    box-shadow: 0 var(--_br) 0 var(--tab-info-bg), 0 0 0 var(--_br) var(--bs-body-bg);
}

.tab-top:after {
    --_size: calc(var(--_br) * 1.5);
    --_corner-color: var(--tab-info-bg);
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    left: calc(-1 * var(--_br));
    bottom: calc(-1 * var(--_br));
}

.tab-top span {
    display: grid;
    place-items: center;
    background: #fff;
    padding: calc(var(--_br) / 2) 0;
    border-radius: calc(var(--_br) / 2);
}

.tab-content {
    margin: 0;
    background: var(--tab-info-bg);
    grid-row: 3 / 4;
    grid-column: 1 / 4;
    padding-top: var(--_br);
    border-radius: 0 var(--_br) var(--_br) var(--_br);
}

.tab-content [align="center"] {
    text-align: start !important;
}

.bg-gradient, .filter-row- {
    background: #3393df radial-gradient(circle at -68% 100%, #22e589 24%, #3393df 55%);
}

/*mobile menu*/
.navbar-header {
    display: none;
}

@media (max-width: 991px) {
    .navbar-toggler {
        background-color: transparent;
        border: none;
        cursor: pointer;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        display: flex;
        flex-direction: column;
    }

    .navbar-collapse > * {
        width: 100%;
    }

    .side-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(400px, calc(100% - 60px));
        height: 100%;
        overflow-y: auto;
        transition: transform 0.3s ease;
        z-index: 100000;
        background-color: rgba(var(--bs-body-bg-rgb), .95);
        backdrop-filter: blur(5px);
        transform: translateX(100%);
    }

    .side-nav.open {
        transform: translateX(0);
        box-shadow: -2px 5px 5px rgba(0, 0, 0, 0.2);
    }

    .side-nav .navbar-nav {
        margin-top: 30px;
        order: 2;
        list-style-type: none;
        padding: 0 20px;
    }

    .side-nav .navbar-nav .nav-item, .side-nav .navbar-nav .nav-item:hover {
        padding: 8px 15px;
        background-color: transparent;
    }

    .side-nav .navbar-nav .nav-item.active {
        background-color: var(--bs-gray-200);
    }

    .side-nav .navbar-nav .nav-item a {
        text-decoration: none;
        display: block;
        padding: 8px 0;
    }

    .side-nav .close-btn {
        position: absolute;
        top: 0;
        right: 0;
        font-size: 36px;
        margin: 16px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .side-nav .navbar-header {
        order: 1;
        display: block;
    }

    .side-nav #headerSearch {
        order: 3;
        flex: 1;
        margin-top: 25px;
        padding: 25px 30px;
        background: var(--bs-gray-200);
    }

    .side-nav #headerSearch > * {
        height: fit-content;
    }

    body.side-nav-open {
        overflow: hidden;
    }
}


@media screen and (max-width: 991px) {
    .tippy-popper {
        display: none !important;
    }
}

.page-item.active:only-child {
    display: none;
}