/*new page book*/

.mt-section {
    margin-top: 50px;
}

.book-thumb {
    position: relative;
    display: block;
}

.book-thumb img {
    height: 250px;
    width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {

    .book-thumb img {
        height: 200px;
        width: 100%;
        object-fit: contain;
    }

}


.book-img-cover .book-thumb img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.book-thumb .overlay-box {
    position: absolute;
    left: 18px;
    top: 18px;
    right: 18px;
    bottom: 18px;
    color: #ffffff;
    text-align: center;
    transition: all 900ms ease;
    opacity: 0;
    outline: 2px solid #ffffff;
    outline-offset: -20px;
    background-image: linear-gradient(to top, #00017c 0%, #00017c 100%);
}

.overlay-box .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 30px;
    height: 100%;
    position: relative;
}

.book-post {
    height: 100%;
}

.book-post .book-details {
    border-top: 1px solid rgba(218, 219, 220, 0.68);
    padding: 12px;
}

.link-transparent {
    color: #2f3133;
    text-decoration: none;
}

.book-thumb:hover .overlay-box {
    opacity: 0.85;
}

.book-details .post-title {
    font-size: 20px;
    font-family: 'SolaimanLipi', sans-serif;
}

.post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.overlay-box .date-time {
    margin-top: 20px;
    color: #f0f1f3;
    font-size: 12px;
}

.book-details .date-time {
    font-size: 12px;
}

.link-transparent {
    color: inherit;
    text-decoration: none;
}


.scrolling-text {
    padding: 18px;
    position: relative;
    width: 240mm;
    height: 800px;
    overflow: auto;
    margin: 10px auto;
    background-color: #e8e2e2;
    page-break-after: always;
}

.document {
    width: 210mm;
    margin: auto;
    padding: 10mm 10mm !important;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
    line-break: auto;
}

@page {
    size: A4;
    margin: 1mm;
    padding: 5mm;
    page-break-after: always;
    break-after: page;
}

.gap {
    height: 10mm;
    width: 215mm;
    background-color: #e8e2e2;
    page-break-after: always;
    position: relative;
    left: -50px;
    margin: 10mm 0;

}

.cover-page {
    margin: 20px auto 40px;
    height: 297mm;
    width: 210mm;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cover-page {
    position: relative;
}

.cover-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
}

.cover-bg img {
    width: 210mm;
    height: 297mm;
    -o-object-fit: cover;
    object-fit: cover;
}

.page-number {
    text-align: center;
}

@media (max-width: 768px) {

    .scrolling-text {
        padding: 18px;
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
        margin: 10px auto;
        background-color: #e8e2e2;
        page-break-after: always;
        display: block;
    }

    .cover-page {
        margin: 20px auto 40px;
        height: auto;
        width: 100%;
        display: block;
    }

    .cover-bg {
        position: relative;
        top: 0;
        bottom: 0;
        z-index: 1;
        height: auto;
        -o-object-fit: cover;
        object-fit: cover;
        display: block;
    }

    .document {
        width: 100%;
        margin: auto;
        padding: 5mm 5mm !important;
        box-sizing: border-box;
        page-break-after: always;
        break-after: page;
    }

    .bd-sidebar {
        padding-top: 0rem;
    }

    .cover-bg img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

}