.data-information-page {
    max-width: 1520px;
    margin: 0 auto;
    padding: 40px;
    padding-top: 0px;
    box-sizing: border-box;
}

.knowledge-base h1 {
    margin-bottom: 40px;
    margin-top: 0px;
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #0A1F44;
}

.knowledge-sections {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.knowledge-item {
    flex: 1 1 300px;
    padding: 24px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    border-radius: 12px;
}

.knowledge-item h2 {
    margin-bottom: 15px;
}

.recently-added {
    margin-top: 40px;
}

.recently-added h2 {
    margin-bottom: 24px;
    margin-top: 0px;
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #0A1F44;
}

.recently-added .content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.recently-added .content > * {
    flex: 1 1 calc(25% - 18px);
    max-width: calc(25% - 18px);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .recently-added .content > * {
        flex: 1 1 calc(50% - 18px);
        max-width: calc(50% - 18px);
    }
}

@media (max-width: 768px) {
    .recently-added .content > * {
        flex: 1 1 calc(50% - 18px);
        max-width: calc(50% - 18px);
    }
}
@media (max-width: 500px) {
    .recently-added .content > * {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media (max-width: 1140px){
    .data-information-page {
        padding: 15px;
    }
}
.knowledge-title{
    display: inline-block;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0A1F44;
    margin-bottom: 12px;
}
.knowledge-description{
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #8693A1;
    margin-bottom: 24px;
}
.link-button{
    background-color: #F2F4F5;
    padding: 14px 20px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.text-button{
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #0A1F44;
}
.icon-hex{
    margin-bottom: 20px;

}
.page-container {
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #0A1F44;
    padding-top: 0px;
}

.block-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #0A1F44;
}

.search-wrapper {
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #C0C0C0;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-input::placeholder {
    color: #A0A0A0;
}

.search-button {
    padding: 10px 16px;
    background-color: #0A1F44;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.books-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #0A1F44;
    background-color: #F2F4F5;
}

.tag:hover {
    background-color: #e4e6e7;
}

.tag.active {
    background-color: #97A4AF;
    color: #FFFFFF;
    border-color: #97A4AF;
}
.block-books{
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 12px;
}
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.book-item{
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    padding: 28px 24px;
    border-radius: 12px;
}
.book-label,
.book-title,
.book-author,
.book-about {
    margin: 0;
}
.book-label {
    padding: 4px 12px;
    background-color: #49BBFF;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #0A1F44;
    margin-bottom: 16px;
    display: inline-block;
    max-width: 63px;
}
.book-title{
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #0A1F44;
    margin-bottom: 4px;
}
.book-author{
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #8693A1;
}
.book-about {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #8693A1;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-link:hover{
    color: #a63244;
}
.books-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.book-card {
    display: flex;
    flex-direction: column;
    font-family: "SF UI Text", sans-serif;
    width: 126px;
}

.book-cover {
    width: 126px;
    height: 192px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.book-cover-into{
    min-width: 256px;
    height: 390px;
    background-color: #f5f5f5;
    overflow: hidden;
}
.book-cover-into img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.book-category {
    font-size: 12px;
    font-weight: 500;
    color: #49BBFF;
    margin-bottom: 4px;
}

.book-author {
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #8693A1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-info h3{
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}
.book-title {
    font-weight: 500;
    font-size: 18px;
    color: #0A1F44;
    line-height: 24px;
    letter-spacing: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.block-tags{
    margin-bottom: 32px;
}
.category-title{
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0A1F44;
}
.category-block{
    margin-bottom: 32px;
}
.book-detail{
    max-width: 1520px;
    margin: 0 auto;
    padding: 40px;
    padding-top: 0px;
    box-sizing: border-box;
    display: flex;
    gap: 24px;
}
.info-title{
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #0A1F44;
    margin-bottom: 12px;
}
.info-author{
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #8693A1;
    margin-bottom: 32px;
}
.books-buttons .btn-read {
    all: unset;
    display: inline-block;
    padding: 12px 46px;
    background-color: #A63244;
    color: #FFFFFF;
    font-size: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 12px;
    max-width: 140px;
}

.books-buttons .btn-download {
    all: unset;
    display: inline-block;
    padding: 12px 46px;
    background-color: #FFFFFF;
    color: #A63244;
    font-size: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #A63244;
    max-width: 140px;
}
.books-buttons{
    margin-bottom: 32px;
}
.book-tabs {
    font-family: "SF UI Text", sans-serif;
}

.tabs-buttons {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 2px solid #D4DADE;
}

.tab-btn {
    all: unset;
    display: inline-block;
    padding: 12px 12px;
    cursor: pointer;
    background-color: white;
    color: #0A1F44;
    margin-right: 5px;
    text-align: center;
}

.tab-btn.active {
    border-bottom:2px solid #A63244;
}

.tab-content-book {
    display: none;
}

.tab-content-book.active {
    display: block;
}
.tag-book{
    padding: 4px 12px;
    background-color: #F2F4F5;
    border-radius: 100px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #0A1F44;
    white-space: nowrap;
}
.tags-container{
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-content-book p{
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #0A1F44;
}
.about-book{
    margin-bottom: 12px;
}

.book-card.hidden{
    display:none;
}
.hidden {
    display: none;
}
.pdf-reader{
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    padding: 20px;
    background-color: #F2F4F5;
}
.pdf-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.pdf-header-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

/*.pdf-logo {
    width: 50px;
    height: 50px;
    background: #ccc;
}*/

.pdf-title h1 {
    margin: 0;
    font-size: 18px;
    color: #0A1F44;
}

.pdf-title .pdf-author {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.pdf-header-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.pdf-header-bottom button {
    background: none;
    border: none;
    cursor: pointer;
}

.pdf-page-indicator {
    font-size: 14px;
    color: #0A1F44;
}

.pdf-zoom {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdf-reader {
    margin-top: 110px;
    width: 100%;
    height: calc(100vh - 110px);
    overflow-y: scroll;
    background: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}
.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}


.category-book {
    flex: 1 1 calc(25% - 8px);
    max-width: calc(25% - 8px);
    min-width: 250px;
    align-items: center;
    justify-content: flex-start;
    background-color: #F2F4F5;
    padding: 12px 20px;
    border-radius: 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

@media (max-width: 1140px) {
    .category-book {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 868px) {
    .category-book {
        flex: 1 1 calc(50% - 8px);
        max-width: 100%;
    }
}

.category-book a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-icon{
    color: #a63244;
}
.category-inner{
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: "SF UI Text", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #0A1F44;
}
.book-categories-title{
    font-family: "SF UI Text", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #0A1F44;
    margin-bottom: 16px;
}
.detail-info{
    display: grid;
    gap: 8px;
}
.info-about{
    font-family: "SF UI Text", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #8693A1;
}
.to-inf{
    font-family: "SF UI Text", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #0A1F44;
}
@media (max-width: 1236px) {
    .recently-added .content > * {
        flex: 1 1 calc(50% - 12px);
    }
}
@media (max-width: 500px) {
    .recently-added .content > * {
        flex: 1 1 100%;
    }
}
@media (max-width: 768px) {
    .knowledge-sections {
        display: grid;
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .recently-added .content > * {
        flex: 1 1 100%;
    }
    .recently-added h2 {
        margin-bottom: 24px;
    }
    .recently-added {
        margin-top: 32px;
    }
    .knowledge-base h1 {
        margin-bottom: 32px;
    }
    .search-wrapper {
        max-width: 100%;
    }
    .book-cover-into {
        min-width: 200px;
        height: 305px;
    }
    .categories-container {
        background-color: white!important;
    }
}

@media (max-width: 500px) {
    .recently-added .content > * {
        flex: 1 1 100%;
    }
}
.tags-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
}

.tags-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.tags-toggle svg {
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .tags-list {
        max-height: 96px;
        display: flex;
    }

    .tags-wrapper.open .tags-list {
        max-height: none;
    }

    .tags-toggle {
        display: flex;
        align-items: center;
        min-width: 113px;
    }

    .tags-wrapper.open .tags-toggle svg {
        transform: rotate(180deg);
    }
    .toggle-icon {
        transition: transform 0.3s ease;
    }

    .tags-wrapper.open .toggle-icon {
        transform: rotate(180deg);
    }
    .tags-toggle svg{
        max-width: 10px;
    }
    .toggle-text{
        color: #A63244;
        font-family: "SF UI Text", sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
    }
}
@media (max-width: 580px) {
    .tags-wrapper {
        display: grid;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }
}
@media (max-width: 375px) {
    .books-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 24px;
        padding-bottom: 8px;
    }

    .books-list > * {
        flex: 0 0 auto;
    }
    .books-list::-webkit-scrollbar {
        display: none;
    }
    .block-books {
        display: grid;
        gap: 16px;
    }
    .info-title{
        margin-bottom: 8px;
    }.books-buttons
    .info-author{
        margin-bottom: 24px;
    }
    .books-buttons{
        margin-bottom: 24px;
    }
    .category-block {
        margin-bottom: 24px;
    }
    .books-buttons {
        margin-bottom: 24px;
    }
    .info-author {
        margin-bottom: 24px;
    }
}
@media (max-width: 620px) {
    .book-detail{
        display: grid;
    }
    .book-cover-into img {
        max-width: 200px;
        max-height: 305px;
        object-fit: cover;
    }
    .book-cover-into{
        display: flex;
        justify-content: center;
        background-color: white;
    }
    .books-buttons{
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
    .books-buttons .btn-read{
        width: 100%;
        margin-right: 0px;
        max-width: 100%;
    }
    .books-buttons .btn-download{
        width: 100%;
        max-width: 100%;
    }
    .book-detail{
        padding: 15px;
        padding-bottom: 0px;
    }
}
.book-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #fff;
}

.book-link {
    margin-top: auto;
    text-decoration: none;
    font-weight: 500;
}
.category-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.category-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-arrow {
    flex-shrink: 0;
}
