/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/
/* header sticky on scrollup - dùng cho tất cả các trang */
#header.sticky-on-scrollup #header-wrap {
    -webkit-transition: height .4s ease, opacity .3s ease, margin-top .4s ease;
    -o-transition: height .4s ease, opacity .3s ease, margin-top .4s ease;
    transition: height .4s ease, opacity .3s ease, margin-top .4s ease;
    background-color: transparent !important;
}
#header.sticky-on-scrollup.sticky-header #header-wrap {
    margin-top: -100px;
    background-color: transparent !important;
}
#header.sticky-on-scrollup.show-sticky-onscroll.sticky-header #header-wrap {
    margin-top: 0px;
}
/* // end header sticky */

/* dùng cho phần Faqs Quick (kiểu Accordion). Ví dụ dùng trên trang Default */
.section-faq {
    background: -webkit-gradient(linear,left top,left bottom,from(#fef5ef),to(#fff));
    background: linear-gradient(180deg,#fef5ef,#fff);
}
.section-faq .accordion-header {padding:1em 0;}
.section-faq .accordion-button {background:transparent;}
/*.section-faq .accordion {-webkit-box-flex: 1; -ms-flex: 1; -moz-box-flex: 1; flex: 1; }*/
.section-faq .accordion-item {background:transparent;}
.section-faq .accordion-item:has(> div.show) { background: #fff }
.section-faq .accordion-header.collapsed {
    .bi-chevron-down {display:inline;}
    .bi-chevron-up {display:none;}
}
.section-faq .accordion-header:not(.collapsed) {
    .bi-chevron-down {display:none;}
    .bi-chevron-up {display:inline;}
}

/** dùng cho trang List | Category | ProductDetail */
.titleHeaderCategory {
    text-transform: uppercase;
    font-size: 1em;
    border-bottom: 1px dotted #333;
    display: inline-block;
}

.items-nav .active {
    font-weight: bold;
}
.items-nav .active, .items-nav .active a {
    color: var(--cnvs-link-color) !important;
}
/* // end List | Category */

.social-icon .zalo {
    /*height: 100%;
    width: 100%;
    background: url('../images/icons/zalo.svg') no-repeat center;
    background-size: cover;*/
    width: 32px;
    height: 32px;
    background: url(../images/v1.png) -8px -121px no-repeat;
}
.zalo-qr {
    display:inline-block;
    width: 184px;
    height: 184px;
    background: url(../images/v1.png) -50px -112px no-repeat;
}

/* dùng cho trang nào có list-items với hiệu ứng xoay tròn image (ví dụ: RealEstateLayout.aspx, Default.aspx) */
.recipe-items .card img,
.rotating {
    transform: rotate(0deg);
    transition: transform 1.5s linear;
}

    .recipe-items .card:hover img,
    .rotating:hover {
        transform: rotate(360deg);
        transition: transform 20s linear;
    }

.recipe-items .row {
    border-top: 1px solid #EEE;
    margin-top: -1px;
    margin-bottom: -1px;
}

    .recipe-items .row [class^=col-] {
        border-right: 1px solid #EEE;
        border-bottom: 1px solid #EEE;
    }

.recipe-items .card {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 20px 10px;
}

.recipe-items .card-author {
    font-size: 12px;
    font-weight: 400;
    color: #AAA;
    margin-bottom: 0;
}

.recipe-items .card-title {
    font-size: 18px;
    line-height: 1.3;
}

.recipe-items .card-author a {
    color: #999;
    text-transform: uppercase;
    margin-left: 2px;
    font-weight: 600;
}

.recipe-items .card-title a {
    color: #222;
}

.recipe-items .card-date {
    margin-top: 15px;
    color: #555;
    margin-bottom: 0;
    font-weight: 400;
}

    .recipe-items .card-date i {
        margin-right: 6px;
    }

.play-video i {
    position: absolute;
    padding-left: 5px;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    line-height: 71px;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid #111;
    text-align: center;
    font-size: 24px;
    color: #111;
    margin-top: -40px;
    margin-left: -40px;
    transition: transform .3s ease-out;
    -webkit-backface-visibility: hidden;
}
.device-sm #page-title .play-video i,
.device-xs #page-title .play-video i {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 20px;
    margin-left: 0;
}

.dark .play-video i {
    background-color: rgba(255, 255, 255, .3);
    border: 4px solid #FFF;
    color: #FFF;
}

.text-title-light {
    font-size: 42px;
    color: #EEE;
    letter-spacing: -1px;
    line-height: 1;
}
/* // end */

/**
 * Recipe Categories
 */

.recipe-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.recipe-category {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 10px;
    height: 80px;
    background-size: cover;
    background-position: center center;
    border-radius: 250px;
    transition: all 0.5s cubic-bezier(.02, .01, .5, 1);
}
    .recipe-category::after {
        position: absolute;
        content: '';
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background-color: rgba(0,0,0,0.2);
    }

.recipe-category-inner {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 10px;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}


.recipe-category-icon {
    width: 40px;
    height: 40px;
    margin: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    border-radius: 100%;
    background-color: #FFF;
    padding: 8px;
    margin-right: 10px;
    color: #000;
    transition: transform .5s ease-out;
}

.recipe-category:hover .recipe-category-icon {
    transform: rotate(360deg);
}

.recipe-category-info {
    color: #FFF;
    font-size: 18px;
    text-align: center;
}

@media (min-width: 768px) {

    .recipe-category {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}


@media (min-width: 992px) {

    .recipe-category {
        flex: 0 0 60px;
        max-width: 60px;
        height: 300px;
        margin: 15px;
        background-size: auto 105%;
        background-position: center;
        border-radius: 30px;
    }

        .recipe-category:hover {
            flex: 0 0 250px;
            max-width: 250px;
            background-size: auto 100%;
            border-radius: 10px;
        }

    .recipe-category-inner {
        width: auto;
        height: auto;
        left: 0;
        top: auto;
        bottom: 0;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }

    .recipe-category:hover .recipe-category-inner {
        writing-mode: horizontal-tb;
        transform: rotate(0);
    }

    .recipe-category:not(:hover) .recipe-category-icon {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 10px;
        transform: rotate(180deg);
    }

    .recipe-category::after {
        background: -webkit-linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
        background: -o-linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8)) 100%;
    }
}
/* // Kết thúc recipe-category */

/** dùng cho trang detail, phần nội dung bài viết */
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    margin: 1rem 0;
}
.entry-content ul {margin: 0 0 1rem 1rem;}

/* // kết thúc nội dung bài viết trang detail */
/* Loading */
.loading {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
    .loading .bg {
        position: relative;
        width: 100%;
        height: 100%;
        background: #7b7b7b;
        opacity: .8;
    }
.loading .icon {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /*// Blue  */
    border-radius: 50%;
    width: 90px;
    height: 90px;
    position: absolute;
    left: calc(50% - 45px);
    top: calc(50% - 45px);
    display: inline-block;
    animation: spin 2s linear infinite;
}

.loading1 {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #7b7b7b;
    opacity: .8;
}
    .loading1 .icon {
        border: 16px solid #f3f3f3; /* Light grey */
        border-top: 16px solid #3498db; /*// Blue  */
        border-radius: 50%;
        width: 90px;
        height: 90px;
        position: absolute;
        left: calc(50% - 45px);
        top: calc(50% - 45px);
        display: inline-block;
        animation: spin 2s linear infinite;
    }
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* // End loading*/

/* dùng cho table (dataTable) */
table.dataTable > thead, tbody {
    vertical-align: middle;
}

table.dataTable > tbody > tr:hover td,
table.dataTable > tbody > tr:hover th {
    background-color: #ffd800 !important;
}
/* // End table */

/* dùng cho side-panel thứ 2 (trên cùng 1 trang có thể có nhiều side-panel) */
.side-panel-trigger.trigger2 {
    display: block;
    overflow: hidden;
    position: fixed;
    top: 40%;
    right: 0;
    z-index: 700;
    background: var(--cnvs-themecolor);
    padding: 0 4px 0 7px;
    opacity: 0.7;
    border-radius: 5px;
}
/* // End side-panel */
       