/* ====================================================
   ci4-news-category.css — M08 Danh mục tin tức
   Scoped: các rule dùng .cnc-* prefix hoặc trong
   #vnt-content để không ảnh hưởng trang khác.
   ==================================================== */

/* ── Ảnh card (override news.css position:absolute quirk) ── */
.cnc-i-img {
    position: relative;
    width: 100%;
    height: 175px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    background: #f0f0f0;
}

.cnc-i-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    max-width: 100%;
    max-height: 100%;
}

/* ── Card figcaption ── */
.cnc-news .list_item_news figure {
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    padding: 0 0 12px;
    border-radius: 4px;
    overflow: hidden;
}

.cnc-news .list_item_news figcaption {
    padding: 8px 10px 0;
}

.cnc-news .list_item_news figure h3 {
    height: auto;
    min-height: 50px;
    max-height: 56px;
    overflow: hidden;
    margin: 0 0 6px;
}

.cnc-news .list_item_news figure h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
    color: #227e0b;
    text-decoration: none;
}

.cnc-news .list_item_news figure h3 a:hover {
    color: #155a06;
}

.cnc-news .list_item_news .i_desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

/* ── Type filter nav (nhóm phân loại nội dung) ── */
.type-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.type-filter-nav a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d9ead7;
    background: #f7fbf6;
    color: #227e0b;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: background .18s ease, color .18s ease;
}

.type-filter-nav a:hover,
.type-filter-nav a.active {
    background: #227e0b;
    color: #fff;
    border-color: #227e0b;
}

.type-filter-nav .reset-filter {
    background: #fff5f2;
    color: #c6532d;
    border-color: #f2cfc4;
}

.type-filter-nav .reset-filter:hover {
    background: #c6532d;
    color: #fff;
    border-color: #c6532d;
}

/* ── Block nhóm bài ── */
.category-block {
    margin: 22px 0 32px;
}

.block-heading {
    margin-bottom: 14px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
}

.block-heading h2 {
    font-size: 22px;
    font-weight: 800;
    color: #227e0b;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .5px;
}

.block-more {
    text-align: center;
    margin-top: 18px;
}

.block-more a {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 999px;
    background: #2c9b29;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.block-more a:hover {
    background: #227e0b;
}

/* ── Grid trang 2 (flat list) ── */
.cnc-news .tab-content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.cnc-news .tab-content .row .list_item_news {
    padding: 0 8px 18px;
}

/* ── Active filter box ── */
.active-filter-box {
    margin: 10px 0 20px;
    padding: 10px 14px;
    background: #f3fbf2;
    border: 1px solid #dbeed8;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}

.active-filter-box span { font-weight: 700; color: #227e0b; }
.active-filter-box a    { color: #227e0b; font-weight: 700; text-decoration: none; }

.no-post-box {
    padding: 16px 18px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
    color: #555;
    margin-top: 10px;
    font-size: 14px;
}

/* ── Pagination ── */
.pagination-wrapper {
    margin: 28px 0 10px;
    text-align: center;
}

.tsc_pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tsc_pagination a,
.tsc_pagination strong {
    display: inline-block;
    padding: 7px 13px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: .18s ease;
}

.tsc_pagination a:hover {
    background: #138e0b;
    color: #fff;
    border-color: #138e0b;
}

.tsc_pagination strong {
    background: #138e0b;
    color: #fff;
    border-color: #138e0b;
    font-weight: 700;
}

/* ── TOC ── */
.toc {
    background: #fff;
    border: 1px solid #e6efe6;
    border-left: 5px solid #1f7a3f;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 28px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.toc-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 14px;
    color: #1f7a3f;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-item {
    counter-increment: toc-counter;
    margin-bottom: 9px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toc-item::before {
    content: counter(toc-counter);
    min-width: 24px;
    height: 24px;
    background: #1f7a3f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toc-item a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.toc-item a:hover,
.toc-item a.active {
    color: #1f7a3f;
    font-weight: 700;
}

/* ── FAQ ── */
.vmc-faq {
    background: #f9fbf9;
    border-radius: 10px;
    padding: 18px 16px;
    border: 1px solid #e5efe5;
    margin-top: 28px;
}

.vmc-faq > h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1f7a3f;
    border-left: 4px solid #1f7a3f;
    padding-left: 10px;
    line-height: 1.3;
}

.vmc-faq-item {
    border-bottom: 1px dashed #d8e6d8;
    padding: 11px 0;
}

.vmc-faq-item:last-child { border-bottom: none; }

.vmc-faq-q {
    position: relative;
    padding-right: 28px;
    margin: 0;
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.vmc-faq-q::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f7a3f;
}

.vmc-faq-q.active { color: #1f7a3f; }
.vmc-faq-q.active::after { content: "–"; }

/* A53.4  Clean travel sub tabs */
.wrapp_list_desc{
text-align:center !important;
margin-bottom:20px !important;
}

.wrapp_list_desc .travel-sub-tab{
display:inline-flex !important;
align-items:center !important;
justify-content:center !important;
min-height:34px !important;
margin:0 3px 8px !important;
padding:6px 16px !important;
border:1px solid #1e9bff !important;
border-radius:4px !important;
background:#fff !important;
color:#333 !important;
font-size:14px !important;
line-height:1.3 !important;
font-weight:700 !important;
text-decoration:none !important;
cursor:pointer !important;
outline:0 !important;
box-shadow:none !important;
transition:.2s ease !important;
position:relative !important;
z-index:1 !important;
}

.wrapp_list_desc .travel-sub-tab:hover,
.wrapp_list_desc .travel-sub-tab:focus,
.wrapp_list_desc .travel-sub-tab:active{
background:#4cae22 !important;
color:#fff !important;
border-color:#4cae22 !important;
outline:0 !important;
box-shadow:none !important;
text-decoration:none !important;
}

.wrapp_list_desc .travel-sub-tab.active{
background:#4cae22 !important;
color:#fff !important;
border-color:#4cae22 !important;
outline:0 !important;
box-shadow:none !important;
}

.wrapp_list_desc .travel-sub-tab:before,
.wrapp_list_desc .travel-sub-tab:after{
content:none !important;
display:none !important;
}

.vmc-faq-a {
    display: none;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    padding-top: 8px;
}

.vmc-faq-a p { margin: 0 0 8px; }

/* ── Author ── */
.aboutauthor {
    display: flex;
    gap: 18px;
    padding: 18px;
    margin: 22px 0;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
    align-items: flex-start;
}

.author-left img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.author-right { flex: 1; }

.authorname {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 7px;
    color: #222;
}

.authorname a {
    color: #138e0b;
    text-decoration: none;
}

.authorname a:hover { text-decoration: underline; }

.author-date {
    font-weight: 500;
    color: #666;
    font-size: 13px;
}

.authorabout {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
    color: #444;
}

.soc-icon a { display: inline-block; margin-right: 8px; }
.soc-icon img { width: 22px; height: 22px; }

/* ── Responsive tablet (≤1024px) ── */
@media screen and (max-width: 1024px) {
    .cnc-i-img {
        height: 145px;
    }

    .cnc-news .list_item_news {
        height: auto;
        max-width: 50%;
        flex-basis: 50%;
    }

    .block-heading h2 { font-size: 18px; }
}

/* ── Responsive mobile (≤767px) ── */
@media screen and (max-width: 767px) {
    .cnc-news {
        width: calc(100% + 28px) !important;
        max-width: calc(100% + 28px) !important;
        margin-left: -14px !important;
        margin-right: -14px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        box-sizing: border-box !important;
    }

    .cnc-news .tab-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cnc-news .tab-content .row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .cnc-news .tab-content .row .list_item_news,
    .cnc-news .list_item_news.col-xs-6,
    .cnc-news .list_item_news.col-sm-6 {
        float: none !important;
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
        padding-bottom: 16px !important;
        margin: 0 0 12px !important;
    }

    .cnc-news .list_item_news > *,
    .cnc-news .list_item_news .item,
    .cnc-news .list_item_news .item_news,
    .cnc-news .list_item_news .wrap-item,
    .cnc-news .list_item_news .wrap_news {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cnc-i-img { height: 120px; }

    .vmc-faq { padding: 13px 11px; }

    .toc { padding: 13px; }

    .aboutauthor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-left img { margin-bottom: 8px; }

    .block-heading h2 { font-size: 16px; }

    .tsc_pagination a,
    .tsc_pagination strong {
        padding: 6px 10px;
        font-size: 13px;
    }
}
