
/* ============================================================================================== */
/* ============================================= search ========================================= */
/* ============================================================================================== */

#section-project-search-on-home {
    position: relative;
    padding: 50px 0 0 0;
    height: 300px;
}
#section-project-search-on-home .search-row,
#section-project-search-on-home .search-row>.search-col {
    position: relative;
}
#section-project-search-on-home .search-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    /* height: 235px; */
}
#section-project-search-on-home .search-row>.search-col {
    padding: 15px 0 20px 0;
}
#section-project-search-on-home .search-row>.search-col.this-col-search {
    width: calc(100% - 412px);
    padding-right: 60px;
}
#section-project-search-on-home .search-row>.search-col.this-col-calculate {
    width: 412px;
    padding-left: 60px;
}
#section-project-search-on-home .search-row>.search-col.this-col-calculate:before {
    position: absolute;
    content: "";
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    border-right: 1px solid rgba(var(--cpn-color-black), 0.2);
}

/* --------------------------------------------------------------- */
/* ---------------------------- XXXXX ---------------------------- */
/* --------------------------------------------------------------- */

#search-home-section {
    position: relative;
    /* background-color: rgba(255,255,0,0.2); */
}
#search-home-section.search-on-desktop .search-keyword-section>.search-keyword-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#search-home-section.search-on-desktop .search-filter-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100px;
}


/* ============================================================================================== */
/* ========================================= project search ===================================== */
/* ============================================================================================== */


#home-project-search {
    z-index: 2;
}

/* ============================================================================================== */
/* ======================================== project category ==================================== */
/* ============================================================================================== */

#section-project-category-on-home {
    position: relative;
    min-height: 160px;
}

.project-category-slide,
.project-category-slide-item {
    position: relative;
}
.project-category-slide {
    height: 300px;
    margin-bottom: -140px;
    z-index: 2;
}
.project-category-slide .splide-track {
    padding-top: 50px;
    padding-bottom: 50px;
}
.project-category-slide-item {
    display: block;
    width: 100%;
    padding-top: 100%;
    background-color: rgba(var(--cpn-color-white),1);
    box-shadow: 0 20px 30px rgba(var(--cpn-color-black), 0.13);
    overflow: hidden;
    top: 0;
    -webkit-transition: top 0.2s ease, box-shadow 0.2s ease;
    -moz-transition: top 0.2s ease, box-shadow 0.2s ease;
    -ms-transition: top 0.2s ease, box-shadow 0.2s ease;
    -o-transition: top 0.2s ease, box-shadow 0.2s ease;
    transition: top 0.2s ease, box-shadow 0.2s ease;
}
.project-category-slide-item:hover {
    top: -5px;
    box-shadow: 0 30px 30px rgba(var(--cpn-color-black), 0.2);
}
.project-category-slide-item,
.project-category-slide-item::before {
    border-radius: 20px;
}
.project-category-slide-item::before,
.project-category-slide-item>.inside {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
/* .project-category-slide-item::before {
    content: "";
    border: 2px solid rgba(var(--cpn-color-primary),0.5);
    opacity: 0;
    z-index: 1;
}
.project-category-slide-item:hover::before {
    opacity: 1;
} */
.project-category-slide-item>.inside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 30px;
    z-index: 2;
}
.project-category-slide-item .icon,
.project-category-slide-item::before {
	-webkit-transition: var(--cpn-transition-all);
    -moz-transition: var(--cpn-transition-all);
    -ms-transition: var(--cpn-transition-all);
    -o-transition: var(--cpn-transition-all);
    transition: var(--cpn-transition-all);
}
.project-category-slide-item .icon {
    width: 70px;
    height: 70px;
    font-size: 70px;
    line-height: 70px;
    margin: 10px auto 5px auto;
    color: rgba(var(--cpn-color-secondary),1);
}
.project-category-slide-item:hover .icon {
    color: rgba(var(--cpn-color-primary),1);
}
.project-category-slide-item .title {
    font-size: 18px;
	line-height: 35px;
    font-weight: 600;
    text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
    width: 100%;
    color: rgba(var(--cpn-color-black),1);
}
.project-category-slide-item .description {
    line-height: 20px;
    color: rgba(var(--cpn-color-gray-dark),1);
}

/* ============================================================================================== */
/* ======================================= project recommend ==================================== */
/* ============================================================================================== */

#section-project-category-on-home+#section-project-recommend-on-home>.container-inside {
    padding-top: 160px;
}
#section-project-recommend-on-home {
    background-color: rgba(var(--cpn-color-gray-light),1);
    min-height: 1000px;
    overflow: hidden;
    z-index: 1;
}
#section-project-recommend-on-home>.container-inside {
    padding: 60px 0;
}
#section-project-recommend-on-home .project-recommend-result,
#section-project-recommend-on-home .project-recommend-result .result-section {
    position: relative;
    height: 800px;
    /* background-color: rgba(255,255,0,0.2); */
}
#section-project-recommend-on-home .project-recommend-result .result-section.on {
    display: block;
}
#section-project-recommend-on-home .project-recommend-result .result-section,
#section-project-recommend-on-home .project-recommend-result .result-section.off {
    display: none;
}
#section-project-recommend-on-home .project-recommend-result .result-section.is-not-found.on {
    display: flex;
    align-items: center;
    justify-content: center;
}
#section-project-recommend-on-home .project-recommend-result .splide-track {
    padding-top: 20px;
    padding-bottom: 100px;
}
#section-project-recommend-on-home .project-recommend-result .button-row {
    margin-top: -50px;
}

/* ============================================================================================== */
/* ======================================== content + blog ====================================== */
/* ============================================================================================== */

/* splide */
.content-for-post-expand-cards .post-expand-cards.splide {
    margin-top: 30px;
}
.content-for-post-expand-cards .post-expand-cards.splide .splide-track  {
    padding-top: 0;
    padding-bottom: 60px;
}

/* action */
.content-for-post-expand-cards .action-row,
.content-for-post-expand-cards .action-col {
    position: relative;
}
.content-for-post-expand-cards .action-row {
    display: flex;
    flex-wrap: nowrap;
    height: 25px;
    background-color: rgba(255,255,0,1);
    margin-top: -25px;
    z-index: 2;
}
.content-for-post-expand-cards .action-col.this-col-pagination {
    display: none;
}
.content-for-post-expand-cards .action-col.this-col-btn {
    flex: 1 0 0;
    display: flex;
    justify-content: center;
}
.content-for-post-expand-cards .action-col.this-col-btn .button-more+.button-more {
    margin-left: 30px;
}
.content-for-post-expand-cards .action-col.this-col-btn .view-all-btn {
    opacity: 0;
    pointer-events: none;
}
.content-for-post-expand-cards .action-col.this-col-btn .view-all-btn.enable {
    opacity: 1;
    pointer-events: auto;
}

/* --------------------------------------------------------------- */
/* --------------------------- content --------------------------- */
/* --------------------------------------------------------------- */

#section-content-on-home,
#section-content-on-home>.container-inside {
    position: relative;
}
#section-content-on-home>.container-inside {
    margin-top: 80px;
    margin-bottom: 40px;
    z-index: 2;
}
#section-content-on-home>.container-inside .sec-card{
    position: relative;
    padding-bottom: var(--cpn-padding-content-bottom);
}

#section-content-on-home>.bg {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    margin-left: 50%;
    z-index: 1;
}
#section-content-on-home>.bg:before {
    position: absolute;
    content: "";
    width: calc(100% + 200px);
    height: 100%;
    top: 0;
    left: -100px;
    right: -100px;
    background-image: linear-gradient(to bottom, rgba(var(--cpn-color-white), 1) 60%, rgba(var(--cpn-color-white), 0));
    /* background-color: rgba(var(--cpn-color-white),1); */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    z-index: 1;
}

#section-content-on-home .post-expand-cards {
    margin-top: 30px;
}
#section-content-on-home .post-expand-card {
    background-color: rgba(var(--cpn-color-secondary),1);
}
#section-content-on-home .post-expand-card.loading {
    background-color: rgba(var(--cpn-color-gray-light),1);
}
#section-content-on-home .post-expand-card,
#section-content-on-home .post-expand-card .description,
#section-content-on-home .post-expand-card .button-more {
    color: rgba(var(--cpn-color-white),1);
}
#section-content-on-home .post-expand-card .post-expand-card-col.this-col-info .title {
    color: rgba(var(--cpn-color-primary),1);
}
#section-content-on-home .post-expand-card .title,
#section-content-on-home .post-expand-card .description,
#section-content-on-home .post-expand-card .action {
    text-align: center;
}
#section-content-on-home .post-expand-card .description {
    margin: 0;
}
#section-content-on-home .post-expand-card hr {
    margin: 20px 0 !important;
    opacity: 0.2 !important;
}
#section-content-on-home .splide-track {
    padding-top: 0;
    padding-bottom: 40px;
}
#section-content-on-home .button-row {
    margin-top: -10px;
}

/* --------------------------------------------------------------- */
/* ----------------------------- blog ----------------------------- */
/* --------------------------------------------------------------- */

/* ============================================================================================== */
/* =========================================== banner more ====================================== */
/* ============================================================================================== */

#section-banner-more-on-home {}
.banner-more-slide,
.banner-more-card {
    position: relative;
}
.banner-more-slide .splide-track {
    padding-top: 20px;
    padding-bottom: 20px;
}
.banner-more-card {    
    border-radius: var(--cpn-card-border-radius);
    box-shadow: 0 0 0 rgba(var(--cpn-color-black), 0.13);
    background-color: rgba(var(--cpn-bg-color-img), 1);
    overflow: hidden;
    top: 0;
    -webkit-transition: top 0.2s ease, box-shadow 0.2s ease;
    -moz-transition: top 0.2s ease, box-shadow 0.2s ease;
    -ms-transition: top 0.2s ease, box-shadow 0.2s ease;
    -o-transition: top 0.2s ease, box-shadow 0.2s ease;
    transition: top 0.2s ease, box-shadow 0.2s ease;
}
.banner-more-card:hover {
    box-shadow: 0 10px 15px rgba(var(--cpn-color-black), 0.15);
    top: -5px; 
}

/* ============================================================================================== */
/* ============================================ privilege ======================================= */
/* ============================================================================================== */

#section-privilege-on-home {
    position: relative;
}
#section-privilege-on-home::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 175px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--cpn-color-black-dark), 1);
    z-index: 1;
}
.privilege-card {
    position: relative;
    height: 350px;
    margin-top: 60px;
    z-index: 2;
}
.privilege-for-info,
.privilege-for-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.privilege-for-info {
    display: flex;
    flex-direction: row-reverse;
    z-index: 2;
}
.privilege-for-info>.info-col-content,
.privilege-for-info>.info-col-img {
    position: relative;
}
.privilege-for-info>.info-col-content {
    width: 60%;
    text-align: center;
    color: rgba(var(--cpn-color-white),1);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.privilege-for-info>.info-col-content .content-group {
    position: relative;
}
.privilege-for-info>.info-col-content .button {
    color: rgba(var(--cpn-color-black),1);
}
.privilege-for-info>.info-col-img {
    width: 40%;
}

.privilege-for-bg {
    border-radius: var(--cpn-card-border-radius);
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.privilege-for-bg .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url(../../../images/site/bg-privilege.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: rgba(var(--cpn-color-secondary),1);    
}

#section-privilege-on-home.disable-animate .privilege-for-bg {
    width: 100%;   
    max-width: 100%; 
    border-radius: 0;
}

/* xxl */
@media (min-width: 1400px) {}

/* xxl - 1 */
@media (min-width:1500px) and (max-width: 1599.98px) {}

/* xxl - 2 */
@media (min-width: 1400px) and (max-width: 1499.98px) {}

/* xl */
@media (min-width: 1200px) and (max-width: 1399.98px) {

    /* ============================================================================================== */
    /* ======================================== content + blog ====================================== */
    /* ============================================================================================== */

    .content-for-post-expand-cards .post-expand-cards.splide .splide-track {
        padding-bottom: 45px;
    }
    .content-for-post-expand-cards .action-col.this-col-pagination {
        display: flex;
        align-items: center;
    }
    .content-for-post-expand-cards .action-col.this-col-btn {
        justify-content: flex-end;
    }

}

/* lg */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* ============================================================================================== */
    /* ======================================== content + blog ====================================== */
    /* ============================================================================================== */
      
    .content-for-post-expand-cards .post-expand-cards.splide .splide-track {
        padding-bottom: 45px;
    }
    .content-for-post-expand-cards .action-col.this-col-pagination {
        display: flex;
        align-items: center;
    }
    .content-for-post-expand-cards .action-col.this-col-btn {
        justify-content: flex-end;
    }
    
}

/* md */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* ============================================================================================== */
    /* ======================================== content + blog ====================================== */
    /* ============================================================================================== */
      
    .content-for-post-expand-cards .post-expand-cards.splide .splide-track {
        padding-bottom: 40px;
    }
   .content-for-post-expand-cards .action-col.this-col-pagination {
        display: flex;
        align-items: center;
    }
    .content-for-post-expand-cards .action-col.this-col-btn {
        justify-content: flex-end;
    }

}

/* sm - xs */
@media (max-width: 767.98px) {

    /* ============================================================================================== */
    /* ============================================= search ========================================= */
    /* ============================================================================================== */

    #section-project-search-on-home .search-row>.search-col.this-col-search {
        width: 100%;
        padding: 0;
    }
    #section-project-search-on-home .search-row>.search-col.this-col-search .heading-main {
        text-align: center;
        margin-bottom: 10px;
    }
    #section-project-search-on-home .search-row>.search-col.this-col-calculate {
        display: none;
    }

    
    /* ============================================================================================== */
    /* ======================================== content + blog ====================================== */
    /* ============================================================================================== */

    .content-for-post-expand-cards .post-expand-cards.splide .splide-track {
        padding-bottom: 40px;
    }
    .content-for-post-expand-cards .action-col.this-col-pagination {
        display: flex;
        align-items: center;
    }
    .content-for-post-expand-cards .action-col.this-col-btn {
        justify-content: flex-end;
    }
    
}

/* sm */
@media (min-width: 576px) and (max-width: 767.98px) {}

/* xs */
@media (max-width: 575.98px) {
    
    /* ============================================================================================== */
    /* ============================================= search ========================================= */
    /* ============================================================================================== */

    #section-project-search-on-home {
        padding: 30px 0 40px 0;
        height: auto;
        background-color: rgba(var(--cpn-color-gray-light), 1);
    }
    /* #section-project-search-on-home:before {
        position: absolute;
        content: "";
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 72.5px;
        background-color: rgba(var(--cpn-color-gray-light), 1);
        z-index: 1;
    } */
    /* #section-project-search-on-home>.container-inside {
        position: relative;
        z-index: 2;
    } */
    #search-home-section.search-on-desktop .search-filter-section {
        display: none;
    }
    #search-home-section.search-on-desktop .search-keyword-section.is-home {
        height: 65px;
        padding: 0 20px;
        border-radius: 20px;
        background-color: rgba(var(--cpn-color-white), 1);
        box-shadow: 0 10px 40px rgba(var(--cpn-color-black), 0.13);
        overflow: hidden;
    }

    /* ============================================================================================== */
    /* ======================================== project category ==================================== */
    /* ============================================================================================== */

    #section-project-category-on-home {
        min-height: auto;
        background-color: rgba(var(--cpn-color-gray-light), 1);
    }
    .project-category-slide {
        height: auto;
        margin-top: -30px;
        margin-bottom: 0;
    }
    .project-category-slide .splide-track {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .project-category-slide-item {
        width: 150px;
        box-shadow: 0 10px 20px rgba(var(--cpn-color-black), 0.13);
    }
    .project-category-slide-item:hover {
        box-shadow: 0 15px 25px rgba(var(--cpn-color-black), 0.2);
    }
    .project-category-slide-item>.inside {
        padding: 10px 20px;
    }
    .project-category-slide-item .icon {
        width: 45px;
        height: 45px;
        font-size: 45px;
        line-height: 45px;
        margin: 5px auto 10px auto;
    }
    .project-category-slide-item .title {
        font-size: 16px;
        line-height: 25px;
        font-weight: 600;
    }
    .project-category-slide-item .description {
        font-size: 10px;
        line-height: 15px;
    }

    /* ============================================================================================== */
    /* ======================================= project recommend ==================================== */
    /* ============================================================================================== */

    #section-project-category-on-home+#section-project-recommend-on-home>.container-inside {
        padding-top: 0;
    }
    #section-project-recommend-on-home {
        min-height: 300px;
    }
    #section-project-recommend-on-home>.container-inside {
        padding: 60px 0;
    }
    #section-project-recommend-on-home .project-recommend-result,
    #section-project-recommend-on-home .project-recommend-result .result-section {
        height: auto;
    }
    #section-project-recommend-on-home .project-recommend-result .splide-track {
        padding-top: 10px;
        padding-bottom: 70px;
    }

}

/* xs custom */
@media (max-width: 399.98px) {}
