/*
	Theme Name: DKCD Template
	Theme URI: http://benhviemcotucung.com
	Description: Giao diện website benhviemcotucung.com từ DKCD
	Version: 1.0.0
	Author: Aci
	Author URI: http://benhviemcotucung.com
	Tags: HTML5, CSS3
	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

body {
    position: relative;
}

.secWrp:not(#secSlider) {
    padding-top: 30px;
    padding-bottom: 30px;
}

#bannerTop {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    margin: auto;
    z-index: 101;
    overflow: hidden;
    transform: translateX(-50%);
    /* background-color: #fff; */
    /* Thêm transition cho chính nó */
    transition: transform 1s ease-in-out; 
}

#bannerTop.hide-content {
    transform: translateX(-50%) translateY(-100%);
}

#bannerTop picture {
    width: 100%;
    display: block;
    transition: transform 1s ease-in-out;
}

/* Vị trí mặc định */
#bannerTop .img-normal {
    transform: translateY(0);
}

#bannerTop .img-fixed {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

/* Khi đang trong thời gian 20s đầu (Đang hiện img-fixed) */
#bannerTop.show .img-normal {
    transform: translateY(-100%);
}
#bannerTop.show .img-fixed {
    transform: translateY(0);
}

/* Khi đã hết 20s VÀ đang ở vùng cuộn xuống: Ẩn cả 2 ảnh */
#bannerTop.hide-content .img-normal,
#bannerTop.hide-content .img-fixed {
    transform: translateY(-100%);
    /* opacity: 0; */
}


/*------------------------------------*\
    Header
\*------------------------------------*/
#header-middle{
    background-color: #a47f6c;
}
#header-btn-menuM{
    width: 58px;
    height: 58px;
    color: #fff;
    font-size: 32px;
    text-align: center;
    line-height: 58px;
    background-color: #ea2c8f;
}
#logo{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
}
#logo > img{
    width: 46px;
    aspect-ratio: 1 / 1;
    margin-right: 12px;
}
#logo > span{
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: #fff;
    font-size: 16px;
    line-height: 23px;
}
#logo > span > span{
    font-size: 18px;
    display: block;
}


/*------------------------------------*\
    Home Page
\*------------------------------------*/ 
#sec1-text h1{
    font-size: 26px;
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
}
#sec1-btn{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
#sec1-btn a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(50% - 12px);
    max-width: 200px;
    height: 42px;
    border-radius: 8px;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 400;
}
#sec1-btn-link{
    background-color: var(--background-1);
}
#sec1-btn-live{
    background-color: var(--background-2);
}
#sec1-btn a i{
    margin-right: 12px;
    font-size: 18px;
}

.sec-line{
    margin: 30px 0;
    width: 100%;
    height: 1px;
    background: var(--background-1);
}

.secHead{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--color-primary);
}
.secHead i{
    font-size: 32px;
    margin-right: 12px;
}
.secHead h3{
    font-size: 26px;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
}
.sec1-list{
    padding-left: 20px;
    list-style: disc;
}
.sec1-list li{
    padding-top: 4px;
    padding-bottom: 4px;
}

#sec2{
    background: url(./img/home/s2-bg.jpg) center center no-repeat;
    background-size: cover;
}
#sec2-header{
    color: var(--background-2);
    text-align: center;
    margin-bottom: 30px;
}
#sec2-header h3{
    width: 100%;
}

#sec2-itms{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 225px));
    gap: 12px;
}
.sec2-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
}
.sec2-item img{
    max-height: 70px;
    margin-bottom: 8px;
}
.sec2-item:nth-child(-n+2){
    background-color: var(--background-1);
}
.sec2-item:nth-last-child(-n+2){
    background-color: var(--background-2);
}

#sec3-header{
    margin-bottom: 30px;
}

#mtpk-thumb {
    padding-top: 12px;
}
.mtpk-thumb-itm{
    border: 1px solid #fff;
    margin: 0 6px;
}
.mtpk-thumb-itm.slick-current{
    border-color: #ea2c8f;
}



/*------------------------------------*\
    Footer
\*------------------------------------*/
#ft-1{
    padding: 30px 0;
    background: #a47f6c;
}
#logoft{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
#logoft img{
    height: 64px;
    aspect-ratio: 1 / 1;
}
#logoft span{
    padding-left: 12px;
    font-family: var(--font-heading);
    color: #fff;
    text-transform: uppercase;
    font-size: 18px;
}
#logoft span b{
    display: block;
    font-size: 20px;
    font-weight: 400;
}

.ft1-title{
    text-transform: uppercase;
    color: #e6c5a3;
    font-size: 18px;
    font-weight: 500;
}
.ft1-title span{
    border-bottom: 1px solid #fff;
    padding-bottom: 6px;
}
.ft1-cntn{
    color: #e6c5a3;
}
.ft1-cntn li{
    padding: 4px 0;
}
#ft1-info-list{
    padding-left: 12px;
}
#ft1-info-list li i{
    width: 20px;
}
#ft1-time li span{
    color: #fff;
}

.ft1Frm, #ft1-form{
    margin-top: 20px;
}
#ft1-form input, #ft1-form textarea{
    width: 100%;
    height: 40px;
    background-color: #fff;
    border: none;
    margin-bottom: 12px;
    border-radius: 4px;
    padding-left: 12px;
    padding-right: 12px;
}
#ft1-form textarea{
    height: 100px;
}
#ft1-form button{
    width: 90px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--background-2);
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    margin-left: auto;
}
#ft1-form button i{
    margin-right: 6px;
}

#ft-2{
    padding: 12px 0;
    font-size: 12px;
    color: #fff;
    background-color: #785949;
    text-align: center;
}




/*------------------------------------*\
    CATEGORY
\*------------------------------------*/
#breadcrumbs-wrap{
    background-color: #fafafa;
    padding: 8px 0;
}
.breadcrumbs a, .breadcrumbs span{
    font-size: 14px;
}
.breadcrumbs span.breadcrumb_last, .breadcrumbs > span > span:last-child{
    color: #984c7a;
}
span.breadcrumb_last strong, .breadcrumbs > span > span:last-child strong{
    font-weight: 500;
}
.category-header{
    padding: 20px 0;
}
h1#category-title{
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #984c7a;
    line-height: 1.3;
}
.category-description{
    text-align: justify;
    line-height: 1.6;
}

.catePosts{
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}
.catePosts-thumb{
    width: 35%;
    max-width: 256px;
    aspect-ratio: 6 / 5;
    position: relative;
}
.catePosts-thumb img{
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.catePosts-info{
    flex: 1;
    padding-left: 16px;
}
.catePosts-name{
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}
.catePosts-name a{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}
.catePosts-des{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #999;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s ease;
}

.pagination .next,.pagination .prev {
    font-size: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.pagination a:hover,
.pagination .current {
    color: #fff;
    border-color: #984c7a;
    background: #984c7a;
}


/*------------------------------------*\
    POST
\*------------------------------------*/
#mainCntn{
    padding: 20px 0;
}
#postTitle{
    font-size: 26px;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
    color: #984c7a;
    line-height: 1.4;
    font-weight: 400;
}
.postDetail{
    text-align: justify;
}
.postDetail p{
    margin-bottom: 12px;
}
.postDetail h2,.postDetail h3,.postDetail h4{
    line-height: 1.3;
    margin-top: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #984c7a;
}
.postDetail h2,.postDetail h2 *{
    font-size: 22px;
    color: #984c7a !important;
}
.postDetail h3,.postDetail h3 *{
    font-size: 20px;
    color: #984c7a !important;
}
.postDetail h4,.postDetail h4 *{
    font-size: 18px;
    color: #984c7a !important;
}
.postDetail img{
    width: auto !important;
    max-width: 100% !important;
    height: unset !important;
    aspect-ratio: auto !important;
    margin-left: auto;
    margin-right: auto;
}
.postDetail > ul{
    padding-left: 10px;
}
.postDetail > ul li{
    padding-left: 15px;
    margin-bottom: 8px;
    position: relative;
}
.postDetail > ul li:before{
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #333;
    position: absolute;
    top: 7px;
    left: 0;
}
.postDetail blockquote{
    background: #fff8f3;
    border-left: 6px solid #984c7a;
    margin: 16px auto;
    padding: 1px 12px;
    border-radius: 12px;
}
.postDetail table{
    max-width: 100%;
    margin: 16px 0;
}

#postBot{
    margin-top: 20px;
    margin-bottom: 20px;
}
#pstLuuy{
	background: #fff8f3;
	border: 2px dashed #984c7a;
	border-radius: 8px;
	padding: 2px 20px;
    font-style: italic;
    text-align: justify;
}
#pstLuuy b{
    color: #984c7a;
}


.pageCntn{
    border: 1px solid #a1a1a1;
    padding: 12px;
}








@media screen and (max-width: 991.98px) {
    /*------------------------------------*\
        POST
    \*------------------------------------*/

}









@media screen and (min-width: 992px) {

    #bannerTop{
        max-width: unset;
    }
    .secWrp:not(#secSlider) {
        padding: 50px 0;
    }
    /*------------------------------------*\
        Header
    \*------------------------------------*/
    #header-middle{
        background-color: #fff;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    #logo img{
        width: 100px;
        aspect-ratio: 1 / 1;
        margin-right: 20px;
    }
    #logo > span{
        font-size: 28px;
        line-height: 40px;
        color: #323232;
    }
    #logo > span > span{
        font-size: 32px;
        color: #ea328d;
    }
    nav#header-bottom{
        background: #a47f6c;
        height: 65px;
    }
    #main-menu{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    #main-menu li{
        position: relative;
    }
    #main-menu li a{
        display: inline-block;
        line-height: 65px;
        padding-left: 20px;
        padding-right: 20px;
        color: #fff;
        font-size: 16px;
        text-transform: uppercase;
    }
    #main-menu li:not(:last-child) a{
        border-right: 1px solid #cb9d86;
    }

    /*------------------------------------*\
        HOME
    \*------------------------------------*/
    #sec1-text h1{
        margin-top: 0;
        margin-bottom: 12px;
    }
    .secHead i{
        font-size: 40px;
    }
    .secHead h3{
        font-size: 32px;
        line-height: 40px;
    }

    #sec2-header h3{
        font-size: 42px;
        text-align: left;
        line-height: 60px;
    }
    .sec2-img{
        text-align: right;
    }
    #sec2-itms{
        margin-top: 0;
        gap: 30px;
        justify-content: space-evenly;
    }

    #mtpk-thumb{
        padding-top: 0;
        margin-left: -16px;
    }
    .mtpk-thumb-itm{
        margin: 0 0 16px;
    }


    /*------------------------------------*\
        FOOTER
    \*------------------------------------*/
    #logoft{
        flex-direction: column;
        justify-content: center;
        width: 220px;
    }
    #logoft span{
        margin-left: 0;
        margin-top: 16px;
        font-size: 22px;
    }
    #logoft span b{
        font-size: 24px;
    }

    .ft1-title{
        font-size: 24px;
    }

    .ft1Frm{
        margin-top: 0;
    }
    #ft1-form {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #ft1-form input.w70{
        width: calc(70% - 8px);
    }
    #ft1-form input.w30{
        width: calc(30% - 8px);
    }
    #ft1-form textarea{
        height: 64px;
    }
    #ft-2{
        font-size: 16px;
    }




    /*------------------------------------*\
        CATEGORY
    \*------------------------------------*/
    #category-title{
        font-size: 32px;
    }
    .catePosts-name{
        font-size: 24px;
    }
    .catePosts-des{
        font-size: 16px;
        line-height: 1.7;
        line-clamp: 5;
        -webkit-line-clamp: 5;
    }
    .catePosts{
        padding-top: 24px;
        padding-bottom: 24px;
    }

    /*------------------------------------*\
        SIDEBAR
    \*------------------------------------*/
    #sbUudiem{
        background: #a47f6c url(./img/sb3-bg.png) right bottom no-repeat;
        background-size: cover;
        padding: 12px 20px;
        border-radius: 20px;
        color: #fff;
    }
    .sbTit{
        font-family: var(--font-heading);
        text-align: center;
        position: relative;
        text-transform: uppercase;
        font-size: 24px;
    }
    .sbTit i{
        margin-right: 12px;
    }
    .sbTit::after{
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        margin-top: 6px;
        background: linear-gradient(90deg, rgba(255,255,255, 0) 0%, rgba(255,255,255, 1) 50% , rgba(255,255,255, 0) 100%  );
    }
    #sbUudiemWrp li{
        padding-top: 4px;
        padding-bottom: 4px;
        color: #fff8b8;
    }
    #sbUudiemWrp li i{
        width: 20px;
        margin-right: 6px;
        color: #fff;
    }

    #stickySidebar{
        top: 20px;
    }
    #sbBanner{
        margin-top: 30px;
    }












    /*------------------------------------*\
        POSTS
    \*------------------------------------*/
    #mainCntn{
        padding-top: 30px;
    }
    .pageCntn{
        padding: 12px 20px;
    }
    
    #postTitle{
        font-size: 32px;
        text-align: left;
        margin-top: 0;
    }
    .postDetail{
        line-height: 1.8;
    }
    .postDetail img{
        max-width: 600px;
    }

}






/* Xử lý ảnh thật */
.blurredImages-wrap {
    display: inline-block;
    position: relative;
}

.blurredImages-pattern {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    color: #fff;
}

.blurredImages-text {
    text-align: center;
    font-size: 18px;
}

.blurredImages-button {
    display: block;
    margin-top: 15px;
    padding: 7px 20px;
    border-radius: 5px;
    background: #148265;
    cursor: pointer;
}

.pagebg {
    background: var(--background-1);
}

#secSlider {
    margin-bottom: 0 !important;
}
#secSlider .slick-dots {
    bottom: -5px;
}

#secSlider .slick-dots li button {
    background-color: #fff;
    opacity: .7;
}

#secSlider .slick-dots li.slick-active button {
    opacity: 1;
    background-color: #fff;
}

#secSlider .slick-arrow {
    height: 30px;
    border-radius: 15px;
    background-color: rgb(255, 255, 255, 0.7);
    line-height: 30px;
    left: 3px;
}

#secSlider #sliderNext.slick-arrow {
    right: 3px;
}