.ebook-section {
    margin: 0 auto;
    max-width: 1450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ebook-hero {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: white;
}

.ebook-hero__inner {

}
.ebook-hero__image {
    width: 100%;

    @media screen and (max-width: 1023px) {
        width: 350px;
        margin: 0 auto;
    }

    @media screen and (max-width: 374px) {
        width: 100%;
    }
}

.ebook-hero .click-btn {
    text-align: center;
    margin-top: 24px;
    width: 100%;
}

.ebook-info {
    padding: 0 32px;

    @media screen and (max-width: 750px) {
        padding: 0 16px;
    }
}

.ebook-info__title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 24px 0;
    text-align: center;
    border-bottom: 1px lightgrey solid;


    @media screen and (max-width: 1023px) {
        padding-top: 24px;
    }
}

.ebook-info__title-container h2 {
    font-size: 32px;
    color: black;
    margin: 0;
    font-weight: 700;

    @media screen and (max-width: 750px) {
        font-size: 20px;
    }
}

.ebook-info__description {
    font-size: 12px;
    color: black;
    margin: 0;
    padding-top: 24px;
    max-height: 633px;
    overflow-y: auto;

    @media screen and (max-width: 1023px) {
        max-height: unset;
        padding-right: 6px;
    }
}

.ebook-info__description > h5 > p {
    font-size: 16px;
    margin: 0 !important;
    line-height: 1.6;

    @media screen and (max-width: 750px) {
        font-size: 16px;
    }
}

.ebook-info__buttons {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-around;

    @media screen and (max-width: 1023px) {
        margin-top: 0;
    }
}

.ebook-info__buttons a {
    width: 200px !important;
    padding: 12px 16px;
    font-size: 16px;
    background-color: transparent !important;
    border: 1px solid #2f202d !important;
    margin-top: 45px !important;

    @media screen and (max-width: 750px) {
        width: 100% !important;
    }
}

.ebook-info__buttons a:hover {
    opacity: 1 !important;
    text-decoration: none;
    background-color: #d4a773 !important;
}

.ebook-info__pagination {
    margin-top: 42px;
    width: 100%;
    display: flex;
}

.ebook-related {
    background-color: #2f202d;
    padding: 32px 0;
    padding-left: 16px;
    padding-right: 16px;
}

.ebook-related__inner {
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ebook-related__title {
    font-size: 32px;
    color: white;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.ebook-related__items {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;

    @media screen and (max-width: 540px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.ebook-related__items > article > img {
    max-width: 500px;
    max-height: 800px;

    width: 322px;
    height: auto;

    @media screen and (max-width: 1050px) {
        width: 300px;
    }

    @media screen and (max-width: 975px) {
        width: 260px;
    }

    @media screen and (max-width: 850px) {
        width: 200px;
    }

    @media screen and (max-width: 670px) {
        width: 150px;
    }

    @media screen and (max-width: 550px) {
        width: 100%;
    }
}

.ebook-article {
    position: relative;
    cursor: pointer;

    @media screen and (max-width: 550px) {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.overlay > .overlay-bottom > h5 {
    font-size: 14px;
}

.ebook-seo {
    @media screen and (max-width: 1480px){
        /*padding: 0 16px;*/
    }
}

.ebook-seo > p {
    margin: 0;
}

.click-btn {
    border-radius: 8px;
    padding: 16px 32px;
    width: max-content;
    font-weight: 600;
    font-size: 18px;
    background-color: #d4a773 !important;
    color: #2f202d !important;
}

.click-btn:hover {
    opacity: .8;
}

.click-btn:focus {
    outline: none;
}


/**/

.ebook-hero__inner {
    max-width: 1450px;
    margin: 0 auto;
    padding-bottom: 16px;
    padding-top: 24px;
}

.ebook-hero__inner > .row > div:first-child {
    flex: 1 1 33%;
    padding-right: 32px;
    display: flex;
    flex-direction: column;
    /*align-self: center;*/

    @media screen and (max-width: 1230px) {
        padding-right: 20px;
    }

    @media screen and (max-width: 1023px) {
        flex: 1 1 100%;
        padding-right: 0;
    }
}

.ebook-hero__inner > .row > div:last-child {
    flex: 1 1 66%;

    @media screen and (max-width: 1023px) {
        flex: 1 1 100%;
    }
}

.download {
    max-width: 300px;
    align-self: center;
}

.separator {
    /*padding: 24px;*/
    padding: 0 16px;
}

.pop {
    color: black;
}

.adj {
    position: relative;
    top: 1px;
}