/* =================================== COMMON STYLE ===================================== */
.common-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.common-heading {
    margin-bottom: 30px;
}

.common-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.heading-name {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: 'Phudu', sans-serif;
    font-weight: 400;
}

.see-all {
    color: #9B9B9B;
    font-weight: 500;
}

.book-item {
    width: calc(100% / 6);
}

.book-item-wrapper {
    padding: 0 10px;
}

.book-image {
    border-radius: 8px;
    cursor: pointer;
}

.book-image img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.book-infor {}

.book-info-name {
    margin-top: 0.525rem;
    font-size: 15px;
    cursor: pointer;
}

.book-info-author {
    color: #8B8B8B;
    font-size: 13px;
}

.book-evalute {}

.book-evalute i:not(:last-child) {
    color: #FFD704;
}

.book-evalute i:last-child {
    color: #AAA89F;
}

.book-download {
    display: flex;
    align-items: center;
    color: #88040B;
    font-weight: 500;
    cursor: pointer;
}

.book-download svg {
    margin-right: 12px;
}

.lorem-ipsum-heading {
    margin-bottom: 24px;
    margin-top: 32px;
}

.library-maybe-like,
.library-completed-ebook {
    padding-top: 1rem;
}

/* -------------------------------- BANNER STYLE --------------------------------- */
.library-banner {
    position: relative;
}

.library-banner img {
    width: 100%;
    max-width: 100%;
    vertical-align: middle;
}

.library-absolute-text {
    position: absolute;
    right: 22%;
    top: 44%;
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.library-text-heading {
    color: #262626;
    text-transform: uppercase;
    font-family: Phudu, sans-serif;
    font-size: 5rem;
}

.library-text-description {
    color: #414141;
    max-width: 340px;
    font-size: 1.3rem;
}

/* ------------------------------------ SEARCH GROUP STYLE ------------------------------------ */
.library-search-section {
    padding: 25px 0px;
}

.library-search-group {
    position: relative;
    width: 100%;
    border-radius: 30px;
    border: 2px solid #ddd;
    padding-left: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.library-search-group input,
.library-search-group .library-search-button {
    line-height: 1.5rem;
    outline: none;
    border: none;
}

.library-search-group input {
    width: 100%;
    border-radius: 30px;
}

.library-search-group .library-search-button {
    background: #88040B;
    color: #fff;
    border-radius: 50%;
}

.library-search-group .library-search-button {
    position: absolute;
    right: 5px;
}



/* -------------------------------------- DANH MUC CHUNG ----------------------------------------- */
.library-common-category {
    padding-top: 0;
}

.common-category-group {}

.common-category-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.common-category-item {
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-height: 350px;
    height: 300px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.common-category-item:hover {
    transform: scale3d(1.01, 1.01, 1.01);
}

.common-category-item:nth-child(1) {
    background: url("../images/category_xahoi.png") no-repeat center center;
    background-size: cover;
}

.common-category-item:nth-child(2) {
    background: url("../images/category_nghethuat.png") no-repeat center center;
    background-size: cover;
}

.common-category-item:nth-child(3) {
    background: url("../images/category_chinhtri.png") no-repeat center center;
    background-size: cover;
}

.common-category-item:nth-child(4) {
    background: url("../images/category_vanhoc.png") no-repeat center center;
    background-size: cover;
}

.category-item-cover {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42.38%, #000000 100%);
    border-radius: inherit;
}

.category-item-text {
    position: absolute;
    bottom: 30px;
    left: 40px;
}

.category-item-name {
    font-family: Phudu, sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
}

.category-item-desc {}


/* ------------------------------------ DANH MUC NOI BAT --------------------------------------- */
.library-featured-category {
    padding-top: 0;
}

.featured-category-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    gap: 36px;
    margin: 0 -10px;
}

.group-3-row {
    display: flex;
    flex-direction: column;
}

.group-3-item {
    padding: 0px;
}

.group-3-wrapper {
    border-radius: 20px;
    background-color: #FFEDD9;
    height: 100%;
    display: grid;
    grid-template-columns: auto auto;
}

.group-3-image {
    border-radius: 20px;
    box-shadow: 0px 5px 20px 0px #00000040;
}

.group-3-image {
    width: 100%;
    height: inherit;
    cursor: pointer;
}

.group-3-image img {
    width: inherit;
    height: 100%;
    border-radius: inherit;
}

.group-3-text {
    padding: 20px
}

.group-text-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-category-name {}

.like-and-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.span-like,
.span-view {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
}

.group-text-row-2 {}

.feature-book-name {
    font-weight: 600;
}

.feature-book-details {
    font-size: 13px;
}

.group-text-row-3 {}

.btn-detail-view {
    display: inline-flex;
    align-items: center;
    background-color: #F6E7AE;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-detail-view img {
    width: 20px;
    margin-right: 8px;
}




.group-rowspan-3 {
    padding: 10px;
}

.group-rowspan-wrapper {
    height: 100%;
}

.group-rowspan-image {
    height: 100%;
    width: inherit;
    border-radius: 20px;
    box-shadow: 0px 5px 20px 0px #00000040;
}

.group-rowspan-image img {
    width: 100%;
    height: inherit;
    border-radius: inherit;
    cursor: pointer;
}


/* ----------------------------------- CO THE BAN THICH --------------------------------------- */
.library-maybe-like .container,
.library-completed-ebook .container {
    border-bottom: 1px solid #0000001A;
}


/* ------------------------------------- SACH DA HOAN THANH --------------------------------------- */




/* -------------------- RESPONSIVE FOR LIBRARY PAGE-------------------- */
@media (max-width: 1399.98px) {
}

@media (max-width: 1199.98px) {
}

@media (max-width: 991.98px) {
    .book-item {
        width: calc(100% / 4);
    }

    .book-item {
        margin-bottom: 16px;
    }
}

@media (max-width: 767.98px) {
    .library-search-group {
        width: 50%;
    }

    .library-common-category {
        padding-bottom: 3.2rem;
    }

    .common-heading {
        margin-bottom: 25px;
    }

    .featured-category-wrapper {
        grid-template-columns: none;
    }

    .book-item {
        width: calc(100% / 3);
    }
}

@media (max-width: 575.98px) {
    .library-search-group {
        width: 100%;
    }

    .book-item {
        width: calc(100% / 2);
    }
}