/*
	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: #01a294;
}
#header-btn-menuM{
    width: 58px;
    height: 58px;
    color: #fff;
    font-size: 32px;
    text-align: center;
    line-height: 58px;
    background-color: #ec212f;
}
#logo{
    width: calc(100% - 60px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
}
#logo > img{
    width: 46px;
    aspect-ratio: 1 / 1;
    border: 2px solid #fff;
    border-radius: 50%;
}
#logo-text{
    flex: 1;
    text-align: center;
    font-style: italic;
    line-height: 23px;
    color: #fff;
}
#logo span{
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}
#logo em{
    font-size: 16px;
    display: block;
}


/*------------------------------------*\
    Home Page
\*------------------------------------*/ 
#sec2{
    
}
#sec2-header{
    text-align: center;
    margin-bottom: 20px;
}
#sec2-header h1{
    width: 100%;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
}
.sec2-des a{
    font-weight: 500;
    color: #ff0000;
}
.sec2-bg{
    background: url(./img/s2-bg.jpg) center center no-repeat;
    background-size: cover;
    padding-top: 20px;
    padding-bottom: 20px;
}

.sec2Itm-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    margin: 16px auto;
}
.sec2Itm-box img{
    border: 1px solid #ffe3b7;
}
.sec2Itm-box span{
    width: 100%;
    margin-top: 12px;
    background-color: #64d9cf;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 12px;
    color: #fff;
    border-radius: 4px;
}
.sec2Itm-links{
    display: block;
    width: 100%;
    max-width: 320px;
    height: 46px;
    line-height: 46px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    animation: bgSwap2 1.4s infinite;
    --color-1: #ff6c00;
    --color-2: #64d9cf;
}

.sec3-wrapper-items{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#sec4{
    background: url(./img/s4-bg.jpg) center center no-repeat;
    background-size: cover;
}
#sec4-header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
}
#sec4-header b{
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 26px;
    text-transform: uppercase;
    color: #37c6c4;
    text-shadow: -1px 1px 3px #195e5c;
}
#sec4-items-wrapper{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: center;
}
.sec4Box{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sec4Box span{
    margin-top: 12px;
    color: #fff;
}
.sec4Box span b{
    display: block;
    text-transform: uppercase;
    font-weight: 500;
    color: #ff6c00;
}



/*------------------------------------*\
    Footer
\*------------------------------------*/
#footer{
    padding: 30px 0 80px;
    background: #252525;
    color: #fff;
}
#logoft{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
#logoft img{
    height: 64px;
    aspect-ratio: 1 / 1;
}
#logoft span{
    padding-left: 12px;
    text-align: center;
    font-size: 18px;
    margin-top: 12px;
}
#logoft span b{
    display: block;
    font-size: 20px;
    font-weight: 400;
}

.ft1-title{
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
}
.ft1-title span{
    border-bottom: 1px solid #fff;
    padding-bottom: 6px;
}
.ft1-cntn li{
    padding: 4px 0;
}

#ft1-info-list li i{
    width: 20px;
}
#ft1-time li span{
    color: #fff;
}



/*------------------------------------*\
    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: #337ab7;
}
span.breadcrumb_last strong, .breadcrumbs > span > span:last-child strong{
    font-weight: 500;
}
.category-header{
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}
h1#category-title{
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #337ab7;
    line-height: 1.3;
}
.category-description{
    text-align: justify;
    line-height: 1.6;
}

.catePosts{
    display: flex;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #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: #337ab7;
    background: #337ab7;
}


/*------------------------------------*\
    POST
\*------------------------------------*/
#mainCntn{
    padding: 20px 0;
}
#postTitle{
    font-size: 26px;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
    color: #38b7ac;
    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 #38b7ac;
}
.postDetail h2,.postDetail h2 *{
    font-size: 22px;
    color: #38b7ac !important;
}
.postDetail h3,.postDetail h3 *{
    font-size: 20px;
    color: #38b7ac !important;
}
.postDetail h4,.postDetail h4 *{
    font-size: 18px;
    color: #38b7ac !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 #38b7ac;
	border-radius: 8px;
	padding: 2px 20px;
    font-style: italic;
    text-align: justify;
}
#pstLuuy b{
    color: #38b7ac;
}


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








@media screen and (max-width: 991.98px) {
    #ft1-info-list{
        padding-left: 12px;
    }

}









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

    #bannerTop{
        max-width: unset;
    }
    .secWrp:not(#secSlider) {
        padding: 50px 0;
    }
    /*------------------------------------*\
        Header
    \*------------------------------------*/
    #header-middle{
        padding-top: 20px;
        padding-bottom: 20px;
    }
    #logo{
        width: unset;
    }
    #logo img{
        width: 100px;
        aspect-ratio: 1 / 1;
        margin-right: 20px;
        border: none;
    }
    #main-menu{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        height: 64px;
        background-color: #fff;
        border-radius: 99px;
        padding-left: 20px;
        padding-right: 20px;
    }
    #main-menu li{
        position: relative;
    }
    #main-menu li a{
        display: inline-block;
        line-height: 65px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 16px;
        text-transform: uppercase;
    }
    #main-menu li a:hover{
        color: #01a294;
    }
     #main-menu li a i.fa-home{
        font-size: 20px;
     }
    /*------------------------------------*\
        HOME
    \*------------------------------------*/
    #sec1{
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        background-color: #bfbfbf;
    }
    #sec1 .row{
        align-items: center;
    }
    .sec1-text{
        font-size: 18px;
        color: #fff;
    }
    .sec1-srch form{
        display: flex;
        align-items: center;
    }
    .sec1-srch input{
        width: calc(100% - 75px);
        height: 40px;
        background-color: #fff;
        border-radius: 20px 0 0 20px;
        padding-left: 16px;
        padding-right: 12px;
    }
    .sec1-srch button{
        width: 75px;
        height: 40px;
        border-radius: 0 20px 20px 0;
        background: #1a847b;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }
    .sec2Itm-box{
        max-width: 100%;
    }

    .sec3-wrapper-items,#sec4-items-wrapper{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #sec4-header{
        margin-bottom: 40px;
    }



    /*------------------------------------*\
        FOOTER
    \*------------------------------------*/
    #logoft span{
        margin-left: 0;
        margin-top: 16px;
        padding-left: 0;
        font-size: 22px;
    }
    #logoft span b{
        font-size: 24px;
    }

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



    /*------------------------------------*\
        CATEGORY
    \*------------------------------------*/
    #category-title{
        font-size: 32px;
    }
    .catePosts-name{
        font-size: 20px;
    }
    .catePosts-des{
        font-size: 16px;
        line-height: 1.7;
        line-clamp: 5;
        -webkit-line-clamp: 5;
    }
    .catePosts{
        flex-direction: column;
        align-items: center;
        padding-top: 24px;
        padding-bottom: 24px;
        height: 100%;
    }
    .catePosts-thumb{
        width: 100%;
        max-width: unset;
        aspect-ratio: 4 / 3;
        border: 1px solid #e1e1e1;
    }
    .catePosts-info{
        padding-top: 12px;
        padding-left: 0;
    }
    .catePosts-des{
        line-clamp: 3;
        -webkit-line-clamp: 3;
    }


    /*------------------------------------*\
        SIDEBAR
    \*------------------------------------*/
    #sbCTA{
        top: 20px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .sbCTA-item{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 12px;
        background-color: #ebebeb;
        border: 1px solid #ff6c03;
        border-radius: 6px;
        font-size: 20px;
        text-transform: uppercase;
        font-family: var(--font-heading);
    }
    .sbCTA-item i{
        color: #ff6c03;
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 12px;
    }












    /*------------------------------------*\
        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;
}