@import "common.css";
@import "header.css";
@import "cards.css";
@import "footer.css";

/* ==popular topics section== */
.popular_topics_section .book_card_with_bg_section {
    padding-top: 2.4rem;
}

/* ==new published book== */
.new_published_card {
    display: flex;
    align-items: center;
}
.new_published_book_carousel .item {
    padding: .8rem 1.5rem 7rem;
}
.new_published_card .book_card_content .price_wrapper {
    justify-content: flex-start;
}

.new_published_card .image_wrapper {
    flex: 0 0 45%;
    max-width: 45%;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0px 10px 20px -8px rgba(0,0,0,0.26);
    -webkit-box-shadow: 0px 10px 20px -8px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 10px 20px -8px rgba(0,0,0,0.26);
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}
.new_published_card .image_wrapper img {
    border-radius: 1rem;
}
.new_published_card .image_wrapper:hover {
    transform: scale(1.07);
}
.new_published_card .content_wrapper {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 2.5rem 2.5rem 2.5rem 2.8rem;
    position: relative;
}
.new_published_carousel_wrapper .owl-item:nth-child(odd) .new_published_card .content_wrapper {
    background: rgba(231, 246, 245, .5);
}
.new_published_carousel_wrapper .owl-item:nth-child(even) .new_published_card .content_wrapper {
    background: rgba(253, 246, 234, .5);
}


/* ==most selling book section== */
.most_selling_book_section .sc_title_wrapper {
    margin-bottom: 0;
}
.most_selling_book_carousel .item {
    padding: 4rem 6rem 0;
}

/* ==writers carousel== */
.writers_carousel .item {
    padding: .8rem 5rem 0;
}

/* ==carousel button > new published book== */
.new_published_book_carousel .owl-nav button, .writers_carousel .owl-nav button{
    position: absolute;
    top: 40%;
    transform: translateY(-40%);
}
.new_published_book_carousel .owl-nav button.owl-prev{
    left: -3%;
}
.new_published_book_carousel .owl-nav button.owl-next{
    right: -3%;
}

/* ==carousel button > writers== */
.writers_carousel .owl-nav button{
    position: absolute;
    top: 45%;
    transform: translateY(-45%);
}
.writers_carousel .owl-nav button.owl-prev{
    left: -.75%;
}
.writers_carousel .owl-nav button.owl-next{
    right: -.75%;
}

/* ==carousel button > most selling books== */
.most_selling_book_carousel .owl-nav button{
    position: absolute;
    top: 30%;
    transform: translateY(-30%);
}
.most_selling_book_carousel .owl-nav button.owl-prev{
    left: 0;
}
.most_selling_book_carousel .owl-nav button.owl-next{
    right: 0;
}

/* searvices section*/
.searvices_section .row {
    margin-left: -4.6rem;
    margin-right: -4.6rem;
}
.searvices_section .row>* {
    padding-left: 4.6rem;
    padding-right: 4.6rem;
}
.searvices_section .searvices{
    background-color: var(--blue);
    border-radius: 1.5rem;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.searvices_section .searvices::after{
    content: '';
    position: absolute;
    height: 0px;
    border-bottom: 2px dashed #BDBDBD;
    width: 100%;
    top: 0;
    left: 100%;
    bottom: 0;
    margin: auto;
}

.searvices_section .row>div:last-child .searvices::after{
    display: none;    
}

.searvices_section .searvices .searvices_content{
      width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.3rem 1.6rem;
}
.searvices_section .searvices .searvices_content .Service_img{
    margin-bottom: 1.5rem;
    width: 4.7rem;
    height: 4.7rem;
}
.searvices_section .searvices .searvices_content .Service_text{
    color: var(--white);
    font-size: 1.8rem;
    line-height: 2.6rem;
    font-weight: bold;
}


@media (max-width: 1679.98px) {
    /* ==popular topics== */
    .popular_topics_section .book_card_with_bg_section {
        padding-top: 1.4rem;
    }
    /* ==new published book== */
    .new_published_book_carousel .item {
        padding: .8rem 3rem 6rem;
    }
    .writer_section_slider.py-120 {
        padding-top: 5rem;
    }
    .writers_carousel .item{
        padding: .8rem 5.5rem 0;
    }
    .new_published_card .image_wrapper {
        flex: 0 0 35%;
        max-width: 35%;
    }
    .new_published_card .content_wrapper {
        flex: 0 0 65%;
        max-width: 65%;
        padding: 2.5rem 2.5rem 2.5rem 2.8rem;
        position: relative;
    }

    /* ==carousel button > new published book== */
    .new_published_book_carousel .owl-nav button.owl-prev{
        left: -1%;
    }
    .new_published_book_carousel .owl-nav button.owl-next{
        right: -1%;
    }

    /* ==carousel button > writers== */
    .writers_carousel .owl-nav button{
        position: absolute;
        top: 45%;
        transform: translateY(-45%);
    }

    /* ==carousel button > most selling books== */
    .most_selling_book_carousel .owl-nav button{
        position: absolute;
        top: 35%;
        transform: translateY(-35%);
    }

    /* ==services section== */
    .searvices_section .searvices {
        box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 991.98px) {
    .btn_box_smd {
        text-align: center;
        margin-top: 4.8rem;
    }
    .new_published_book_section {
        padding: 4.5rem 0;
    }
    .searvices_section .row>div:nth-child(3) .searvices::after{
        display: none;    
    }
    .searvices_section .searvices{
        margin-bottom: 7rem;
    }

    .searvices_section .searvices::after{
        height: 100%;
        border-right: 2px dashed #BDBDBD;
        width: 0;
        left: 0;
        right: 0;
        top: auto;
        bottom: auto;
        /* margin: auto; */
    }
    .new_published_book_carousel .item{
        padding-top: 4.5rem;
    }
    .most_selling_carousel_wrapper .item {
        padding: 4.5rem 8rem 0 8rem;
    }
}

@media (max-width: 767.98px) {
    .writers_carousel_wrapper .item {
        padding: 4rem 6rem;
    }
    .searvices_section .searvices .row{
        padding: 5.2rem 0;
    }
    .searvices_section .searvices .row>*:not(:last-child){
        padding-bottom: 8.5rem;
    }
    .searvices_section .searvices .searvices_content .Service_img {
        width: 4.5rem;
    }
    .searvices_section .searvices .searvices_content .Service_text {
        font-size: 1.8rem;
    }
    .new_published_card .content_wrapper {
        padding: 1.9rem 2.5rem 1.7rem 1.9rem;
    }

    .new_published_card {
        justify-content: center;
    }

    .most_selling_book_section .sc_title_wrapper {
        margin-bottom: 0;
    }
    .writer_section_slider .sc_title_wrapper {
        margin-bottom: 0;
    }

    .searvices_section .row>div:nth-child(3) .searvices::after{
        display: block;    
    }
   
}

@media (max-width: 575.98px) {
    .sc_title_wrapper {
        margin-bottom: 0;
    }
    .popular_topics_section .book_card_with_bg_section {
        padding-top: 3rem;
    }
    .most_selling_carousel_wrapper .container{
        padding: 0;
    }
    .writer_section_slider.py-120 {
        padding-top: 4rem;
    }
    .writers_carousel_wrapper .container{
        padding: 0;
    }
    .new_published_book_section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .btn_box_smd {
        text-align: center;
        margin-top: 3.8rem;
    }
    .most_selling_carousel_wrapper .item {
        padding: 3rem 3rem 0;
    }
    .new_published_card .image_wrapper {
        flex: 0 0 45%;
        max-width: 45%;
    }
    .new_published_card .content_wrapper {
        flex: 0 0 55%;
        max-width: 55%;
    }
    .new_published_carousel_wrapper{
        margin-top: 3.2rem;
    }
    .new_published_carousel_wrapper .container{
        padding: 0;
    }
    .writer_section_slider{
        padding-top: 3.2rem;
    }
    .writers_carousel_wrapper .item {
        padding: 3rem 3rem 0;
    }

    .new_published_book_section.pb-70 {
        padding-bottom: 9.2rem;
    } 
    .new_published_book_carousel .item {
        padding: 0rem 3rem 3rem;
    }

    /* ==carousel nav button== */
    .most_selling_book_carousel .owl-nav button {
        position: absolute;
        top: 25%;
        transform: translateY(-25%);
    }

    /* service section */
    .searvices_section .row {
        margin-left: -2.4rem;
        margin-right: -2.4rem;
    }
    .searvices_section .row>* {
        padding-left: 2.4rem;
        padding-right: 2.4rem;
    }

    .searvices_section.py-12 {
        padding-top: 8rem;
        padding-bottom: 2rem;
    }

    .common_carousel .owl-nav button img {
        width: 3.2rem;
        height: 3.2rem;
    }
}



/* responsive min width */
@media (min-width: 1366px) {
    /* ==new published book== */
    .new_published_carousel_wrapper .container {
        max-width: 1310px;
    }
    /* ==most selling books== */
    .most_selling_carousel_wrapper .container {
        max-width: 1366px;
    }

    /* ==writers== */
    .writers_carousel_wrapper .container {
        max-width: 1340px;
    }
}
@media (min-width: 1440px) {
    /* ==most selling books== */
    .most_selling_carousel_wrapper .container {
        max-width: 1420px;
    }

    /* ==writers== */
    .writers_carousel_wrapper .container {
        max-width: 1400px;
    }
}
@media (min-width: 1920px) {
    /* ==new published book== */
    .new_published_carousel_wrapper .container {
        max-width: 1668px;
    }
    
    /* ==most selling books== */
    .most_selling_carousel_wrapper .container {
        max-width: 1758px;
    }

    /* ==writers== */
    .writers_carousel_wrapper .container {
        max-width: 1735px;
    }
}

