/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/**
*header  
**/

/* Search box */

#search-results .search-item{
    display: flex;
    gap: 3px;
    align-items: center;
    padding: 5px 10px;
}

#search-results .search-item > img{
    width: 50px;
    height: 66.8px;
}

.ul-list__category{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.ul-list__category_header {
    list-style: none;
}

/* Loading Icon */

#category-loading .loader {
    width: 28px;
    height: 28px;
    border: 3px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/*** 
*Home page
**
***/

:root{
    --background-img : linear-gradient(135deg, #3a47d5, #00d2ff);
}

.img_hover:hover{
    transition: all 0.3s;
    scale: 1.1;
}

.text_hover:hover{
    background: linear-gradient(to right, #ff8a00, #ff2070);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-h3{
    color: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-transform: capitalize;
}

.otruyen-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.halim-thumb{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.otruyen-grid .comic-item{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

.otruyen-grid .comic-item .comic-title_block{
    position: absolute;
    bottom: 0;
    padding: 20px 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(6, 6, 6, 0.55) 30%, rgba(0, 0, 0, 0.92) 100%);
    width: 100%;
}

.otruyen-grid .comic-item .comic-title{
    font-size: 13px;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-flex: 1;
    -webkit-box-orient: vertical;
    font-weight: 500;
    text-transform: capitalize;

    display: -webkit-box;     
    -webkit-line-clamp: 1;       
    -webkit-box-orient: vertical;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: normal;  
}

.otruyen-grid .comic-item .comic-chapter{
    position: absolute;
    top: 0px;
    left: 0px;
    background-image: linear-gradient(135deg, #3a47d5, #00d2ff);;
    padding: 3px 5px 1px 5px;
    border-radius: 2px;
    color: #fff;
}

.otruyen-grid .comic-item .comic-thumb{
    width: 100%;
    height: 100%;
    aspect-ratio: 277.5 / 375;
    height: 375px;
}

.otruyen-grid .comic-item .comic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.otruyen-grid .comic-item .comic-thumb img.img_hover[src*="loading-icon.svg"]{
    position: absolute;
    width: 50px !important;
    height: 50px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* category  */

.otruyen-category-grid{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
}

.otruyen-category-grid .category-item{
    padding: 10px;
    background: #333;
    border-radius: 4px;
    color: #fff;
    font-size: 17px;
    text-align: center;
    cursor: pointer;
}

.otruyen-category-grid .category-item:hover {
    background: linear-gradient(140deg, rgba(0, 77, 102, .8) 0%, rgba(0, 134, 179, .9) 50%, rgba(0, 191, 255, 1) 100%);
}

.otruyen-category-grid .category-item.active{
    background: linear-gradient(140deg, rgba(0, 77, 102, .8) 0%, rgba(0, 134, 179, .9) 50%, rgba(0, 191, 255, 1) 100%);
}

.pagination-wrap {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
}

.page-btn {
    padding: 10px 20px;
    background: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all .2s ease;
    color: #feffff;
}

.page-btn:hover {
    background: linear-gradient(140deg, rgba(0, 77, 102, .8) 0%, rgba(0, 134, 179, .9) 50%, rgba(0, 191, 255, 1) 100%);
}

.page-btn.active {
    background: linear-gradient(to bottom, #cd881e, #674614);
    color: #fff;
    border-color: linear-gradient(140deg, rgba(0, 77, 102, .8) 0%, rgba(0, 134, 179, .9) 50%, rgba(0, 191, 255, 1) 100%);
}

.dots {
    padding: 6px 8px;
    color: #888;
}

/* Grid video  */

.video-api-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-api-list > .video-item{
    display: grid;
    gap: 12px;
    border-radius: 12px;
    background-color: #191d24;
    overflow: hidden;
    border: 1px solid #2a303c;
}
.video-api-list > .video-item:hover{
    box-shadow: 0px 0px 15px #cf6a2fbf;
}


.video-api-list > .video-item > iframe{ 
    width: 100%;
    display: block;
    border: none;
}

.video-api-list > .video-item > .block_title{
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-transform: capitalize;
    color: #94a3b8;
    font-size: 14px;
    line-height: 20px;
}

.video-api-list > .video-item > .block_title h3{
    font-weight: 600;
    color: #f8fafc;
    text-transform: capitalize;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}






/* Grid product  */
.recommended-products-grid{
    /* display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-radius: 12px;
    gap: 15px; */
    height: max-content;
}

.recommended-products-grid.slide_overflow_hidden{
    overflow: hidden !important;
}

.recommended-products-grid > .swiper-wrapper{
    padding: 10px 0;
}

.recommended-products-grid > .swiper-wrapper > .swiper-slide{
    display: flex;
}

.recommended-products-grid .product-item{
    border-radius: 12px;
    background-color: #191d24;
    overflow: hidden;
    border: 1px solid #2a303c;
}

.recommended-products-grid .product-item:hover{
        box-shadow: 0px 0px 15px #cf6a2fbf;
}

.recommended-products-grid .product-item a{
    display: grid;
    height: 100%;
}

.recommended-products-grid .product-item a .block-product__detail{
    padding: 16px;
    display: grid;
    gap: 8px;
    flex-grow: 1;
}

.recommended-products-grid .product-item a .block-product__detail > h3{
    font-weight: 600;
    color: #f8fafc;
    font-size: 14px;
    line-height: 20px;
    text-transform: capitalize;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recommended-products-grid .product-item a .block-product__detail > p{
    color: #f5683d;
    font-weight: 700;
    font-size: 16px;
}

.recommended-products-grid .product-item a .block-product__detail .btn-product{
    padding: 8px 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    background-color: #f5683d;
    color: #101318;
    font-weight: 500;
}


/** 
*Comic detail  
**/

.banner-top__qc{
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.banner-top__qc p{
    color: #000;

}

.container{
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

.ah-frame-bg{
    margin-bottom: 10px;
    background: #00000013;
    padding: 10px;
}

.head{
    margin-top: 40px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    border-radius: 0;
    
}

.ah-frame-bg .first{
    max-width: 200px;
}

.ah-frame-bg .last{
    width: 81%;
}

.ah-frame-bg .last > div{
    display: flex;
    align-items: center;
    border-top: 1px solid #1e2838;
    padding: 6px;
}

.ah-frame-bg .last > div:first-child{
    border-top: 0;
}

.ah-frame-bg .last > div > div:first-child{
    flex: .2;
    color: #a7a7a7;
    font-weight: 700;
}

.ah-frame-bg .last > div > div{
    flex: .8;
    padding: 10px 5px
}

.ah-frame-bg .last > .name span.comic_name{
    font-size: 17px;
    font-weight: 700;
    color: #3498db;
}

.ah-frame-bg .last > div > div:last-child{
    font-weight: 500;
    color: #a7a7a7;
}

.read_comic {
    display: flex;
    justify-content: start;
    gap: 20px;
}

.read_comic a{
    padding: 6px 10px;
    background-image: var(--background-img);
    border-radius: 5px;
    color: #fff;
}

.read_comic a:hover{
    color: #dbdbdb;
}

.show_all_eps{
    max-height: 400px;
    overflow: auto;
    margin-bottom: 10px;
}

.halim-list-eps{
    list-style: none;
    border-radius: 3px;
    background: #3333334a;
    padding: 15px 12px 5px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

.halim-list-eps li {
    display: inline-block;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
    margin: 0;
    /* width: 8.3%; */
}

.halim-list-eps li span{
    background: #333;
    border-radius: 3px;
    transition: .6s all;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    margin-bottom: .7rem;
    padding: 6px 10px;
    text-wrap: nowrap;
}

.halim-list-eps li span.active{
    background: #1c1c1c;
}

.halim-list-eps li:hover span{
    background: var(--background-img);
}

.entry-content{
    margin-top: 40px;
}

.entry-content > .section-title{
    margin-bottom: 10px;
}

.entry-content > .section-title > span{
    position: relative;
    font-size: 15px;
    padding: 10px 0;
    color: #a5cbef;
    background: -webkit-gradient(linear, left top, right top, from(#ff8a00), to(#da1b60));
    background: linear-gradient(to right, #ff8a00, #ff2070);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* -webkit-box-decoration-break: clone; */
    box-decoration-break: clone;
    font-weight: 700;
    text-transform: uppercase;
}

.entry-content > .section-title > span::before{
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    background: -webkit-gradient(linear, left top, right top, from(#ff8a00), to(#da1b60));
    background: linear-gradient(to right, #ff8a00, #ff2070);
    padding: 0.5px;
}


/* Page Chapter  */

.container .title-comic{
    display: flex;
    align-items: center;
    margin-top: 40px;
    flex-direction: column;
}

.container .title-comic h2{
    text-align: center;
    margin-bottom: 10px;
    text-wrap: balance;
}

.container .block_qc{
    padding: 20px;
    background-color: #fff;
    color: #000;
    font-weight: 500;
}

.container .block_chap{
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.prev_btn_chap,
.next_btn_chap{
    padding: 5px 10px;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, #3a47d5, #00d2ff);
    border-radius: 10px;
    width: 123px;
    text-align: center;
}

.container .list_img{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.container .list_img .page-chapter{
    display: flex;
    justify-content: center;
}

.block_chap_out{
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    gap: 10px;
    padding: 10px 0;
    background: #333;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: 0.3s ease;
}

.block_chap_out.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.block_chap_out select{
    width: max-content;
    padding-right: 30px;
}

/** 
*Section category page 
 **/

 .section-custom__page{
    padding: 40px 0;
 }

.section-custom__page .block-title__category{
    border-bottom: 1px solid #1f2731;
    margin-bottom: 15px;
 }

.section-custom__page .block-title__category h3{
    background: linear-gradient(to right, #ff8a00, #ff2070);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, #ff8a00, #ff2070) 1;
    padding: 10px 0;
}




@media (max-width: 991px){
    .otruyen-category-grid{
        grid-template-columns: repeat(4, 1fr);
    }
    .container, section{
        padding: 0 10px;
    }

    .halim-list-eps {
        grid-template-columns: repeat(6, 1fr);;
    }

    .video-api-list{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px){
    .otruyen-category-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .otruyen-category-grid .category-item{
        padding: 5px;
        font-size: 14px;
    }

    .video-api-list{
        grid-template-columns: repeat(2, 1fr);
    }
} 

@media (max-width: 477px){
    /* .comic-item .comic-chapter{
        font-size: 7px;
    }
    .otruyen-grid .comic-item .comic-title {
        font-size: 8px;
        
    } */
     .otruyen-grid{
        grid-template-columns: repeat(2, 1fr);
     }

    /* Comic detail  */
    .container .head {
        flex-direction: column;
    }

    /* .halim-list-eps li{
        width: 32%;
    } */
    .halim-list-eps {
        grid-template-columns: repeat(4, 1fr);
    }

    .video-api-list{
        grid-template-columns: 1fr;
    }
}






