/*
 * CSS of taxonomy-danh-muc-ky-thuat-canh-bao-an-toan.php, moved verbatim from its inline <style> blocks, in source order.
 * Loaded by kosmos_page_template_css (functions/actions.php).
 */

/* taxonomy-danh-muc-ky-thuat-canh-bao-an-toan.php, <style> at line 8 */
section.post_detail .grid-container {
    max-width: calc(100% - 9rem);
}

.post_detail .section_heading {
    margin-bottom: 0;
}

.post_detail {
    margin-top: 15px;
}

.danh_muc_ky_thuat_wrap .news_item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.danh_muc_ky_thuat_wrap img {
    max-width: 100%;
    float: left;
    overflow: hidden;
    width: 95%;
}

.danh-muc-kt-item {
    width: 100%;
    float: left;
    overflow: hidden;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 15px;
}

.danh-muc-kt-item .image {
    width: 33%;
    margin-right: 0;
    float: left;
}

.danh-muc-kt-item h2 {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 2px;
}

.danh-muc-kt-item .date {
    margin: 10px 0;
}

.site.grid-container.container.hfeed {
    margin-top: 86px;
}

.menu-ho-tro-ky-thuat {
    background: #fff;
    z-index: 1000;
}

.menu-ho-tro-ky-thuat {
    margin-top: -29px;
}

.menu-ho-tro-ky-thuat ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.menu-ho-tro-ky-thuat ul li {
    background: #494949;
    padding: 3px 20px;
    margin-top: 10px;
    margin-bottom: 4px;
    margin-right: 10px;
}

.menu-ho-tro-ky-thuat ul a {
    color: #fff;
}

.menu-ho-tro-ky-thuat.fixed {
    position: fixed;
    top: 134px;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease-in-out;
    background-color: rgb(61 60 60 / 57%);
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.menu-ho-tro-ky-thuat ul li.active {
    background: #e31937;
    padding: 3px 20px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.menu-ho-tro-ky-thuat ul li:hover {
    background: #e31937;
}

/* Filter Styles */
.filter-section {
    margin: 30px 0;
}

.filter-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.parent-term {
    margin-bottom: 12px;
}

.child-terms {
    padding-left: 20px;
    margin-top: 8px;
}

.filter-box label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-box .count {
    color: #999;
    font-size: 0.9em;
}

.load-more-button {
    background: #e31937;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.load-more-button:hover {
    background: #c41730;
}

.load-more-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.filter-section .filter-box label input[type="checkbox"] {
    margin-right: 5px;
}


.parent-name{cursor:pointer;}
.filter-sectionr .count{float:right;}
.filter-section .box-mau-sac label>span{width:88%;cursor:pointer;}
.parent-name{cursor:pointer;}
.section-loc-san-pham .filter-section{width:100%;}
.filter-section .box{margin-bottom:5px;overflow:hidden;}
.filter-sectionr h3{display:inline-block;width:100%;font-size:13px;margin-bottom:5px;font-weight:500;background:#EBEBEC;padding:5px 8px 5px 12px;border-radius:99px;color:#333;}
.filter-sectionlabel{width:100%;float:left;margin-bottom:5px;margin-left:11px;margin-top:3px;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;font-size:12px;}
.filter-section label>span{width:80%;}
.filter-section input{-webkit-appearance:auto;width:15px;height:15px;opacity:1;display:block;clear:both;border:1px solid #ccc;position:relative;cursor:pointer;}
.filter-section input[type="checkbox"]{pointer-events:auto;float:left;margin-right:5px;margin-top:0;-webkit-appearance:none;border:2px solid #ccc;background-color:#ccc;cursor:pointer;border-radius:3px;outline:none;}
.filter-section input[type="checkbox"]:checked{background-color:#E31937;border-color:#EBEBEC;}
.filter-section{position:sticky;top:0;overflow-y:auto;}
.filter-section::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);background-color:#F5F5F5;}
.filter-section::-webkit-scrollbar{width:2px;background-color:#F5F5F5;}
.filter-section::-webkit-scrollbar-thumb{background-color:#E31937;}

.filter-section input[type="checkbox"] {
    pointer-events: auto;
    float: left;
    margin-right: 5px;
    margin-top: 0;
    -webkit-appearance: none;
    border: 2px solid #ccc;
    background-color: #ccc;
    cursor: pointer;
    border-radius: 3px;
    outline: none;
}


@media screen and (max-width: 575px){
.section-loc-san-pham #sidebar{position:unset!important;}
#sidebar{display:none;}
}


@media (max-width:650px) {
    .danh-muc-kt-item {
        display: flex;
    }

    .menu-ho-tro-ky-thuat ul a {
        font-size: 12px;
    }

    .danh-muc-kt-item .image {
        width: 100%;
        float: left;
        width: 600px;
    }

    .menu-ho-tro-ky-thuat ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .menu-ho-tro-ky-thuat ul li {
        width: 47%;
        background: #494949;
        padding: 3px 20px;
        margin-top: 0px;
        margin-bottom: 3px;
        margin-right: 10px;
        margin-right: 3px;
    }

    .menu-ho-tro-ky-thuat.fixed {
        top: 93px;
    }

    .menu-ho-tro-ky-thuat ul li.active {
        margin-top: 3px;
        margin-bottom: 3px;
        margin-right: 3px;
    }

    section.post_detail {
        margin-top: 5%;
    }
    
    .filter-section .grid-25 {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* ===== Slider bài viết ===== */
.ky-thuat-slider-wrap {
    position: relative;
}

.ky-thuat-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.ky-thuat-slider .slick-slide {
    height: auto;
    margin: 0 8px;
}

.ky-thuat-slide a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.ky-thuat-slide img.post-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.ky-thuat-slide a:hover img.post-thumbnail {
    transform: scale(1.05);
}

.ky-thuat-slide .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ky-thuat-slide .play-overlay .play-icon {
    width: 40px;
}

.ky-thuat-slider .slick-prev,
.ky-thuat-slider .slick-next {
    width: 40px;
    height: 40px;
    background: #e31937;
    border-radius: 50%;
    z-index: 2;
}

.ky-thuat-slider .slick-prev:hover,
.ky-thuat-slider .slick-next:hover,
.ky-thuat-slider .slick-prev:focus,
.ky-thuat-slider .slick-next:focus {
    background: #c41730;
}

.ky-thuat-slider .slick-prev {
    left: -50px;
}

.ky-thuat-slider .slick-next {
    right: -50px;
}

/* slick-theme.css dùng icon font riêng, ghi đè bằng ký tự chevron cho chắc */
.ky-thuat-slider .slick-prev:before,
.ky-thuat-slider .slick-next:before {
    font-family: inherit;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    opacity: 1;
}

.ky-thuat-slider .slick-prev:before {
    content: '\2039';
}

.ky-thuat-slider .slick-next:before {
    content: '\203A';
}

.ky-thuat-slider .slick-disabled {
    opacity: 0.35;
}

.ky-thuat-slider-wrap{
    padding: 0 30px;
}

button.slick-next.slick-arrow {
    right: -2.5%;
}

button.slick-prev.slick-arrow {
    left: -2.5%;
}

button.slick-arrow {
    opacity: 1;
}

/* ===== Luoi 3 cot: trang thai mac dinh khi chua check bo loc ===== */
#filter-results {
    position: relative;
}

.ky-thuat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .ky-thuat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .ky-thuat-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Danh sách link_text khi lọc ===== */
.link-text-wrap {
    margin-top: 30px;
}

/* frontend.css co rule toan cuc "body ul{display:flex}" -> phai ghi de ve block */
#filter-link-text .link-text-list {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

#filter-link-text h2{font-weight: bold}

#filter-link-text .link-text-list li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

#filter-link-text .link-text-list li:last-child {
    border-bottom: 0;
}

.link-text-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
}

.link-text-list a:hover {
    color: #e31937;
}

.link-text-list .chevron {
    flex: 0 0 auto;
    color: #e31937;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 650px) {
    .ky-thuat-slider-wrap {
        padding: 0 40px;
    }

    .ky-thuat-slider .slick-prev {
        left: -38px;
    }

    .ky-thuat-slider .slick-next {
        right: -38px;
    }
}
