/* ==========================================================
   CCHC Lâm Đồng – custom.css (DUY NHẤT 1 FILE)
   Nạp SAU bootstrap.min.css. Các module sau chỉ cần thêm
   vào cuối file này, dùng lại biến :root bên dưới.
   ========================================================== */

/* 1. Design tokens ---------------------------------------- */
:root {
    --cchc-red: #c8102e;
    --cchc-red-dark: #9e0c24;
    --cchc-blue: #0b4ea2;
    --cchc-blue-dark: #083a7a;
    --cchc-orange: #f57c00;
    --cchc-green: #1e9e57;
    --cchc-purple: #6a3fc4;
    --cchc-sky: #1a8fd8;
    --cchc-ink: #02457a;
    --cchc-muted: #6b7385;
    --cchc-line: #e6e9f0;
    --cchc-bg: #f5f7fb;
    --cchc-radius: 14px;
    /* Ảnh nền footer: thay đường dẫn tại đây */
    --footer-bg: url('/assets//images/footer.png');
    --cchc-shadow: 0 6px 20px rgba(11, 78, 162, .08);
    /* Ghi đè biến Bootstrap để .btn-primary, .text-primary… theo tông đỏ */
    --bs-primary: #c8102e;
    --bs-primary-rgb: 200, 16, 46;
    --bs-link-color: #0b4ea2;
    --bs-body-font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--cchc-ink);
    --bs-body-bg: var(--cchc-bg);
    --bs-body-font-size: .9375rem;
}

/* 2. Base ------------------------------------------------- */
.font-script {
    font-family: "Dancing Script", "Brush Script MT", cursive;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -.01em;
}

a {
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(11, 78, 162, .45);
    outline-offset: 2px;
}

.btn-primary {
    --bs-btn-bg: var(--cchc-red);
    --bs-btn-border-color: var(--cchc-red);
    --bs-btn-hover-bg: var(--cchc-red-dark);
    --bs-btn-hover-border-color: var(--cchc-red-dark);
    --bs-btn-active-bg: var(--cchc-red-dark);
    --bs-btn-active-border-color: var(--cchc-red-dark);
}

.icon {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2;
    vertical-align: -.15em;
}

/* 3. Header / menu ----------------------------------------- */
.topbar {
    background: linear-gradient(90deg, var(--cchc-red), #e2451f);
    color: #fff;
    font-size: .8125rem;
}

    .topbar a {
        color: #fff;
    }

.brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--cchc-red);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cchc-red);
}

.brand-title {
    color: var(--cchc-red);
    font-weight: 800;
    line-height: 1.1;
    font-size: 1.15rem;
}

.brand-sub {
    color: var(--cchc-blue-dark);
    font-weight: 700;
}
/* Ô tìm kiếm & nút Bản tin cùng chiều cao 48px */
.search-box .form-control {
    height: 48px;
    border: 1px solid var(--cchc-line);
    border-right: 0;
    border-radius: .6rem 0 0 .6rem;
    box-shadow: var(--cchc-shadow);
}

.search-box .btn {
    height: 48px;
    width: 58px;
    border-radius: 0 .6rem .6rem 0;
}

.btn-bulletin {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: .6rem;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(#e0203f, #b50d28);
    box-shadow: 0 4px 12px rgba(200, 16, 46, .35);
}

    .btn-bulletin:hover {
        color: #fff;
        filter: brightness(1.08);
    }

.sub-links a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--cchc-blue-dark);
}

    .sub-links a .icon {
        width: 14px;
        height: 14px;
        color: var(--cchc-blue);
    }

    .sub-links a:first-child .icon {
        color: var(--cchc-red);
    }
/* Menu: xanh gradient, hai góc dưới ánh trắng */
.main-nav {
    background: radial-gradient(ellipse 16% 90% at 0 100%, rgba(255,255,255,.7), transparent), radial-gradient(ellipse 16% 90% at 100% 100%, rgba(255,255,255,.7), transparent), linear-gradient(180deg, #083a86, #0b56b3);
}

    .main-nav .nav-item {
        display: flex;
    }

    .main-nav .nav-link, .main-nav .nav-link.active {
        color: #fff;
        font-weight: 600;
        font-size: .875rem;
        padding: .95rem .75rem;
        display: flex;
        align-items: center;
        gap: .25rem;
    }

    /*        .main-nav .nav-link:not(.home):hover, .main-nav .show > .nav-link {
            background: rgba(255,255,255,.14);
        }*/

    .main-nav .dropdown-toggle::after {
        display: none;
    }

    .main-nav .dropdown-toggle .icon {
        transition: transform .2s;
    }

    .main-nav .dropdown-menu {
        top: 100%;
        left: 0;
        z-index: 1030;
        border: 0;
        border-radius: 0 0 10px 10px;
        margin: 0;
        padding: .4rem 0;
        min-width: 14rem;
        box-shadow: 0 10px 24px rgba(8,58,134,.25);
        border-top: 3px solid var(--cchc-red);
    }

    .main-nav .dropdown-item {
        font-size: .875rem;
        font-weight: 500;
        padding: .5rem 1rem;
    }

        .main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus, .main-nav .dropdown-item.active {
            background: linear-gradient(90deg, #cfe3ff, #eaf3ff);
            color: var(--cchc-blue-dark);
        }
/* Desktop: rê chuột là mở menu con */
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown:hover > .nav-link .icon {
        transform: rotate(180deg);
    }
}

.main-nav .nav-link .icon {
    width: 14px;
    height: 14px;
}
/* Trang chủ: khối 3D đỏ-cam, mép trên cong nhọn ra hai bên, đáy hẹp lại */
.main-nav .home-item {
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}

.main-nav .nav-link.home {
    padding: .95rem 1.6rem;
    font-weight: 700;
}

    .main-nav .nav-link.home::before {
        clip-path: inset(0 round 0px 0px 15px 15px);
    }

.main-nav .navbar-toggler {
    border-color: rgba(255,255,255,.5);
}

.main-nav .navbar-toggler-icon {
    filter: invert(1);
}

/* 4. Hero: chiều cao cố định, fade, đếm trang góc phải ---- */
.hero {
    border-radius: var(--cchc-radius);
    overflow: hidden;
    box-shadow: var(--cchc-shadow);
    position: relative;
}

    .hero .carousel-item {
        height: 320px;
        background-size: cover;
        background-position: center;
    }

        .hero .carousel-item::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(8,58,140,.88) 0%, rgba(8,58,140,.5) 45%, transparent 78%);
        }

.hero-body {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 3rem;
    max-width: 40rem;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.hero-tag {
    background: linear-gradient(#ffd766, #f5a623);
    color: #5a3a00;
    font-weight: 800;
    font-size: .75rem;
    border-radius: 99px;
    padding: .3rem .9rem;
    text-shadow: none;
}

.hero h1 {
    font-size: clamp(1.4rem, 3.6vw, 2.4rem);
    color: #fff;
    margin-block: .7rem;
}

.hero p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 32rem;
}

.hero .btn {
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.hero .carousel-indicators {
    justify-content: flex-end;
    margin: 0 4.5rem 0 auto;
    bottom: .5rem;
}

    .hero .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        border-radius: 99px;
        border: 0;
        background: rgba(255,255,255,.7);
        transition: width .3s;
    }

    .hero .carousel-indicators .active {
        width: 26px;
        background: var(--cchc-red);
    }

.hero-count {
    position: absolute;
    right: 1.25rem;
    bottom: .4rem;
    z-index: 3;
    color: #fff;
    font-weight: 700;
}

/* 5. 6 ô truy cập nhanh: icon lớn, nền gradient theo màu ---- */
/* 5. Truy cập nhanh (cột phải): icon nhỏ trái, chữ phải, xếp dọc ---- */
.quick-card {
    --c: var(--cchc-red);
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: .65rem;
    align-items: center;
    color: var(--cchc-ink);
    padding: .55rem 2.4rem .55rem .65rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--c) 20%, #fff);
    background: radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c) 16%, #fff), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, #fff), #fff 75%);
    transition: transform .15s, box-shadow .15s;
}
.survey-banner {
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--c) 20%, #fff);
    background: radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c) 16%, #fff), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, #fff), #fff 75%);
    transition: transform .15s, box-shadow .15s;
}
    .quick-card:hover, .survey-banner:hover {
        transform: translateY(-2px);
        box-shadow: var(--cchc-shadow);
        color: var(--cchc-ink);
    }

    .quick-card .ico {
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
        color: #fff;
        display: grid;
        place-items: center;
        box-shadow: 0 3px 8px color-mix(in srgb, var(--c) 35%, transparent);
    }

        .quick-card .ico svg {
            width: 20px;
            height: 20px;
        }

    .quick-card strong {
        display: block;
        align-self: end;
        font-size: .88rem;
        line-height: 1.3;
    }

    .quick-card small {
        align-self: start;
        color: var(--cchc-muted);
        display: block;
        font-size: .72rem;
        line-height: 1.35;
    }

    /* Ô không có dòng phụ (small): tiêu đề nằm giữa theo chiều dọc */
    .quick-card strong:nth-last-child(2) {
        grid-row: 1 / span 2;
        align-self: center;
    }

    .quick-card .go {
        position: absolute;
        top: 50%;
        right: .6rem;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--c);
        color: #fff;
        display: grid;
        place-items: center;
    }

        .quick-card .go .icon {
            width: 12px;
            height: 12px;
        }

/* 6. Những con số: khung xanh nhẹ, ảnh trái, 5 ô trong khung -- */
/* 6. Những con số (cột trái): intro nằm ngang, mỗi ô icon trái, số liệu phải ---- */
.stats-band {
    background: linear-gradient(120deg, #d9eaff, #eef6ff);
    border: 1px solid #cfe1f8;
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
    padding: .5rem;
}

.stats-intro {
    --intro-navy: #12335a;
    --intro-navy-soft: #1f4a6e;
    flex-direction: row;
    gap: .6rem;
    padding: .6rem .75rem;
    border-radius: 12px;
    text-align: left;
    background: linear-gradient(90deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .15) 80%), url(/assets/images/index.png) center / cover;
}

.stats-intro-logo {
    flex: none;
    width: auto;
    height: 40px;
    filter: contrast(1.4);
    mix-blend-mode: multiply;
}

.stats-intro-kicker {
    color: var(--intro-navy-soft);
    font-size: .65rem;
    font-weight: 700;
    margin-bottom: .1rem !important;
}

.stats-intro h2 {
    color: var(--intro-navy);
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.stats-intro-slogan {
    margin-top: .125rem;
    color: var(--intro-navy);
    font-size: 1rem;
    line-height: 1.15;
    text-wrap: balance;
}

.stat {
    --c: var(--cchc-blue);
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: .65rem;
    align-items: center;
    text-align: left;
    padding: .5rem .65rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--c) 18%, #fff);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, #fff), #fff 70%);
    box-shadow: 0 2px 8px rgba(11,78,162,.08);
}

    .stat .ico {
        grid-row: 1 / span 3;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--c);
        color: #fff;
        display: grid;
        place-items: center;
    }

        .stat .ico svg {
            width: 20px;
            height: 20px;
        }

    .stat .num {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--c);
        line-height: 1.1;
    }

    .stat .lbl {
        font-size: .78rem;
        font-weight: 600;
    }

    .stat .sub {
        margin-top: .2rem;
        padding-top: .2rem;
        font-size: .7rem;
        color: var(--cchc-muted);
        border-top: 1px solid var(--cchc-line);
    }

/* 7. Panels (tin tức / văn bản / liên kết) --------------- */
.panel {
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--cchc-line);
}

    .panel-head h2 {
        font-size: 1rem;
        color: var(--cchc-red);
        margin: 0;
        text-transform: uppercase;
        display: flex;
        gap: .5rem;
        align-items: center;
    }

    .panel-head a {
        font-size: .8125rem;
        font-weight: 600;
    }

.news-lead {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

    .news-lead img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .news-lead .cap {
        position: absolute;
        inset: auto 0 0 0;
        padding: 2.5rem .9rem .8rem;
        color: #fff;
        background: linear-gradient(transparent, rgba(8, 40, 90, .92));
    }

.news-item img {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex: none;
}

.news-item a {
    color: var(--cchc-ink);
    font-weight: 600;
    font-size: .875rem;
    line-height: 1.35;
}

    .news-item a:hover, .doc-item a:hover {
        color: var(--cchc-red);
    }

.meta {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .7125rem;
    color: var(--cchc-muted);
    margin-top: .15rem;
}

    .meta .icon {
        width: 12px;
        height: 12px;
        color: var(--cchc-blue);
    }
/* Icon PDF: tờ giấy đỏ gập góc, chữ PDF trắng */
.doc-item .pdf {
    width: 30px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: end center;
    padding-bottom: 7px;
    background: linear-gradient(180deg, #e3324c, var(--cchc-red));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
    clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
    border-radius: 3px;
}

.doc-item a {
    color: var(--cchc-ink);
    font-weight: 600;
    font-size: .875rem;
}

/* 8. Result cards ----------------------------------------- */
.result-card {
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
    padding: 1rem;
    height: 100%;
}

    .result-card .big {
        font-size: 2rem;
        font-weight: 800;
        color: var(--cchc-red);
        line-height: 1.1;
    }

    .result-card.blue {
        background: linear-gradient(120deg, #dbeafc, #eef6ff 70%, #f7fbff);
        border-color: #cfe1f8;
    }
/* ---- Thẻ chỉ số (PAR INDEX, SIPAS): icon tròn trái, số liệu phải ---- */
.index-card {
    padding: .85rem;
    border-color: #cfe1f8;
    background: linear-gradient(135deg, #f2f8ff, #fff 70%);
}

.index-ico {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, #4fb3f0, var(--cchc-sky));
    box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(26, 143, 216, .35);
}

    .index-ico svg {
        width: 22px;
        height: 22px;
    }

.index-body {
    min-width: 0;
}

.index-name {
    color: var(--cchc-blue-dark);
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.2;
}

.index-year {
    color: var(--cchc-muted);
    font-size: .8125rem;
    line-height: 1.2;
}

.index-card .big {
    margin: .4rem 0 .25rem;
    font-size: 1.6rem;
}

.index-rank {
    color: var(--cchc-ink);
    font-size: .75rem;
}

/* Màn hình hẹp (2 thẻ/hàng): thu nhỏ để không tràn */
@media (max-width: 575.98px) {
    .index-card {
        padding: .65rem;
    }

    .index-ico {
        width: 36px;
        height: 36px;
    }

        .index-ico svg {
            width: 18px;
            height: 18px;
        }

    .index-card .big {
        font-size: 1.3rem;
    }
}
/* ---- Thẻ Kết quả CCHC: logo trái, chữ phải ---- */
.result-cchc {
    padding: 1rem 1rem;
}

.result-logo {
    flex: none;
    width: 96px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* nền trắng hòa vào nền xanh nhạt */
    filter: contrast(1.15);
}

.result-content {
    min-width: 0;
}

.result-title {
    margin: 0 0 .35rem;
    color: var(--cchc-blue-dark);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    text-wrap: balance;
}

.result-slogan {
    margin: 0 0 .9rem;
    color: var(--cchc-ink);
    font-size: .9rem;
    font-style: italic;
    font-weight: 500;
}

.result-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.4rem;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    background: linear-gradient(180deg, #1a5cb8, var(--cchc-blue-dark));
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(11, 78, 162, .3);
    transition: filter .15s ease, transform .15s ease;
}

    .result-btn:hover {
        color: #fff;
        filter: brightness(1.12);
        transform: translateY(-1px);
    }

    .result-btn .icon {
        width: 15px;
        height: 15px;
    }

/* Màn hình hẹp: logo nhỏ lại, giữ bố cục ngang */
@media (max-width: 575.98px) {
    .result-logo {
        width: 72px;
    }

    .result-title {
        font-size: .95rem;
    }
}

.links-card {
    background: linear-gradient(160deg, #fff1f2, #fff);
    border: 1px solid #f7cdd3;
    border-radius: var(--cchc-radius);
    padding: 1rem;
    height: 100%;
}

    .links-card h2 {
        color: var(--cchc-red);
        font-size: .95rem;
        text-transform: uppercase;
    }

    .links-card a {
        color: var(--cchc-ink);
        font-weight: 500;
        font-size: .875rem;
        display: flex;
        gap: .5rem;
        align-items: center;
        padding: .3rem 0;
    }

        .links-card a .icon {
            color: var(--cchc-red);
        }

/* 9. Mô hình: slider cuộn, nút trái/phải hiện khi hover ----- */
.model-wrap {
    position: relative;
}

.model-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

    .model-track::-webkit-scrollbar {
        display: none;
    }

.model-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .model-item {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (min-width: 992px) {
    .model-item {
        flex-basis: calc((100% - 3rem) / 4);
    }
}

.model-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.model-card p {
    font-weight: 600;
    font-size: .875rem;
    margin: .5rem 0 0;
}
/* Mũi tên trái/phải dùng chung cho hero và slider Mô hình: cùng kích thước, hiện khi hover */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.18);
    color: #fff;
    opacity: 0;
    transition: opacity .2s, background .2s;
}

    .slide-arrow:hover {
        background: rgba(0,0,0,.4);
    }

    .slide-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slide-arrow.prev {
        left: .75rem;
    }

    .slide-arrow.next {
        right: .75rem;
    }

    .hero:hover .slide-arrow, .model-wrap:hover .slide-arrow, .slide-arrow:focus-visible {
        opacity: 1;
    }

.model-wrap .slide-arrow {
    top: 36%;
}

    .model-wrap .slide-arrow.prev {
        left: 1.75rem;
    }

    .model-wrap .slide-arrow.next {
        right: 1.75rem;
    }

@media (hover: none) {
    .slide-arrow {
        opacity: .9;
    }
}

/* 10. Footer: gạch trắng phân vùng, sen trái, ảnh mờ phải --- */
.site-footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 41%)), var(--footer-bg) top / cover no-repeat, #333; /* màu dự phòng khi ảnh lỗi hoặc đang tải */
}

    .site-footer .container {
        position: relative;
        z-index: 1;
    }

    .site-footer h3 {
        color: #fff;
        font-size: 1rem;
        text-transform: uppercase;
    }

    .site-footer a {
        color: #e4eeff;
    }

@media (min-width: 768px) {
    .f-col + .f-col {
        border-left: 1px solid rgba(255,255,255,.4);
        padding-left: 1.75rem;
    }
}

.footer-bottom {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.4);
    font-size: .8125rem;
}

/* 11. Responsive ------------------------------------------- */
@media (min-width: 768px) {
    .hero .carousel-item {
        height: 380px;
    }

    .hero-body {
        padding-inline: 4rem;
    }
}

@media (max-width: 575.98px) {
    .hero-body {
        padding-inline: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

.main-nav .nav-link.home {
    position: relative;
    z-index: 1;
    overflow: visible;
}

    .main-nav .nav-link.home::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: radial-gradient( ellipse 75% 50% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 70% ), linear-gradient( 45deg, #ffb52e 0%, #ff6b24 22%, #ed321d 55%, #d90d2d 100% );
    }
/* 12. Menu động (WebForms): link + nút mũi tên, submenu nhiều cấp ---- */
/* Mục cấp 1 có con: link + nút mũi tên nằm cùng hàng, menu con xuống dòng (mobile) */
.main-nav .nav-item.dropdown {
    flex-wrap: wrap;
}

    .main-nav .nav-item.dropdown > .nav-link {
        padding-right: .15rem;
    }

.main-nav .nav-arrow {
    display: flex;
    align-items: center;
    padding: 0 .7rem 0 .15rem;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
}

    .main-nav .nav-arrow .icon {
        width: 14px;
        height: 14px;
        transition: transform .2s;
    }

    .main-nav .nav-arrow.show {
        background: rgba(255,255,255,.14);
    }

        .main-nav .nav-arrow.show .icon {
            transform: rotate(180deg);
        }
/* Mục đang xem (JS gắn class .active theo URL) */
.main-nav .nav-item:has(> .nav-link.active:not(.home)) {
    background: rgba(255,255,255,.18);
}

/* Menu con cấp 2+: hàng gồm link + nút mũi tên */
.main-nav .dropdown-submenu {
    position: relative;
}

.main-nav .submenu-row {
    display: flex;
    align-items: center;
}

    .main-nav .submenu-row .dropdown-item {
        flex: 1;
    }

.main-nav .submenu-arrow {
    display: flex;
    padding: .5rem .75rem;
    background: none;
    border: 0;
    color: var(--cchc-blue);
    cursor: pointer;
}

    .main-nav .submenu-arrow .icon {
        width: 14px;
        height: 14px;
        transition: transform .2s;
    }

.main-nav .dropdown-submenu > .dropdown-menu {
    display: none;
}

.main-nav .dropdown-submenu.open > .dropdown-menu {
    display: block;
}

/* Mobile: menu con thụt vào, nền nhạt, không đổ bóng */
@media (max-width: 991.98px) {
    .main-nav .nav-item.dropdown > .nav-link {
        flex: 1;
    }

    .main-nav .dropdown-menu {
        flex: 0 0 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav .dropdown-submenu > .dropdown-menu {
        padding-left: 1rem;
        border-top: 0;
        background: #f3f7ff;
    }

    .main-nav .dropdown-submenu.open > .submenu-row .submenu-arrow .icon {
        transform: rotate(90deg);
    }
}

/* Desktop: rê chuột mở menu con, cấp 3+ bung sang phải (hoặc trái ở các mục cuối) */
@media (min-width: 992px) {
    .main-nav .nav-item:hover {
        background: rgba(255,255,255,.14);
    }

    .main-nav .nav-item.dropdown:hover > .nav-arrow .icon {
        transform: rotate(180deg);
    }

    .main-nav .dropdown-menu-end {
        left: auto;
        right: 0;
    }

    .main-nav .dropdown-submenu > .dropdown-menu {
        position: absolute;
        top: -.4rem;
        left: 100%;
        border-radius: 10px;
    }

    .main-nav .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .main-nav .flyout-left .dropdown-submenu > .dropdown-menu {
        left: auto;
        right: 100%;
    }
}
/* ==========================================================
   cchc-hero.css — bổ sung riêng cho module ITCForcusTopView (HERO)
   Nạp SAU bootstrap.min.css và cchc-custom.css.
   Không sửa cchc-custom.css; chỉ xử lý dữ liệu thật dài/ngắn hơn mockup.
   ========================================================== */

/* Nền dự phòng khi ảnh Avatar lỗi hoặc đang tải */
.hero .carousel-item {
    background-color: var(--cchc-blue-dark);
}

/* Tiêu đề bài thật có thể rất dài: giới hạn 3 dòng để không tràn khung hero */
.hero h1 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile: khung hero thấp (320px) nên co tiêu đề và sapo còn 2 dòng */
@media (max-width: 575.98px) {
    .hero h1 {
        -webkit-line-clamp: 2;
    }

    .hero p {
        -webkit-line-clamp: 2;
    }
}
/* Giới hạn tối đa 3 dòng, dư thì hiện "…". Bootstrap 5 không có sẵn line-clamp. */
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere; /* từ quá dài không làm tràn khung */
}
/* Bài nổi bật: ảnh + sapo liền một khối, sapo nền xám nhạt, viền cong phía dưới */
/* Bài nổi bật: ảnh trên; dưới là khối liền gồm tiêu đề + meta + sapo */
.lead-card {
    border: 1px solid var(--cchc-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

    .lead-card .news-lead {
        border-radius: 0;
    }

/* Khối chữ nền xám nhạt, thay cho .cap phủ trên ảnh */
.lead-body {
    padding: .75rem 1rem .9rem;
    background: linear-gradient(180deg, #eef3fa, #f6f8fc);
}

    /* Vô hiệu hóa kiểu .cap cũ (absolute + gradient tối + chữ trắng) */
    .lead-body .cap {
        position: static;
        padding: 0;
        color: var(--cchc-ink);
        background: none;
    }

        .lead-body .cap h3 a {
            color: var(--cchc-ink);
            font-weight: 700;
            line-height: 1.4;
        }

            .lead-body .cap h3 a:hover {
                color: var(--cchc-red);
            }

        .lead-body .cap small {
            font-size: .7125rem;
            color: var(--cchc-muted);
        }

        .lead-body .cap .icon {
            width: 12px;
            height: 12px;
            color: var(--cchc-blue);
        }

.lead-teaser {
    margin: .6rem 0 0;
    padding: .6rem 0 0;
    border-top: 1px dashed #d3dbe8; /* vạch mảnh ngăn tiêu đề và sapo */
    color: #4a5468;
    font-size: .8125rem;
    line-height: 1.6;
}
/* ==========================================================
   cchc-docfile.css — bổ sung riêng cho module ITCDocfileBox
   Nạp SAU bootstrap.min.css và cchc-custom.css.
   Dùng lại .panel, .doc-item, .pdf, .meta trong cchc-custom.css.
   ========================================================== */

/* Tiêu đề văn bản: tối đa 3 dòng; cho phép co lại trong flex */
.dft-panel .doc-item > div {
    min-width: 0;
}

.dft-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* Dòng meta (ngày · số ký hiệu · Tải về): cho xuống dòng khi hẹp,
   link trong meta nhỏ hơn link tiêu đề (ghi đè .doc-item a) */
.dft-panel .meta {
    flex-wrap: wrap;
}

    .dft-panel .meta a {
        font-size: inherit;
        font-weight: 500;
        color: var(--cchc-blue);
    }

        .dft-panel .meta a:hover {
            color: var(--cchc-red);
        }

.dft-sohieu {
    font-weight: 600;
    color: var(--cchc-ink);
}

/* Skeleton: khớp kích thước ô PDF (30 x 36) */
.dft-skel-ico {
    width: 30px;
    height: 36px;
    border-radius: 3px;
    flex: none;
}

/* Ô tìm kiếm & phân trang theo tông xanh/đỏ của site */
.dft-panel .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6
}

.dft-panel .input-group-text {
    border-color: var(--cchc-line);
    color: var(--cchc-muted);
}

.dft-panel .pagination {
    --bs-pagination-border-color: var(--cchc-line);
}
/* Footer: link hover đỏ */
.site-footer a {
    transition: color .2s ease;
}

    .site-footer a:hover,
    .site-footer a:focus-visible {
        color: #ff6b7d;
    }
/* Nút cuộn lên đầu trang */
#scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1050;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--cchc-red);
    box-shadow: 0 6px 16px rgba(200, 16, 46, .35);
    cursor: pointer;
    /* Ẩn mặc định, hiện khi có class .show */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}

    #scroll-top.show {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    #scroll-top:hover {
        background: var(--cchc-red-dark);
        transform: translateY(-3px);
    }

    #scroll-top:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cchc-red);
    }

    #scroll-top svg {
        width: 20px;
        height: 20px;
    }

@media (max-width: 575.98px) {
    #scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
}

.yhy-append-wrap {
    position: absolute;
    bottom: 0
}

/* Phân trang DHPager: style chung cho liên kết và ô số trang */

.cc-list .cc-pager a,
.cc-search .cc-pager a,
.cc-list .cc-pager span:not(:has(*)),
.cc-search .cc-pager span:not(:has(*)) {
    display: inline-block;
    min-width: 34px;
    margin: 0 .15rem;
    padding: .35rem .6rem;
    text-align: center;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cchc-ink);
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: 8px;
}

    .cc-list .cc-pager a:hover,
    .cc-search .cc-pager a:hover {
        color: #fff;
        background: var(--cchc-blue);
        border-color: var(--cchc-blue);
    }

/* Trang đang chọn */
.cc-list .cc-pager .current,
.cc-list .cc-pager .active,
.cc-list .cc-pager .selected,
.cc-list .cc-pager [aria-current="page"],
.cc-search .cc-pager .current,
.cc-search .cc-pager .active,
.cc-search .cc-pager .selected,
.cc-search .cc-pager [aria-current="page"] {
    color: #fff;
    background: var(--cchc-red);
    border-color: var(--cchc-red);
}

/* ==========================================================
   7. ITCDocfileBox – phân trang cùng kiểu với các trang trong
   (Bootstrap .pagination: trang hiện tại đỏ, hover xanh)
   ========================================================== */
.dft-panel .pagination {
    --bs-pagination-color: var(--cchc-ink);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--cchc-blue);
    --bs-pagination-hover-border-color: var(--cchc-blue);
    --bs-pagination-focus-color: var(--cchc-ink);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(11, 78, 162, .2);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--cchc-red);
    --bs-pagination-active-border-color: var(--cchc-red);
    gap: .25rem;
}

    .dft-panel .pagination .page-link {
        font-weight: 600;
        border-radius: 8px;
    }

    .dft-panel .pagination .page-item:not(:first-child) .page-link {
        margin-left: 0;
    }
/* ==========================================================
   CCHC Lâm Đồng – cchc-inner.css
   Trang trong: danh sách bài (ZoneTeaser), chi tiết (Story),
   tìm kiếm (Searching).
   Nạp SAU cchc-custom.css, dùng lại biến :root và .panel,
   .panel-head, .icon có sẵn. Mỗi module có 1 wrapper riêng:
   .cc-list | .cc-story | .cc-search
   ========================================================== */

/* ---------- Dùng chung: meta, chân trang, phân trang ---------- */
.cc-list .cc-meta,
.cc-story .cc-meta,
.cc-search .cc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .9rem;
    font-size: .75rem;
    color: var(--cchc-muted);
}

    .cc-list .cc-meta .icon,
    .cc-story .cc-meta .icon,
    .cc-search .cc-meta .icon {
        width: 13px;
        height: 13px;
    }

.cc-list .cc-footer,
.cc-search .cc-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cchc-line);
}

.cc-list .cc-footer-info,
.cc-search .cc-footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem .75rem;
    font-size: .8125rem;
    color: var(--cchc-muted);
}

.cc-list .cc-totals,
.cc-search .cc-totals {
    margin: 0;
}

    .cc-list .cc-totals strong,
    .cc-search .cc-totals strong {
        color: var(--cchc-red);
    }

@media (min-width: 768px) {
    .cc-list .cc-footer,
    .cc-search .cc-footer {
        flex-direction: row;
        justify-content: space-between;
    }

    .cc-list .cc-footer-info,
    .cc-search .cc-footer-info {
        justify-content: flex-start;
    }
}

/* Phân trang DHPager
   HTML: <table class="pager"><tr>
           <td class="pager"><a>2</a></td> ...   = trang khác / Trước / Tiếp
           <td>1</td>                            = trang hiện tại (td KHÔNG có class)
           <td class="pager"></td>               = ô rỗng (vd. "Trước" ở trang đầu)
         </tr></table> */
.cc-list .cc-pager,
.cc-search .cc-pager {
    max-width: 100%;
    overflow-x: auto;
}

    .cc-list .cc-pager table,
    .cc-search .cc-pager table {
        margin: 0 auto;
        white-space: nowrap;
        border-collapse: separate;
        border-spacing: .25rem 0;
    }

    .cc-list .cc-pager td,
    .cc-search .cc-pager td {
        padding: 0;
        vertical-align: middle;
    }

        /* Ô rỗng: ẩn để không chừa khoảng trống */
        .cc-list .cc-pager td.pager:empty,
        .cc-search .cc-pager td.pager:empty {
            display: none;
        }

        /* Kích thước chung cho ô số trang, Trước, Tiếp */
        .cc-list .cc-pager td.pager a,
        .cc-search .cc-pager td.pager a,
        .cc-list .cc-pager td:not(.pager),
        .cc-search .cc-pager td:not(.pager) {
            min-width: 36px;
            padding: .4rem .7rem;
            font-size: .8125rem;
            font-weight: 600;
            line-height: 1.3;
            text-align: center;
            border-radius: 8px;
        }

        /* Trang khác (liên kết) */
        .cc-list .cc-pager td.pager a,
        .cc-search .cc-pager td.pager a {
            display: block;
            color: var(--cchc-ink);
            background: #fff;
            border: 1px solid var(--cchc-line);
            transition: color .15s ease, background .15s ease, border-color .15s ease;
        }

            .cc-list .cc-pager td.pager a:hover,
            .cc-search .cc-pager td.pager a:hover {
                color: #fff;
                background: var(--cchc-blue);
                border-color: var(--cchc-blue);
            }

        /* Trang hiện tại */
        .cc-list .cc-pager td:not(.pager),
        .cc-search .cc-pager td:not(.pager) {
            color: #fff;
            background: var(--cchc-red);
            border: 1px solid var(--cchc-red);
        }

/* ==========================================================
   1. ZoneTeaser – .cc-list
   ========================================================== */
.cc-list .cc-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px) {
    .cc-list .cc-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cc-list .cc-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cc-list .cc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
    transition: box-shadow .2s ease;
}

    .cc-list .cc-card:hover {
        box-shadow: 0 10px 26px rgba(11, 78, 162, .14);
    }

.cc-list .cc-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f7;
}

    .cc-list .cc-card-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cc-list .cc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .4rem;
    padding: .85rem 1rem 1rem;
}

.cc-list .cc-card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: var(--cchc-ink);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.4;
}

    .cc-list .cc-card-title:hover {
        color: var(--cchc-red);
    }

.cc-list .cc-card-teaser {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: var(--cchc-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.cc-list .cc-card-body .cc-meta {
    margin-top: auto;
    padding-top: .35rem;
}

/* ==========================================================
   2. Story – .cc-story
   ========================================================== */
.cc-story {
    position: relative;
}

    .cc-story .cc-story-progress {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--cchc-red), #e2451f);
    }

    .cc-story .cc-story-card {
        padding: 1.25rem;
        background: #fff;
        border: 1px solid var(--cchc-line);
        border-radius: var(--cchc-radius);
        box-shadow: var(--cchc-shadow);
    }

@media (min-width: 768px) {
    .cc-story .cc-story-card {
        padding: 1.75rem 2rem;
    }
}

/* Breadcrumb (code-behind ghi <a> và <span>/</span> vào li) */
.cc-story .cc-crumb {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
    color: var(--cchc-muted);
}

    .cc-story .cc-crumb a {
        color: var(--cchc-blue);
    }

        .cc-story .cc-crumb a:hover {
            color: var(--cchc-red);
        }

        .cc-story .cc-crumb a.active {
            color: var(--cchc-red);
            font-weight: 600;
        }

    .cc-story .cc-crumb span {
        margin: 0 .2rem;
        opacity: .6;
    }

.cc-story .cc-story-title {
    margin: 0 0 .75rem;
    color: var(--cchc-blue-dark);
    font-size: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .cc-story .cc-story-title {
        font-size: 1.85rem;
    }
}

.cc-story .cc-story-sapo {
    margin: 0 0 1rem;
    color: var(--cchc-ink);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Hàng meta + công cụ */
.cc-story .cc-story-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 0;
    border-top: 1px solid var(--cchc-line);
    border-bottom: 1px solid var(--cchc-line);
}

.cc-story .cc-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.cc-story .cc-tool {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    color: var(--cchc-ink);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2;
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

    .cc-story .cc-tool:hover {
        color: #fff;
        background: var(--cchc-blue);
        border-color: var(--cchc-blue);
    }

    .cc-story .cc-tool .icon {
        width: 14px;
        height: 14px;
    }

.cc-story .cc-tool-sep {
    align-self: stretch;
    width: 1px;
    margin: 0 .15rem;
    background: var(--cchc-line);
}

/* Audio: ẩn khi không có nguồn */
.cc-story .cc-story-audio {
    width: 100%;
    margin-top: .75rem;
}

    .cc-story .cc-story-audio:not([src]),
    .cc-story .cc-story-audio[src=""] {
        display: none;
    }

/* Nội dung bài viết (HTML từ CMS) */
.cc-story .cc-story-body {
    margin-top: 1.25rem;
    color: var(--cchc-ink);
    font-size: 1.0625rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

    .cc-story .cc-story-body p {
        margin-bottom: 1rem;
    }

    .cc-story .cc-story-body h2,
    .cc-story .cc-story-body h3,
    .cc-story .cc-story-body h4 {
        margin: 1.5rem 0 .75rem;
        color: var(--cchc-blue-dark);
    }

    .cc-story .cc-story-body a {
        color: var(--cchc-blue);
        text-decoration: underline;
    }

    .cc-story .cc-story-body img {
        max-width: 100%;
        height: auto !important;
    }

    .cc-story .cc-story-body table,
    .cc-story .cc-story-body iframe,
    .cc-story .cc-story-body video {
        max-width: 100%;
    }

    /* Ảnh + chú thích do JS dựng */
    .cc-story .cc-story-body .box {
        margin: 1rem auto;
        text-align: center;
    }

        .cc-story .cc-story-body .box img {
            border-radius: 8px;
        }

    .cc-story .cc-story-body .caption {
        margin-top: .4rem;
        color: var(--cchc-muted);
        font-size: .875rem;
        font-style: italic;
        line-height: 1.5;
    }

    /* YouTube 16:9 do JS bọc */
    .cc-story .cc-story-body .video-container {
        position: relative;
        height: 0;
        margin: 1rem 0;
        padding-bottom: 56.25%;
        overflow: hidden;
    }

        .cc-story .cc-story-body .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

.cc-story .cc-story-pdf {
    margin-top: 1rem;
}

    .cc-story .cc-story-pdf embed {
        border: 1px solid var(--cchc-line);
        border-radius: 8px;
    }

/* Chân bài: nguồn + từ khóa */
.cc-story .cc-story-foot {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: .875rem;
    border-top: 1px solid var(--cchc-line);
}

.cc-story .cc-story-label {
    margin-right: .35rem;
    color: var(--cchc-ink);
    font-weight: 700;
}

.cc-story .tag {
    display: inline-block;
    margin: 0 .3rem .35rem 0;
    padding: .2rem .65rem;
    color: var(--cchc-blue);
    font-size: .75rem;
    font-weight: 600;
    background: #eaf1fb;
    border-radius: 999px;
}

    .cc-story .tag:hover {
        color: #fff;
        background: var(--cchc-red);
    }

/* Thông báo sao chép link */
.cc-story .cc-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 1060;
    padding: .5rem 1rem;
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    background: var(--cchc-ink);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
}

    .cc-story .cc-toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

/* In bài: bỏ công cụ và thanh tiến trình */
@media print {
    .cc-story .cc-tools,
    .cc-story .cc-story-progress,
    .cc-story .cc-toast {
        display: none !important;
    }

    .cc-story .cc-story-card {
        border: 0;
        box-shadow: none;
    }
}

/* ==========================================================
   3. Searching – .cc-search
   ========================================================== */
.cc-search .cc-search-card {
    margin-bottom: 1.25rem;
}

.cc-search .form-label {
    margin-bottom: .35rem;
    font-size: .8125rem;
    font-weight: 600;
}

.cc-search .input-group-text {
    color: var(--cchc-muted);
    background: #fff;
}

.cc-search .form-control:focus,
.cc-search .form-select:focus {
    border-color: var(--cchc-blue);
    box-shadow: 0 0 0 .2rem rgba(11, 78, 162, .15);
}

/* Nhóm radio (RadioButtonList RepeatLayout=Flow) */
.cc-search .cc-radios input {
    margin-right: .35rem;
    accent-color: var(--cchc-red);
}

.cc-search .cc-radios label {
    margin-right: 1.25rem;
    cursor: pointer;
}

/* Tiêu đề kết quả */
.cc-search .cc-search-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
    font-size: .875rem;
}

    .cc-search .cc-search-head strong {
        color: var(--cchc-red);
    }

.cc-search .cc-search-kw {
    color: var(--cchc-muted);
}

    .cc-search .cc-search-kw .icon {
        width: 13px;
        height: 13px;
    }

    .cc-search .cc-search-kw mark {
        padding: 0 .35rem;
        background: #fff3cd;
        border-radius: 4px;
    }

/* Danh sách kết quả: ảnh trái, chữ phải */
.cc-search .cc-results {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cc-search .cc-item {
    display: flex;
    gap: 1rem;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
}

.cc-search .cc-item-img {
    flex: none;
    width: 112px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f7;
    border-radius: 10px;
}

    .cc-search .cc-item-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (min-width: 768px) {
    .cc-search .cc-item-img {
        width: 200px;
        aspect-ratio: 16 / 10;
    }
}

.cc-search .cc-item-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.cc-search .cc-item-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--cchc-ink);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.4;
}

    .cc-search .cc-item-title:hover {
        color: var(--cchc-red);
    }

.cc-search .cc-item-teaser {
    display: none;
    overflow: hidden;
    color: var(--cchc-muted);
    font-size: .8125rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (min-width: 576px) {
    .cc-search .cc-item-teaser {
        display: -webkit-box;
    }
}

.cc-search .cc-item-body .cc-meta {
    margin-top: auto;
}

/* Trạng thái rỗng */
.cc-search .cc-empty {
    padding: 2.5rem 1rem;
    color: var(--cchc-muted);
    text-align: center;
    background: #fff;
    border: 1px dashed var(--cchc-line);
    border-radius: var(--cchc-radius);
}

    .cc-search .cc-empty .cc-empty-icon {
        width: 48px;
        height: 48px;
        opacity: .55;
    }

    .cc-search .cc-empty h3 {
        margin: .75rem 0 .35rem;
        color: var(--cchc-ink);
        font-size: 1.05rem;
    }

/* ==========================================================
   4. ZoneTeaserMain – .cc-zm
   Dùng lại .panel, .panel-head, .news-lead, .news-item, .meta
   của trang chủ; chỉ bổ sung phần tab chuyên mục con và màu link.
   ========================================================== */
.cc-zm .panel-head {
    flex-wrap: wrap;
    gap: .5rem .75rem;
}

    .cc-zm .panel-head h2 {
        flex: 1 1 auto;
    }

        /* Link tên chuyên mục kế thừa kiểu chữ của tiêu đề panel */
        .cc-zm .panel-head h2 a {
            color: inherit;
            font-size: inherit;
            font-weight: inherit;
        }

.cc-zm .cc-zm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

    .cc-zm .cc-zm-tabs a {
        padding: .2rem .7rem;
        color: var(--cchc-ink);
        font-size: .75rem;
        font-weight: 600;
        background: #eef1f7;
        border-radius: 999px;
    }

        .cc-zm .cc-zm-tabs a:hover {
            color: #fff;
            background: var(--cchc-red);
        }

/* Mobile: tab chuyên mục con xuống dòng riêng */
@media (max-width: 575.98px) {
    .cc-zm .cc-zm-tabs {
        order: 3;
        flex: 1 0 100%;
    }
}

.cc-zm .news-lead > a {
    display: block;
}

.cc-zm .news-lead .cap a {
    color: #fff;
}

    .cc-zm .news-lead .cap a:hover {
        text-decoration: underline;
    }

.cc-zm .cc-zm-teaser {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: var(--cchc-muted);
}

/* ==========================================================
   5. NextStoryList – .cc-related
   ========================================================== */
.cc-related .cc-rel-img {
    display: block;
    overflow: hidden;
    background: #eef1f7;
    border-radius: 10px;
}

    .cc-related .cc-rel-img img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

.cc-related .cc-rel-title {
    display: -webkit-box;
    margin-top: .5rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: var(--cchc-ink);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
}

    .cc-related .cc-rel-title:hover {
        color: var(--cchc-red);
    }

/* ==========================================================
   6. ITCDocfileChiTiet – .cc-doc
   Tab dùng Bootstrap (data-bs-toggle="tab"), chỉ chỉnh giao diện.
   ========================================================== */
.cc-doc .cc-doc-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
    color: var(--cchc-muted);
    font-size: .8125rem;
}

    .cc-doc .cc-doc-crumb li + li::before {
        content: "/";
        margin-right: .5rem;
        opacity: .6;
    }

    .cc-doc .cc-doc-crumb a {
        color: var(--cchc-blue);
    }

        .cc-doc .cc-doc-crumb a:hover {
            color: var(--cchc-red);
        }

    .cc-doc .cc-doc-crumb .icon {
        width: 13px;
        height: 13px;
    }

    .cc-doc .cc-doc-crumb li[aria-current] {
        color: var(--cchc-ink);
        font-weight: 600;
    }

.cc-doc .cc-doc-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
}

/* Thông tin nhanh */
.cc-doc .cc-doc-info {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2.5rem;
    padding: 1rem 1.25rem;
    background: #f8faff;
    border-bottom: 1px solid var(--cchc-line);
}

.cc-doc .cc-doc-info-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.cc-doc .cc-doc-label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--cchc-muted);
    font-size: .75rem;
}

    .cc-doc .cc-doc-label .icon {
        width: 13px;
        height: 13px;
        color: var(--cchc-blue);
    }

.cc-doc .cc-doc-value {
    color: var(--cchc-ink);
    font-size: .9375rem;
    font-weight: 700;
}

.cc-doc .cc-doc-value--accent {
    color: var(--cchc-red);
}

/* Nhãn hiệu lực: màu gắn bằng class từ JS trong ascx */
.cc-doc .cc-status {
    align-self: flex-start;
    padding: .1rem .7rem;
    font-size: .8125rem;
    background: #eef1f7;
    border-radius: 999px;
}

    .cc-doc .cc-status.is-valid {
        color: #14783f;
        background: #e3f6ea;
    }

    .cc-doc .cc-status.is-expired {
        color: var(--cchc-red-dark);
        background: #fde8ec;
    }

    .cc-doc .cc-status.is-pending {
        color: #a85a00;
        background: #fff1dc;
    }

/* Thanh tab */
.cc-doc .cc-doc-tabs {
    flex-wrap: nowrap;
    gap: .25rem;
    padding: 0 1rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--cchc-line);
}

    .cc-doc .cc-doc-tabs .nav-link {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .75rem 1rem;
        color: var(--cchc-muted);
        font-size: .875rem;
        font-weight: 600;
        white-space: nowrap;
        background: none;
        border: 0;
        border-bottom: 3px solid transparent;
        border-radius: 0;
    }

        .cc-doc .cc-doc-tabs .nav-link:hover {
            color: var(--cchc-ink);
        }

        .cc-doc .cc-doc-tabs .nav-link.active {
            color: var(--cchc-red);
            border-bottom-color: var(--cchc-red);
        }

/* Tab Toàn văn */
.cc-doc .cc-doc-note {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: .6rem .85rem;
    color: var(--cchc-blue-dark);
    font-size: .875rem;
    background: #eaf1fb;
    border-radius: 8px;
}

    .cc-doc .cc-doc-note .icon {
        flex: none;
        margin-top: .15rem;
    }

.cc-doc .cc-doc-pdf {
    margin-top: 1rem;
}

    .cc-doc .cc-doc-pdf embed {
        display: block;
        width: 100%;
        height: 80vh;
        min-height: 480px;
        border: 1px solid var(--cchc-line);
        border-radius: 8px;
    }

/* Tab Thuộc tính */
.cc-doc .cc-doc-props {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .9375rem;
}

    .cc-doc .cc-doc-props th,
    .cc-doc .cc-doc-props td {
        padding: .65rem 1rem;
        vertical-align: top;
        border: 1px solid var(--cchc-line);
    }

    .cc-doc .cc-doc-props th {
        width: 34%;
        color: var(--cchc-muted);
        font-weight: 600;
        background: var(--cchc-bg);
    }

    .cc-doc .cc-doc-props .cc-doc-headline {
        color: var(--cchc-blue-dark);
        font-weight: 700;
        background: #eaf1fb;
    }

/* Tab Tải về: các thẻ <a> trong linkDownload thành nút */
.cc-doc .cc-doc-dl {
    padding: 1.5rem 1rem;
    text-align: center;
}

.cc-doc .cc-doc-dl-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    color: var(--cchc-red);
    background: #fde8ec;
    border-radius: 50%;
}

    .cc-doc .cc-doc-dl-icon .icon {
        width: 32px;
        height: 32px;
    }

.cc-doc .cc-doc-dl-btn a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: .25rem;
    padding: .6rem 1.25rem;
    color: #fff;
    font-weight: 600;
    background: var(--cchc-red);
    border-radius: 999px;
    transition: background .15s ease;
}

    .cc-doc .cc-doc-dl-btn a:hover {
        background: var(--cchc-red-dark);
    }

.cc-doc .cc-doc-dl-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .4rem;
    margin: 1.25rem 0 0;
    color: var(--cchc-muted);
    font-size: .8125rem;
}

    .cc-doc .cc-doc-dl-note .icon {
        flex: none;
        margin-top: .15rem;
    }

@media (max-width: 575.98px) {
    .cc-doc .cc-doc-props th {
        width: 42%;
    }
}

/* ==========================================================
   7. ITCDocfileBox – .cc-docbox (panel "Văn bản mới")
   Tự đủ, không cần cchc-docfile.css. Dùng lại .panel, .panel-head,
   .doc-item, .pdf, .meta của cchc-custom.css.
   ========================================================== */
.cc-docbox .cc-docbox-search {
    padding: .85rem 1rem 0;
}

.cc-docbox .input-group-text {
    color: var(--cchc-muted);
    background: #fff;
    border-color: var(--cchc-line);
}

.cc-docbox .form-control {
    border-color: var(--cchc-line);
}

    .cc-docbox .form-control:focus {
        border-color: var(--cchc-blue);
        box-shadow: 0 0 0 .2rem rgba(11, 78, 162, .15);
    }

/* Danh sách */
.cc-docbox .cc-docbox-list {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 1rem;
    list-style: none;
    transition: opacity .15s ease;
}

    .cc-docbox .cc-docbox-list.is-busy {
        opacity: .45;
        pointer-events: none;
    }

.cc-docbox .doc-item > div {
    flex: 1;
    min-width: 0;
}

/* Trích yếu tối đa 3 dòng */
.cc-docbox .cc-clamp {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Dòng meta: ngày · số ký hiệu · Tải về */
.cc-docbox .meta {
    flex-wrap: wrap;
}

    .cc-docbox .meta a {
        color: var(--cchc-blue);
        font-size: inherit;
        font-weight: 500;
    }

        .cc-docbox .meta a:hover {
            color: var(--cchc-red);
        }

.cc-docbox .cc-sohieu {
    color: var(--cchc-ink);
    font-weight: 600;
}

/* Trống / lỗi */
.cc-docbox .cc-docbox-state {
    padding: 1.75rem 1rem;
    color: var(--cchc-muted);
    font-size: .875rem;
    text-align: center;
}

    .cc-docbox .cc-docbox-state.is-error {
        color: var(--cchc-red-dark);
    }

    .cc-docbox .cc-docbox-state .icon {
        width: 28px;
        height: 28px;
        margin-bottom: .35rem;
    }

    .cc-docbox .cc-docbox-state .btn-link {
        color: var(--cchc-blue);
        font-size: inherit;
    }

/* Chân: tổng số + phân trang */
.cc-docbox .cc-docbox-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 1rem 1rem;
    color: var(--cchc-muted);
    font-size: .8125rem;
}

/* Skeleton khi tải lần đầu (khớp kích thước ô PDF 30 x 36) */
.cc-docbox .cc-skel {
    display: block;
    background: linear-gradient(90deg, #eef1f7 25%, #f7f9fc 50%, #eef1f7 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: cc-shimmer 1.2s linear infinite;
}

.cc-docbox .cc-skel-ico {
    flex: none;
    width: 30px;
    height: 36px;
}

.cc-docbox .cc-skel-line {
    width: 92%;
    height: .8rem;
    margin-bottom: .5rem;
}

    .cc-docbox .cc-skel-line.is-short {
        width: 45%;
        margin-bottom: 0;
    }

@keyframes cc-shimmer {
    to {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-docbox .cc-skel {
        animation: none;
    }
}

/* Phân trang (Bootstrap .pagination do JS dựng): hiện tại đỏ, hover xanh */
.cc-docbox .pagination {
    --bs-pagination-color: var(--cchc-ink);
    --bs-pagination-border-color: var(--cchc-line);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--cchc-blue);
    --bs-pagination-hover-border-color: var(--cchc-blue);
    --bs-pagination-focus-color: var(--cchc-ink);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(11, 78, 162, .2);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--cchc-red);
    --bs-pagination-active-border-color: var(--cchc-red);
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0;
}

    .cc-docbox .pagination .page-link {
        font-weight: 600;
        border-radius: 8px;
    }

    .cc-docbox .pagination .page-item:not(:first-child) .page-link {
        margin-left: 0;
    }

.hg-card {
    height: 100%;
}

.hg-img {
    display: block;
    overflow: hidden;
    background: #eef1f7;
    border-radius: 10px;
}

    .hg-img img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        transition: transform .25s ease;
    }

    .hg-img:hover img {
        transform: scale(1.04);
    }

.hg-title {
    display: -webkit-box;
    margin-top: .5rem;
    color: var(--cchc-ink);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}

    .hg-title:hover {
        color: var(--cchc-red);
    }
/* Hai cột bên giãn bằng cột giữa, các ô chia đều chiều cao (chỉ desktop) */
@media (min-width: 992px) {
    .stats-band .stats-intro {
        flex: none;
    }

    .stats-band .stats-list {
        flex: 1;
        grid-auto-rows: minmax(min-content, 1fr);
    }

    .side-quick {
        grid-auto-rows: minmax(min-content, 1fr);
    }
}
@media (min-width: 992px) {
    .stats-band .stats-intro {
        flex: none;
    }

    .stats-band .stats-list {
        flex: 1;
        grid-auto-rows: minmax(min-content, 1fr);
    }

    .side-quick {
        grid-auto-rows: minmax(min-content, 1fr);
    }
}
/* ==========================================================
   HERO: danh sách tin bên phải (chỉ hiện từ lg)
   ========================================================== */
.hero-side {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cchc-line);
    border-radius: var(--cchc-radius);
    box-shadow: var(--cchc-shadow);
}

.hero-side-item {
    flex: 1 1 0; /* 5 tin chia đều chiều cao, bằng chiều cao carousel */
    min-height: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .45rem .65rem;
    color: var(--cchc-ink);
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--cchc-line);
    transition: background .15s ease, border-color .15s ease;
}

    .hero-side-item:last-child {
        border-bottom: 0;
    }

    .hero-side-item:hover,
    .hero-side-item:focus-visible,
    .hero-side-item.active {
        background: #f3f7ff;
        border-left-color: var(--cchc-red);
        color: var(--cchc-ink);
    }

    .hero-side-item img {
        flex: none;
        width: 84px;
        height: 56px;
        object-fit: cover;
        border-radius: 8px;
        background: #eef1f7;
    }

    .hero-side-item .min-w-0 {
        min-width: 0;
    }

.hero-side-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.hero-side-item:hover .hero-side-title,
.hero-side-item.active .hero-side-title {
    color: var(--cchc-red);
}
/* Mobile: ẩn nút prev/next của hero và slider Mô hình (vẫn vuốt ngang để chuyển) */
@media (max-width: 767.98px), (hover: none) {
    .hero .slide-arrow,
    .model-wrap .slide-arrow {
        display: none;
    }
}
/* ===== Menu: đánh dấu mục đang xem ===== */

/* Đang ở một mục menu thì ẩn nút Trang chủ (logo vẫn dẫn về "/") */
.main-nav .navbar-nav:has(.nav-item.is-current, .nav-item.is-trail) .home-item a::before {
    background: none;
}

/* Desktop: mục cấp 1 đang xem (hoặc chứa mục con đang xem) có khối đỏ-cam giống Trang chủ */
@media (min-width: 992px) {
    .main-nav .nav-item.is-current,
    .main-nav .nav-item.is-trail {
        position: relative;
        background: transparent !important;
        filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
    }

        .main-nav .nav-item.is-current::before,
        .main-nav .nav-item.is-trail::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            clip-path: inset(0 round 0 0 15px 15px);
            background: radial-gradient(ellipse 75% 50% at 50% 0%, rgba(255,255,255,.45), transparent 70%), linear-gradient(45deg, #ffb52e 0%, #ff6b24 22%, #ed321d 55%, #d90d2d 100%);
        }

        .main-nav .nav-item.is-current > .nav-link,
        .main-nav .nav-item.is-trail > .nav-link,
        .main-nav .nav-item.is-current > .nav-arrow,
        .main-nav .nav-item.is-trail > .nav-arrow {
            position: relative;
            z-index: 1;
            font-weight: 700;
        }

        .main-nav .nav-item.is-current > .nav-link,
        .main-nav .nav-item.is-trail > .nav-link {
            padding-left: 1.6rem;
        }

        .main-nav .nav-item.is-current:not(.dropdown) > .nav-link,
        .main-nav .nav-item.is-trail:not(.dropdown) > .nav-link {
            padding-right: 1.6rem;
        }

        .main-nav .nav-item.is-current.dropdown > .nav-arrow,
        .main-nav .nav-item.is-trail.dropdown > .nav-arrow {
            padding-right: 1.4rem;
        }
}

/* Mobile: mục đang xem nền đỏ-cam */
@media (max-width: 991.98px) {
    .main-nav .nav-item.is-current,
    .main-nav .nav-item.is-trail {
        background: linear-gradient(90deg, #ed321d, #d90d2d);
    }
}

/* Menu con: mục đang xem = nền hồng nhạt + vạch đỏ bên trái; mục cha trung gian = chữ đỏ đậm */
.main-nav .dropdown-item.is-current {
    color: var(--cchc-red);
    font-weight: 700;
    background: linear-gradient(90deg, #ffe3e7, #fff5f6);
    box-shadow: inset 3px 0 0 var(--cchc-red);
}

.main-nav .dropdown-item.is-trail {
    color: var(--cchc-red-dark);
    font-weight: 700;
}
.main-nav {
    position: relative;
    z-index: 1030;
}